tag | line | file | source code |
dev | 144 | arch/alpha/boot/main.c | static inline long close(long dev) |
dev | 146 | arch/alpha/boot/main.c | return dispatch(CCB_CLOSE, dev); |
dev | 149 | arch/alpha/boot/main.c | static inline long load(long dev, unsigned long addr, unsigned long count) |
dev | 161 | arch/alpha/boot/main.c | return dispatch(CCB_READ, dev, count, addr, BOOT_SIZE/512 + 1); |
dev | 181 | arch/alpha/boot/main.c | long dev; |
dev | 191 | arch/alpha/boot/main.c | dev = openboot(); |
dev | 192 | arch/alpha/boot/main.c | if (dev < 0) { |
dev | 193 | arch/alpha/boot/main.c | printk("Unable to open boot device: %016lx\n", dev); |
dev | 196 | arch/alpha/boot/main.c | dev &= 0xffffffff; |
dev | 198 | arch/alpha/boot/main.c | i = load(dev, START_ADDR, START_SIZE); |
dev | 199 | arch/alpha/boot/main.c | close(dev); |
dev | 92 | arch/alpha/kernel/bios32.c | static void layout_dev(struct pci_dev *dev) |
dev | 98 | arch/alpha/kernel/bios32.c | bus = dev->bus; |
dev | 99 | arch/alpha/kernel/bios32.c | pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd); |
dev | 106 | arch/alpha/kernel/bios32.c | pcibios_write_config_dword(bus->number, dev->devfn, reg, |
dev | 108 | arch/alpha/kernel/bios32.c | pcibios_read_config_dword(bus->number, dev->devfn, reg, &base); |
dev | 128 | arch/alpha/kernel/bios32.c | pcibios_write_config_dword(bus->number, dev->devfn, |
dev | 149 | arch/alpha/kernel/bios32.c | PCI_SLOT(dev->devfn), |
dev | 150 | arch/alpha/kernel/bios32.c | PCI_FUNC(dev->devfn)); |
dev | 167 | arch/alpha/kernel/bios32.c | PCI_SLOT(dev->devfn), |
dev | 168 | arch/alpha/kernel/bios32.c | PCI_FUNC(dev->devfn)); |
dev | 192 | arch/alpha/kernel/bios32.c | PCI_SLOT(dev->devfn), |
dev | 193 | arch/alpha/kernel/bios32.c | PCI_FUNC(dev->devfn), size); |
dev | 207 | arch/alpha/kernel/bios32.c | pcibios_write_config_dword(bus->number, dev->devfn, |
dev | 212 | arch/alpha/kernel/bios32.c | pcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, |
dev | 221 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 236 | arch/alpha/kernel/bios32.c | for (dev = bus->devices; dev; dev = dev->sibling) { |
dev | 237 | arch/alpha/kernel/bios32.c | if (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) { |
dev | 238 | arch/alpha/kernel/bios32.c | layout_dev(dev); |
dev | 301 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 303 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 304 | arch/alpha/kernel/bios32.c | if (dev->vendor == vendor && dev->device == device_id) { |
dev | 306 | arch/alpha/kernel/bios32.c | *devfn = dev->devfn; |
dev | 307 | arch/alpha/kernel/bios32.c | *bus = dev->bus->number; |
dev | 325 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 327 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 328 | arch/alpha/kernel/bios32.c | if (dev->class == class_code) { |
dev | 330 | arch/alpha/kernel/bios32.c | *devfn = dev->devfn; |
dev | 331 | arch/alpha/kernel/bios32.c | *bus = dev->bus->number; |
dev | 364 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 399 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 400 | arch/alpha/kernel/bios32.c | dev->irq = 0; |
dev | 401 | arch/alpha/kernel/bios32.c | if (dev->bus->number != 0 || |
dev | 402 | arch/alpha/kernel/bios32.c | PCI_SLOT(dev->devfn) < 6 || PCI_SLOT(dev->devfn) > 10) |
dev | 405 | arch/alpha/kernel/bios32.c | dev->bus->number, PCI_SLOT(dev->devfn)); |
dev | 409 | arch/alpha/kernel/bios32.c | pcibios_read_config_byte(dev->bus->number, dev->devfn, |
dev | 412 | arch/alpha/kernel/bios32.c | if (dev->vendor == PCI_VENDOR_ID_S3 && |
dev | 413 | arch/alpha/kernel/bios32.c | (dev->device == PCI_DEVICE_ID_S3_864_1 || |
dev | 414 | arch/alpha/kernel/bios32.c | dev->device == PCI_DEVICE_ID_S3_864_2)) |
dev | 421 | arch/alpha/kernel/bios32.c | pirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin - 1]; |
dev | 425 | arch/alpha/kernel/bios32.c | dev->irq = (route_tab >> (8 * pirq)) & 0xff; |
dev | 428 | arch/alpha/kernel/bios32.c | pcibios_write_config_byte(dev->bus->number, dev->devfn, |
dev | 429 | arch/alpha/kernel/bios32.c | PCI_INTERRUPT_LINE, dev->irq); |
dev | 254 | arch/alpha/kernel/osf_sys.c | dev_t dev; |
dev | 270 | arch/alpha/kernel/osf_sys.c | dev = inode->i_rdev; |
dev | 271 | arch/alpha/kernel/osf_sys.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 275 | arch/alpha/kernel/osf_sys.c | fops = get_blkfops(MAJOR(dev)); |
dev | 351 | arch/alpha/kernel/osf_sys.c | dev_t dev; |
dev | 359 | arch/alpha/kernel/osf_sys.c | dev = get_unnamed_dev(); |
dev | 360 | arch/alpha/kernel/osf_sys.c | if (!dev) |
dev | 362 | arch/alpha/kernel/osf_sys.c | retval = do_mount(dev, dirname, "proc", flags, NULL); |
dev | 364 | arch/alpha/kernel/osf_sys.c | put_unnamed_dev(dev); |
dev | 157 | drivers/block/aztcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
dev | 22 | drivers/block/blk.h | ((s1)->dev < (s2)->dev || (((s1)->dev == (s2)->dev && \ |
dev | 33 | drivers/block/blk.h | blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] ? \ |
dev | 34 | drivers/block/blk.h | ((blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] >> 9) - 1) : \ |
dev | 57 | drivers/block/blk.h | extern void set_device_ro(int dev,int flag); |
dev | 66 | drivers/block/blk.h | #define RO_IOCTLS(dev,where) \ |
dev | 68 | drivers/block/blk.h | set_device_ro((dev),get_fs_long((long *) (where))); return 0; \ |
dev | 70 | drivers/block/blk.h | if (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; } |
dev | 225 | drivers/block/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->dev) |
dev | 264 | drivers/block/blk.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 289 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
dev | 315 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
dev | 320 | drivers/block/blk.h | req->dev = -1; |
dev | 1389 | drivers/block/cdu31a.c | if (!(CURRENT) || CURRENT->dev < 0) |
dev | 1401 | drivers/block/cdu31a.c | in.i_rdev = CURRENT->dev; |
dev | 1408 | drivers/block/cdu31a.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
dev | 2384 | drivers/block/floppy.c | set_fdc(DRIVE(CURRENT->dev)); |
dev | 2629 | drivers/block/floppy.c | if (CURRENT && CURRENT->dev < 0){ |
dev | 2640 | drivers/block/floppy.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
dev | 2646 | drivers/block/floppy.c | (CURRENT->errors || error == CURRENT->dev)){ |
dev | 2647 | drivers/block/floppy.c | error=CURRENT->dev; |
dev | 2653 | drivers/block/floppy.c | device = CURRENT->dev; |
dev | 3305 | drivers/block/floppy.c | static int check_floppy_change(dev_t dev) |
dev | 3307 | drivers/block/floppy.c | int drive = DRIVE( dev ); |
dev | 3309 | drivers/block/floppy.c | if (MAJOR(dev) != MAJOR_NR) { |
dev | 3325 | drivers/block/floppy.c | (!TYPE(dev) && !current_type[drive])) |
dev | 3334 | drivers/block/floppy.c | static int floppy_revalidate(dev_t dev) |
dev | 3336 | drivers/block/floppy.c | #define NO_GEOM (!current_type[drive] && !TYPE(dev)) |
dev | 3338 | drivers/block/floppy.c | int drive=DRIVE(dev); |
dev | 3358 | drivers/block/floppy.c | int size = floppy_blocksizes[MINOR(dev)]; |
dev | 3361 | drivers/block/floppy.c | if (!(bh = getblk(dev,0,size))){ |
dev | 49 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
dev | 56 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 62 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) |
dev | 95 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
dev | 104 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
dev | 116 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 123 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
dev | 127 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) { |
dev | 128 | drivers/block/genhd.c | printk(" unable to read partition table of device %04x\n",dev); |
dev | 176 | drivers/block/genhd.c | void resetup_one_dev(struct gendisk *dev, int drive) |
dev | 179 | drivers/block/genhd.c | int start = drive<<dev->minor_shift; |
dev | 180 | drivers/block/genhd.c | int j = start + dev->max_p; |
dev | 181 | drivers/block/genhd.c | int major = dev->major << 8; |
dev | 183 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
dev | 184 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
dev | 187 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 190 | drivers/block/genhd.c | static void setup_dev(struct gendisk *dev) |
dev | 193 | drivers/block/genhd.c | int j = dev->max_nr * dev->max_p; |
dev | 194 | drivers/block/genhd.c | int major = dev->major << 8; |
dev | 199 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
dev | 200 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
dev | 202 | drivers/block/genhd.c | dev->init(); |
dev | 203 | drivers/block/genhd.c | for (drive=0 ; drive<dev->nr_real ; drive++) { |
dev | 204 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
dev | 205 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
dev | 208 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 209 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
dev | 136 | drivers/block/hd.c | devc = CURRENT ? 'a' + DEVICE_NR(CURRENT->dev) : '?'; |
dev | 285 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev); |
dev | 287 | drivers/block/hd.c | struct hd_driveid *id = hd_ident_info[dev]; |
dev | 289 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 292 | drivers/block/hd.c | printk (" hd%c: non-IDE device, %dMB, CHS=%d/%d/%d\n", dev+'a', |
dev | 293 | drivers/block/hd.c | hd_info[dev].cyl*hd_info[dev].head*hd_info[dev].sect / 2048, |
dev | 294 | drivers/block/hd.c | hd_info[dev].cyl, hd_info[dev].head, hd_info[dev].sect); |
dev | 296 | drivers/block/hd.c | hd_ident_info[dev] = NULL; |
dev | 301 | drivers/block/hd.c | max_mult[dev] = id->max_multsect; |
dev | 310 | drivers/block/hd.c | hd_info[dev].cyl = id->cur_cyls; |
dev | 311 | drivers/block/hd.c | hd_info[dev].head = id->cur_heads; |
dev | 312 | drivers/block/hd.c | hd_info[dev].sect = id->cur_sectors; |
dev | 318 | drivers/block/hd.c | dev+'a', id->model, id->cyls*id->heads*id->sectors/2048, |
dev | 319 | drivers/block/hd.c | id->buf_size/2, bios_info[dev].cyl, bios_info[dev].head, |
dev | 320 | drivers/block/hd.c | bios_info[dev].sect, id->max_multsect); |
dev | 327 | drivers/block/hd.c | special_op[dev] = recalibrate[dev] = 1; |
dev | 338 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS); |
dev | 340 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 343 | drivers/block/hd.c | mult_req[dev] = mult_count[dev] = 0; |
dev | 346 | drivers/block/hd.c | if ((mult_count[dev] = mult_req[dev])) |
dev | 348 | drivers/block/hd.c | dev+'a', mult_count[dev]); |
dev | 350 | drivers/block/hd.c | printk (" hd%c: disabled multiple mode\n", dev+'a'); |
dev | 448 | drivers/block/hd.c | int dev; |
dev | 452 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->dev); |
dev | 455 | drivers/block/hd.c | special_op[dev] = recalibrate[dev] = 1; |
dev | 459 | drivers/block/hd.c | special_op[dev] = recalibrate[dev] = 1; |
dev | 476 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev); |
dev | 477 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
dev | 479 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 509 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
dev | 529 | drivers/block/hd.c | static inline void multwrite (unsigned int dev) |
dev | 531 | drivers/block/hd.c | unsigned int mcount = mult_count[dev]; |
dev | 551 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(WCURRENT.dev); |
dev | 553 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 558 | drivers/block/hd.c | multwrite(dev); |
dev | 587 | drivers/block/hd.c | if (unmask_intr[DEVICE_NR(WCURRENT.dev)]) |
dev | 637 | drivers/block/hd.c | unsigned int dev; |
dev | 645 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->dev); |
dev | 646 | drivers/block/hd.c | printk("hd%c: timeout\n", dev+'a'); |
dev | 649 | drivers/block/hd.c | printk("hd%c: too many errors\n", dev+'a'); |
dev | 658 | drivers/block/hd.c | int do_special_op (unsigned int dev) |
dev | 660 | drivers/block/hd.c | if (recalibrate[dev]) { |
dev | 661 | drivers/block/hd.c | recalibrate[dev] = 0; |
dev | 662 | drivers/block/hd.c | hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); |
dev | 665 | drivers/block/hd.c | if (!identified[dev]) { |
dev | 666 | drivers/block/hd.c | identified[dev] = 1; |
dev | 667 | drivers/block/hd.c | unmask_intr[dev] = DEFAULT_UNMASK_INTR; |
dev | 668 | drivers/block/hd.c | mult_req[dev] = DEFAULT_MULT_COUNT; |
dev | 669 | drivers/block/hd.c | hd_out(dev,0,0,0,0,WIN_IDENTIFY,&identify_intr); |
dev | 672 | drivers/block/hd.c | if (mult_req[dev] != mult_count[dev]) { |
dev | 673 | drivers/block/hd.c | hd_out(dev,mult_req[dev],0,0,0,WIN_SETMULT,&set_multmode_intr); |
dev | 676 | drivers/block/hd.c | if (hd_info[dev].head > 16) { |
dev | 677 | drivers/block/hd.c | printk ("hd%c: cannot handle device with more than 16 heads - giving up\n", dev+'a'); |
dev | 680 | drivers/block/hd.c | special_op[dev] = 0; |
dev | 698 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
dev | 700 | drivers/block/hd.c | if (CURRENT && CURRENT->dev < 0) return; |
dev | 712 | drivers/block/hd.c | dev = MINOR(CURRENT->dev); |
dev | 715 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
dev | 717 | drivers/block/hd.c | if (dev >= (NR_HD<<6)) |
dev | 718 | drivers/block/hd.c | printk("hd: bad minor number: device=0x%04x\n", CURRENT->dev); |
dev | 721 | drivers/block/hd.c | (CURRENT->dev>>6)+'a', block, nsect); |
dev | 726 | drivers/block/hd.c | block += hd[dev].start_sect; |
dev | 727 | drivers/block/hd.c | dev >>= 6; |
dev | 728 | drivers/block/hd.c | if (special_op[dev]) { |
dev | 729 | drivers/block/hd.c | if (do_special_op(dev)) |
dev | 733 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
dev | 734 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
dev | 735 | drivers/block/hd.c | head = track % hd_info[dev].head; |
dev | 736 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
dev | 739 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
dev | 742 | drivers/block/hd.c | if (!unmask_intr[dev]) |
dev | 745 | drivers/block/hd.c | unsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ; |
dev | 746 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
dev | 752 | drivers/block/hd.c | if (mult_count[dev]) |
dev | 753 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr); |
dev | 755 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
dev | 762 | drivers/block/hd.c | if (mult_count[dev]) { |
dev | 764 | drivers/block/hd.c | multwrite(dev); |
dev | 783 | drivers/block/hd.c | int dev, err; |
dev | 788 | drivers/block/hd.c | dev = DEVICE_NR(inode->i_rdev); |
dev | 789 | drivers/block/hd.c | if (dev >= NR_HD) |
dev | 797 | drivers/block/hd.c | put_user(bios_info[dev].head, |
dev | 799 | drivers/block/hd.c | put_user(bios_info[dev].sect, |
dev | 801 | drivers/block/hd.c | put_user(bios_info[dev].cyl, |
dev | 838 | drivers/block/hd.c | unmask_intr[dev] = arg; |
dev | 846 | drivers/block/hd.c | put_user(unmask_intr[dev], (long *) arg); |
dev | 854 | drivers/block/hd.c | put_user(mult_count[dev], (long *) arg); |
dev | 862 | drivers/block/hd.c | if (arg > max_mult[dev]) |
dev | 864 | drivers/block/hd.c | else if (mult_req[dev] != mult_count[dev]) { |
dev | 865 | drivers/block/hd.c | special_op[dev] = 1; |
dev | 868 | drivers/block/hd.c | mult_req[dev] = arg; |
dev | 869 | drivers/block/hd.c | special_op[dev] = 1; |
dev | 878 | drivers/block/hd.c | if (hd_ident_info[dev] == NULL) return -ENOMSG; |
dev | 882 | drivers/block/hd.c | memcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid)); |
dev | 1081 | drivers/block/hd.c | static int revalidate_hddisk(int dev, int maxusage) |
dev | 1090 | drivers/block/hd.c | target = DEVICE_NR(dev); |
dev | 74 | drivers/block/ide-cd.c | #define OUT_WORDS(b,n) output_ide_data(dev,b,(n)/2) |
dev | 75 | drivers/block/ide-cd.c | #define IN_WORDS(b,n) input_ide_data(dev,b,(n)/2) |
dev | 150 | drivers/block/ide-cd.c | #define CDROM_FLAGS(dev) ((struct ide_cd_flags *)&((dev)->bios_sect)) |
dev | 362 | drivers/block/ide-cd.c | void cdrom_analyze_sense_data (ide_dev_t *dev, |
dev | 380 | drivers/block/ide-cd.c | printk ("ATAPI device %s:\n", dev->name); |
dev | 440 | drivers/block/ide-cd.c | dev->name, |
dev | 461 | drivers/block/ide-cd.c | static void cdrom_queue_request_sense (ide_dev_t *dev) |
dev | 487 | drivers/block/ide-cd.c | reqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
dev | 498 | drivers/block/ide-cd.c | rq->dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
dev | 521 | drivers/block/ide-cd.c | static void cdrom_end_request (int uptodate, ide_dev_t *dev) |
dev | 537 | drivers/block/ide-cd.c | reqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
dev | 538 | drivers/block/ide-cd.c | cdrom_analyze_sense_data (dev, reqbuf, NULL); |
dev | 547 | drivers/block/ide-cd.c | static void cdrom_saw_media_change (ide_dev_t *dev) |
dev | 549 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->media_changed = 1; |
dev | 550 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->toc_valid = 0; |
dev | 551 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0; |
dev | 557 | drivers/block/ide-cd.c | static int cdrom_decode_status (ide_dev_t *dev, int good_stat, int *stat_ret) |
dev | 574 | drivers/block/ide-cd.c | printk ("%s : missing request in cdrom_decode_status\n", dev->name); |
dev | 583 | drivers/block/ide-cd.c | cdrom_saw_media_change (dev); |
dev | 588 | drivers/block/ide-cd.c | printk ("%s : tray open\n", dev->name); |
dev | 589 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 602 | drivers/block/ide-cd.c | printk ("%s : tray open\n", dev->name); |
dev | 606 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 613 | drivers/block/ide-cd.c | cdrom_saw_media_change (dev); |
dev | 614 | drivers/block/ide-cd.c | printk ("%s: media changed\n", dev->name); |
dev | 624 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 631 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 641 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 648 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 654 | drivers/block/ide-cd.c | ide_error (dev, "cdrom_decode_status", stat); |
dev | 660 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 668 | drivers/block/ide-cd.c | cdrom_queue_request_sense (dev); |
dev | 681 | drivers/block/ide-cd.c | static int cdrom_start_packet_command (ide_dev_t *dev, int xferlen) |
dev | 684 | drivers/block/ide-cd.c | if (wait_stat (dev, 0, BUSY_STAT, WAIT_READY)) return 1; |
dev | 693 | drivers/block/ide-cd.c | OUT_BYTE (dev->ctl, HD_CMD); |
dev | 703 | drivers/block/ide-cd.c | static int cdrom_transfer_packet_command (ide_dev_t *dev, |
dev | 706 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->drq_interrupt) |
dev | 713 | drivers/block/ide-cd.c | if (cdrom_decode_status (dev, DRQ_STAT, &stat_dum)) return 1; |
dev | 718 | drivers/block/ide-cd.c | if (wait_stat (dev, DRQ_STAT, BUSY_STAT, WAIT_READY)) return 1; |
dev | 740 | drivers/block/ide-cd.c | static void cdrom_buffer_sectors (ide_dev_t *dev, unsigned long sector, |
dev | 743 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[DEV_HWIF][dev->select.b.drive]; |
dev | 795 | drivers/block/ide-cd.c | int cdrom_read_check_ireason (ide_dev_t *dev, int len, int ireason) |
dev | 805 | drivers/block/ide-cd.c | dev->name); |
dev | 821 | drivers/block/ide-cd.c | dev->name, ireason); |
dev | 824 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 833 | drivers/block/ide-cd.c | static void cdrom_read_intr (ide_dev_t *dev) |
dev | 841 | drivers/block/ide-cd.c | if (cdrom_decode_status (dev, 0, &stat)) return; |
dev | 855 | drivers/block/ide-cd.c | dev->name, rq->current_nr_sectors); |
dev | 856 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 859 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 866 | drivers/block/ide-cd.c | if (cdrom_read_check_ireason (dev, len, ireason)) return; |
dev | 873 | drivers/block/ide-cd.c | dev->name, len); |
dev | 875 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 907 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 913 | drivers/block/ide-cd.c | cdrom_buffer_sectors (dev, rq->sector, sectors_to_transfer); |
dev | 948 | drivers/block/ide-cd.c | static int cdrom_read_from_buffer (ide_dev_t *dev) |
dev | 950 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[DEV_HWIF][dev->select.b.drive]; |
dev | 963 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 978 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 984 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 994 | drivers/block/ide-cd.c | dev->name, rq->sector); |
dev | 995 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 1010 | drivers/block/ide-cd.c | static int cdrom_start_read_continuation (ide_dev_t *dev) |
dev | 1036 | drivers/block/ide-cd.c | dev->name, rq->current_nr_sectors); |
dev | 1037 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 1074 | drivers/block/ide-cd.c | if (cdrom_transfer_packet_command (dev, pc.c, sizeof (pc.c))) |
dev | 1090 | drivers/block/ide-cd.c | static int cdrom_start_read (ide_dev_t *dev, unsigned int block) |
dev | 1099 | drivers/block/ide-cd.c | if (cdrom_read_from_buffer (dev)) |
dev | 1103 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0; |
dev | 1105 | drivers/block/ide-cd.c | if (cdrom_start_packet_command (dev, 32768)) |
dev | 1108 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->drq_interrupt) |
dev | 1112 | drivers/block/ide-cd.c | if (cdrom_start_read_continuation (dev)) |
dev | 1128 | drivers/block/ide-cd.c | cdrom_request_sense (ide_dev_t *dev, struct atapi_request_sense *reqbuf); |
dev | 1132 | drivers/block/ide-cd.c | static void cdrom_pc_intr (ide_dev_t *dev) |
dev | 1139 | drivers/block/ide-cd.c | if (cdrom_decode_status (dev, 0, &stat)) return; |
dev | 1159 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 1163 | drivers/block/ide-cd.c | dev->name, pc->buflen); |
dev | 1165 | drivers/block/ide-cd.c | cdrom_end_request (1, dev); |
dev | 1183 | drivers/block/ide-cd.c | dev->name); |
dev | 1212 | drivers/block/ide-cd.c | dev->name); |
dev | 1237 | drivers/block/ide-cd.c | dev->name, ireason); |
dev | 1246 | drivers/block/ide-cd.c | static int cdrom_do_pc_continuation (ide_dev_t *dev) |
dev | 1251 | drivers/block/ide-cd.c | if (cdrom_transfer_packet_command (dev, pc->c, sizeof (pc->c))) |
dev | 1261 | drivers/block/ide-cd.c | static int cdrom_do_packet_command (ide_dev_t *dev) |
dev | 1272 | drivers/block/ide-cd.c | if (cdrom_start_packet_command (dev, len)) |
dev | 1275 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->drq_interrupt) |
dev | 1279 | drivers/block/ide-cd.c | if (cdrom_do_pc_continuation (dev)) |
dev | 1288 | drivers/block/ide-cd.c | int cdrom_queue_packet_command (ide_dev_t *dev, struct packet_command *pc) |
dev | 1297 | drivers/block/ide-cd.c | req.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
dev | 1334 | drivers/block/ide-cd.c | &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
dev | 1336 | drivers/block/ide-cd.c | if (pc->c[0] == REQUEST_SENSE || cdrom_request_sense (dev, reqbuf)) |
dev | 1341 | drivers/block/ide-cd.c | cdrom_analyze_sense_data (dev, reqbuf, pc); |
dev | 1363 | drivers/block/ide-cd.c | static int do_rw_cdrom (ide_dev_t *dev, unsigned long block) |
dev | 1368 | drivers/block/ide-cd.c | return cdrom_do_packet_command (dev); |
dev | 1373 | drivers/block/ide-cd.c | cdrom_end_request (0, dev); |
dev | 1377 | drivers/block/ide-cd.c | return cdrom_start_read (dev, block); |
dev | 1436 | drivers/block/ide-cd.c | cdrom_check_status (ide_dev_t *dev) |
dev | 1444 | drivers/block/ide-cd.c | (void) cdrom_queue_packet_command (dev, &pc); |
dev | 1449 | drivers/block/ide-cd.c | cdrom_request_sense (ide_dev_t *dev, struct atapi_request_sense *reqbuf) |
dev | 1460 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1467 | drivers/block/ide-cd.c | cdrom_lockdoor (ide_dev_t *dev, int lockflag) |
dev | 1475 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1483 | drivers/block/ide-cd.c | cdrom_eject (ide_dev_t *dev, int ejectflag) |
dev | 1491 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1496 | drivers/block/ide-cd.c | cdrom_pause (ide_dev_t *dev, int pauseflag) |
dev | 1504 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1509 | drivers/block/ide-cd.c | cdrom_startstop (ide_dev_t *dev, int startflag) |
dev | 1518 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1523 | drivers/block/ide-cd.c | cdrom_read_tocentry (ide_dev_t *dev, int trackno, int msf_flag, |
dev | 1537 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1543 | drivers/block/ide-cd.c | cdrom_read_toc (ide_dev_t *dev) |
dev | 1547 | drivers/block/ide-cd.c | struct atapi_toc *toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc; |
dev | 1554 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].toc = toc; |
dev | 1559 | drivers/block/ide-cd.c | printk ("%s: No cdrom TOC buffer!\n", dev->name); |
dev | 1565 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->toc_valid) |
dev | 1566 | drivers/block/ide-cd.c | cdrom_check_status (dev); |
dev | 1568 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->toc_valid) return 0; |
dev | 1571 | drivers/block/ide-cd.c | msf_flag = (CDROM_FLAGS (dev)->no_lba_toc); |
dev | 1574 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (dev, 0, msf_flag, (char *)toc, |
dev | 1584 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (dev, 0, msf_flag, (char *)toc, |
dev | 1601 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->toc_valid = 1; |
dev | 1608 | drivers/block/ide-cd.c | cdrom_read_subchannel (ide_dev_t *dev, |
dev | 1622 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1628 | drivers/block/ide-cd.c | cdrom_mode_sense (ide_dev_t *dev, int pageno, int modeflag, |
dev | 1641 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1646 | drivers/block/ide-cd.c | cdrom_mode_select (ide_dev_t *dev, int pageno, char *buf, int buflen) |
dev | 1659 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1664 | drivers/block/ide-cd.c | cdrom_play_lba_range_play12 (ide_dev_t *dev, int lba_start, int lba_end) |
dev | 1676 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1681 | drivers/block/ide-cd.c | cdrom_play_lba_range_msf (ide_dev_t *dev, int lba_start, int lba_end) |
dev | 1691 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->msf_as_bcd) |
dev | 1701 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1708 | drivers/block/ide-cd.c | cdrom_play_lba_range (ide_dev_t *dev, int lba_start, int lba_end) |
dev | 1721 | drivers/block/ide-cd.c | if (CDROM_FLAGS (dev)->no_playaudio12) |
dev | 1722 | drivers/block/ide-cd.c | return cdrom_play_lba_range_msf (dev, lba_start, lba_end); |
dev | 1728 | drivers/block/ide-cd.c | stat = cdrom_play_lba_range_play12 (dev, lba_start, lba_end); |
dev | 1732 | drivers/block/ide-cd.c | reqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
dev | 1738 | drivers/block/ide-cd.c | "trying PLAYAUDIO_MSF\n", dev->name); |
dev | 1739 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_playaudio12 = 1; |
dev | 1740 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->msf_as_bcd = 1; |
dev | 1741 | drivers/block/ide-cd.c | return cdrom_play_lba_range_msf (dev, lba_start, lba_end); |
dev | 1751 | drivers/block/ide-cd.c | int cdrom_get_toc_entry (ide_dev_t *dev, int track, |
dev | 1758 | drivers/block/ide-cd.c | stat = cdrom_read_toc (dev); |
dev | 1761 | drivers/block/ide-cd.c | toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc; |
dev | 1777 | drivers/block/ide-cd.c | static int ide_cdrom_ioctl (ide_dev_t *dev, struct inode *inode, |
dev | 1783 | drivers/block/ide-cd.c | return cdrom_eject (dev, 0); |
dev | 1786 | drivers/block/ide-cd.c | return cdrom_pause (dev, 1); |
dev | 1789 | drivers/block/ide-cd.c | return cdrom_pause (dev, 0); |
dev | 1792 | drivers/block/ide-cd.c | return cdrom_startstop (dev, 1); |
dev | 1795 | drivers/block/ide-cd.c | return cdrom_startstop (dev, 0); |
dev | 1814 | drivers/block/ide-cd.c | return cdrom_play_lba_range (dev, lba_start, lba_end); |
dev | 1830 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, ti.cdti_trk0, &first_toc); |
dev | 1832 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, ti.cdti_trk1, &last_toc); |
dev | 1841 | drivers/block/ide-cd.c | return cdrom_play_lba_range (dev, lba_start, lba_end); |
dev | 1854 | drivers/block/ide-cd.c | stat = cdrom_read_toc (dev); |
dev | 1857 | drivers/block/ide-cd.c | toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc; |
dev | 1879 | drivers/block/ide-cd.c | stat = cdrom_get_toc_entry (dev, tocentry.cdte_track, &toce); |
dev | 1914 | drivers/block/ide-cd.c | stat = cdrom_read_subchannel (dev, buffer, sizeof (buffer)); |
dev | 1959 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (dev, 0x0e, 0, buffer, sizeof (buffer)); |
dev | 1961 | drivers/block/ide-cd.c | stat = cdrom_mode_sense (dev, 0x0e, 1, mask , sizeof (buffer)); |
dev | 1971 | drivers/block/ide-cd.c | return cdrom_mode_select (dev, 0x0e, buffer, sizeof (buffer)); |
dev | 1986 | drivers/block/ide-cd.c | return cdrom_queue_packet_command (dev, &pc); |
dev | 1997 | drivers/block/ide-cd.c | stat = cdrom_request_sense (dev, &reqbuf); |
dev | 2017 | drivers/block/ide-cd.c | static int cdrom_check_media_change (ide_dev_t *dev) |
dev | 2021 | drivers/block/ide-cd.c | cdrom_check_status (dev); |
dev | 2023 | drivers/block/ide-cd.c | retval = CDROM_FLAGS (dev)->media_changed; |
dev | 2024 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->media_changed = 0; |
dev | 2031 | drivers/block/ide-cd.c | cdrom_open (struct inode *ip, struct file *fp, ide_dev_t *dev) |
dev | 2038 | drivers/block/ide-cd.c | if (dev->usage == 1) |
dev | 2039 | drivers/block/ide-cd.c | (void) cdrom_lockdoor (dev, 1); |
dev | 2052 | drivers/block/ide-cd.c | cdrom_release (struct inode *inode, struct file *file, ide_dev_t *dev) |
dev | 2054 | drivers/block/ide-cd.c | if (dev->usage == 0) |
dev | 2060 | drivers/block/ide-cd.c | (void) cdrom_lockdoor (dev, 0); |
dev | 2071 | drivers/block/ide-cd.c | static void cdrom_setup (ide_dev_t *dev) |
dev | 2074 | drivers/block/ide-cd.c | ide_capacity[DEV_HWIF][dev->select.b.drive] = 0x1fffff; |
dev | 2076 | drivers/block/ide-cd.c | ide_blksizes[DEV_HWIF][dev->select.b.drive << PARTN_BITS] = CD_FRAMESIZE; |
dev | 2078 | drivers/block/ide-cd.c | dev->special.all = 0; |
dev | 2080 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->media_changed = 0; |
dev | 2081 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->toc_valid = 0; |
dev | 2083 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_playaudio12 = 0; |
dev | 2084 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_lba_toc = 0; |
dev | 2085 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->msf_as_bcd = 0; |
dev | 2086 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->drq_interrupt = ((dev->id->config & 0x0060) == 0x20); |
dev | 2089 | drivers/block/ide-cd.c | if (strcmp (dev->id->model, "CD220E") == 0) /* Creative Labs */ |
dev | 2090 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_lba_toc = 1; |
dev | 2092 | drivers/block/ide-cd.c | else if (strcmp (dev->id->model, "TO-ICSLYAL") == 0 || /* Acer CD525E */ |
dev | 2093 | drivers/block/ide-cd.c | strcmp (dev->id->model, "OTI-SCYLLA") == 0) |
dev | 2094 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_lba_toc = 1; |
dev | 2096 | drivers/block/ide-cd.c | else if (strcmp (dev->id->model, "CDA26803I SE") == 0) /* Aztech */ |
dev | 2098 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_lba_toc = 1; |
dev | 2101 | drivers/block/ide-cd.c | CDROM_FLAGS (dev)->no_playaudio12 = 1; |
dev | 2104 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].toc = NULL; |
dev | 2105 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].sector_buffer = NULL; |
dev | 2106 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].sector_buffered = 0; |
dev | 2107 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0; |
dev | 229 | drivers/block/ide.c | #define DEV_HWIF (dev->hwif) |
dev | 285 | drivers/block/ide.c | #define BIOS_SECTORS(dev) (dev->bios_head*dev->bios_sect*dev->bios_cyl) |
dev | 456 | drivers/block/ide.c | #define WAIT_STAT(dev,good,bad,timeout,msg,label) \ |
dev | 469 | drivers/block/ide.c | ide_error(dev, msg " error", stat); \ |
dev | 477 | drivers/block/ide.c | void input_ide_data (ide_dev_t *dev, void *buffer, uint wcount) |
dev | 480 | drivers/block/ide.c | if (dev->vlb_32bit) { |
dev | 482 | drivers/block/ide.c | if (dev->vlb_sync) { |
dev | 486 | drivers/block/ide.c | if (dev->unmask) |
dev | 499 | drivers/block/ide.c | void output_ide_data (ide_dev_t *dev, void *buffer, uint wcount) |
dev | 502 | drivers/block/ide.c | if (dev->vlb_32bit) { |
dev | 504 | drivers/block/ide.c | if (dev->vlb_sync) { |
dev | 508 | drivers/block/ide.c | if (dev->unmask) |
dev | 529 | drivers/block/ide.c | static void do_ide_reset (ide_dev_t *dev) |
dev | 553 | drivers/block/ide.c | OUT_BYTE(dev->ctl|6,HD_CMD); /* set nIEN, set SRST */ |
dev | 555 | drivers/block/ide.c | OUT_BYTE(dev->ctl|2,HD_CMD); /* clear SRST */ |
dev | 596 | drivers/block/ide.c | static void end_drive_cmd (ide_dev_t *dev, byte stat, byte err) |
dev | 622 | drivers/block/ide.c | ide_dev_t *dev = ide_cur_dev[HWIF]; |
dev | 623 | drivers/block/ide.c | const char *name = dev ? dev->name : ide_name[HWIF]; |
dev | 629 | drivers/block/ide.c | if (dev && dev->type == disk) { |
dev | 650 | drivers/block/ide.c | if (dev && dev->type == disk) { |
dev | 691 | drivers/block/ide.c | static void ide_error (ide_dev_t *dev, const char *msg, byte stat) |
dev | 697 | drivers/block/ide.c | if ((rq = ide_cur_rq[DEV_HWIF]) == NULL || dev == NULL) |
dev | 701 | drivers/block/ide.c | end_drive_cmd(dev, stat, err); |
dev | 708 | drivers/block/ide.c | if (dev->type == disk && (stat & ERR_STAT)) { |
dev | 716 | drivers/block/ide.c | int i = dev->mult_count ? dev->mult_count<<8 : 1<<8; |
dev | 718 | drivers/block/ide.c | (void) IN_BYTE(HD_DATA, dev->hwif); |
dev | 721 | drivers/block/ide.c | if (GET_STAT(dev->hwif) & (BUSY_STAT|DRQ_STAT)) |
dev | 728 | drivers/block/ide.c | do_ide_reset(dev); |
dev | 730 | drivers/block/ide.c | dev->special.b.recalibrate = 1; |
dev | 735 | drivers/block/ide.c | static void read_intr (ide_dev_t *dev) |
dev | 744 | drivers/block/ide.c | ide_error(dev, "read_intr", stat); |
dev | 748 | drivers/block/ide.c | msect = dev->mult_count; |
dev | 757 | drivers/block/ide.c | input_ide_data(dev, rq->buffer, nsect * SECTOR_WORDS); |
dev | 760 | drivers/block/ide.c | dev->name, rq->sector, rq->sector+nsect-1, |
dev | 779 | drivers/block/ide.c | static void write_intr (ide_dev_t *dev) |
dev | 788 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
dev | 801 | drivers/block/ide.c | output_ide_data(dev, rq->buffer, SECTOR_WORDS); |
dev | 809 | drivers/block/ide.c | ide_error(dev, "write_intr", stat); |
dev | 813 | drivers/block/ide.c | static void multwrite (ide_dev_t *dev) |
dev | 816 | drivers/block/ide.c | unsigned int mcount = dev->mult_count; |
dev | 824 | drivers/block/ide.c | output_ide_data(dev, rq->buffer, nsect<<7); |
dev | 827 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
dev | 837 | drivers/block/ide.c | panic("%s: buffer list corrupted\n", dev->name); |
dev | 846 | drivers/block/ide.c | static void multwrite_intr (ide_dev_t *dev) |
dev | 855 | drivers/block/ide.c | if (dev->mult_count) |
dev | 856 | drivers/block/ide.c | multwrite(dev); |
dev | 873 | drivers/block/ide.c | ide_error(dev, "multwrite_intr", stat); |
dev | 881 | drivers/block/ide.c | static inline void ide_cmd(ide_dev_t *dev, byte cmd, byte nsect, |
dev | 882 | drivers/block/ide.c | void (*handler)(ide_dev_t *dev)) |
dev | 884 | drivers/block/ide.c | OUT_BYTE(dev->ctl,HD_CMD); |
dev | 890 | drivers/block/ide.c | static void set_multmode_intr (ide_dev_t *dev) |
dev | 896 | drivers/block/ide.c | dev->mult_req = dev->mult_count = 0; |
dev | 897 | drivers/block/ide.c | dev->special.b.recalibrate = 1; |
dev | 900 | drivers/block/ide.c | if ((dev->mult_count = dev->mult_req)) |
dev | 902 | drivers/block/ide.c | dev->name, dev->mult_count); |
dev | 904 | drivers/block/ide.c | printk (" %s: multiple mode turned off\n", dev->name); |
dev | 909 | drivers/block/ide.c | static void set_geometry_intr (ide_dev_t *dev) |
dev | 915 | drivers/block/ide.c | ide_error(dev, "set_geometry_intr", stat); |
dev | 919 | drivers/block/ide.c | static void recal_intr (ide_dev_t *dev) |
dev | 925 | drivers/block/ide.c | ide_error(dev, "recal_intr", stat); |
dev | 929 | drivers/block/ide.c | static void drive_cmd_intr (ide_dev_t *dev) |
dev | 935 | drivers/block/ide.c | ide_error(dev, "drive_cmd", stat); /* calls end_drive_cmd() */ |
dev | 937 | drivers/block/ide.c | end_drive_cmd (dev, stat, GET_ERR(DEV_HWIF)); |
dev | 987 | drivers/block/ide.c | static int do_special (ide_dev_t *dev) |
dev | 989 | drivers/block/ide.c | special_t *s = &dev->special; |
dev | 991 | drivers/block/ide.c | printk("%s: do_special: 0x%02x\n", dev->name, s->all); |
dev | 995 | drivers/block/ide.c | if (dev->type == disk) { |
dev | 996 | drivers/block/ide.c | OUT_BYTE(dev->sect,HD_SECTOR); |
dev | 997 | drivers/block/ide.c | OUT_BYTE(dev->cyl,HD_LCYL); |
dev | 998 | drivers/block/ide.c | OUT_BYTE(dev->cyl>>8,HD_HCYL); |
dev | 999 | drivers/block/ide.c | OUT_BYTE(((dev->head-1)|dev->select.all)&0xBF,HD_CURRENT); |
dev | 1000 | drivers/block/ide.c | ide_cmd(dev, WIN_SPECIFY, dev->sect, &set_geometry_intr); |
dev | 1004 | drivers/block/ide.c | if (dev->type == disk) |
dev | 1005 | drivers/block/ide.c | ide_cmd(dev,WIN_RESTORE,dev->sect,&recal_intr); |
dev | 1007 | drivers/block/ide.c | if (dev->type == disk) { |
dev | 1008 | drivers/block/ide.c | if (dev->id && dev->mult_req > dev->id->max_multsect) |
dev | 1009 | drivers/block/ide.c | dev->mult_req = dev->id->max_multsect; |
dev | 1010 | drivers/block/ide.c | ide_cmd(dev,WIN_SETMULT,dev->mult_req,&set_multmode_intr); |
dev | 1012 | drivers/block/ide.c | dev->mult_req = 0; |
dev | 1013 | drivers/block/ide.c | printk("%s: multmode not supported by this device\n", dev->name); |
dev | 1018 | drivers/block/ide.c | printk("%s: bad special flag: 0x%02x\n", dev->name, s->all); |
dev | 1026 | drivers/block/ide.c | static byte wait_stat (ide_dev_t *dev, byte good, byte bad, unsigned long timeout) |
dev | 1032 | drivers/block/ide.c | WAIT_STAT(dev, good, bad, timeout, "status", error); |
dev | 1043 | drivers/block/ide.c | static inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block) |
dev | 1045 | drivers/block/ide.c | OUT_BYTE(dev->ctl,HD_CMD); |
dev | 1047 | drivers/block/ide.c | if (dev->select.b.lba) { |
dev | 1050 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", |
dev | 1056 | drivers/block/ide.c | OUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT); |
dev | 1059 | drivers/block/ide.c | track = block / dev->sect; |
dev | 1060 | drivers/block/ide.c | sect = block % dev->sect + 1; |
dev | 1062 | drivers/block/ide.c | head = track % dev->head; |
dev | 1063 | drivers/block/ide.c | cyl = track / dev->head; |
dev | 1066 | drivers/block/ide.c | OUT_BYTE(head|dev->select.all,HD_CURRENT); |
dev | 1069 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", cyl, |
dev | 1074 | drivers/block/ide.c | OUT_BYTE(dev->mult_count ? WIN_MULTREAD : WIN_READ, HD_COMMAND); |
dev | 1079 | drivers/block/ide.c | OUT_BYTE(dev->wpcom,HD_PRECOMP); /* for ancient drives */ |
dev | 1080 | drivers/block/ide.c | OUT_BYTE(dev->mult_count ? WIN_MULTWRITE : WIN_WRITE, HD_COMMAND); |
dev | 1081 | drivers/block/ide.c | WAIT_STAT(dev, DATA_READY, BAD_W_STAT, WAIT_DRQ, "DRQ", error); |
dev | 1082 | drivers/block/ide.c | if (!dev->unmask) |
dev | 1084 | drivers/block/ide.c | if (dev->mult_count) { |
dev | 1086 | drivers/block/ide.c | multwrite(dev); |
dev | 1089 | drivers/block/ide.c | output_ide_data(dev, rq->buffer, SECTOR_WORDS); |
dev | 1099 | drivers/block/ide.c | ide_cmd(dev, args[0], args[1], &drive_cmd_intr); |
dev | 1101 | drivers/block/ide.c | dev->name, args[0], args[1], args[2]); |
dev | 1105 | drivers/block/ide.c | printk("%s: DRIVE_CMD (null)\n", dev->name); |
dev | 1107 | drivers/block/ide.c | end_drive_cmd(dev,GET_STAT(DEV_HWIF),GET_ERR(DEV_HWIF)); |
dev | 1112 | drivers/block/ide.c | printk("%s: bad command: %d\n", dev->name, rq->cmd); |
dev | 1134 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1142 | drivers/block/ide.c | if ((rq == NULL) || (rq->dev < 0)) { |
dev | 1145 | drivers/block/ide.c | if (sharing_single_irq && (dev = ide_cur_dev[hwif])) /* disable irq */ |
dev | 1146 | drivers/block/ide.c | OUT_BYTE(dev->ctl|2,HD_CMD); |
dev | 1148 | drivers/block/ide.c | if ((rq != NULL) && (rq->dev >= 0)) |
dev | 1160 | drivers/block/ide.c | minor = MINOR(rq->dev); |
dev | 1162 | drivers/block/ide.c | ide_cur_dev[HWIF] = dev = &ide_dev[HWIF][drive]; |
dev | 1163 | drivers/block/ide.c | if ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) { |
dev | 1164 | drivers/block/ide.c | printk("%s: bad device number: 0x%04x\n", ide_name[HWIF], rq->dev); |
dev | 1177 | drivers/block/ide.c | dev->name, block, rq->nr_sectors); |
dev | 1185 | drivers/block/ide.c | OUT_BYTE(dev->select.all,HD_CURRENT); |
dev | 1187 | drivers/block/ide.c | WAIT_STAT(dev, (dev->type == cdrom) ? 0 : READY_STAT, |
dev | 1190 | drivers/block/ide.c | WAIT_STAT(dev, READY_STAT, BUSY_STAT|DRQ_STAT, WAIT_READY, "DRDY", repeat); |
dev | 1192 | drivers/block/ide.c | if (!dev->special.all) { |
dev | 1194 | drivers/block/ide.c | if (dev->type == disk) { |
dev | 1196 | drivers/block/ide.c | if (do_rw_disk(dev, rq, block)) |
dev | 1200 | drivers/block/ide.c | if (do_rw_cdrom(dev, block)) |
dev | 1205 | drivers/block/ide.c | if (do_special(dev)) |
dev | 1288 | drivers/block/ide.c | ide_dev_t *dev; \ |
dev | 1294 | drivers/block/ide.c | dev = ide_cur_dev[hwif]; \ |
dev | 1295 | drivers/block/ide.c | if (dev->unmask) \ |
dev | 1297 | drivers/block/ide.c | handler(dev); \ |
dev | 1358 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1362 | drivers/block/ide.c | case IDE0_MAJOR: dev = &ide_dev[0][drive]; |
dev | 1363 | drivers/block/ide.c | if (dev->present) return dev; |
dev | 1365 | drivers/block/ide.c | case IDE1_MAJOR: dev = &ide_dev[1][drive]; |
dev | 1366 | drivers/block/ide.c | if (dev->present) return dev; |
dev | 1375 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1378 | drivers/block/ide.c | if ((dev = get_info_ptr(inode->i_rdev)) == NULL) |
dev | 1382 | drivers/block/ide.c | while (dev->busy) |
dev | 1383 | drivers/block/ide.c | sleep_on(&dev->wqueue); |
dev | 1384 | drivers/block/ide.c | dev->usage++; |
dev | 1387 | drivers/block/ide.c | if (dev->type == cdrom) |
dev | 1388 | drivers/block/ide.c | return cdrom_open (inode, filp, dev); |
dev | 1399 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1401 | drivers/block/ide.c | if ((dev = get_info_ptr(inode->i_rdev)) != NULL) { |
dev | 1403 | drivers/block/ide.c | dev->usage--; |
dev | 1405 | drivers/block/ide.c | if (dev->type == cdrom) |
dev | 1406 | drivers/block/ide.c | cdrom_release (inode, file, dev); |
dev | 1422 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1426 | drivers/block/ide.c | if ((dev = get_info_ptr(i_rdev)) == NULL) |
dev | 1431 | drivers/block/ide.c | if (dev->busy || (dev->usage > 1)) { |
dev | 1435 | drivers/block/ide.c | dev->busy = 1; |
dev | 1454 | drivers/block/ide.c | dev->busy = 0; |
dev | 1455 | drivers/block/ide.c | wake_up(&dev->wqueue); |
dev | 1466 | drivers/block/ide.c | static int do_drive_cmd(int dev, char *args) |
dev | 1469 | drivers/block/ide.c | unsigned int major = MAJOR(dev); |
dev | 1485 | drivers/block/ide.c | rq.dev = dev; |
dev | 1523 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1528 | drivers/block/ide.c | if ((dev = get_info_ptr(inode->i_rdev)) == NULL) |
dev | 1532 | drivers/block/ide.c | if (!loc || dev->type != disk) return -EINVAL; |
dev | 1535 | drivers/block/ide.c | put_user(dev->bios_head, |
dev | 1537 | drivers/block/ide.c | put_user(dev->bios_sect, |
dev | 1539 | drivers/block/ide.c | put_user(dev->bios_cyl, |
dev | 1566 | drivers/block/ide.c | return write_fs_long(arg, dev->keep_settings); |
dev | 1569 | drivers/block/ide.c | return write_fs_long(arg, dev->unmask); |
dev | 1572 | drivers/block/ide.c | return write_fs_long(arg, dev->chipset); |
dev | 1575 | drivers/block/ide.c | return write_fs_long(arg, dev->mult_count); |
dev | 1580 | drivers/block/ide.c | if (dev->id == NULL) |
dev | 1582 | drivers/block/ide.c | err = verify_area(VERIFY_WRITE, (char *)arg, sizeof(*dev->id)); |
dev | 1584 | drivers/block/ide.c | memcpy_tofs((char *)arg, (char *)dev->id, sizeof(*dev->id)); |
dev | 1595 | drivers/block/ide.c | dev->keep_settings = arg; |
dev | 1597 | drivers/block/ide.c | dev->unmask = arg; |
dev | 1607 | drivers/block/ide.c | dev->chipset = arg; |
dev | 1608 | drivers/block/ide.c | dev->vlb_sync = (arg & 2) >> 1; |
dev | 1609 | drivers/block/ide.c | dev->vlb_32bit = (arg & 1); |
dev | 1617 | drivers/block/ide.c | if ((dev->id != NULL) && (arg > dev->id->max_multsect)) |
dev | 1621 | drivers/block/ide.c | if (dev->special.b.set_multmode) { |
dev | 1625 | drivers/block/ide.c | dev->mult_req = arg; |
dev | 1626 | drivers/block/ide.c | dev->special.b.set_multmode = 1; |
dev | 1630 | drivers/block/ide.c | return (dev->mult_count == arg) ? 0 : -EIO; |
dev | 1658 | drivers/block/ide.c | if (dev->type == cdrom) |
dev | 1659 | drivers/block/ide.c | return ide_cdrom_ioctl(dev, inode, file, cmd, arg); |
dev | 1668 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 1670 | drivers/block/ide.c | if ((dev = get_info_ptr(full_dev)) == NULL) |
dev | 1672 | drivers/block/ide.c | if (dev->type != cdrom) |
dev | 1674 | drivers/block/ide.c | return cdrom_check_media_change (dev); |
dev | 1732 | drivers/block/ide.c | static void do_identify (ide_dev_t *dev, byte cmd) |
dev | 1738 | drivers/block/ide.c | id = dev->id = (struct hd_driveid *) probe_mem_start; /* kmalloc() */ |
dev | 1740 | drivers/block/ide.c | input_ide_data(dev, id, SECTOR_WORDS); /* read 512 bytes of id info */ |
dev | 1748 | drivers/block/ide.c | printk("%s: EATA SCSI HBA %.10s\n", dev->name, id->model); |
dev | 1749 | drivers/block/ide.c | dev->present = 0; |
dev | 1774 | drivers/block/ide.c | printk("%s: %s, ATAPI,", dev->name, id->model); |
dev | 1780 | drivers/block/ide.c | dev->type = cdrom; /* until we do it "correctly" above */ |
dev | 1781 | drivers/block/ide.c | dev->present = 1; |
dev | 1788 | drivers/block/ide.c | dev->type = disk; |
dev | 1790 | drivers/block/ide.c | if (!dev->present) { |
dev | 1791 | drivers/block/ide.c | dev->present = 1; |
dev | 1792 | drivers/block/ide.c | dev->cyl = dev->bios_cyl = id->cyls; |
dev | 1793 | drivers/block/ide.c | dev->head = dev->bios_head = id->heads; |
dev | 1794 | drivers/block/ide.c | dev->sect = dev->bios_sect = id->sectors; |
dev | 1810 | drivers/block/ide.c | dev->cyl = id->cur_cyls; |
dev | 1811 | drivers/block/ide.c | dev->head = id->cur_heads; |
dev | 1812 | drivers/block/ide.c | dev->sect = id->cur_sectors; |
dev | 1813 | drivers/block/ide.c | capacity = dev->cyl * dev->head * dev->sect; |
dev | 1824 | drivers/block/ide.c | if ((!dev->head || dev->head > 16) && id->heads && id->heads <= 16) { |
dev | 1825 | drivers/block/ide.c | dev->cyl = id->cyls; |
dev | 1826 | drivers/block/ide.c | dev->head = id->heads; |
dev | 1827 | drivers/block/ide.c | dev->sect = id->sectors; |
dev | 1830 | drivers/block/ide.c | if (dev->sect == dev->bios_sect && dev->head == dev->bios_head) { |
dev | 1831 | drivers/block/ide.c | if (dev->cyl > dev->bios_cyl) |
dev | 1832 | drivers/block/ide.c | dev->bios_cyl = dev->cyl; |
dev | 1836 | drivers/block/ide.c | dev->select.b.lba = 1; |
dev | 1839 | drivers/block/ide.c | capacity = dev->cyl * dev->head * dev->sect; |
dev | 1842 | drivers/block/ide.c | ide_capacity[DEV_HWIF][dev->select.b.drive] = capacity; |
dev | 1844 | drivers/block/ide.c | dev->name, id->model, capacity/2048L, id->buf_size/2, |
dev | 1845 | drivers/block/ide.c | dev->select.b.lba ? "LBA, " : "", |
dev | 1846 | drivers/block/ide.c | dev->bios_cyl, dev->bios_head, dev->bios_sect); |
dev | 1848 | drivers/block/ide.c | dev->mult_count = 0; |
dev | 1850 | drivers/block/ide.c | dev->mult_req = INITIAL_MULT_COUNT; |
dev | 1851 | drivers/block/ide.c | if (dev->mult_req > id->max_multsect) |
dev | 1852 | drivers/block/ide.c | dev->mult_req = id->max_multsect; |
dev | 1853 | drivers/block/ide.c | if (dev->mult_req || ((id->multsect_valid & 1) && id->multsect)) |
dev | 1854 | drivers/block/ide.c | dev->special.b.set_multmode = 1; |
dev | 1871 | drivers/block/ide.c | static int try_to_identify (ide_dev_t *dev, byte cmd) |
dev | 1885 | drivers/block/ide.c | OUT_BYTE(dev->ctl|2,HD_CMD); /* disable device irq */ |
dev | 1890 | drivers/block/ide.c | OUT_BYTE(dev->ctl,HD_CMD); /* enable device irq */ |
dev | 1896 | drivers/block/ide.c | printk("%s: probing with STATUS instead of ALTSTATUS\n", dev->name); |
dev | 1915 | drivers/block/ide.c | do_identify(dev, cmd); /* drive returned ID */ |
dev | 1926 | drivers/block/ide.c | printk("%s: IRQ probe failed (%d)\n", dev->name, irqs); |
dev | 1942 | drivers/block/ide.c | static int do_probe (ide_dev_t *dev, byte cmd) |
dev | 1954 | drivers/block/ide.c | if (dev->present) { /* avoid waiting for inappropriate probes */ |
dev | 1955 | drivers/block/ide.c | if ((dev->type == disk) ^ (cmd == WIN_IDENTIFY)) |
dev | 1961 | drivers/block/ide.c | dev->name, dev->present, dev->type ? "cdrom":"disk", |
dev | 1964 | drivers/block/ide.c | OUT_BYTE(dev->select.all,HD_CURRENT); /* select target drive */ |
dev | 1966 | drivers/block/ide.c | if (IN_BYTE(HD_CURRENT,DEV_HWIF) != dev->select.all && !dev->present) { |
dev | 1972 | drivers/block/ide.c | || dev->present || cmd == WIN_PIDENTIFY) |
dev | 1974 | drivers/block/ide.c | if ((rc = try_to_identify(dev, cmd))) /* send cmd and wait */ |
dev | 1975 | drivers/block/ide.c | rc = try_to_identify(dev, cmd); /* failed: try again */ |
dev | 1978 | drivers/block/ide.c | dev->name, GET_STAT(DEV_HWIF)); |
dev | 1979 | drivers/block/ide.c | OUT_BYTE(dev->ctl|2,HD_CMD); /* disable device irq */ |
dev | 1985 | drivers/block/ide.c | if (dev->select.b.drive == 1) { |
dev | 1988 | drivers/block/ide.c | OUT_BYTE(dev->ctl|2,HD_CMD); /* disable device irq */ |
dev | 1995 | drivers/block/ide.c | static byte probe_for_drive (ide_dev_t *dev) |
dev | 2001 | drivers/block/ide.c | if (dev->dont_probe) /* skip probing? */ |
dev | 2002 | drivers/block/ide.c | return dev->present; |
dev | 2003 | drivers/block/ide.c | if (do_probe(dev, WIN_IDENTIFY) >= 2) { /* if !(success || timed-out) */ |
dev | 2005 | drivers/block/ide.c | (void) do_probe(dev, WIN_PIDENTIFY); /* look for ATAPI device */ |
dev | 2008 | drivers/block/ide.c | if (!dev->present) |
dev | 2010 | drivers/block/ide.c | if (dev->id == NULL) { /* identification failed? */ |
dev | 2011 | drivers/block/ide.c | if (dev->type == disk) { |
dev | 2013 | drivers/block/ide.c | dev->name, dev->cyl, dev->head, dev->sect); |
dev | 2016 | drivers/block/ide.c | else if (dev->type == cdrom) { |
dev | 2017 | drivers/block/ide.c | printk("%s: ATAPI cdrom (?)\n", dev->name); |
dev | 2021 | drivers/block/ide.c | dev->present = 0; /* nuke it */ |
dev | 2026 | drivers/block/ide.c | if (dev->type == cdrom) |
dev | 2027 | drivers/block/ide.c | cdrom_setup(dev); |
dev | 2029 | drivers/block/ide.c | if (dev->type == disk && !dev->select.b.lba) { |
dev | 2030 | drivers/block/ide.c | if (!dev->head || dev->head > 16) { |
dev | 2032 | drivers/block/ide.c | dev->name, dev->head); |
dev | 2033 | drivers/block/ide.c | dev->present = 0; |
dev | 2074 | drivers/block/ide.c | ide_dev_t *dev; |
dev | 2097 | drivers/block/ide.c | dev = &ide_dev[hwif][drive]; |
dev | 2098 | drivers/block/ide.c | if (dev->present) |
dev | 2117 | drivers/block/ide.c | dev->dont_probe = 1; /* don't probe for this drive */ |
dev | 2123 | drivers/block/ide.c | dev->present = 1; /* force autoprobe to find it */ |
dev | 2124 | drivers/block/ide.c | dev->type = cdrom; |
dev | 2134 | drivers/block/ide.c | dev->type = disk; |
dev | 2135 | drivers/block/ide.c | dev->cyl = dev->bios_cyl = ints[1]; |
dev | 2136 | drivers/block/ide.c | dev->head = dev->bios_head = ints[2]; |
dev | 2137 | drivers/block/ide.c | dev->ctl = (ints[2] > 8 ? 8 : 0); |
dev | 2138 | drivers/block/ide.c | dev->sect = dev->bios_sect = ints[3]; |
dev | 2139 | drivers/block/ide.c | dev->wpcom = (ints[0] >= 4) ? ints[4] : 0; |
dev | 2142 | drivers/block/ide.c | ide_capacity[HWIF][drive] = BIOS_SECTORS(dev); |
dev | 2143 | drivers/block/ide.c | dev->present = 1; |
dev | 2194 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[0][drive]; |
dev | 2195 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (drive*4))) && !dev->present) { |
dev | 2196 | drivers/block/ide.c | dev->cyl = dev->bios_cyl = *(unsigned short *)BIOS; |
dev | 2197 | drivers/block/ide.c | dev->head = dev->bios_head = * (BIOS+2); |
dev | 2198 | drivers/block/ide.c | dev->sect = dev->bios_sect = * (BIOS+14); |
dev | 2199 | drivers/block/ide.c | dev->wpcom = (*(unsigned short *)(BIOS+5))>>2; |
dev | 2200 | drivers/block/ide.c | dev->ctl = *(BIOS+8); |
dev | 2201 | drivers/block/ide.c | dev->wpcom = 0; |
dev | 2202 | drivers/block/ide.c | dev->type = disk; |
dev | 2203 | drivers/block/ide.c | dev->present = 1; |
dev | 2204 | drivers/block/ide.c | ide_capacity[0][drive] = BIOS_SECTORS(dev); |
dev | 2222 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[hwif][drive]; |
dev | 2223 | drivers/block/ide.c | dev->select.all = (drive<<4)|0xa0; |
dev | 2224 | drivers/block/ide.c | dev->hwif = hwif; |
dev | 2225 | drivers/block/ide.c | dev->unmask = 0; |
dev | 2226 | drivers/block/ide.c | dev->busy = 0; |
dev | 2227 | drivers/block/ide.c | dev->mult_count = 0; /* set by do_identify() */ |
dev | 2228 | drivers/block/ide.c | dev->mult_req = 0; /* set by do_identify() */ |
dev | 2229 | drivers/block/ide.c | dev->usage = 0; |
dev | 2230 | drivers/block/ide.c | dev->vlb_32bit = 0; |
dev | 2231 | drivers/block/ide.c | dev->vlb_sync = 0; |
dev | 2232 | drivers/block/ide.c | dev->id = NULL; |
dev | 2233 | drivers/block/ide.c | dev->ctl = 0x08; |
dev | 2234 | drivers/block/ide.c | dev->wqueue = NULL; |
dev | 2235 | drivers/block/ide.c | dev->special.all = 0; |
dev | 2236 | drivers/block/ide.c | dev->special.b.recalibrate = 1; |
dev | 2237 | drivers/block/ide.c | dev->special.b.set_geometry = 1; |
dev | 2238 | drivers/block/ide.c | dev->keep_settings = 0; |
dev | 2240 | drivers/block/ide.c | dev->name = ide_devname[hwif][drive]; |
dev | 2291 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[HWIF][drive]; |
dev | 2292 | drivers/block/ide.c | if (dev->present) { |
dev | 2295 | drivers/block/ide.c | if (dev->type == cdrom) |
dev | 107 | drivers/block/ll_rw_blk.c | static void plug_device(struct blk_dev_struct * dev, struct request * plug) |
dev | 111 | drivers/block/ll_rw_blk.c | plug->dev = -1; |
dev | 116 | drivers/block/ll_rw_blk.c | if (!dev->current_request) |
dev | 117 | drivers/block/ll_rw_blk.c | dev->current_request = plug; |
dev | 124 | drivers/block/ll_rw_blk.c | static void unplug_device(struct blk_dev_struct * dev) |
dev | 131 | drivers/block/ll_rw_blk.c | req = dev->current_request; |
dev | 132 | drivers/block/ll_rw_blk.c | if (req && req->dev == -1 && req->cmd == -1) { |
dev | 133 | drivers/block/ll_rw_blk.c | dev->current_request = req->next; |
dev | 134 | drivers/block/ll_rw_blk.c | (dev->request_fn)(); |
dev | 144 | drivers/block/ll_rw_blk.c | static inline struct request * get_request(int n, int dev) |
dev | 160 | drivers/block/ll_rw_blk.c | if (req->dev < 0) |
dev | 166 | drivers/block/ll_rw_blk.c | req->dev = dev; |
dev | 173 | drivers/block/ll_rw_blk.c | static struct request * __get_request_wait(int n, int dev) |
dev | 180 | drivers/block/ll_rw_blk.c | unplug_device(MAJOR(dev)+blk_dev); |
dev | 183 | drivers/block/ll_rw_blk.c | req = get_request(n, dev); |
dev | 194 | drivers/block/ll_rw_blk.c | static inline struct request * get_request_wait(int n, int dev) |
dev | 199 | drivers/block/ll_rw_blk.c | req = get_request(n, dev); |
dev | 203 | drivers/block/ll_rw_blk.c | return __get_request_wait(n, dev); |
dev | 210 | drivers/block/ll_rw_blk.c | int is_read_only(int dev) |
dev | 214 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
dev | 215 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
dev | 220 | drivers/block/ll_rw_blk.c | void set_device_ro(int dev,int flag) |
dev | 224 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
dev | 225 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
dev | 236 | drivers/block/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
dev | 241 | drivers/block/ll_rw_blk.c | switch (MAJOR(req->dev)) { |
dev | 242 | drivers/block/ll_rw_blk.c | case SCSI_DISK_MAJOR: disk_index = (MINOR(req->dev) & 0x0070) >> 4; |
dev | 247 | drivers/block/ll_rw_blk.c | case XT_DISK_MAJOR: disk_index = (MINOR(req->dev) & 0x0040) >> 6; |
dev | 250 | drivers/block/ll_rw_blk.c | case IDE1_MAJOR: disk_index = ((MINOR(req->dev) & 0x0040) >> 6) + 2; |
dev | 259 | drivers/block/ll_rw_blk.c | if (!(tmp = dev->current_request)) { |
dev | 260 | drivers/block/ll_rw_blk.c | dev->current_request = req; |
dev | 261 | drivers/block/ll_rw_blk.c | (dev->request_fn)(); |
dev | 275 | drivers/block/ll_rw_blk.c | if (scsi_major(MAJOR(req->dev))) |
dev | 276 | drivers/block/ll_rw_blk.c | (dev->request_fn)(); |
dev | 347 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 361 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 409 | drivers/block/ll_rw_blk.c | void ll_rw_page(int rw, int dev, unsigned long page, char * buffer) |
dev | 412 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 417 | drivers/block/ll_rw_blk.c | printk("Trying to read nonexistent block-device %04x (%ld)\n",dev,sector); |
dev | 422 | drivers/block/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 423 | drivers/block/ll_rw_blk.c | printk("Can't page to read-only device 0x%X\n",dev); |
dev | 426 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
dev | 450 | drivers/block/ll_rw_blk.c | struct blk_dev_struct * dev; |
dev | 460 | drivers/block/ll_rw_blk.c | dev = NULL; |
dev | 462 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
dev | 463 | drivers/block/ll_rw_blk.c | if (!dev || !dev->request_fn) { |
dev | 499 | drivers/block/ll_rw_blk.c | plug_device(dev, &plug); |
dev | 510 | drivers/block/ll_rw_blk.c | unplug_device(dev); |
dev | 521 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
dev | 526 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 538 | drivers/block/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 539 | drivers/block/ll_rw_blk.c | printk("Can't swap to read-only device 0x%X\n",dev); |
dev | 550 | drivers/block/ll_rw_blk.c | req[j] = get_request_wait(NR_REQUEST, dev); |
dev | 553 | drivers/block/ll_rw_blk.c | req[j] = get_request(NR_REQUEST, dev); |
dev | 582 | drivers/block/ll_rw_blk.c | req->dev = -1; |
dev | 88 | drivers/block/mcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
dev | 43 | drivers/block/ramdisk.c | if ((MINOR(CURRENT->dev) != RAMDISK_MINOR) || |
dev | 4368 | drivers/block/sbpcd.c | if ((CURRENT==NULL)||(CURRENT->dev<0)) goto err_done; |
dev | 4375 | drivers/block/sbpcd.c | i = MINOR(CURRENT->dev); |
dev | 4378 | drivers/block/sbpcd.c | msg(DBG_INF, "do_request: bad device: %04X\n", CURRENT->dev); |
dev | 821 | drivers/block/sonycd535.c | unsigned int dev; |
dev | 839 | drivers/block/sonycd535.c | if (!(CURRENT) || CURRENT->dev < 0) { |
dev | 843 | drivers/block/sonycd535.c | dev = MINOR(CURRENT->dev); |
dev | 846 | drivers/block/sonycd535.c | if (dev != 0) { |
dev | 1117 | drivers/block/sonycd535.c | unsigned int dev; |
dev | 1127 | drivers/block/sonycd535.c | dev = MINOR(inode->i_rdev) >> 6; |
dev | 1128 | drivers/block/sonycd535.c | if (dev != 0) { |
dev | 195 | drivers/block/xd.c | int dev = DEVICE_NR(MINOR(inode->i_rdev)); |
dev | 197 | drivers/block/xd.c | if (dev < xd_drives) { |
dev | 198 | drivers/block/xd.c | while (!xd_valid[dev]) |
dev | 201 | drivers/block/xd.c | xd_access[dev]++; |
dev | 219 | drivers/block/xd.c | if (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) { |
dev | 220 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect; |
dev | 241 | drivers/block/xd.c | int dev = DEVICE_NR(MINOR(inode->i_rdev)),err; |
dev | 243 | drivers/block/xd.c | if (inode && (dev < xd_drives)) |
dev | 249 | drivers/block/xd.c | put_user(xd_info[dev].heads, &geometry->heads); |
dev | 250 | drivers/block/xd.c | put_user(xd_info[dev].sectors, &geometry->sectors); |
dev | 251 | drivers/block/xd.c | put_user(xd_info[dev].cylinders, &geometry->cylinders); |
dev | 289 | drivers/block/xd.c | int dev = DEVICE_NR(MINOR(inode->i_rdev)); |
dev | 291 | drivers/block/xd.c | if (dev < xd_drives) { |
dev | 292 | drivers/block/xd.c | sync_dev(dev); |
dev | 293 | drivers/block/xd.c | xd_access[dev]--; |
dev | 298 | drivers/block/xd.c | static int xd_reread_partitions(int dev) |
dev | 300 | drivers/block/xd.c | int target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition; |
dev | 1921 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 1934 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
dev | 2096 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 2108 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
dev | 2247 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 2253 | drivers/char/tpqic02.c | if (TP_DIAGS(dev)) { |
dev | 2254 | drivers/char/tpqic02.c | printk("qic02_tape_open: dev=%x, flags=%x ", dev, flags); |
dev | 2257 | drivers/char/tpqic02.c | if (MINOR(dev)==255) /* special case for resetting */ |
dev | 2333 | drivers/char/tpqic02.c | if ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) { |
dev | 2346 | drivers/char/tpqic02.c | current_tape_dev = dev; |
dev | 2382 | drivers/char/tpqic02.c | if (TP_DENS(current_tape_dev) == TP_DENS(dev) ) |
dev | 2385 | drivers/char/tpqic02.c | current_tape_dev = dev; |
dev | 2388 | drivers/char/tpqic02.c | dens = TP_DENS(dev); |
dev | 2395 | drivers/char/tpqic02.c | switch (TP_DENS(dev)) { |
dev | 2440 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 2442 | drivers/char/tpqic02.c | if (TP_DIAGS(dev)) |
dev | 2443 | drivers/char/tpqic02.c | printk("qic02_tape_release: dev=%x\n", dev); |
dev | 2459 | drivers/char/tpqic02.c | if ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) { |
dev | 120 | drivers/net/3c501.c | int el1_probe(struct device *dev); |
dev | 121 | drivers/net/3c501.c | static int el1_probe1(struct device *dev, int ioaddr); |
dev | 122 | drivers/net/3c501.c | static int el_open(struct device *dev); |
dev | 123 | drivers/net/3c501.c | static int el_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 125 | drivers/net/3c501.c | static void el_receive(struct device *dev); |
dev | 126 | drivers/net/3c501.c | static void el_reset(struct device *dev); |
dev | 127 | drivers/net/3c501.c | static int el1_close(struct device *dev); |
dev | 128 | drivers/net/3c501.c | static struct enet_statistics *el1_get_stats(struct device *dev); |
dev | 129 | drivers/net/3c501.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 198 | drivers/net/3c501.c | el1_probe(struct device *dev) |
dev | 201 | drivers/net/3c501.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 204 | drivers/net/3c501.c | return el1_probe1(dev, base_addr); |
dev | 212 | drivers/net/3c501.c | if (el1_probe1(dev, ioaddr) == 0) |
dev | 222 | drivers/net/3c501.c | el1_probe1(struct device *dev, int ioaddr) |
dev | 252 | drivers/net/3c501.c | if (dev->irq < 2) { |
dev | 273 | drivers/net/3c501.c | dev->base_addr = ioaddr; |
dev | 274 | drivers/net/3c501.c | memcpy(dev->dev_addr, station_addr, ETH_ALEN); |
dev | 275 | drivers/net/3c501.c | if (dev->mem_start & 0xf) |
dev | 276 | drivers/net/3c501.c | el_debug = dev->mem_start & 0x7; |
dev | 278 | drivers/net/3c501.c | dev->irq = autoirq; |
dev | 281 | drivers/net/3c501.c | dev->name, mname, dev->base_addr, |
dev | 282 | drivers/net/3c501.c | autoirq ? "auto":"assigned ", dev->irq); |
dev | 292 | drivers/net/3c501.c | if (dev->priv == NULL) |
dev | 293 | drivers/net/3c501.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 294 | drivers/net/3c501.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 297 | drivers/net/3c501.c | dev->open = &el_open; |
dev | 298 | drivers/net/3c501.c | dev->hard_start_xmit = &el_start_xmit; |
dev | 299 | drivers/net/3c501.c | dev->stop = &el1_close; |
dev | 300 | drivers/net/3c501.c | dev->get_stats = &el1_get_stats; |
dev | 301 | drivers/net/3c501.c | dev->set_multicast_list = &set_multicast_list; |
dev | 303 | drivers/net/3c501.c | ether_setup(dev); |
dev | 311 | drivers/net/3c501.c | el_open(struct device *dev) |
dev | 313 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 316 | drivers/net/3c501.c | printk("%s: Doing el_open()...", dev->name); |
dev | 318 | drivers/net/3c501.c | if (request_irq(dev->irq, &el_interrupt, 0, "3c501")) { |
dev | 321 | drivers/net/3c501.c | irq2dev_map[dev->irq] = dev; |
dev | 323 | drivers/net/3c501.c | el_reset(dev); |
dev | 325 | drivers/net/3c501.c | dev->start = 1; |
dev | 333 | drivers/net/3c501.c | el_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 335 | drivers/net/3c501.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 336 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 339 | drivers/net/3c501.c | if (dev->tbusy) { |
dev | 340 | drivers/net/3c501.c | if (jiffies - dev->trans_start < 20) { |
dev | 347 | drivers/net/3c501.c | dev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS)); |
dev | 353 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 354 | drivers/net/3c501.c | dev->trans_start = jiffies; |
dev | 358 | drivers/net/3c501.c | dev_tint(dev); |
dev | 368 | drivers/net/3c501.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 371 | drivers/net/3c501.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 403 | drivers/net/3c501.c | printk("%s: burped during tx load.\n", dev->name); |
dev | 407 | drivers/net/3c501.c | dev->trans_start = jiffies; |
dev | 422 | drivers/net/3c501.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 427 | drivers/net/3c501.c | if (dev == NULL || dev->irq != irq) { |
dev | 432 | drivers/net/3c501.c | ioaddr = dev->base_addr; |
dev | 433 | drivers/net/3c501.c | lp = (struct net_local *)dev->priv; |
dev | 437 | drivers/net/3c501.c | printk("%s: el_interrupt() aux=%#02x", dev->name, axsr); |
dev | 438 | drivers/net/3c501.c | if (dev->interrupt) |
dev | 439 | drivers/net/3c501.c | printk("%s: Reentering the interrupt driver!\n", dev->name); |
dev | 440 | drivers/net/3c501.c | dev->interrupt = 1; |
dev | 444 | drivers/net/3c501.c | if (dev->tbusy) { |
dev | 462 | drivers/net/3c501.c | " gp=%03x rp=%03x.\n", dev->name, txsr, axsr, |
dev | 464 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 472 | drivers/net/3c501.c | dev->name); |
dev | 485 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 498 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 524 | drivers/net/3c501.c | el_receive(dev); |
dev | 528 | drivers/net/3c501.c | dev->name, rxsr); |
dev | 529 | drivers/net/3c501.c | el_reset(dev); |
dev | 542 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 550 | drivers/net/3c501.c | el_receive(struct device *dev) |
dev | 552 | drivers/net/3c501.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 553 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 564 | drivers/net/3c501.c | printk("%s: bogus packet, length=%d\n", dev->name, pkt_len); |
dev | 581 | drivers/net/3c501.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 586 | drivers/net/3c501.c | skb->dev = dev; |
dev | 595 | drivers/net/3c501.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 603 | drivers/net/3c501.c | el_reset(struct device *dev) |
dev | 605 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 614 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
dev | 623 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 624 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 629 | drivers/net/3c501.c | el1_close(struct device *dev) |
dev | 631 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 634 | drivers/net/3c501.c | printk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr); |
dev | 636 | drivers/net/3c501.c | dev->tbusy = 1; |
dev | 637 | drivers/net/3c501.c | dev->start = 0; |
dev | 640 | drivers/net/3c501.c | free_irq(dev->irq); |
dev | 642 | drivers/net/3c501.c | irq2dev_map[dev->irq] = 0; |
dev | 649 | drivers/net/3c501.c | el1_get_stats(struct device *dev) |
dev | 651 | drivers/net/3c501.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 662 | drivers/net/3c501.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 664 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 41 | drivers/net/3c503.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 44 | drivers/net/3c503.c | int el2_probe(struct device *dev); |
dev | 45 | drivers/net/3c503.c | int el2_pio_probe(struct device *dev); |
dev | 46 | drivers/net/3c503.c | int el2_probe1(struct device *dev, int ioaddr); |
dev | 63 | drivers/net/3c503.c | static int el2_open(struct device *dev); |
dev | 64 | drivers/net/3c503.c | static int el2_close(struct device *dev); |
dev | 65 | drivers/net/3c503.c | static void el2_reset_8390(struct device *dev); |
dev | 66 | drivers/net/3c503.c | static void el2_init_card(struct device *dev); |
dev | 67 | drivers/net/3c503.c | static void el2_block_output(struct device *dev, int count, |
dev | 69 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
dev | 81 | drivers/net/3c503.c | el2_probe(struct device *dev) |
dev | 84 | drivers/net/3c503.c | int base_addr = dev->base_addr; |
dev | 87 | drivers/net/3c503.c | return el2_probe1(dev, base_addr); |
dev | 102 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
dev | 106 | drivers/net/3c503.c | return el2_pio_probe(dev); |
dev | 116 | drivers/net/3c503.c | el2_pio_probe(struct device *dev) |
dev | 119 | drivers/net/3c503.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 122 | drivers/net/3c503.c | return el2_probe1(dev, base_addr); |
dev | 130 | drivers/net/3c503.c | if (el2_probe1(dev, ioaddr) == 0) |
dev | 142 | drivers/net/3c503.c | el2_probe1(struct device *dev, int ioaddr) |
dev | 177 | drivers/net/3c503.c | if (dev == NULL) |
dev | 178 | drivers/net/3c503.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 183 | drivers/net/3c503.c | dev->base_addr = ioaddr; |
dev | 184 | drivers/net/3c503.c | ethdev_init(dev); |
dev | 186 | drivers/net/3c503.c | printk("%s: 3c503 at %#3x,", dev->name, ioaddr); |
dev | 190 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 206 | drivers/net/3c503.c | ei_status.interface_num = dev->mem_end & 0xf; |
dev | 210 | drivers/net/3c503.c | dev->mem_start = 0; |
dev | 212 | drivers/net/3c503.c | dev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) + |
dev | 219 | drivers/net/3c503.c | int *mem_base = (int *)dev->mem_start; |
dev | 227 | drivers/net/3c503.c | dev->mem_start = 0; |
dev | 238 | drivers/net/3c503.c | dev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE; |
dev | 239 | drivers/net/3c503.c | dev->rmem_start = TX_PAGES*256 + dev->mem_start; |
dev | 251 | drivers/net/3c503.c | if (dev->irq == 2) |
dev | 252 | drivers/net/3c503.c | dev->irq = 9; |
dev | 253 | drivers/net/3c503.c | else if (dev->irq > 5 && dev->irq != 9) { |
dev | 255 | drivers/net/3c503.c | dev->irq); |
dev | 256 | drivers/net/3c503.c | dev->irq = 0; |
dev | 259 | drivers/net/3c503.c | ei_status.saved_irq = dev->irq; |
dev | 261 | drivers/net/3c503.c | dev->start = 0; |
dev | 262 | drivers/net/3c503.c | dev->open = &el2_open; |
dev | 263 | drivers/net/3c503.c | dev->stop = &el2_close; |
dev | 265 | drivers/net/3c503.c | if (dev->mem_start) |
dev | 267 | drivers/net/3c503.c | dev->name, ei_status.name, dev->mem_start, dev->mem_end-1); |
dev | 270 | drivers/net/3c503.c | dev->name, ei_status.name); |
dev | 279 | drivers/net/3c503.c | el2_open(struct device *dev) |
dev | 282 | drivers/net/3c503.c | if (dev->irq < 2) { |
dev | 294 | drivers/net/3c503.c | && request_irq (dev->irq = *irqp, &ei_interrupt, 0, "3c503") == 0) |
dev | 303 | drivers/net/3c503.c | if (request_irq(dev->irq, &ei_interrupt, 0, "3c503")) { |
dev | 307 | drivers/net/3c503.c | el2_init_card(dev); |
dev | 308 | drivers/net/3c503.c | return ei_open(dev); |
dev | 312 | drivers/net/3c503.c | el2_close(struct device *dev) |
dev | 314 | drivers/net/3c503.c | free_irq(dev->irq); |
dev | 315 | drivers/net/3c503.c | dev->irq = ei_status.saved_irq; |
dev | 316 | drivers/net/3c503.c | irq2dev_map[dev->irq] = NULL; |
dev | 319 | drivers/net/3c503.c | NS8390_init(dev, 0); |
dev | 320 | drivers/net/3c503.c | dev->start = 0; |
dev | 330 | drivers/net/3c503.c | el2_reset_8390(struct device *dev) |
dev | 333 | drivers/net/3c503.c | printk("%s: Resetting the 3c503 board...", dev->name); |
dev | 340 | drivers/net/3c503.c | el2_init_card(dev); |
dev | 346 | drivers/net/3c503.c | el2_init_card(struct device *dev) |
dev | 361 | drivers/net/3c503.c | outb_p(0x00, dev->base_addr + EN0_IMR); |
dev | 366 | drivers/net/3c503.c | outb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR); |
dev | 376 | drivers/net/3c503.c | el2_block_output(struct device *dev, int count, |
dev | 385 | drivers/net/3c503.c | if (dev->mem_start) { /* Shared memory transfer */ |
dev | 386 | drivers/net/3c503.c | void *dest_addr = (void *)(dev->mem_start + |
dev | 391 | drivers/net/3c503.c | dev->name, (int) dest_addr); |
dev | 409 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
dev | 420 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 423 | drivers/net/3c503.c | int end_of_ring = dev->rmem_end; |
dev | 427 | drivers/net/3c503.c | if (dev->mem_start) { /* Use the shared memory. */ |
dev | 429 | drivers/net/3c503.c | if (dev->mem_start + ring_offset + count > end_of_ring) { |
dev | 431 | drivers/net/3c503.c | int semi_count = end_of_ring - (dev->mem_start + ring_offset); |
dev | 432 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
dev | 434 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 435 | drivers/net/3c503.c | return dev->rmem_start + count; |
dev | 437 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
dev | 453 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
dev | 6 | drivers/net/3c503.h | #define EL2H (dev->base_addr + 0x400) |
dev | 7 | drivers/net/3c503.h | #define EL2L (dev->base_addr) |
dev | 263 | drivers/net/3c505.c | adapter_reset (struct device * dev) |
dev | 266 | drivers/net/3c505.c | unsigned char orig_hcr=inb_control(dev->base_addr); |
dev | 268 | drivers/net/3c505.c | elp_device * adapter=dev->priv; |
dev | 270 | drivers/net/3c505.c | outb_control(0,dev->base_addr); |
dev | 272 | drivers/net/3c505.c | if (inb_status(dev->base_addr)&ACRF) { |
dev | 274 | drivers/net/3c505.c | inb_command(dev->base_addr); |
dev | 276 | drivers/net/3c505.c | while ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF)) |
dev | 278 | drivers/net/3c505.c | } while (inb_status(dev->base_addr)&ACRF); |
dev | 279 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_NAK); |
dev | 282 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr); |
dev | 286 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr); |
dev | 290 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr); |
dev | 294 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr); |
dev | 299 | drivers/net/3c505.c | outb_control(orig_hcr, dev->base_addr); |
dev | 300 | drivers/net/3c505.c | if (!start_receive(dev, &adapter->tx_pcb)) |
dev | 301 | drivers/net/3c505.c | printk("%s: start receive command failed \n", dev->name); |
dev | 320 | drivers/net/3c505.c | send_pcb (struct device * dev, pcb_struct * pcb) |
dev | 331 | drivers/net/3c505.c | set_hsf(dev->base_addr,0); |
dev | 332 | drivers/net/3c505.c | if ((cont = WAIT_HCRE(dev->base_addr,5))) { |
dev | 335 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr); |
dev | 336 | drivers/net/3c505.c | outb_command(pcb->command, dev->base_addr); |
dev | 338 | drivers/net/3c505.c | cont = WAIT_HCRE(dev->base_addr,5); |
dev | 342 | drivers/net/3c505.c | outb_command(pcb->length, dev->base_addr); |
dev | 343 | drivers/net/3c505.c | cont = WAIT_HCRE(dev->base_addr,5); |
dev | 348 | drivers/net/3c505.c | outb_command(pcb->data.raw[i], dev->base_addr); |
dev | 349 | drivers/net/3c505.c | cont = wait_fast_hcre(dev->base_addr,20000,__LINE__); |
dev | 356 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_END); |
dev | 357 | drivers/net/3c505.c | outb_command(2+pcb->length, dev->base_addr); |
dev | 361 | drivers/net/3c505.c | i = GET_ASF(dev->base_addr); |
dev | 371 | drivers/net/3c505.c | printk("%s: PCB send was NAKed\n", dev->name); |
dev | 373 | drivers/net/3c505.c | printk("%s: timeout after sending PCB\n", dev->name); |
dev | 376 | drivers/net/3c505.c | printk("%s: timeout in middle of sending PCB\n", dev->name); |
dev | 378 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 396 | drivers/net/3c505.c | receive_pcb (struct device * dev, pcb_struct * pcb) |
dev | 404 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 406 | drivers/net/3c505.c | set_hsf(dev->base_addr,0); |
dev | 410 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout) |
dev | 417 | drivers/net/3c505.c | pcb->command = inb_command(dev->base_addr); |
dev | 421 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout) |
dev | 427 | drivers/net/3c505.c | pcb->length = inb_command(dev->base_addr); |
dev | 431 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 440 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
dev | 442 | drivers/net/3c505.c | pcb->data.raw[i++] = inb_command(dev->base_addr); |
dev | 458 | drivers/net/3c505.c | printk("%s: mangled PCB received\n", dev->name); |
dev | 459 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_NAK); |
dev | 463 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_ACK); |
dev | 469 | drivers/net/3c505.c | adapter_hard_reset (struct device * dev) |
dev | 473 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 477 | drivers/net/3c505.c | dev->name); |
dev | 481 | drivers/net/3c505.c | outb_control(ATTN|FLSH, dev->base_addr); |
dev | 492 | drivers/net/3c505.c | outb_control(0, dev->base_addr); |
dev | 504 | drivers/net/3c505.c | if (GET_ASF(dev->base_addr) != ASF_PCB_END) |
dev | 516 | drivers/net/3c505.c | start_receive (struct device * dev, pcb_struct * tx_pcb) |
dev | 518 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 522 | drivers/net/3c505.c | printk("%s: restarting receiver\n", dev->name); |
dev | 529 | drivers/net/3c505.c | return send_pcb(dev, tx_pcb); |
dev | 542 | drivers/net/3c505.c | receive_packet (struct device * dev, int len) |
dev | 551 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 552 | drivers/net/3c505.c | adapter=dev->priv; |
dev | 569 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|DIR, dev->base_addr); |
dev | 577 | drivers/net/3c505.c | while ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) |
dev | 585 | drivers/net/3c505.c | inw_data(dev->base_addr); |
dev | 591 | drivers/net/3c505.c | skb->dev = dev; |
dev | 599 | drivers/net/3c505.c | while ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) |
dev | 609 | drivers/net/3c505.c | *ptr = inw_data(dev->base_addr); |
dev | 614 | drivers/net/3c505.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 618 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr); |
dev | 633 | drivers/net/3c505.c | struct device *dev; |
dev | 642 | drivers/net/3c505.c | dev = irq2dev_map[irq]; |
dev | 644 | drivers/net/3c505.c | if (dev == NULL) { |
dev | 649 | drivers/net/3c505.c | adapter = (elp_device *) dev->priv; |
dev | 653 | drivers/net/3c505.c | if (dev->interrupt) |
dev | 655 | drivers/net/3c505.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 656 | drivers/net/3c505.c | dev->interrupt = 1; |
dev | 667 | drivers/net/3c505.c | while ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) { |
dev | 669 | drivers/net/3c505.c | if (receive_pcb(dev, &adapter->irx_pcb)) { |
dev | 678 | drivers/net/3c505.c | if (dev->start == 0) |
dev | 682 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|DIR, |
dev | 683 | drivers/net/3c505.c | dev->base_addr); |
dev | 687 | drivers/net/3c505.c | printk("%s: interrupt - packet not received correctly\n", dev->name); |
dev | 692 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
dev | 695 | drivers/net/3c505.c | receive_packet(dev, dlen); |
dev | 698 | drivers/net/3c505.c | printk("%s: packet received\n", dev->name); |
dev | 700 | drivers/net/3c505.c | if (dev->start && !start_receive(dev, &adapter->itx_pcb)) |
dev | 702 | drivers/net/3c505.c | printk("%s: interrupt - failed to send receive start PCB\n", dev->name); |
dev | 704 | drivers/net/3c505.c | printk("%s: receive procedure complete\n", dev->name); |
dev | 714 | drivers/net/3c505.c | printk("%s: interrupt - configure response received\n", dev->name); |
dev | 723 | drivers/net/3c505.c | printk("%s: Adapter memory configuration %s.\n",dev->name, |
dev | 733 | drivers/net/3c505.c | printk("%s: Multicast address list loading %s.\n",dev->name, |
dev | 743 | drivers/net/3c505.c | printk("%s: Ethernet address setting %s.\n",dev->name, |
dev | 759 | drivers/net/3c505.c | printk("%s: interrupt - statistics response received\n", dev->name); |
dev | 767 | drivers/net/3c505.c | printk("%s: interrupt - packet sent\n", dev->name); |
dev | 768 | drivers/net/3c505.c | if (dev->start == 0) |
dev | 773 | drivers/net/3c505.c | dev->name, adapter->irx_pcb.data.xmit_resp.c_stat); |
dev | 774 | drivers/net/3c505.c | dev->tbusy = 0; |
dev | 782 | drivers/net/3c505.c | printk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command); |
dev | 786 | drivers/net/3c505.c | printk("%s: failed to read PCB on interrupt\n", dev->name); |
dev | 787 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 794 | drivers/net/3c505.c | dev->interrupt = 0; |
dev | 805 | drivers/net/3c505.c | elp_open (struct device *dev) |
dev | 809 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 811 | drivers/net/3c505.c | adapter = dev->priv; |
dev | 814 | drivers/net/3c505.c | printk("%s: request to open device\n", dev->name); |
dev | 820 | drivers/net/3c505.c | printk("%s: Opening a non-existent physical device\n", dev->name); |
dev | 827 | drivers/net/3c505.c | outb_control(0x00, dev->base_addr); |
dev | 832 | drivers/net/3c505.c | inb_command(dev->base_addr); |
dev | 833 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 838 | drivers/net/3c505.c | dev->interrupt = 0; |
dev | 843 | drivers/net/3c505.c | dev->tbusy = 0; |
dev | 848 | drivers/net/3c505.c | irq2dev_map[dev->irq] = dev; |
dev | 853 | drivers/net/3c505.c | if (request_irq(dev->irq, &elp_interrupt, 0, "3c505")) { |
dev | 854 | drivers/net/3c505.c | irq2dev_map[dev->irq] = NULL; |
dev | 861 | drivers/net/3c505.c | outb_control(CMDE, dev->base_addr); |
dev | 866 | drivers/net/3c505.c | dev->start = 1; |
dev | 872 | drivers/net/3c505.c | printk("%s: sending 3c505 memory configuration command\n", dev->name); |
dev | 882 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 883 | drivers/net/3c505.c | printk("%s: couldn't send memory configuration command\n", dev->name); |
dev | 897 | drivers/net/3c505.c | printk("%s: sending 82586 configure command\n", dev->name); |
dev | 902 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 903 | drivers/net/3c505.c | printk("%s: couldn't send 82586 configure command\n", dev->name); |
dev | 915 | drivers/net/3c505.c | if (!start_receive(dev, &adapter->tx_pcb)) |
dev | 916 | drivers/net/3c505.c | printk("%s: start receive command failed \n", dev->name); |
dev | 918 | drivers/net/3c505.c | printk("%s: start receive command sent\n", dev->name); |
dev | 931 | drivers/net/3c505.c | send_packet (struct device * dev, unsigned char * ptr, int len) |
dev | 942 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 945 | drivers/net/3c505.c | adapter = dev->priv; |
dev | 959 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) { |
dev | 968 | drivers/net/3c505.c | while (((inb_status(dev->base_addr)&HRDY) == 0) |
dev | 974 | drivers/net/3c505.c | dev->name,filename,__LINE__, i, nlen/2); |
dev | 978 | drivers/net/3c505.c | outw_data(*(short *)ptr, dev->base_addr); |
dev | 994 | drivers/net/3c505.c | elp_start_xmit (struct sk_buff *skb, struct device *dev) |
dev | 996 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1002 | drivers/net/3c505.c | dev_tint(dev); |
dev | 1013 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
dev | 1018 | drivers/net/3c505.c | if (dev->tbusy) { |
dev | 1019 | drivers/net/3c505.c | int tickssofar = jiffies - dev->trans_start; |
dev | 1023 | drivers/net/3c505.c | printk("%s: transmit timed out, not resetting adapter\n", dev->name); |
dev | 1024 | drivers/net/3c505.c | if (((stat=inb_status(dev->base_addr))&ACRF) != 0) |
dev | 1025 | drivers/net/3c505.c | printk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name); |
dev | 1026 | drivers/net/3c505.c | printk("%s: status %#02x\n", dev->name, stat); |
dev | 1027 | drivers/net/3c505.c | dev->trans_start = jiffies; |
dev | 1028 | drivers/net/3c505.c | dev->tbusy = 0; |
dev | 1034 | drivers/net/3c505.c | if (!send_packet(dev, skb->data, skb->len)) { |
dev | 1035 | drivers/net/3c505.c | printk("%s: send packet PCB failed\n", dev->name); |
dev | 1040 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
dev | 1046 | drivers/net/3c505.c | dev->trans_start = jiffies; |
dev | 1051 | drivers/net/3c505.c | dev->tbusy = 1; |
dev | 1068 | drivers/net/3c505.c | elp_get_stats (struct device *dev) |
dev | 1070 | drivers/net/3c505.c | elp_device *adapter = (elp_device *) dev->priv; |
dev | 1073 | drivers/net/3c505.c | printk("%s: request for stats\n", dev->name); |
dev | 1077 | drivers/net/3c505.c | if (!dev->start) |
dev | 1084 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 1085 | drivers/net/3c505.c | printk("%s: couldn't send get statistics command\n", dev->name); |
dev | 1107 | drivers/net/3c505.c | elp_close (struct device *dev) |
dev | 1111 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1112 | drivers/net/3c505.c | adapter = dev->priv; |
dev | 1116 | drivers/net/3c505.c | printk("%s: request to close device\n", dev->name); |
dev | 1122 | drivers/net/3c505.c | (void) elp_get_stats(dev); |
dev | 1127 | drivers/net/3c505.c | outb_control(0x00, dev->base_addr); |
dev | 1132 | drivers/net/3c505.c | dev->tbusy = 1; |
dev | 1137 | drivers/net/3c505.c | dev->start = 0; |
dev | 1142 | drivers/net/3c505.c | free_irq(dev->irq); |
dev | 1147 | drivers/net/3c505.c | irq2dev_map[dev->irq] = 0; |
dev | 1163 | drivers/net/3c505.c | elp_set_mc_list (struct device *dev, int num_addrs, void *addrs) |
dev | 1165 | drivers/net/3c505.c | elp_device *adapter = (elp_device *) dev->priv; |
dev | 1169 | drivers/net/3c505.c | printk("%s: request to set multicast list\n", dev->name); |
dev | 1179 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 1180 | drivers/net/3c505.c | printk("%s: couldn't send set_multicast command\n", dev->name); |
dev | 1200 | drivers/net/3c505.c | printk("%s: sending 82586 configure command\n", dev->name); |
dev | 1204 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 1205 | drivers/net/3c505.c | printk("%s: couldn't send 82586 configure command\n", dev->name); |
dev | 1222 | drivers/net/3c505.c | elp_init (struct device *dev) |
dev | 1226 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1231 | drivers/net/3c505.c | dev->open = elp_open; /* local */ |
dev | 1232 | drivers/net/3c505.c | dev->stop = elp_close; /* local */ |
dev | 1233 | drivers/net/3c505.c | dev->get_stats = elp_get_stats; /* local */ |
dev | 1234 | drivers/net/3c505.c | dev->hard_start_xmit = elp_start_xmit; /* local */ |
dev | 1235 | drivers/net/3c505.c | dev->set_multicast_list = elp_set_mc_list; /* local */ |
dev | 1238 | drivers/net/3c505.c | ether_setup(dev); |
dev | 1243 | drivers/net/3c505.c | adapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL)); |
dev | 1250 | drivers/net/3c505.c | dev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0; |
dev | 1260 | drivers/net/3c505.c | elp_sense (struct device * dev) |
dev | 1263 | drivers/net/3c505.c | int addr=dev->base_addr; |
dev | 1264 | drivers/net/3c505.c | char *name=dev->name; |
dev | 1319 | drivers/net/3c505.c | adapter_hard_reset(dev); |
dev | 1330 | drivers/net/3c505.c | elp_autodetect (struct device * dev) |
dev | 1336 | drivers/net/3c505.c | if (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */ |
dev | 1337 | drivers/net/3c505.c | if (elp_sense(dev) == 0) |
dev | 1338 | drivers/net/3c505.c | return dev->base_addr; |
dev | 1339 | drivers/net/3c505.c | } else while ( (dev->base_addr=addr_list[idx++]) ) { |
dev | 1340 | drivers/net/3c505.c | if (elp_sense(dev) == 0) |
dev | 1341 | drivers/net/3c505.c | return dev->base_addr; |
dev | 1346 | drivers/net/3c505.c | printk(couldnot_msg, dev->name); |
dev | 1358 | drivers/net/3c505.c | elplus_probe (struct device *dev) |
dev | 1363 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1369 | drivers/net/3c505.c | dev->base_addr = elp_autodetect(dev); |
dev | 1370 | drivers/net/3c505.c | if ( !(dev->base_addr) ) |
dev | 1377 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr); |
dev | 1386 | drivers/net/3c505.c | if (!send_pcb (dev, &adapter.tx_pcb) || |
dev | 1387 | drivers/net/3c505.c | !receive_pcb(dev, &adapter.rx_pcb) || |
dev | 1390 | drivers/net/3c505.c | printk("%s: not responding to first PCB\n", dev->name); |
dev | 1394 | drivers/net/3c505.c | if (dev->irq) { /* Is there a preset IRQ? */ |
dev | 1395 | drivers/net/3c505.c | if (dev->irq != autoirq_report(0)) { |
dev | 1396 | drivers/net/3c505.c | printk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name); |
dev | 1401 | drivers/net/3c505.c | dev->irq=autoirq_report(0); |
dev | 1402 | drivers/net/3c505.c | switch (dev->irq) { /* Legal, sane? */ |
dev | 1404 | drivers/net/3c505.c | printk("%s: No IRQ reported by autoirq_report().\n",dev->name); |
dev | 1405 | drivers/net/3c505.c | printk("%s: Check the jumpers of your 3c505 board.\n",dev->name); |
dev | 1412 | drivers/net/3c505.c | dev->name, dev->irq); |
dev | 1419 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr); |
dev | 1425 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
dev | 1432 | drivers/net/3c505.c | dev->name, dev->base_addr, dev->irq, |
dev | 1433 | drivers/net/3c505.c | dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], |
dev | 1434 | drivers/net/3c505.c | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); |
dev | 1439 | drivers/net/3c505.c | request_region(dev->base_addr,16,"3c505"); |
dev | 1444 | drivers/net/3c505.c | elp_init(dev); |
dev | 62 | drivers/net/3c507.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 164 | drivers/net/3c507.c | #define SCB_BASE ((unsigned)64*1024 - (dev->mem_end - dev->mem_start)) |
dev | 199 | drivers/net/3c507.c | #define RX_BUF_END (dev->mem_end - dev->mem_start) |
dev | 280 | drivers/net/3c507.c | extern int el16_probe(struct device *dev); /* Called from Space.c */ |
dev | 282 | drivers/net/3c507.c | static int el16_probe1(struct device *dev, int ioaddr); |
dev | 283 | drivers/net/3c507.c | static int el16_open(struct device *dev); |
dev | 284 | drivers/net/3c507.c | static int el16_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 286 | drivers/net/3c507.c | static void el16_rx(struct device *dev); |
dev | 287 | drivers/net/3c507.c | static int el16_close(struct device *dev); |
dev | 288 | drivers/net/3c507.c | static struct enet_statistics *el16_get_stats(struct device *dev); |
dev | 290 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 291 | drivers/net/3c507.c | void init_82586_mem(struct device *dev); |
dev | 306 | drivers/net/3c507.c | el16_probe(struct device *dev) |
dev | 308 | drivers/net/3c507.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 312 | drivers/net/3c507.c | return el16_probe1(dev, base_addr); |
dev | 320 | drivers/net/3c507.c | if (el16_probe1(dev, ioaddr) == 0) |
dev | 327 | drivers/net/3c507.c | int el16_probe1(struct device *dev, int ioaddr) |
dev | 353 | drivers/net/3c507.c | if (dev == NULL) |
dev | 354 | drivers/net/3c507.c | dev = init_etherdev(0, sizeof(struct net_local), 0); |
dev | 359 | drivers/net/3c507.c | printk("%s: 3c507 at %#x,", dev->name, ioaddr); |
dev | 374 | drivers/net/3c507.c | dev->base_addr = ioaddr; |
dev | 378 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
dev | 379 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
dev | 382 | drivers/net/3c507.c | if ((dev->mem_start & 0xf) > 0) |
dev | 383 | drivers/net/3c507.c | net_debug = dev->mem_start & 7; |
dev | 386 | drivers/net/3c507.c | dev->mem_start = MEM_BASE; |
dev | 387 | drivers/net/3c507.c | dev->mem_end = dev->mem_start + 0x10000; |
dev | 401 | drivers/net/3c507.c | dev->mem_start = base; |
dev | 402 | drivers/net/3c507.c | dev->mem_end = base + size; |
dev | 406 | drivers/net/3c507.c | dev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0; |
dev | 407 | drivers/net/3c507.c | dev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
dev | 409 | drivers/net/3c507.c | printk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq, |
dev | 410 | drivers/net/3c507.c | dev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1); |
dev | 416 | drivers/net/3c507.c | if (dev->priv == NULL) |
dev | 417 | drivers/net/3c507.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 418 | drivers/net/3c507.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 420 | drivers/net/3c507.c | dev->open = el16_open; |
dev | 421 | drivers/net/3c507.c | dev->stop = el16_close; |
dev | 422 | drivers/net/3c507.c | dev->hard_start_xmit = el16_send_packet; |
dev | 423 | drivers/net/3c507.c | dev->get_stats = el16_get_stats; |
dev | 425 | drivers/net/3c507.c | ether_setup(dev); /* Generic ethernet behaviour */ |
dev | 433 | drivers/net/3c507.c | el16_open(struct device *dev) |
dev | 435 | drivers/net/3c507.c | irq2dev_map[dev->irq] = dev; |
dev | 438 | drivers/net/3c507.c | init_82586_mem(dev); |
dev | 440 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 441 | drivers/net/3c507.c | dev->interrupt = 0; |
dev | 442 | drivers/net/3c507.c | dev->start = 1; |
dev | 447 | drivers/net/3c507.c | el16_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 449 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 450 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
dev | 451 | drivers/net/3c507.c | short *shmem = (short*)dev->mem_start; |
dev | 453 | drivers/net/3c507.c | if (dev->tbusy) { |
dev | 456 | drivers/net/3c507.c | int tickssofar = jiffies - dev->trans_start; |
dev | 460 | drivers/net/3c507.c | printk("%s: transmit timed out, %s? ", dev->name, |
dev | 467 | drivers/net/3c507.c | init_82586_mem(dev); |
dev | 475 | drivers/net/3c507.c | dev->tbusy=0; |
dev | 476 | drivers/net/3c507.c | dev->trans_start = jiffies; |
dev | 483 | drivers/net/3c507.c | dev_tint(dev); |
dev | 488 | drivers/net/3c507.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 489 | drivers/net/3c507.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 496 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
dev | 497 | drivers/net/3c507.c | dev->trans_start = jiffies; |
dev | 514 | drivers/net/3c507.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 520 | drivers/net/3c507.c | if (dev == NULL) { |
dev | 524 | drivers/net/3c507.c | dev->interrupt = 1; |
dev | 526 | drivers/net/3c507.c | ioaddr = dev->base_addr; |
dev | 527 | drivers/net/3c507.c | lp = (struct net_local *)dev->priv; |
dev | 528 | drivers/net/3c507.c | shmem = ((ushort*)dev->mem_start); |
dev | 533 | drivers/net/3c507.c | printk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status); |
dev | 550 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 571 | drivers/net/3c507.c | el16_rx(dev); |
dev | 577 | drivers/net/3c507.c | if ((status & 0x0700) != 0x0200 && dev->start) { |
dev | 580 | drivers/net/3c507.c | dev->name, status); |
dev | 587 | drivers/net/3c507.c | if ((status & 0x0070) != 0x0040 && dev->start) { |
dev | 593 | drivers/net/3c507.c | dev->name, status); |
dev | 594 | drivers/net/3c507.c | init_rx_bufs(dev); |
dev | 612 | drivers/net/3c507.c | el16_close(struct device *dev) |
dev | 614 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
dev | 615 | drivers/net/3c507.c | ushort *shmem = (short*)dev->mem_start; |
dev | 617 | drivers/net/3c507.c | dev->tbusy = 1; |
dev | 618 | drivers/net/3c507.c | dev->start = 0; |
dev | 630 | drivers/net/3c507.c | irq2dev_map[dev->irq] = 0; |
dev | 640 | drivers/net/3c507.c | el16_get_stats(struct device *dev) |
dev | 642 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 651 | drivers/net/3c507.c | init_rx_bufs(struct device *dev) |
dev | 653 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 662 | drivers/net/3c507.c | write_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf); |
dev | 690 | drivers/net/3c507.c | (dev->mem_start + lp->rx_tail + 2); |
dev | 697 | drivers/net/3c507.c | init_82586_mem(struct device *dev) |
dev | 699 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 700 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
dev | 701 | drivers/net/3c507.c | ushort *shmem = (short*)dev->mem_start; |
dev | 712 | drivers/net/3c507.c | memcpy((void*)dev->mem_end-10, init_words, 10); |
dev | 715 | drivers/net/3c507.c | memcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10); |
dev | 718 | drivers/net/3c507.c | memcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr, |
dev | 719 | drivers/net/3c507.c | sizeof(dev->dev_addr)); |
dev | 725 | drivers/net/3c507.c | init_rx_bufs(dev); |
dev | 739 | drivers/net/3c507.c | "cmd %04x.\n", dev->name, |
dev | 750 | drivers/net/3c507.c | printk("%s: Initialized 82586, status %04x.\n", dev->name, |
dev | 756 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 758 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 759 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
dev | 761 | drivers/net/3c507.c | ushort *write_ptr = (ushort *)(dev->mem_start + tx_block); |
dev | 784 | drivers/net/3c507.c | *(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block; |
dev | 794 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
dev | 798 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 802 | drivers/net/3c507.c | el16_rx(struct device *dev) |
dev | 804 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 805 | drivers/net/3c507.c | short *shmem = (short*)dev->mem_start; |
dev | 812 | drivers/net/3c507.c | ushort *read_frame = (short *)(dev->mem_start + rx_head); |
dev | 816 | drivers/net/3c507.c | ushort *data_frame = (short *)(dev->mem_start + data_buffer_addr); |
dev | 822 | drivers/net/3c507.c | "next %04x data-buf @%04x %04x.\n", dev->name, rx_head, |
dev | 840 | drivers/net/3c507.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 845 | drivers/net/3c507.c | skb->dev = dev; |
dev | 850 | drivers/net/3c507.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 859 | drivers/net/3c507.c | *(short*)(dev->mem_start + rx_tail + 2) = 0x0000; |
dev | 103 | drivers/net/3c509.c | static int el3_open(struct device *dev); |
dev | 104 | drivers/net/3c509.c | static int el3_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 106 | drivers/net/3c509.c | static void update_stats(int addr, struct device *dev); |
dev | 107 | drivers/net/3c509.c | static struct enet_statistics *el3_get_stats(struct device *dev); |
dev | 108 | drivers/net/3c509.c | static int el3_rx(struct device *dev); |
dev | 109 | drivers/net/3c509.c | static int el3_close(struct device *dev); |
dev | 111 | drivers/net/3c509.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 116 | drivers/net/3c509.c | int el3_probe(struct device *dev) |
dev | 120 | drivers/net/3c509.c | short *phys_addr = (short *)dev->dev_addr; |
dev | 206 | drivers/net/3c509.c | if (dev->base_addr != 0 |
dev | 207 | drivers/net/3c509.c | && dev->base_addr != (unsigned short)ioaddr) { |
dev | 224 | drivers/net/3c509.c | dev->base_addr = ioaddr; |
dev | 225 | drivers/net/3c509.c | dev->irq = irq; |
dev | 226 | drivers/net/3c509.c | dev->if_port = if_port; |
dev | 227 | drivers/net/3c509.c | request_region(dev->base_addr, 16,"3c509"); |
dev | 232 | drivers/net/3c509.c | dev->name, dev->base_addr, current_tag, if_names[dev->if_port]); |
dev | 237 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
dev | 238 | drivers/net/3c509.c | printk(", IRQ %d.\n", dev->irq); |
dev | 241 | drivers/net/3c509.c | dev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL); |
dev | 242 | drivers/net/3c509.c | memset(dev->priv, 0, sizeof(struct el3_private)); |
dev | 248 | drivers/net/3c509.c | dev->open = &el3_open; |
dev | 249 | drivers/net/3c509.c | dev->hard_start_xmit = &el3_start_xmit; |
dev | 250 | drivers/net/3c509.c | dev->stop = &el3_close; |
dev | 251 | drivers/net/3c509.c | dev->get_stats = &el3_get_stats; |
dev | 253 | drivers/net/3c509.c | dev->set_multicast_list = &set_multicast_list; |
dev | 257 | drivers/net/3c509.c | ether_setup(dev); |
dev | 300 | drivers/net/3c509.c | el3_open(struct device *dev) |
dev | 302 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 309 | drivers/net/3c509.c | if (request_irq(dev->irq, &el3_interrupt, 0, "3c509")) { |
dev | 315 | drivers/net/3c509.c | printk("%s: Opening, IRQ %d status@%x %4.4x.\n", dev->name, |
dev | 316 | drivers/net/3c509.c | dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); |
dev | 321 | drivers/net/3c509.c | irq2dev_map[dev->irq] = dev; |
dev | 324 | drivers/net/3c509.c | outw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ); |
dev | 330 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
dev | 332 | drivers/net/3c509.c | if (dev->if_port == 3) |
dev | 335 | drivers/net/3c509.c | else if (dev->if_port == 0) { |
dev | 356 | drivers/net/3c509.c | dev->interrupt = 0; |
dev | 357 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 358 | drivers/net/3c509.c | dev->start = 1; |
dev | 369 | drivers/net/3c509.c | dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); |
dev | 378 | drivers/net/3c509.c | el3_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 380 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 381 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 384 | drivers/net/3c509.c | if (dev->tbusy) { |
dev | 385 | drivers/net/3c509.c | int tickssofar = jiffies - dev->trans_start; |
dev | 389 | drivers/net/3c509.c | dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS)); |
dev | 390 | drivers/net/3c509.c | dev->trans_start = jiffies; |
dev | 394 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 398 | drivers/net/3c509.c | dev_tint(dev); |
dev | 407 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
dev | 415 | drivers/net/3c509.c | " Tx %2.2x Rx %4.4x.\n", dev->name, status, |
dev | 427 | drivers/net/3c509.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 428 | drivers/net/3c509.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 436 | drivers/net/3c509.c | dev->trans_start = jiffies; |
dev | 438 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 465 | drivers/net/3c509.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 469 | drivers/net/3c509.c | if (dev == NULL) { |
dev | 474 | drivers/net/3c509.c | if (dev->interrupt) |
dev | 475 | drivers/net/3c509.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 476 | drivers/net/3c509.c | dev->interrupt = 1; |
dev | 478 | drivers/net/3c509.c | ioaddr = dev->base_addr; |
dev | 482 | drivers/net/3c509.c | printk("%s: interrupt, status %4.4x.\n", dev->name, status); |
dev | 487 | drivers/net/3c509.c | el3_rx(dev); |
dev | 494 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 498 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
dev | 502 | drivers/net/3c509.c | dev->name, status); |
dev | 513 | drivers/net/3c509.c | printk("%s: exiting interrupt, status %4.4x.\n", dev->name, |
dev | 517 | drivers/net/3c509.c | dev->interrupt = 0; |
dev | 523 | drivers/net/3c509.c | el3_get_stats(struct device *dev) |
dev | 525 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 530 | drivers/net/3c509.c | update_stats(dev->base_addr, dev); |
dev | 540 | drivers/net/3c509.c | static void update_stats(int ioaddr, struct device *dev) |
dev | 542 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 569 | drivers/net/3c509.c | el3_rx(struct device *dev) |
dev | 571 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 572 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 600 | drivers/net/3c509.c | skb->dev = dev; |
dev | 606 | drivers/net/3c509.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 613 | drivers/net/3c509.c | dev->name, pkt_len); |
dev | 633 | drivers/net/3c509.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 635 | drivers/net/3c509.c | short ioaddr = dev->base_addr; |
dev | 640 | drivers/net/3c509.c | printk("%s: Setting Rx mode to %d addresses.\n", dev->name, num_addrs); |
dev | 654 | drivers/net/3c509.c | el3_close(struct device *dev) |
dev | 656 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 659 | drivers/net/3c509.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 661 | drivers/net/3c509.c | dev->tbusy = 1; |
dev | 662 | drivers/net/3c509.c | dev->start = 0; |
dev | 671 | drivers/net/3c509.c | if (dev->if_port == 3) |
dev | 674 | drivers/net/3c509.c | else if (dev->if_port == 0) { |
dev | 680 | drivers/net/3c509.c | free_irq(dev->irq); |
dev | 687 | drivers/net/3c509.c | irq2dev_map[dev->irq] = 0; |
dev | 689 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
dev | 95 | drivers/net/8390.c | static void ei_tx_intr(struct device *dev); |
dev | 96 | drivers/net/8390.c | static void ei_receive(struct device *dev); |
dev | 97 | drivers/net/8390.c | static void ei_rx_overrun(struct device *dev); |
dev | 100 | drivers/net/8390.c | static void NS8390_trigger_send(struct device *dev, unsigned int length, |
dev | 103 | drivers/net/8390.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 111 | drivers/net/8390.c | int ei_open(struct device *dev) |
dev | 113 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 116 | drivers/net/8390.c | printk("%s: Opening a non-existent physical device\n", dev->name); |
dev | 120 | drivers/net/8390.c | irq2dev_map[dev->irq] = dev; |
dev | 121 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 122 | drivers/net/8390.c | dev->start = 1; |
dev | 127 | drivers/net/8390.c | static int ei_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 129 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 130 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 139 | drivers/net/8390.c | if (dev->tbusy) { /* Do timeouts, just like the 8003 driver. */ |
dev | 141 | drivers/net/8390.c | int tickssofar = jiffies - dev->trans_start; |
dev | 146 | drivers/net/8390.c | if (dev->start == 0) { |
dev | 147 | drivers/net/8390.c | printk("%s: xmit on stopped card\n", dev->name); |
dev | 151 | drivers/net/8390.c | dev->name, txsr, isr); |
dev | 154 | drivers/net/8390.c | printk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq); |
dev | 157 | drivers/net/8390.c | printk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name); |
dev | 162 | drivers/net/8390.c | ei_reset_8390(dev); |
dev | 163 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 164 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 171 | drivers/net/8390.c | dev_tint(dev); |
dev | 181 | drivers/net/8390.c | if (dev->interrupt) { |
dev | 182 | drivers/net/8390.c | printk("%s: Tx request while isr active.\n",dev->name); |
dev | 197 | drivers/net/8390.c | dev->name, ei_local->tx2, ei_local->lasttx, |
dev | 204 | drivers/net/8390.c | dev->name, ei_local->tx1, ei_local->lasttx, |
dev | 209 | drivers/net/8390.c | dev->name, dev->interrupt, ei_local->tx1, |
dev | 212 | drivers/net/8390.c | dev->tbusy = 1; |
dev | 216 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, output_page); |
dev | 219 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, output_page); |
dev | 220 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 228 | drivers/net/8390.c | dev->tbusy = (ei_local->tx1 && ei_local->tx2); |
dev | 230 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, ei_local->tx_start_page); |
dev | 232 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, ei_local->tx_start_page); |
dev | 233 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 234 | drivers/net/8390.c | dev->tbusy = 1; |
dev | 250 | drivers/net/8390.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 255 | drivers/net/8390.c | if (dev == NULL) { |
dev | 259 | drivers/net/8390.c | e8390_base = dev->base_addr; |
dev | 260 | drivers/net/8390.c | ei_local = (struct ei_device *) dev->priv; |
dev | 261 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
dev | 266 | drivers/net/8390.c | dev->name, inb_p(e8390_base + EN0_ISR), |
dev | 271 | drivers/net/8390.c | dev->interrupt = 1; |
dev | 276 | drivers/net/8390.c | printk("%s: interrupt(isr=%#2.2x).\n", dev->name, |
dev | 282 | drivers/net/8390.c | if (dev->start == 0) { |
dev | 283 | drivers/net/8390.c | printk("%s: interrupt from stopped card\n", dev->name); |
dev | 288 | drivers/net/8390.c | ei_rx_overrun(dev); |
dev | 291 | drivers/net/8390.c | ei_receive(dev); |
dev | 295 | drivers/net/8390.c | ei_tx_intr(dev); |
dev | 320 | drivers/net/8390.c | dev->name, interrupts); |
dev | 323 | drivers/net/8390.c | printk("%s: unknown interrupt %#2x\n", dev->name, interrupts); |
dev | 327 | drivers/net/8390.c | dev->interrupt = 0; |
dev | 333 | drivers/net/8390.c | static void ei_tx_intr(struct device *dev) |
dev | 335 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 337 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 348 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 351 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); |
dev | 352 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 362 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 365 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); |
dev | 366 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 373 | drivers/net/8390.c | dev->name, ei_local->lasttx); |
dev | 376 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 397 | drivers/net/8390.c | static void ei_receive(struct device *dev) |
dev | 399 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 400 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 423 | drivers/net/8390.c | dev->name, this_frame, ei_local->current_page); |
dev | 429 | drivers/net/8390.c | ei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame, |
dev | 452 | drivers/net/8390.c | dev->name, rx_frame.count, rx_frame.status, |
dev | 462 | drivers/net/8390.c | dev->name, pkt_len); |
dev | 467 | drivers/net/8390.c | skb->dev = dev; |
dev | 469 | drivers/net/8390.c | ei_block_input(dev, pkt_len, (char *) skb->data, |
dev | 471 | drivers/net/8390.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 479 | drivers/net/8390.c | dev->name, rx_frame.status, rx_frame.next, |
dev | 488 | drivers/net/8390.c | printk("%s: next frame inconsistency, %#2x\n", dev->name, |
dev | 510 | drivers/net/8390.c | static void ei_rx_overrun(struct device *dev) |
dev | 512 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 514 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 520 | drivers/net/8390.c | printk("%s: Receiver overrun.\n", dev->name); |
dev | 533 | drivers/net/8390.c | dev->name); |
dev | 534 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 539 | drivers/net/8390.c | ei_receive(dev); |
dev | 547 | drivers/net/8390.c | static struct enet_statistics *get_stats(struct device *dev) |
dev | 549 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
dev | 550 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 553 | drivers/net/8390.c | if (dev->start == 0) return &ei_local->stat; |
dev | 570 | drivers/net/8390.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 572 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
dev | 586 | drivers/net/8390.c | int ethdev_init(struct device *dev) |
dev | 591 | drivers/net/8390.c | if (dev->priv == NULL) { |
dev | 594 | drivers/net/8390.c | dev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL); |
dev | 595 | drivers/net/8390.c | memset(dev->priv, 0, sizeof(struct ei_device)); |
dev | 596 | drivers/net/8390.c | ei_local = (struct ei_device *)dev->priv; |
dev | 603 | drivers/net/8390.c | if (dev->open == NULL) |
dev | 604 | drivers/net/8390.c | dev->open = &ei_open; |
dev | 606 | drivers/net/8390.c | dev->hard_start_xmit = &ei_start_xmit; |
dev | 607 | drivers/net/8390.c | dev->get_stats = get_stats; |
dev | 609 | drivers/net/8390.c | dev->set_multicast_list = &set_multicast_list; |
dev | 612 | drivers/net/8390.c | ether_setup(dev); |
dev | 620 | drivers/net/8390.c | void NS8390_init(struct device *dev, int startp) |
dev | 622 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 623 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 654 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
dev | 664 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 665 | drivers/net/8390.c | dev->interrupt = 0; |
dev | 680 | drivers/net/8390.c | static void NS8390_trigger_send(struct device *dev, unsigned int length, |
dev | 683 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 689 | drivers/net/8390.c | dev->name); |
dev | 23 | drivers/net/8390.h | extern int ethif_init(struct device *dev); |
dev | 24 | drivers/net/8390.h | extern int ethdev_init(struct device *dev); |
dev | 25 | drivers/net/8390.h | extern void NS8390_init(struct device *dev, int startp); |
dev | 26 | drivers/net/8390.h | extern int ei_open(struct device *dev); |
dev | 69 | drivers/net/8390.h | #define ei_status (*(struct ei_device *)(dev->priv)) |
dev | 41 | drivers/net/Space.c | extern int ultra_probe(struct device *dev); |
dev | 42 | drivers/net/Space.c | extern int wd_probe(struct device *dev); |
dev | 43 | drivers/net/Space.c | extern int el2_probe(struct device *dev); |
dev | 44 | drivers/net/Space.c | extern int ne_probe(struct device *dev); |
dev | 45 | drivers/net/Space.c | extern int hp_probe(struct device *dev); |
dev | 46 | drivers/net/Space.c | extern int hp_plus_probe(struct device *dev); |
dev | 75 | drivers/net/Space.c | ethif_probe(struct device *dev) |
dev | 77 | drivers/net/Space.c | short base_addr = dev->base_addr; |
dev | 84 | drivers/net/Space.c | && ultra_probe(dev) |
dev | 87 | drivers/net/Space.c | && wd_probe(dev) |
dev | 90 | drivers/net/Space.c | && el2_probe(dev) |
dev | 93 | drivers/net/Space.c | && ne_probe(dev) |
dev | 96 | drivers/net/Space.c | && hp_probe(dev) |
dev | 99 | drivers/net/Space.c | && hp_plus_probe(dev) |
dev | 102 | drivers/net/Space.c | && at1500_probe(dev) |
dev | 105 | drivers/net/Space.c | && at1700_probe(dev) |
dev | 108 | drivers/net/Space.c | && el3_probe(dev) |
dev | 111 | drivers/net/Space.c | && znet_probe(dev) |
dev | 114 | drivers/net/Space.c | && express_probe(dev) |
dev | 117 | drivers/net/Space.c | && eepro_probe(dev) |
dev | 120 | drivers/net/Space.c | && depca_probe(dev) |
dev | 123 | drivers/net/Space.c | && ewrk3_probe(dev) |
dev | 126 | drivers/net/Space.c | && de4x5_probe(dev) |
dev | 129 | drivers/net/Space.c | && apricot_probe(dev) |
dev | 132 | drivers/net/Space.c | && el1_probe(dev) |
dev | 135 | drivers/net/Space.c | && wavelan_probe(dev) |
dev | 138 | drivers/net/Space.c | && el16_probe(dev) |
dev | 141 | drivers/net/Space.c | && elplus_probe(dev) |
dev | 144 | drivers/net/Space.c | && ac3200_probe(dev) |
dev | 147 | drivers/net/Space.c | && e2100_probe(dev) |
dev | 150 | drivers/net/Space.c | && de600_probe(dev) |
dev | 153 | drivers/net/Space.c | && de620_probe(dev) |
dev | 156 | drivers/net/Space.c | && SK_init(dev) |
dev | 159 | drivers/net/Space.c | && ni52_probe(dev) |
dev | 162 | drivers/net/Space.c | && ni65_probe(dev) |
dev | 192 | drivers/net/Space.c | extern int arcnet_probe(struct device *dev); |
dev | 341 | drivers/net/Space.c | extern int dummy_init(struct device *dev); |
dev | 349 | drivers/net/Space.c | extern int eql_init(struct device *dev); |
dev | 366 | drivers/net/Space.c | extern int tok_probe(struct device *dev); |
dev | 383 | drivers/net/Space.c | extern int tok_probe(struct device *dev); |
dev | 437 | drivers/net/Space.c | extern int loopback_init(struct device *dev); |
dev | 57 | drivers/net/ac3200.c | int ac3200_probe(struct device *dev); |
dev | 58 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev); |
dev | 60 | drivers/net/ac3200.c | static int ac_open(struct device *dev); |
dev | 61 | drivers/net/ac3200.c | static void ac_reset_8390(struct device *dev); |
dev | 62 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, |
dev | 64 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, const int count, |
dev | 66 | drivers/net/ac3200.c | static int ac_close_card(struct device *dev); |
dev | 75 | drivers/net/ac3200.c | int ac3200_probe(struct device *dev) |
dev | 77 | drivers/net/ac3200.c | unsigned short ioaddr = dev->base_addr; |
dev | 80 | drivers/net/ac3200.c | return ac_probe1(ioaddr, dev); |
dev | 89 | drivers/net/ac3200.c | if (ac_probe1(ioaddr, dev) == 0) |
dev | 95 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev) |
dev | 126 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
dev | 136 | drivers/net/ac3200.c | if (dev->irq == 0) |
dev | 137 | drivers/net/ac3200.c | dev->irq = config2irq(inb(ioaddr + AC_CONFIG)); |
dev | 138 | drivers/net/ac3200.c | else if (dev->irq == 2) |
dev | 139 | drivers/net/ac3200.c | dev->irq = 9; |
dev | 141 | drivers/net/ac3200.c | if (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) { |
dev | 142 | drivers/net/ac3200.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 146 | drivers/net/ac3200.c | dev->base_addr = ioaddr; |
dev | 149 | drivers/net/ac3200.c | if (dev->mem_start) { /* Override the value from the board. */ |
dev | 151 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
dev | 159 | drivers/net/ac3200.c | dev->if_port = inb(ioaddr + AC_CONFIG) >> 6; |
dev | 160 | drivers/net/ac3200.c | dev->mem_start = config2mem(inb(ioaddr + AC_CONFIG)); |
dev | 161 | drivers/net/ac3200.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 162 | drivers/net/ac3200.c | dev->mem_end = dev->rmem_end = dev->mem_start |
dev | 165 | drivers/net/ac3200.c | ethdev_init(dev); |
dev | 174 | drivers/net/ac3200.c | dev->name, ioaddr, dev->irq, port_name[dev->if_port], |
dev | 175 | drivers/net/ac3200.c | dev->mem_start, dev->mem_end-1); |
dev | 184 | drivers/net/ac3200.c | dev->open = &ac_open; |
dev | 185 | drivers/net/ac3200.c | dev->stop = &ac_close_card; |
dev | 186 | drivers/net/ac3200.c | NS8390_init(dev, 0); |
dev | 190 | drivers/net/ac3200.c | static int ac_open(struct device *dev) |
dev | 194 | drivers/net/ac3200.c | int ioaddr = dev->base_addr; |
dev | 196 | drivers/net/ac3200.c | if (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) |
dev | 200 | drivers/net/ac3200.c | return ei_open(dev); |
dev | 203 | drivers/net/ac3200.c | static void ac_reset_8390(struct device *dev) |
dev | 205 | drivers/net/ac3200.c | ushort ioaddr = dev->base_addr; |
dev | 220 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
dev | 223 | drivers/net/ac3200.c | long xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8); |
dev | 225 | drivers/net/ac3200.c | if (xfer_start + count > dev->rmem_end) { |
dev | 227 | drivers/net/ac3200.c | int semi_count = dev->rmem_end - xfer_start; |
dev | 230 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 231 | drivers/net/ac3200.c | return dev->rmem_start + count; |
dev | 238 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, int count, |
dev | 241 | drivers/net/ac3200.c | long shmem = dev->mem_start + ((start_page - AC_START_PG)<<8); |
dev | 246 | drivers/net/ac3200.c | static int ac_close_card(struct device *dev) |
dev | 248 | drivers/net/ac3200.c | dev->start = 0; |
dev | 249 | drivers/net/ac3200.c | dev->tbusy = 1; |
dev | 252 | drivers/net/ac3200.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 257 | drivers/net/ac3200.c | free_irq(dev->irq); |
dev | 258 | drivers/net/ac3200.c | irq2dev_map[dev->irq] = 0; |
dev | 261 | drivers/net/ac3200.c | NS8390_init(dev, 0); |
dev | 187 | drivers/net/apricot.c | static int i596_open(struct device *dev); |
dev | 188 | drivers/net/apricot.c | static int i596_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 190 | drivers/net/apricot.c | static int i596_close(struct device *dev); |
dev | 191 | drivers/net/apricot.c | static struct enet_statistics *i596_get_stats(struct device *dev); |
dev | 192 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd); |
dev | 195 | drivers/net/apricot.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 200 | drivers/net/apricot.c | init_rx_bufs(struct device *dev, int num) |
dev | 202 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 208 | drivers/net/apricot.c | if (i596_debug > 1) printk ("%s: init_rx_bufs %d.\n", dev->name, num); |
dev | 238 | drivers/net/apricot.c | remove_rx_bufs(struct device *dev) |
dev | 240 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 255 | drivers/net/apricot.c | init_i596_mem(struct device *dev) |
dev | 257 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 258 | drivers/net/apricot.c | short ioaddr = dev->base_addr; |
dev | 278 | drivers/net/apricot.c | if (i596_debug > 2) printk("%s: starting i82596.\n", dev->name); |
dev | 288 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
dev | 296 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_conf); |
dev | 298 | drivers/net/apricot.c | memcpy (lp->eth_addr, dev->dev_addr, 6); |
dev | 300 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_add); |
dev | 303 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->tdr); |
dev | 310 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
dev | 330 | drivers/net/apricot.c | i596_rx(struct device *dev) |
dev | 332 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 351 | drivers/net/apricot.c | printk ("%s: i596_rx Memory squeeze, dropping packet.\n", dev->name); |
dev | 357 | drivers/net/apricot.c | skb->dev = dev; |
dev | 360 | drivers/net/apricot.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 448 | drivers/net/apricot.c | i596_reset(struct device *dev, struct i596_private *lp, int ioaddr) |
dev | 462 | drivers/net/apricot.c | dev->start = 0; |
dev | 463 | drivers/net/apricot.c | dev->tbusy = 1; |
dev | 480 | drivers/net/apricot.c | i596_rx(dev); |
dev | 482 | drivers/net/apricot.c | dev->start = 1; |
dev | 483 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 484 | drivers/net/apricot.c | dev->interrupt = 0; |
dev | 485 | drivers/net/apricot.c | init_i596_mem(dev); |
dev | 488 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd) |
dev | 490 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 491 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
dev | 532 | drivers/net/apricot.c | printk("%s: command unit timed out, status resetting.\n", dev->name); |
dev | 534 | drivers/net/apricot.c | i596_reset(dev, lp, ioaddr); |
dev | 539 | drivers/net/apricot.c | i596_open(struct device *dev) |
dev | 544 | drivers/net/apricot.c | printk("%s: i596_open() irq %d.\n", dev->name, dev->irq); |
dev | 546 | drivers/net/apricot.c | if (request_irq(dev->irq, &i596_interrupt, 0, "apricot")) |
dev | 549 | drivers/net/apricot.c | irq2dev_map[dev->irq] = dev; |
dev | 551 | drivers/net/apricot.c | i = init_rx_bufs(dev, RX_RING_SIZE); |
dev | 553 | drivers/net/apricot.c | if ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE) |
dev | 554 | drivers/net/apricot.c | printk("%s: only able to allocate %d receive buffers\n", dev->name, i); |
dev | 558 | drivers/net/apricot.c | free_irq(dev->irq); |
dev | 559 | drivers/net/apricot.c | irq2dev_map[dev->irq] = 0; |
dev | 563 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 564 | drivers/net/apricot.c | dev->interrupt = 0; |
dev | 565 | drivers/net/apricot.c | dev->start = 1; |
dev | 571 | drivers/net/apricot.c | init_i596_mem(dev); |
dev | 577 | drivers/net/apricot.c | i596_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 579 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 580 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
dev | 583 | drivers/net/apricot.c | if (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name); |
dev | 586 | drivers/net/apricot.c | if (dev->tbusy) { |
dev | 587 | drivers/net/apricot.c | int tickssofar = jiffies - dev->trans_start; |
dev | 591 | drivers/net/apricot.c | dev->name); |
dev | 598 | drivers/net/apricot.c | i596_reset(dev,lp, ioaddr); |
dev | 608 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 609 | drivers/net/apricot.c | dev->trans_start = jiffies; |
dev | 616 | drivers/net/apricot.c | dev_tint(dev); |
dev | 623 | drivers/net/apricot.c | if (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name); |
dev | 627 | drivers/net/apricot.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 628 | drivers/net/apricot.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 632 | drivers/net/apricot.c | dev->trans_start = jiffies; |
dev | 637 | drivers/net/apricot.c | printk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name); |
dev | 658 | drivers/net/apricot.c | i596_add_cmd(dev, (struct i596_cmd *)tx_cmd); |
dev | 664 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 686 | drivers/net/apricot.c | int apricot_probe(struct device *dev) |
dev | 720 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
dev | 721 | drivers/net/apricot.c | ether_setup(dev); |
dev | 722 | drivers/net/apricot.c | printk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr); |
dev | 725 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = eth_addr[i]); |
dev | 727 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
dev | 728 | drivers/net/apricot.c | dev->irq = 10; |
dev | 729 | drivers/net/apricot.c | printk(" IRQ %d.\n", dev->irq); |
dev | 734 | drivers/net/apricot.c | dev->open = &i596_open; |
dev | 735 | drivers/net/apricot.c | dev->stop = &i596_close; |
dev | 736 | drivers/net/apricot.c | dev->hard_start_xmit = &i596_start_xmit; |
dev | 737 | drivers/net/apricot.c | dev->get_stats = &i596_get_stats; |
dev | 739 | drivers/net/apricot.c | dev->set_multicast_list = &set_multicast_list; |
dev | 742 | drivers/net/apricot.c | dev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL); |
dev | 744 | drivers/net/apricot.c | dev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0); |
dev | 746 | drivers/net/apricot.c | lp = (struct i596_private *)dev->priv; |
dev | 758 | drivers/net/apricot.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 764 | drivers/net/apricot.c | if (dev == NULL) { |
dev | 769 | drivers/net/apricot.c | if (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq); |
dev | 771 | drivers/net/apricot.c | if (dev->interrupt) |
dev | 772 | drivers/net/apricot.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 774 | drivers/net/apricot.c | dev->interrupt = 1; |
dev | 776 | drivers/net/apricot.c | ioaddr = dev->base_addr; |
dev | 778 | drivers/net/apricot.c | lp = (struct i596_private *)dev->priv; |
dev | 783 | drivers/net/apricot.c | printk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command); |
dev | 789 | drivers/net/apricot.c | printk("%s: i596 interrupt, status %4.4x.\n", dev->name, status); |
dev | 798 | drivers/net/apricot.c | printk("%s: i596 interrupt completed command.\n", dev->name); |
dev | 800 | drivers/net/apricot.c | printk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700); |
dev | 852 | drivers/net/apricot.c | printk("%s: link ok.\n", dev->name); |
dev | 857 | drivers/net/apricot.c | printk("%s: Transceiver problem.\n", dev->name); |
dev | 859 | drivers/net/apricot.c | printk("%s: Termination problem.\n", dev->name); |
dev | 861 | drivers/net/apricot.c | printk("%s: Short circuit.\n", dev->name); |
dev | 863 | drivers/net/apricot.c | printk("%s: Time %ld.\n", dev->name, status & 0x07ff); |
dev | 880 | drivers/net/apricot.c | if ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START; |
dev | 887 | drivers/net/apricot.c | printk("%s: i596 interrupt received a frame.\n", dev->name); |
dev | 889 | drivers/net/apricot.c | printk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070); |
dev | 891 | drivers/net/apricot.c | i596_rx(dev); |
dev | 893 | drivers/net/apricot.c | if (dev->start) ack_cmd |= RX_START; |
dev | 905 | drivers/net/apricot.c | printk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command); |
dev | 915 | drivers/net/apricot.c | printk("%s: exiting interrupt.\n", dev->name); |
dev | 917 | drivers/net/apricot.c | dev->interrupt = 0; |
dev | 922 | drivers/net/apricot.c | i596_close(struct device *dev) |
dev | 924 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
dev | 925 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 928 | drivers/net/apricot.c | dev->start = 0; |
dev | 929 | drivers/net/apricot.c | dev->tbusy = 1; |
dev | 933 | drivers/net/apricot.c | dev->name, lp->scb.status); |
dev | 944 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
dev | 947 | drivers/net/apricot.c | free_irq(dev->irq); |
dev | 948 | drivers/net/apricot.c | irq2dev_map[dev->irq] = 0; |
dev | 949 | drivers/net/apricot.c | remove_rx_bufs(dev); |
dev | 959 | drivers/net/apricot.c | i596_get_stats(struct device *dev) |
dev | 961 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 974 | drivers/net/apricot.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 976 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 980 | drivers/net/apricot.c | printk ("%s: set multicast list %d\n", dev->name, num_addrs); |
dev | 986 | drivers/net/apricot.c | printk ("%s: set_multicast Memory squeeze.\n", dev->name); |
dev | 995 | drivers/net/apricot.c | i596_add_cmd(dev, cmd); |
dev | 1004 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_conf); |
dev | 354 | drivers/net/arcnet.c | extern int arcnet_probe(struct device *dev); |
dev | 356 | drivers/net/arcnet.c | static int arcnet_memprobe(struct device *dev,u_char *addr); |
dev | 357 | drivers/net/arcnet.c | static int arcnet_ioprobe(struct device *dev, short ioaddr); |
dev | 360 | drivers/net/arcnet.c | static int arcnet_open(struct device *dev); |
dev | 361 | drivers/net/arcnet.c | static int arcnet_close(struct device *dev); |
dev | 363 | drivers/net/arcnet.c | static int arcnet_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 365 | drivers/net/arcnet.c | static void careful_xmit_wait(struct device *dev); |
dev | 367 | drivers/net/arcnet.c | #define careful_xmit_wait(dev) |
dev | 369 | drivers/net/arcnet.c | static void arcnet_continue_tx(struct device *dev); |
dev | 370 | drivers/net/arcnet.c | static void arcnet_prepare_tx(struct device *dev,struct ClientData *hdr, |
dev | 372 | drivers/net/arcnet.c | static void arcnet_go_tx(struct device *dev); |
dev | 375 | drivers/net/arcnet.c | static void arcnet_inthandler(struct device *dev); |
dev | 376 | drivers/net/arcnet.c | static void arcnet_rx(struct device *dev,int recbuf); |
dev | 382 | drivers/net/arcnet.c | static struct enet_statistics *arcnet_get_stats(struct device *dev); |
dev | 383 | drivers/net/arcnet.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 386 | drivers/net/arcnet.c | int arc_header(unsigned char *buff,struct device *dev,unsigned short type, |
dev | 388 | drivers/net/arcnet.c | int arc_rebuild_header(void *eth,struct device *dev,unsigned long raddr, |
dev | 390 | drivers/net/arcnet.c | unsigned short arc_type_trans(struct sk_buff *skb,struct device *dev); |
dev | 392 | drivers/net/arcnet.c | static int arcnet_reset(struct device *dev); |
dev | 399 | drivers/net/arcnet.c | #define tx_done(dev) 1 |
dev | 421 | drivers/net/arcnet.c | arcnet_probe(struct device *dev) |
dev | 448 | drivers/net/arcnet.c | int base_addr=dev->base_addr, status=0; |
dev | 466 | drivers/net/arcnet.c | dev->base_addr,dev->irq,dev->mem_start); |
dev | 470 | drivers/net/arcnet.c | status=arcnet_ioprobe(dev, base_addr); |
dev | 484 | drivers/net/arcnet.c | status=arcnet_ioprobe(dev, ioaddr); |
dev | 500 | drivers/net/arcnet.c | dev->mem_start); |
dev | 501 | drivers/net/arcnet.c | if (dev->mem_start) /* value given - probe just that one */ |
dev | 503 | drivers/net/arcnet.c | status=arcnet_memprobe(dev,(u_char *)dev->mem_start); |
dev | 509 | drivers/net/arcnet.c | status=arcnet_memprobe(dev,(u_char *)(*addr)); |
dev | 516 | drivers/net/arcnet.c | if (!dev->base_addr || !dev->irq || !dev->mem_start |
dev | 517 | drivers/net/arcnet.c | || !dev->rmem_start) |
dev | 527 | drivers/net/arcnet.c | int irqval = request_irq(dev->irq, &arcnet_interrupt, 0, |
dev | 531 | drivers/net/arcnet.c | dev->name,dev->irq, irqval); |
dev | 537 | drivers/net/arcnet.c | request_region(dev->base_addr, ETHERCARD_TOTAL_SIZE,"arcnet"); |
dev | 540 | drivers/net/arcnet.c | dev->name, dev->base_addr, dev->irq, dev->mem_start); |
dev | 543 | drivers/net/arcnet.c | dev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL); |
dev | 544 | drivers/net/arcnet.c | memset(dev->priv, 0, sizeof(struct arcnet_local)); |
dev | 545 | drivers/net/arcnet.c | lp=(struct arcnet_local *)(dev->priv); |
dev | 547 | drivers/net/arcnet.c | dev->open = arcnet_open; |
dev | 548 | drivers/net/arcnet.c | dev->stop = arcnet_close; |
dev | 549 | drivers/net/arcnet.c | dev->hard_start_xmit = arcnet_send_packet; |
dev | 550 | drivers/net/arcnet.c | dev->get_stats = arcnet_get_stats; |
dev | 552 | drivers/net/arcnet.c | dev->set_multicast_list = &set_multicast_list; |
dev | 556 | drivers/net/arcnet.c | ether_setup(dev); |
dev | 560 | drivers/net/arcnet.c | dev->type=ARPHRD_ARCNET; |
dev | 561 | drivers/net/arcnet.c | dev->hard_header_len=sizeof(struct ClientData); |
dev | 566 | drivers/net/arcnet.c | dev->mtu=512-sizeof(struct HardHeader)+EXTRA_CLIENTDATA; |
dev | 571 | drivers/net/arcnet.c | dev->addr_len=1; |
dev | 572 | drivers/net/arcnet.c | dev->broadcast[0]=0x00; |
dev | 575 | drivers/net/arcnet.c | arcnet_reset(dev); |
dev | 584 | drivers/net/arcnet.c | dev->dev_addr[0]=lp->arcnum; |
dev | 588 | drivers/net/arcnet.c | dev->hard_header = arc_header; |
dev | 589 | drivers/net/arcnet.c | dev->rebuild_header = arc_rebuild_header; |
dev | 596 | drivers/net/arcnet.c | int arcnet_ioprobe(struct device *dev, short ioaddr) |
dev | 713 | drivers/net/arcnet.c | if (!airq && !(dev->base_addr && dev->irq)) |
dev | 738 | drivers/net/arcnet.c | if (!dev->base_addr) dev->base_addr=ioaddr; |
dev | 740 | drivers/net/arcnet.c | if (dev->irq < 2) /* "Auto-IRQ" */ |
dev | 743 | drivers/net/arcnet.c | dev->irq=airq; |
dev | 745 | drivers/net/arcnet.c | else if (dev->irq == 2) |
dev | 749 | drivers/net/arcnet.c | dev->irq = 9; |
dev | 754 | drivers/net/arcnet.c | dev->base_addr,dev->irq); |
dev | 763 | drivers/net/arcnet.c | int arcnet_memprobe(struct device *dev,u_char *addr) |
dev | 768 | drivers/net/arcnet.c | dev->mem_start=0; |
dev | 800 | drivers/net/arcnet.c | dev->mem_start=(unsigned long)addr; |
dev | 801 | drivers/net/arcnet.c | dev->mem_end=dev->mem_start+512*4-1; |
dev | 802 | drivers/net/arcnet.c | dev->rmem_start=dev->mem_start+512*0; |
dev | 803 | drivers/net/arcnet.c | dev->rmem_end=dev->mem_start+512*2-1; |
dev | 819 | drivers/net/arcnet.c | arcnet_open(struct device *dev) |
dev | 821 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 824 | drivers/net/arcnet.c | if (dev->metric>=10) |
dev | 826 | drivers/net/arcnet.c | net_debug=dev->metric-10; |
dev | 827 | drivers/net/arcnet.c | dev->metric=1; |
dev | 835 | drivers/net/arcnet.c | if (request_irq(dev->irq, &arcnet_interrupt, 0, "arcnet")) { |
dev | 840 | drivers/net/arcnet.c | irq2dev_map[dev->irq] = dev; |
dev | 846 | drivers/net/arcnet.c | if (arcnet_reset(dev) && arcnet_reset(dev)) |
dev | 854 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 855 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 856 | drivers/net/arcnet.c | dev->start=1; |
dev | 864 | drivers/net/arcnet.c | lp->timer.data = (unsigned long)dev; /* pointer to "dev" structure */ |
dev | 879 | drivers/net/arcnet.c | arcnet_close(struct device *dev) |
dev | 881 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 882 | drivers/net/arcnet.c | int ioaddr = dev->base_addr; |
dev | 889 | drivers/net/arcnet.c | dev->tbusy = 1; |
dev | 890 | drivers/net/arcnet.c | dev->start = 0; |
dev | 915 | drivers/net/arcnet.c | arcnet_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 917 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 918 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
dev | 927 | drivers/net/arcnet.c | if (dev->tbusy || lp->in_txhandler) |
dev | 931 | drivers/net/arcnet.c | int tickssofar = jiffies - dev->trans_start; |
dev | 941 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 967 | drivers/net/arcnet.c | dev->trans_start = jiffies; |
dev | 973 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 989 | drivers/net/arcnet.c | inb(STATUS),lp->intx,jiffies-dev->trans_start); |
dev | 990 | drivers/net/arcnet.c | dev_tint(dev); |
dev | 1005 | drivers/net/arcnet.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 1008 | drivers/net/arcnet.c | inb(STATUS),lp->intx,jiffies-dev->trans_start); |
dev | 1029 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1042 | drivers/net/arcnet.c | arcnet_prepare_tx(dev,out->hdr, |
dev | 1045 | drivers/net/arcnet.c | careful_xmit_wait(dev); |
dev | 1053 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1056 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 1077 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1084 | drivers/net/arcnet.c | arcnet_continue_tx(dev); |
dev | 1087 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1088 | drivers/net/arcnet.c | arcnet_continue_tx(dev); |
dev | 1090 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1106 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 1114 | drivers/net/arcnet.c | arcnet_continue_tx(dev); |
dev | 1115 | drivers/net/arcnet.c | careful_xmit_wait(dev); |
dev | 1116 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1117 | drivers/net/arcnet.c | dev->trans_start=jiffies; |
dev | 1124 | drivers/net/arcnet.c | dev->tbusy = 0; |
dev | 1132 | drivers/net/arcnet.c | dev->trans_start=jiffies; |
dev | 1136 | drivers/net/arcnet.c | static void arcnet_continue_tx(struct device *dev) |
dev | 1138 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1166 | drivers/net/arcnet.c | arcnet_prepare_tx(dev,out->hdr,out->seglen,out->data); |
dev | 1174 | drivers/net/arcnet.c | static void careful_xmit_wait(struct device *dev) |
dev | 1176 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
dev | 1177 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1182 | drivers/net/arcnet.c | if (jiffies-dev->trans_start > 20 || !dev->tbusy) |
dev | 1186 | drivers/net/arcnet.c | dev->tbusy,inb(STATUS)); |
dev | 1199 | drivers/net/arcnet.c | arcnet_prepare_tx(struct device *dev,struct ClientData *hdr,short length, |
dev | 1203 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1206 | drivers/net/arcnet.c | (union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1)); |
dev | 1221 | drivers/net/arcnet.c | memset((void *)dev->mem_start+lp->txbuf*512,0x42,512); |
dev | 1297 | drivers/net/arcnet.c | careful_xmit_wait(dev); |
dev | 1317 | drivers/net/arcnet.c | if (inb(STATUS)&TXFREEflag) arcnet_go_tx(dev); |
dev | 1323 | drivers/net/arcnet.c | arcnet_go_tx(struct device *dev) |
dev | 1325 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)dev->priv; |
dev | 1326 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
dev | 1341 | drivers/net/arcnet.c | dev->trans_start = jiffies; |
dev | 1352 | drivers/net/arcnet.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 1354 | drivers/net/arcnet.c | if (dev == NULL) { |
dev | 1360 | drivers/net/arcnet.c | arcnet_inthandler(dev); |
dev | 1364 | drivers/net/arcnet.c | arcnet_inthandler(struct device *dev) |
dev | 1369 | drivers/net/arcnet.c | dev->interrupt = 1; |
dev | 1372 | drivers/net/arcnet.c | ioaddr = dev->base_addr; |
dev | 1373 | drivers/net/arcnet.c | lp = (struct arcnet_local *)dev->priv; |
dev | 1387 | drivers/net/arcnet.c | if (!dev->start) |
dev | 1396 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 1408 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 1426 | drivers/net/arcnet.c | arcnet_rx(dev,!recbuf); |
dev | 1447 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1463 | drivers/net/arcnet.c | if (!lp->txready && dev->tbusy) |
dev | 1465 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 1479 | drivers/net/arcnet.c | arcnet_continue_tx(dev); |
dev | 1481 | drivers/net/arcnet.c | arcnet_go_tx(dev); |
dev | 1495 | drivers/net/arcnet.c | if (!lp->txready && dev->tbusy) |
dev | 1497 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 1513 | drivers/net/arcnet.c | if (dev->start && lp->sending ) |
dev | 1519 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 1525 | drivers/net/arcnet.c | arcnet_rx(struct device *dev,int recbuf) |
dev | 1527 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1528 | drivers/net/arcnet.c | int ioaddr = dev->base_addr; |
dev | 1534 | drivers/net/arcnet.c | (union ArcPacket *)(dev->mem_start+recbuf*512); |
dev | 1603 | drivers/net/arcnet.c | dev->name); |
dev | 1610 | drivers/net/arcnet.c | skb->dev = dev; |
dev | 1672 | drivers/net/arcnet.c | skb->protocol=arc_type_trans(skb,dev); |
dev | 1739 | drivers/net/arcnet.c | dev->name); |
dev | 1752 | drivers/net/arcnet.c | skb->dev=dev; |
dev | 1836 | drivers/net/arcnet.c | skb->protocol=arc_type_trans(skb,dev); |
dev | 1859 | drivers/net/arcnet.c | struct device *dev=(struct device *)arg; |
dev | 1860 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1861 | drivers/net/arcnet.c | short ioaddr=dev->base_addr; |
dev | 1867 | drivers/net/arcnet.c | if (!dev->interrupt && dev->start |
dev | 1874 | drivers/net/arcnet.c | arcnet_inthandler(dev); |
dev | 1887 | drivers/net/arcnet.c | arcnet_get_stats(struct device *dev) |
dev | 1889 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1902 | drivers/net/arcnet.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1905 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)(dev->priv); |
dev | 1907 | drivers/net/arcnet.c | short ioaddr = dev->base_addr; |
dev | 1915 | drivers/net/arcnet.c | int arcnet_reset(struct device *dev) |
dev | 1917 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)dev->priv; |
dev | 1918 | drivers/net/arcnet.c | short ioaddr=dev->base_addr; |
dev | 1925 | drivers/net/arcnet.c | dev->name,inb(STATUS)); |
dev | 1937 | drivers/net/arcnet.c | u_char *cardmem = (u_char *) dev->mem_start; |
dev | 1958 | drivers/net/arcnet.c | memset((void *)dev->mem_start,0x42,2048); |
dev | 1977 | drivers/net/arcnet.c | int arc_header(unsigned char *buff,struct device *dev,unsigned short type, |
dev | 1981 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)(dev->priv); |
dev | 2017 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
dev | 2027 | drivers/net/arcnet.c | if (dev->flags & IFF_LOOPBACK) |
dev | 2030 | drivers/net/arcnet.c | return(dev->hard_header_len); |
dev | 2041 | drivers/net/arcnet.c | return dev->hard_header_len; |
dev | 2046 | drivers/net/arcnet.c | return -dev->hard_header_len; |
dev | 2055 | drivers/net/arcnet.c | int arc_rebuild_header(void *buff,struct device *dev,unsigned long dst, |
dev | 2077 | drivers/net/arcnet.c | return arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0; |
dev | 2088 | drivers/net/arcnet.c | unsigned short arc_type_trans(struct sk_buff *skb,struct device *dev) |
dev | 2094 | drivers/net/arcnet.c | else if(dev->flags&IFF_PROMISC) |
dev | 2097 | drivers/net/arcnet.c | if (head->daddr != dev->dev_addr[0]) |
dev | 55 | drivers/net/at1700.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 116 | drivers/net/at1700.c | extern int at1700_probe(struct device *dev); |
dev | 118 | drivers/net/at1700.c | static int at1700_probe1(struct device *dev, short ioaddr); |
dev | 120 | drivers/net/at1700.c | static int net_open(struct device *dev); |
dev | 121 | drivers/net/at1700.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 123 | drivers/net/at1700.c | static void net_rx(struct device *dev); |
dev | 124 | drivers/net/at1700.c | static int net_close(struct device *dev); |
dev | 125 | drivers/net/at1700.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 126 | drivers/net/at1700.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 142 | drivers/net/at1700.c | at1700_probe(struct device *dev) |
dev | 145 | drivers/net/at1700.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 148 | drivers/net/at1700.c | return at1700_probe1(dev, base_addr); |
dev | 156 | drivers/net/at1700.c | if (at1700_probe1(dev, ioaddr) == 0) |
dev | 172 | drivers/net/at1700.c | int at1700_probe1(struct device *dev, short ioaddr) |
dev | 204 | drivers/net/at1700.c | if (dev == NULL) |
dev | 205 | drivers/net/at1700.c | dev = init_etherdev(0, sizeof(struct net_local), 0); |
dev | 211 | drivers/net/at1700.c | printk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name, |
dev | 214 | drivers/net/at1700.c | dev->base_addr = ioaddr; |
dev | 215 | drivers/net/at1700.c | dev->irq = irq; |
dev | 216 | drivers/net/at1700.c | irq2dev_map[irq] = dev; |
dev | 221 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
dev | 234 | drivers/net/at1700.c | dev->if_port = setup_value >> 8; |
dev | 235 | drivers/net/at1700.c | printk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]); |
dev | 241 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
dev | 254 | drivers/net/at1700.c | outb(dev->if_port, MODE13); |
dev | 263 | drivers/net/at1700.c | if (dev->priv == NULL) |
dev | 264 | drivers/net/at1700.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 265 | drivers/net/at1700.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 267 | drivers/net/at1700.c | dev->open = net_open; |
dev | 268 | drivers/net/at1700.c | dev->stop = net_close; |
dev | 269 | drivers/net/at1700.c | dev->hard_start_xmit = net_send_packet; |
dev | 270 | drivers/net/at1700.c | dev->get_stats = net_get_stats; |
dev | 271 | drivers/net/at1700.c | dev->set_multicast_list = &set_multicast_list; |
dev | 275 | drivers/net/at1700.c | ether_setup(dev); |
dev | 320 | drivers/net/at1700.c | static int net_open(struct device *dev) |
dev | 322 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 323 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 331 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
dev | 355 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 356 | drivers/net/at1700.c | dev->interrupt = 0; |
dev | 357 | drivers/net/at1700.c | dev->start = 1; |
dev | 363 | drivers/net/at1700.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 365 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 366 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 368 | drivers/net/at1700.c | if (dev->tbusy) { |
dev | 371 | drivers/net/at1700.c | int tickssofar = jiffies - dev->trans_start; |
dev | 374 | drivers/net/at1700.c | printk("%s: transmit timed out with status %04x, %s?\n", dev->name, |
dev | 378 | drivers/net/at1700.c | dev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4), |
dev | 387 | drivers/net/at1700.c | dev->tbusy=0; |
dev | 388 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 398 | drivers/net/at1700.c | dev_tint(dev); |
dev | 404 | drivers/net/at1700.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 405 | drivers/net/at1700.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 424 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 426 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 429 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 444 | drivers/net/at1700.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 448 | drivers/net/at1700.c | if (dev == NULL) { |
dev | 452 | drivers/net/at1700.c | dev->interrupt = 1; |
dev | 454 | drivers/net/at1700.c | ioaddr = dev->base_addr; |
dev | 455 | drivers/net/at1700.c | lp = (struct net_local *)dev->priv; |
dev | 460 | drivers/net/at1700.c | printk("%s: Interrupt with status %04x.\n", dev->name, status); |
dev | 463 | drivers/net/at1700.c | net_rx(dev); |
dev | 472 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 473 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 479 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 485 | drivers/net/at1700.c | dev->interrupt = 0; |
dev | 491 | drivers/net/at1700.c | net_rx(struct device *dev) |
dev | 493 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 494 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 503 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), status); |
dev | 523 | drivers/net/at1700.c | dev->name, pkt_len); |
dev | 533 | drivers/net/at1700.c | dev->name, pkt_len); |
dev | 541 | drivers/net/at1700.c | skb->dev = dev; |
dev | 544 | drivers/net/at1700.c | skb->protocol=eth_type_trans(skb, dev); |
dev | 566 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
dev | 572 | drivers/net/at1700.c | static int net_close(struct device *dev) |
dev | 574 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 575 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 577 | drivers/net/at1700.c | dev->tbusy = 1; |
dev | 578 | drivers/net/at1700.c | dev->start = 0; |
dev | 594 | drivers/net/at1700.c | net_get_stats(struct device *dev) |
dev | 596 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 612 | drivers/net/at1700.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 614 | drivers/net/at1700.c | short ioaddr = dev->base_addr; |
dev | 128 | drivers/net/atp.c | extern int atp_probe(struct device *dev); |
dev | 130 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr); |
dev | 131 | drivers/net/atp.c | static void get_node_ID(struct device *dev); |
dev | 133 | drivers/net/atp.c | static int net_open(struct device *dev); |
dev | 134 | drivers/net/atp.c | static void hardware_init(struct device *dev); |
dev | 137 | drivers/net/atp.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 139 | drivers/net/atp.c | static void net_rx(struct device *dev); |
dev | 141 | drivers/net/atp.c | static int net_close(struct device *dev); |
dev | 142 | drivers/net/atp.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 143 | drivers/net/atp.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 153 | drivers/net/atp.c | atp_init(struct device *dev) |
dev | 156 | drivers/net/atp.c | int base_addr = dev->base_addr; |
dev | 159 | drivers/net/atp.c | return atp_probe1(dev, base_addr); |
dev | 168 | drivers/net/atp.c | if (atp_probe1(dev, ioaddr) == 0) |
dev | 175 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr) |
dev | 205 | drivers/net/atp.c | dev->irq = 7; |
dev | 207 | drivers/net/atp.c | dev->irq = 5; |
dev | 211 | drivers/net/atp.c | dev->base_addr = ioaddr; |
dev | 214 | drivers/net/atp.c | get_node_ID(dev); |
dev | 217 | drivers/net/atp.c | "%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr, |
dev | 218 | drivers/net/atp.c | dev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], |
dev | 219 | drivers/net/atp.c | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); |
dev | 228 | drivers/net/atp.c | ether_setup(dev); |
dev | 229 | drivers/net/atp.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 230 | drivers/net/atp.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 234 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 239 | drivers/net/atp.c | dev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4; |
dev | 240 | drivers/net/atp.c | if (dev->mem_end & 0xf) |
dev | 241 | drivers/net/atp.c | net_debug = dev->mem_end & 7; |
dev | 243 | drivers/net/atp.c | dev->open = net_open; |
dev | 244 | drivers/net/atp.c | dev->stop = net_close; |
dev | 245 | drivers/net/atp.c | dev->hard_start_xmit = net_send_packet; |
dev | 246 | drivers/net/atp.c | dev->get_stats = net_get_stats; |
dev | 247 | drivers/net/atp.c | dev->set_multicast_list = &set_multicast_list; |
dev | 252 | drivers/net/atp.c | atp_timed_dev = dev; |
dev | 259 | drivers/net/atp.c | static void get_node_ID(struct device *dev) |
dev | 261 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
dev | 273 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
dev | 321 | drivers/net/atp.c | static int net_open(struct device *dev) |
dev | 327 | drivers/net/atp.c | if (irq2dev_map[dev->irq] != 0 |
dev | 328 | drivers/net/atp.c | || (irq2dev_map[dev->irq] = dev) == 0 |
dev | 329 | drivers/net/atp.c | || request_irq(dev->irq, &net_interrupt, 0, "ATP")) { |
dev | 333 | drivers/net/atp.c | hardware_init(dev); |
dev | 334 | drivers/net/atp.c | dev->start = 1; |
dev | 340 | drivers/net/atp.c | static void hardware_init(struct device *dev) |
dev | 342 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 343 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 349 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
dev | 354 | drivers/net/atp.c | printk("%s: Reset: current Rx mode %d.\n", dev->name, |
dev | 372 | drivers/net/atp.c | dev->tbusy = 0; |
dev | 373 | drivers/net/atp.c | dev->interrupt = 0; |
dev | 414 | drivers/net/atp.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 416 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 417 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 419 | drivers/net/atp.c | if (dev->tbusy) { |
dev | 422 | drivers/net/atp.c | int tickssofar = jiffies - dev->trans_start; |
dev | 425 | drivers/net/atp.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 430 | drivers/net/atp.c | hardware_init(dev); |
dev | 431 | drivers/net/atp.c | dev->tbusy=0; |
dev | 432 | drivers/net/atp.c | dev->trans_start = jiffies; |
dev | 439 | drivers/net/atp.c | dev_tint(dev); |
dev | 445 | drivers/net/atp.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 446 | drivers/net/atp.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 460 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
dev | 471 | drivers/net/atp.c | dev->trans_start = jiffies; |
dev | 487 | drivers/net/atp.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 492 | drivers/net/atp.c | if (dev == NULL) { |
dev | 496 | drivers/net/atp.c | dev->interrupt = 1; |
dev | 498 | drivers/net/atp.c | ioaddr = dev->base_addr; |
dev | 499 | drivers/net/atp.c | lp = (struct net_local *)dev->priv; |
dev | 508 | drivers/net/atp.c | if (net_debug > 5) printk("%s: In interrupt ", dev->name); |
dev | 525 | drivers/net/atp.c | net_rx(dev); |
dev | 530 | drivers/net/atp.c | net_rx(dev); |
dev | 531 | drivers/net/atp.c | dev->last_rx = jiffies; |
dev | 545 | drivers/net/atp.c | hardware_init(dev); |
dev | 561 | drivers/net/atp.c | dev->tbusy = 0; |
dev | 566 | drivers/net/atp.c | && jiffies > dev->last_rx + 100) { |
dev | 569 | drivers/net/atp.c | " status %02x CMR1 %02x.\n", dev->name, |
dev | 570 | drivers/net/atp.c | num_tx_since_rx, jiffies - dev->last_rx, status, |
dev | 573 | drivers/net/atp.c | hardware_init(dev); |
dev | 585 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
dev | 603 | drivers/net/atp.c | dev->interrupt = 0; |
dev | 644 | drivers/net/atp.c | static void net_rx(struct device *dev) |
dev | 646 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 647 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 656 | drivers/net/atp.c | read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); |
dev | 665 | drivers/net/atp.c | dev->name, rx_head.rx_status); |
dev | 666 | drivers/net/atp.c | hardware_init(dev); |
dev | 675 | drivers/net/atp.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 680 | drivers/net/atp.c | skb->dev = dev; |
dev | 682 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb->data, dev->if_port); |
dev | 693 | drivers/net/atp.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 724 | drivers/net/atp.c | net_close(struct device *dev) |
dev | 726 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 727 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 729 | drivers/net/atp.c | dev->tbusy = 1; |
dev | 730 | drivers/net/atp.c | dev->start = 0; |
dev | 738 | drivers/net/atp.c | free_irq(dev->irq); |
dev | 739 | drivers/net/atp.c | irq2dev_map[dev->irq] = 0; |
dev | 750 | drivers/net/atp.c | net_get_stats(struct device *dev) |
dev | 752 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 763 | drivers/net/atp.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 765 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 766 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
dev | 376 | drivers/net/de4x5.c | static int de4x5_open(struct device *dev); |
dev | 377 | drivers/net/de4x5.c | static int de4x5_queue_pkt(struct sk_buff *skb, struct device *dev); |
dev | 379 | drivers/net/de4x5.c | static int de4x5_close(struct device *dev); |
dev | 380 | drivers/net/de4x5.c | static struct enet_statistics *de4x5_get_stats(struct device *dev); |
dev | 381 | drivers/net/de4x5.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 382 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
dev | 387 | drivers/net/de4x5.c | static int de4x5_hw_init(struct device *dev, short iobase); |
dev | 388 | drivers/net/de4x5.c | static int de4x5_init(struct device *dev); |
dev | 389 | drivers/net/de4x5.c | static int de4x5_rx(struct device *dev); |
dev | 390 | drivers/net/de4x5.c | static int de4x5_tx(struct device *dev); |
dev | 392 | drivers/net/de4x5.c | static int autoconf_media(struct device *dev); |
dev | 393 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len); |
dev | 396 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u_long flags, struct sk_buff *skb); |
dev | 397 | drivers/net/de4x5.c | static void dc21040_autoconf(struct device *dev); |
dev | 398 | drivers/net/de4x5.c | static void dc21041_autoconf(struct device *dev); |
dev | 399 | drivers/net/de4x5.c | static void dc21140_autoconf(struct device *dev); |
dev | 400 | drivers/net/de4x5.c | static long test_media(struct device *dev, long irqs, long irq_mask, long csr13, long csr14, long csr15, long msec); |
dev | 401 | drivers/net/de4x5.c | static long ping_media(struct device *dev); |
dev | 402 | drivers/net/de4x5.c | static void reset_init_sia(struct device *dev, long sicr, long strr, long sigr); |
dev | 403 | drivers/net/de4x5.c | static int test_ans(struct device *dev, long irqs, long irq_mask, long msec); |
dev | 404 | drivers/net/de4x5.c | static void load_ms_timer(struct device *dev, u_long msec); |
dev | 415 | drivers/net/de4x5.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs); |
dev | 416 | drivers/net/de4x5.c | static int aprom_crc (struct device *dev); |
dev | 418 | drivers/net/de4x5.c | static void eisa_probe(struct device *dev, short iobase); |
dev | 419 | drivers/net/de4x5.c | static void pci_probe(struct device *dev, short iobase); |
dev | 420 | drivers/net/de4x5.c | static struct device *alloc_device(struct device *dev, int iobase); |
dev | 421 | drivers/net/de4x5.c | static char *build_setup_frame(struct device *dev, int mode); |
dev | 461 | drivers/net/de4x5.c | int de4x5_probe(struct device *dev) |
dev | 463 | drivers/net/de4x5.c | int tmp = num_de4x5s, iobase = dev->base_addr; |
dev | 471 | drivers/net/de4x5.c | eisa_probe(dev, iobase); |
dev | 472 | drivers/net/de4x5.c | pci_probe(dev, iobase); |
dev | 475 | drivers/net/de4x5.c | printk("%s: de4x5_probe() cannot find device at 0x%04x.\n", dev->name, |
dev | 483 | drivers/net/de4x5.c | for (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next); |
dev | 485 | drivers/net/de4x5.c | if (dev->priv) status = 0; |
dev | 493 | drivers/net/de4x5.c | de4x5_hw_init(struct device *dev, short iobase) |
dev | 527 | drivers/net/de4x5.c | dev->base_addr = iobase; |
dev | 531 | drivers/net/de4x5.c | dev->name, name, (u_short)iobase, (((u_short)iobase>>12)&0x0f)); |
dev | 533 | drivers/net/de4x5.c | printk("%s: %s at %#3x (PCI device %d)", dev->name, name, (u_short)iobase,lp->device); |
dev | 537 | drivers/net/de4x5.c | status = aprom_crc(dev); |
dev | 539 | drivers/net/de4x5.c | printk("%2.2x:", dev->dev_addr[i]); |
dev | 541 | drivers/net/de4x5.c | printk("%2.2x,\n", dev->dev_addr[i]); |
dev | 553 | drivers/net/de4x5.c | dev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, |
dev | 558 | drivers/net/de4x5.c | dev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN); |
dev | 559 | drivers/net/de4x5.c | lp = (struct de4x5_private *)dev->priv; |
dev | 560 | drivers/net/de4x5.c | memset(dev->priv, 0, sizeof(struct de4x5_private)); |
dev | 583 | drivers/net/de4x5.c | sprintf(lp->adapter_name,"%s (%s)", name, dev->name); |
dev | 620 | drivers/net/de4x5.c | if (dev->irq < 2) { |
dev | 635 | drivers/net/de4x5.c | for (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) { |
dev | 637 | drivers/net/de4x5.c | dev->irq = irqnum; |
dev | 638 | drivers/net/de4x5.c | printk(" and uses IRQ%d.\n", dev->irq); |
dev | 642 | drivers/net/de4x5.c | if (!dev->irq) { |
dev | 652 | drivers/net/de4x5.c | printk(" and requires IRQ%d (not probed).\n", dev->irq); |
dev | 656 | drivers/net/de4x5.c | dev->name); |
dev | 679 | drivers/net/de4x5.c | dev->open = &de4x5_open; |
dev | 680 | drivers/net/de4x5.c | dev->hard_start_xmit = &de4x5_queue_pkt; |
dev | 681 | drivers/net/de4x5.c | dev->stop = &de4x5_close; |
dev | 682 | drivers/net/de4x5.c | dev->get_stats = &de4x5_get_stats; |
dev | 684 | drivers/net/de4x5.c | dev->set_multicast_list = &set_multicast_list; |
dev | 686 | drivers/net/de4x5.c | dev->do_ioctl = &de4x5_ioctl; |
dev | 688 | drivers/net/de4x5.c | dev->mem_start = 0; |
dev | 691 | drivers/net/de4x5.c | ether_setup(dev); |
dev | 699 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 703 | drivers/net/de4x5.c | if (dev->priv) { |
dev | 704 | drivers/net/de4x5.c | kfree_s(dev->priv, sizeof(struct de4x5_private) + ALIGN); |
dev | 705 | drivers/net/de4x5.c | dev->priv = NULL; |
dev | 714 | drivers/net/de4x5.c | de4x5_open(struct device *dev) |
dev | 716 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 717 | drivers/net/de4x5.c | short iobase = dev->base_addr; |
dev | 729 | drivers/net/de4x5.c | if (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) { |
dev | 730 | drivers/net/de4x5.c | printk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 734 | drivers/net/de4x5.c | irq2dev_map[dev->irq] = dev; |
dev | 738 | drivers/net/de4x5.c | status = de4x5_init(dev); |
dev | 741 | drivers/net/de4x5.c | printk("%s: de4x5 open with irq %d\n",dev->name,dev->irq); |
dev | 744 | drivers/net/de4x5.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
dev | 784 | drivers/net/de4x5.c | dev->tbusy = 0; |
dev | 785 | drivers/net/de4x5.c | dev->start = 1; |
dev | 786 | drivers/net/de4x5.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 787 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 827 | drivers/net/de4x5.c | de4x5_init(struct device *dev) |
dev | 829 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 830 | drivers/net/de4x5.c | short iobase = dev->base_addr; |
dev | 835 | drivers/net/de4x5.c | set_bit(0, (void *)&dev->tbusy); |
dev | 865 | drivers/net/de4x5.c | SetMulticastFilter(dev, 0, NULL); |
dev | 868 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL); |
dev | 870 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL); |
dev | 881 | drivers/net/de4x5.c | printk("%s: Setup frame timed out, status %08x\n", dev->name, |
dev | 890 | drivers/net/de4x5.c | if (autoconf_media(dev) == 0) { |
dev | 901 | drivers/net/de4x5.c | de4x5_queue_pkt(struct sk_buff *skb, struct device *dev) |
dev | 903 | drivers/net/de4x5.c | volatile struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 904 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 915 | drivers/net/de4x5.c | if (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) { |
dev | 916 | drivers/net/de4x5.c | int tickssofar = jiffies - dev->trans_start; |
dev | 920 | drivers/net/de4x5.c | printk("%s: transmit timed out, status %08x, tbusy:%d, lostMedia:%d tickssofar:%d, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar); |
dev | 924 | drivers/net/de4x5.c | status = de4x5_init(dev); |
dev | 929 | drivers/net/de4x5.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 930 | drivers/net/de4x5.c | dev->start = 1; |
dev | 931 | drivers/net/de4x5.c | dev->tbusy = 0; |
dev | 932 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 947 | drivers/net/de4x5.c | dev->name, inl(DE4X5_STS)); |
dev | 951 | drivers/net/de4x5.c | dev_tint(dev); |
dev | 958 | drivers/net/de4x5.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 959 | drivers/net/de4x5.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 962 | drivers/net/de4x5.c | load_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb); |
dev | 969 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 973 | drivers/net/de4x5.c | dev->tbusy = 0; /* Another pkt may be queued */ |
dev | 986 | drivers/net/de4x5.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 991 | drivers/net/de4x5.c | if (dev == NULL) { |
dev | 994 | drivers/net/de4x5.c | lp = (struct de4x5_private *)dev->priv; |
dev | 995 | drivers/net/de4x5.c | iobase = dev->base_addr; |
dev | 997 | drivers/net/de4x5.c | if (dev->interrupt) |
dev | 998 | drivers/net/de4x5.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 1000 | drivers/net/de4x5.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 1014 | drivers/net/de4x5.c | de4x5_rx(dev); |
dev | 1017 | drivers/net/de4x5.c | de4x5_tx(dev); |
dev | 1022 | drivers/net/de4x5.c | dev->name, sts); |
dev | 1025 | drivers/net/de4x5.c | if (TX_BUFFS_AVAIL && dev->tbusy) {/* Any resources available? */ |
dev | 1026 | drivers/net/de4x5.c | dev->tbusy = 0; /* Clear TX busy flag */ |
dev | 1030 | drivers/net/de4x5.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 1039 | drivers/net/de4x5.c | de4x5_rx(struct device *dev) |
dev | 1041 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1065 | drivers/net/de4x5.c | skb->dev = dev; |
dev | 1079 | drivers/net/de4x5.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1099 | drivers/net/de4x5.c | } else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) && |
dev | 1100 | drivers/net/de4x5.c | (*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) { |
dev | 1109 | drivers/net/de4x5.c | printk("%s: Insufficient memory; nuking packet.\n", dev->name); |
dev | 1135 | drivers/net/de4x5.c | de4x5_tx(struct device *dev) |
dev | 1137 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1138 | drivers/net/de4x5.c | int entry, iobase = dev->base_addr; |
dev | 1176 | drivers/net/de4x5.c | de4x5_close(struct device *dev) |
dev | 1178 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1179 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1182 | drivers/net/de4x5.c | dev->start = 0; |
dev | 1183 | drivers/net/de4x5.c | dev->tbusy = 1; |
dev | 1187 | drivers/net/de4x5.c | dev->name, inl(DE4X5_STS)); |
dev | 1200 | drivers/net/de4x5.c | free_irq(dev->irq); |
dev | 1201 | drivers/net/de4x5.c | irq2dev_map[dev->irq] = 0; |
dev | 1215 | drivers/net/de4x5.c | de4x5_get_stats(struct device *dev) |
dev | 1217 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1218 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1225 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u_long flags, struct sk_buff *skb) |
dev | 1227 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1248 | drivers/net/de4x5.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1250 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1251 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1254 | drivers/net/de4x5.c | if (irq2dev_map[dev->irq] != NULL) { |
dev | 1256 | drivers/net/de4x5.c | SetMulticastFilter(dev, num_addrs, (char *)addrs); |
dev | 1258 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | |
dev | 1261 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | |
dev | 1267 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 1279 | drivers/net/de4x5.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs) |
dev | 1281 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1282 | drivers/net/de4x5.c | int i, j, bit, byte, iobase = dev->base_addr; |
dev | 1288 | drivers/net/de4x5.c | pa = build_setup_frame(dev, ALL); /* Build the basic frame */ |
dev | 1339 | drivers/net/de4x5.c | static void eisa_probe(struct device *dev, short ioaddr) |
dev | 1363 | drivers/net/de4x5.c | for (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
dev | 1378 | drivers/net/de4x5.c | if ((dev = alloc_device(dev, iobase)) != NULL) { |
dev | 1379 | drivers/net/de4x5.c | if ((status = de4x5_hw_init(dev, iobase)) == 0) { |
dev | 1385 | drivers/net/de4x5.c | printk("%s: region already allocated at 0x%04x.\n", dev->name, iobase); |
dev | 1400 | drivers/net/de4x5.c | static void pci_probe(struct device *dev, short ioaddr) |
dev | 1427 | drivers/net/de4x5.c | for (; (dev_num < dev_last) && (dev != NULL); dev_num++) { |
dev | 1454 | drivers/net/de4x5.c | if ((dev = alloc_device(dev, iobase)) != NULL) { |
dev | 1455 | drivers/net/de4x5.c | dev->irq = irq; |
dev | 1456 | drivers/net/de4x5.c | if ((status = de4x5_hw_init(dev, iobase)) == 0) { |
dev | 1462 | drivers/net/de4x5.c | printk("%s: region already allocated at 0x%04x.\n", dev->name, (u_short)iobase); |
dev | 1477 | drivers/net/de4x5.c | static struct device *alloc_device(struct device *dev, int iobase) |
dev | 1487 | drivers/net/de4x5.c | while (dev->next != NULL) { |
dev | 1488 | drivers/net/de4x5.c | if ((dev->base_addr == 0xffe0) || (dev->base_addr == 0)) break; |
dev | 1489 | drivers/net/de4x5.c | dev = dev->next; /* walk through eth device list */ |
dev | 1497 | drivers/net/de4x5.c | if ((dev->base_addr == 0) && (num_de4x5s > 0)) { |
dev | 1499 | drivers/net/de4x5.c | tmp = dev->next; /* point to the next device */ |
dev | 1500 | drivers/net/de4x5.c | init = dev->init; /* remember the probe function */ |
dev | 1507 | drivers/net/de4x5.c | if ((dev->next == NULL) && |
dev | 1508 | drivers/net/de4x5.c | !((dev->base_addr == 0xffe0) || (dev->base_addr == 0))){ |
dev | 1509 | drivers/net/de4x5.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 1512 | drivers/net/de4x5.c | dev = dev->next; /* point to the new device */ |
dev | 1513 | drivers/net/de4x5.c | if (dev == NULL) { |
dev | 1522 | drivers/net/de4x5.c | dev->name = (char *)(dev + sizeof(struct device)); |
dev | 1524 | drivers/net/de4x5.c | sprintf(dev->name,"eth????"); /* New device name */ |
dev | 1526 | drivers/net/de4x5.c | sprintf(dev->name,"eth%d", num_eth);/* New device name */ |
dev | 1528 | drivers/net/de4x5.c | dev->base_addr = iobase; /* assign the io address */ |
dev | 1529 | drivers/net/de4x5.c | dev->next = NULL; /* mark the end of list */ |
dev | 1530 | drivers/net/de4x5.c | dev->init = &de4x5_probe; /* initialisation routine */ |
dev | 1534 | drivers/net/de4x5.c | ret = dev; /* return current struct, or NULL */ |
dev | 1554 | drivers/net/de4x5.c | dev->name); |
dev | 1577 | drivers/net/de4x5.c | ret = dev; |
dev | 1589 | drivers/net/de4x5.c | static int autoconf_media(struct device *dev) |
dev | 1591 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1592 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1596 | drivers/net/de4x5.c | dc21040_autoconf(dev); |
dev | 1599 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1603 | drivers/net/de4x5.c | dc21140_autoconf(dev); |
dev | 1608 | drivers/net/de4x5.c | printk("%s: Media is %s\n",dev->name, |
dev | 1617 | drivers/net/de4x5.c | printk("%s: Mode is forced to %s\n",dev->name, |
dev | 1635 | drivers/net/de4x5.c | static void dc21040_autoconf(struct device *dev) |
dev | 1637 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1638 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1644 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f01, 0xffff, 0x0000); |
dev | 1651 | drivers/net/de4x5.c | dc21040_autoconf(dev); |
dev | 1658 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f09, 0x0705, 0x0006); |
dev | 1660 | drivers/net/de4x5.c | linkBad = ping_media(dev); |
dev | 1663 | drivers/net/de4x5.c | dc21040_autoconf(dev); |
dev | 1668 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f01, 0xffff, 0x0000); |
dev | 1681 | drivers/net/de4x5.c | static void dc21041_autoconf(struct device *dev) |
dev | 1683 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1684 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1693 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400); |
dev | 1699 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1705 | drivers/net/de4x5.c | sts = test_ans(dev, irqs, irq_mask, 3000); |
dev | 1708 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1717 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400); |
dev | 1724 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1733 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000); |
dev | 1736 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1745 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000); |
dev | 1749 | drivers/net/de4x5.c | if (ping_media(dev)) lp->media = NC; |
dev | 1756 | drivers/net/de4x5.c | reset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */ |
dev | 1766 | drivers/net/de4x5.c | static void dc21140_autoconf(struct device *dev) |
dev | 1768 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1769 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1789 | drivers/net/de4x5.c | static long test_media(struct device *dev, long irqs, long irq_mask, long csr13, long csr14, long csr15, long msec) |
dev | 1791 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1792 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1795 | drivers/net/de4x5.c | reset_init_sia(dev, csr13, csr14, csr15); |
dev | 1798 | drivers/net/de4x5.c | load_ms_timer(dev, msec); |
dev | 1823 | drivers/net/de4x5.c | static long ping_media(struct device *dev) |
dev | 1825 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1826 | drivers/net/de4x5.c | int entry, iobase = dev->base_addr; |
dev | 1831 | drivers/net/de4x5.c | create_packet(dev, frame, sizeof(frame)); |
dev | 1834 | drivers/net/de4x5.c | load_packet(dev, frame, TD_LS | TD_FS | sizeof(frame),NULL); |
dev | 1857 | drivers/net/de4x5.c | static int test_ans(struct device *dev, long irqs, long irq_mask, long msec) |
dev | 1859 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1860 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1866 | drivers/net/de4x5.c | load_ms_timer(dev, msec); |
dev | 1884 | drivers/net/de4x5.c | static void reset_init_sia(struct device *dev, long sicr, long strr, long sigr) |
dev | 1886 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1887 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1900 | drivers/net/de4x5.c | static void load_ms_timer(struct device *dev, u_long msec) |
dev | 1902 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1903 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 1913 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len) |
dev | 1919 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
dev | 1922 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
dev | 2010 | drivers/net/de4x5.c | } dev; |
dev | 2017 | drivers/net/de4x5.c | dev.llsig.a = ETH_PROM_SIG; |
dev | 2018 | drivers/net/de4x5.c | dev.llsig.b = ETH_PROM_SIG; |
dev | 2029 | drivers/net/de4x5.c | if (dev.Sig[j] == data) { /* track signature */ |
dev | 2032 | drivers/net/de4x5.c | if (data == dev.Sig[0]) { |
dev | 2054 | drivers/net/de4x5.c | static int aprom_crc(struct device *dev) |
dev | 2056 | drivers/net/de4x5.c | int iobase = dev->base_addr; |
dev | 2070 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2073 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2075 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
dev | 2076 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
dev | 2080 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2082 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2210 | drivers/net/de4x5.c | static char *build_setup_frame(struct device *dev, int mode) |
dev | 2212 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2223 | drivers/net/de4x5.c | *(pa + i) = dev->dev_addr[i]; /* Host address */ |
dev | 2229 | drivers/net/de4x5.c | *(pa + (i&1)) = dev->dev_addr[i]; |
dev | 2245 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 2247 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2249 | drivers/net/de4x5.c | int i, j, iobase = dev->base_addr, status = 0; |
dev | 2260 | drivers/net/de4x5.c | tmp.addr[i] = dev->dev_addr[i]; |
dev | 2270 | drivers/net/de4x5.c | dev->dev_addr[i] = tmp.addr[i]; |
dev | 2272 | drivers/net/de4x5.c | build_setup_frame(dev, PHYS_ADDR_ONLY); |
dev | 2274 | drivers/net/de4x5.c | while (set_bit(0, (void *)&dev->tbusy) != 0); /* Wait for lock to free */ |
dev | 2276 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | |
dev | 2279 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | |
dev | 2284 | drivers/net/de4x5.c | dev->tbusy = 0; /* Unlock the TX ring */ |
dev | 2312 | drivers/net/de4x5.c | printk("%s: Boo!\n", dev->name); |
dev | 2325 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, tmp.addr); |
dev | 2333 | drivers/net/de4x5.c | set_multicast_list(dev, 0, NULL); |
dev | 2397 | drivers/net/de4x5.c | tmp.addr[j++] = dev->irq; |
dev | 2399 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
dev | 2448 | drivers/net/de4x5.c | tmp.addr[j++] = dev->tbusy; |
dev | 243 | drivers/net/de600.c | static byte de600_read_status(struct device *dev); |
dev | 244 | drivers/net/de600.c | static byte de600_read_byte(unsigned char type, struct device *dev); |
dev | 247 | drivers/net/de600.c | static int de600_open(struct device *dev); |
dev | 248 | drivers/net/de600.c | static int de600_close(struct device *dev); |
dev | 249 | drivers/net/de600.c | static struct netstats *get_stats(struct device *dev); |
dev | 250 | drivers/net/de600.c | static int de600_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 254 | drivers/net/de600.c | static int de600_tx_intr(struct device *dev, int irq_status); |
dev | 255 | drivers/net/de600.c | static void de600_rx_intr(struct device *dev); |
dev | 258 | drivers/net/de600.c | static void trigger_interrupt(struct device *dev); |
dev | 259 | drivers/net/de600.c | int de600_probe(struct device *dev); |
dev | 260 | drivers/net/de600.c | static int adapter_init(struct device *dev); |
dev | 310 | drivers/net/de600.c | de600_read_status(struct device *dev) |
dev | 322 | drivers/net/de600.c | de600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */ |
dev | 340 | drivers/net/de600.c | de600_open(struct device *dev) |
dev | 343 | drivers/net/de600.c | printk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ); |
dev | 346 | drivers/net/de600.c | irq2dev_map[DE600_IRQ] = dev; |
dev | 351 | drivers/net/de600.c | dev->start = 1; |
dev | 352 | drivers/net/de600.c | if (adapter_init(dev)) { |
dev | 363 | drivers/net/de600.c | de600_close(struct device *dev) |
dev | 372 | drivers/net/de600.c | if (dev->start) { |
dev | 375 | drivers/net/de600.c | dev->start = 0; |
dev | 384 | drivers/net/de600.c | get_stats(struct device *dev) |
dev | 386 | drivers/net/de600.c | return (struct netstats *)(dev->priv); |
dev | 390 | drivers/net/de600.c | trigger_interrupt(struct device *dev) |
dev | 404 | drivers/net/de600.c | de600_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 418 | drivers/net/de600.c | dev_tint(dev); |
dev | 423 | drivers/net/de600.c | tickssofar = jiffies - dev->trans_start; |
dev | 430 | drivers/net/de600.c | dev->name, |
dev | 435 | drivers/net/de600.c | if (adapter_init(dev)) { |
dev | 454 | drivers/net/de600.c | de600_read_byte(READ_DATA, dev); |
dev | 455 | drivers/net/de600.c | if (was_down || (de600_read_byte(READ_DATA, dev) != 0xde)) { |
dev | 456 | drivers/net/de600.c | if (adapter_init(dev)) { |
dev | 468 | drivers/net/de600.c | dev->trans_start = jiffies; |
dev | 469 | drivers/net/de600.c | dev->tbusy = 0; /* allow more packets into adapter */ |
dev | 475 | drivers/net/de600.c | dev->tbusy = !free_tx_pages; |
dev | 500 | drivers/net/de600.c | struct device *dev = irq2dev_map[irq]; |
dev | 506 | drivers/net/de600.c | if ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) { |
dev | 507 | drivers/net/de600.c | printk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq); |
dev | 511 | drivers/net/de600.c | dev->interrupt = 1; |
dev | 513 | drivers/net/de600.c | irq_status = de600_read_status(dev); |
dev | 519 | drivers/net/de600.c | de600_rx_intr(dev); |
dev | 525 | drivers/net/de600.c | retrig = de600_tx_intr(dev, irq_status); |
dev | 529 | drivers/net/de600.c | irq_status = de600_read_status(dev); |
dev | 538 | drivers/net/de600.c | dev->interrupt = 0; |
dev | 542 | drivers/net/de600.c | trigger_interrupt(dev); |
dev | 549 | drivers/net/de600.c | de600_tx_intr(struct device *dev, int irq_status) |
dev | 565 | drivers/net/de600.c | ((struct netstats *)(dev->priv))->tx_packets++; |
dev | 566 | drivers/net/de600.c | dev->tbusy = 0; |
dev | 571 | drivers/net/de600.c | dev->trans_start = jiffies; |
dev | 585 | drivers/net/de600.c | de600_rx_intr(struct device *dev) |
dev | 595 | drivers/net/de600.c | size = de600_read_byte(RX_LEN, dev); /* low byte */ |
dev | 596 | drivers/net/de600.c | size += (de600_read_byte(RX_LEN, dev) << 8); /* high byte */ |
dev | 606 | drivers/net/de600.c | printk("%s: Bogus packet size %d.\n", dev->name, size); |
dev | 608 | drivers/net/de600.c | adapter_init(dev); |
dev | 616 | drivers/net/de600.c | dev->name, size); |
dev | 628 | drivers/net/de600.c | *buffer = de600_read_byte(READ_DATA, dev); |
dev | 630 | drivers/net/de600.c | ((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */ |
dev | 632 | drivers/net/de600.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 633 | drivers/net/de600.c | if (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev)) |
dev | 634 | drivers/net/de600.c | printk("%s: receive buffers full.\n", dev->name); |
dev | 643 | drivers/net/de600.c | de600_probe(struct device *dev) |
dev | 649 | drivers/net/de600.c | printk("%s: D-Link DE-600 pocket adapter", dev->name); |
dev | 657 | drivers/net/de600.c | (void)de600_read_status(dev); |
dev | 660 | drivers/net/de600.c | if (de600_read_status(dev) & 0xf0) { |
dev | 673 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
dev | 674 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
dev | 678 | drivers/net/de600.c | if ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) { |
dev | 680 | drivers/net/de600.c | dev->dev_addr[0] = 0x00; |
dev | 681 | drivers/net/de600.c | dev->dev_addr[1] = 0x80; |
dev | 682 | drivers/net/de600.c | dev->dev_addr[2] = 0xc8; |
dev | 683 | drivers/net/de600.c | dev->dev_addr[3] &= 0x0f; |
dev | 684 | drivers/net/de600.c | dev->dev_addr[3] |= 0x70; |
dev | 698 | drivers/net/de600.c | printk(", Ethernet Address: %02X", dev->dev_addr[0]); |
dev | 700 | drivers/net/de600.c | printk(":%02X",dev->dev_addr[i]); |
dev | 705 | drivers/net/de600.c | dev->priv = &de600_netstats; |
dev | 707 | drivers/net/de600.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 708 | drivers/net/de600.c | dev->get_stats = get_stats; |
dev | 710 | drivers/net/de600.c | dev->open = de600_open; |
dev | 711 | drivers/net/de600.c | dev->stop = de600_close; |
dev | 712 | drivers/net/de600.c | dev->hard_start_xmit = &de600_start_xmit; |
dev | 714 | drivers/net/de600.c | ether_setup(dev); |
dev | 721 | drivers/net/de600.c | adapter_init(struct device *dev) |
dev | 737 | drivers/net/de600.c | de600_read_byte(READ_DATA, dev); |
dev | 738 | drivers/net/de600.c | if ((de600_read_byte(READ_DATA, dev) != 0xde) || |
dev | 739 | drivers/net/de600.c | (de600_read_byte(READ_DATA, dev) != 0x15)) { |
dev | 748 | drivers/net/de600.c | dev->flags &= ~IFF_UP; |
dev | 749 | drivers/net/de600.c | de600_close(dev); |
dev | 752 | drivers/net/de600.c | dev->tbusy = 1; /* Transmit busy... */ |
dev | 761 | drivers/net/de600.c | dev->tbusy = 0; /* Transmit busy... */ |
dev | 762 | drivers/net/de600.c | dev->interrupt = 0; |
dev | 770 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
dev | 408 | drivers/net/de620.c | de620_open(struct device *dev) |
dev | 411 | drivers/net/de620.c | printk ("%s: unable to get IRQ %d\n", dev->name, DE620_IRQ); |
dev | 414 | drivers/net/de620.c | irq2dev_map[DE620_IRQ] = dev; |
dev | 419 | drivers/net/de620.c | if (adapter_init(dev)) { |
dev | 422 | drivers/net/de620.c | dev->start = 1; |
dev | 432 | drivers/net/de620.c | de620_close(struct device *dev) |
dev | 440 | drivers/net/de620.c | dev->start = 0; |
dev | 453 | drivers/net/de620.c | get_stats(struct device *dev) |
dev | 455 | drivers/net/de620.c | return (struct netstats *)(dev->priv); |
dev | 469 | drivers/net/de620.c | de620_set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 485 | drivers/net/de620.c | de620_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 500 | drivers/net/de620.c | dev_tint(dev); |
dev | 505 | drivers/net/de620.c | dev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */ |
dev | 507 | drivers/net/de620.c | if (dev->tbusy) { /* Do timeouts, to avoid hangs. */ |
dev | 508 | drivers/net/de620.c | tickssofar = jiffies - dev->trans_start; |
dev | 515 | drivers/net/de620.c | dev->name, |
dev | 520 | drivers/net/de620.c | if (adapter_init(dev)) /* maybe close it */ |
dev | 557 | drivers/net/de620.c | dev->trans_start = jiffies; |
dev | 558 | drivers/net/de620.c | dev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */ |
dev | 560 | drivers/net/de620.c | ((struct netstats *)(dev->priv))->tx_packets++; |
dev | 577 | drivers/net/de620.c | struct device *dev = irq2dev_map[irq]; |
dev | 583 | drivers/net/de620.c | if ((dev == NULL) || (DE620_IRQ != irq)) { |
dev | 584 | drivers/net/de620.c | printk("%s: bogus interrupt %d\n", dev?dev->name:"DE620", irq); |
dev | 589 | drivers/net/de620.c | dev->interrupt = 1; |
dev | 598 | drivers/net/de620.c | again = de620_rx_intr(dev); |
dev | 604 | drivers/net/de620.c | dev->tbusy = (de620_tx_buffs() == (TXBF0 | TXBF1)); /* Boolean! */ |
dev | 606 | drivers/net/de620.c | dev->interrupt = 0; |
dev | 619 | drivers/net/de620.c | de620_rx_intr(struct device *dev) |
dev | 648 | drivers/net/de620.c | printk("%s: Ring overrun? Restoring...\n", dev->name); |
dev | 650 | drivers/net/de620.c | adapter_init(dev); |
dev | 651 | drivers/net/de620.c | ((struct netstats *)(dev->priv))->rx_over_errors++; |
dev | 667 | drivers/net/de620.c | printk("%s: Page link out of sync! Restoring...\n", dev->name); |
dev | 671 | drivers/net/de620.c | ((struct netstats *)(dev->priv))->rx_over_errors++; |
dev | 678 | drivers/net/de620.c | printk("%s: Illegal packet size: %d!\n", dev->name, size); |
dev | 684 | drivers/net/de620.c | dev->name, size); |
dev | 685 | drivers/net/de620.c | ((struct netstats *)(dev->priv))->rx_dropped++; |
dev | 688 | drivers/net/de620.c | skb->len = size; skb->dev = dev; skb->free = 1; |
dev | 694 | drivers/net/de620.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 697 | drivers/net/de620.c | ((struct netstats *)(dev->priv))->rx_packets++; |
dev | 716 | drivers/net/de620.c | adapter_init(struct device *dev) |
dev | 744 | drivers/net/de620.c | de620_set_register(W_PAR0 + i, dev->dev_addr[i]); |
dev | 777 | drivers/net/de620.c | dev->flags &= ~IFF_UP; |
dev | 778 | drivers/net/de620.c | de620_close(dev); |
dev | 804 | drivers/net/de620.c | de620_probe(struct device *dev) |
dev | 838 | drivers/net/de620.c | dev->dev_addr[0] = nic_data.NodeID[0]); |
dev | 840 | drivers/net/de620.c | printk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]); |
dev | 841 | drivers/net/de620.c | dev->broadcast[i] = 0xff; |
dev | 854 | drivers/net/de620.c | dev->priv = &de620_netstats; |
dev | 856 | drivers/net/de620.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 857 | drivers/net/de620.c | dev->get_stats = get_stats; |
dev | 858 | drivers/net/de620.c | dev->open = de620_open; |
dev | 859 | drivers/net/de620.c | dev->stop = de620_close; |
dev | 860 | drivers/net/de620.c | dev->hard_start_xmit = &de620_start_xmit; |
dev | 861 | drivers/net/de620.c | dev->set_multicast_list = &de620_set_multicast_list; |
dev | 862 | drivers/net/de620.c | dev->base_addr = DE620_IO; |
dev | 863 | drivers/net/de620.c | dev->irq = DE620_IRQ; |
dev | 865 | drivers/net/de620.c | ether_setup(dev); |
dev | 326 | drivers/net/depca.c | static int depca_open(struct device *dev); |
dev | 327 | drivers/net/depca.c | static int depca_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 329 | drivers/net/depca.c | static int depca_close(struct device *dev); |
dev | 330 | drivers/net/depca.c | static struct enet_statistics *depca_get_stats(struct device *dev); |
dev | 332 | drivers/net/depca.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 338 | drivers/net/depca.c | static int depca_probe1(struct device *dev, short ioaddr); |
dev | 339 | drivers/net/depca.c | static void depca_init_ring(struct device *dev); |
dev | 340 | drivers/net/depca.c | static int depca_rx(struct device *dev); |
dev | 341 | drivers/net/depca.c | static int depca_tx(struct device *dev); |
dev | 343 | drivers/net/depca.c | static void LoadCSRs(struct device *dev); |
dev | 344 | drivers/net/depca.c | static int InitRestartDepca(struct device *dev); |
dev | 353 | drivers/net/depca.c | static struct device *isa_probe(struct device *dev); |
dev | 354 | drivers/net/depca.c | static struct device *eisa_probe(struct device *dev); |
dev | 355 | drivers/net/depca.c | static struct device *alloc_device(struct device *dev, int ioaddr); |
dev | 375 | drivers/net/depca.c | int depca_probe(struct device *dev) |
dev | 377 | drivers/net/depca.c | short base_addr = dev->base_addr; |
dev | 385 | drivers/net/depca.c | status = depca_probe1(dev, base_addr); |
dev | 397 | drivers/net/depca.c | eth0=isa_probe(dev); |
dev | 399 | drivers/net/depca.c | if (dev->priv) status=0; |
dev | 407 | drivers/net/depca.c | if (status) dev->base_addr = base_addr; |
dev | 413 | drivers/net/depca.c | depca_probe1(struct device *dev, short ioaddr) |
dev | 453 | drivers/net/depca.c | dev->base_addr = ioaddr; |
dev | 457 | drivers/net/depca.c | dev->name, name, ioaddr, ((ioaddr>>12)&0x0f)); |
dev | 459 | drivers/net/depca.c | printk("%s: %s at %#3x", dev->name, name, ioaddr); |
dev | 479 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
dev | 481 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
dev | 487 | drivers/net/depca.c | request_region(ioaddr, DEPCA_TOTAL_SIZE, dev->name); |
dev | 560 | drivers/net/depca.c | dev->priv = (void *)((mem_start + 0x07) & ~0x07); |
dev | 561 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
dev | 562 | drivers/net/depca.c | memset(dev->priv, 0, sizeof(struct depca_private)); |
dev | 566 | drivers/net/depca.c | mem_start = ((((unsigned long)dev->priv + |
dev | 612 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 617 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 626 | drivers/net/depca.c | dev->dma = 0; |
dev | 630 | drivers/net/depca.c | if (dev->irq < 2) { |
dev | 637 | drivers/net/depca.c | dev->irq = autoirq_report(1); |
dev | 638 | drivers/net/depca.c | if (dev->irq) { |
dev | 639 | drivers/net/depca.c | printk(" and uses IRQ%d.\n", dev->irq); |
dev | 646 | drivers/net/depca.c | printk(" and assigned IRQ%d.\n", dev->irq); |
dev | 657 | drivers/net/depca.c | dev->open = &depca_open; |
dev | 658 | drivers/net/depca.c | dev->hard_start_xmit = &depca_start_xmit; |
dev | 659 | drivers/net/depca.c | dev->stop = &depca_close; |
dev | 660 | drivers/net/depca.c | dev->get_stats = &depca_get_stats; |
dev | 662 | drivers/net/depca.c | dev->set_multicast_list = &set_multicast_list; |
dev | 665 | drivers/net/depca.c | dev->mem_start = 0; |
dev | 668 | drivers/net/depca.c | ether_setup(dev); |
dev | 679 | drivers/net/depca.c | depca_open(struct device *dev) |
dev | 681 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 682 | drivers/net/depca.c | int i,nicsr,ioaddr = dev->base_addr; |
dev | 684 | drivers/net/depca.c | if (request_irq(dev->irq, &depca_interrupt, 0, "depca")) { |
dev | 685 | drivers/net/depca.c | printk("depca_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 689 | drivers/net/depca.c | irq2dev_map[dev->irq] = dev; |
dev | 708 | drivers/net/depca.c | depca_init_ring(dev); /* initialize the descriptor rings */ |
dev | 709 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 712 | drivers/net/depca.c | printk("%s: depca open with irq %d\n",dev->name,dev->irq); |
dev | 757 | drivers/net/depca.c | dev->tbusy = 0; |
dev | 758 | drivers/net/depca.c | dev->interrupt = 0; |
dev | 759 | drivers/net/depca.c | dev->start = 1; |
dev | 761 | drivers/net/depca.c | InitRestartDepca(dev); /* ignore the return status */ |
dev | 775 | drivers/net/depca.c | depca_init_ring(struct device *dev) |
dev | 777 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 794 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 809 | drivers/net/depca.c | depca_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 811 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 812 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 816 | drivers/net/depca.c | if (dev->tbusy) { |
dev | 817 | drivers/net/depca.c | int tickssofar = jiffies - dev->trans_start; |
dev | 822 | drivers/net/depca.c | dev->name, inw(DEPCA_DATA)); |
dev | 825 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 826 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 827 | drivers/net/depca.c | InitRestartDepca(dev); |
dev | 828 | drivers/net/depca.c | dev->tbusy=0; |
dev | 829 | drivers/net/depca.c | dev->trans_start = jiffies; |
dev | 835 | drivers/net/depca.c | dev_tint(dev); |
dev | 845 | drivers/net/depca.c | printk("%s: depca_start_xmit() called, csr0 %4.4x.\n", dev->name, |
dev | 851 | drivers/net/depca.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 852 | drivers/net/depca.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 896 | drivers/net/depca.c | dev->trans_start = jiffies; |
dev | 908 | drivers/net/depca.c | dev->tbusy=0; |
dev | 936 | drivers/net/depca.c | dev->name, entry, (unsigned long) &lp->tx_ring[entry], |
dev | 939 | drivers/net/depca.c | dev->name, pkt[0], pkt[1], pkt[2], pkt[5], pkt[6], |
dev | 946 | drivers/net/depca.c | dev->tbusy=0; |
dev | 961 | drivers/net/depca.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 965 | drivers/net/depca.c | if (dev == NULL) { |
dev | 968 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
dev | 969 | drivers/net/depca.c | ioaddr = dev->base_addr; |
dev | 971 | drivers/net/depca.c | if (dev->interrupt) |
dev | 972 | drivers/net/depca.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 974 | drivers/net/depca.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 989 | drivers/net/depca.c | dev->name, csr0, inw(DEPCA_DATA)); |
dev | 992 | drivers/net/depca.c | depca_rx(dev); |
dev | 995 | drivers/net/depca.c | depca_tx(dev); |
dev | 1003 | drivers/net/depca.c | dev->name, inw(DEPCA_ADDR), |
dev | 1010 | drivers/net/depca.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 1017 | drivers/net/depca.c | depca_rx(struct device *dev) |
dev | 1019 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1061 | drivers/net/depca.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 1066 | drivers/net/depca.c | skb->dev = dev; |
dev | 1075 | drivers/net/depca.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1100 | drivers/net/depca.c | depca_tx(struct device *dev) |
dev | 1102 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1107 | drivers/net/depca.c | dev->name, dirty_tx, (lp->cur_tx & lp->rmask)); |
dev | 1139 | drivers/net/depca.c | dev->name, dirty_tx, |
dev | 1147 | drivers/net/depca.c | depca_close(struct device *dev) |
dev | 1149 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1150 | drivers/net/depca.c | int nicsr, ioaddr = dev->base_addr; |
dev | 1152 | drivers/net/depca.c | dev->start = 0; |
dev | 1153 | drivers/net/depca.c | dev->tbusy = 1; |
dev | 1159 | drivers/net/depca.c | dev->name, inw(DEPCA_DATA)); |
dev | 1177 | drivers/net/depca.c | free_irq(dev->irq); |
dev | 1179 | drivers/net/depca.c | irq2dev_map[dev->irq] = 0; |
dev | 1186 | drivers/net/depca.c | static void LoadCSRs(struct device *dev) |
dev | 1188 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1189 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 1202 | drivers/net/depca.c | static int InitRestartDepca(struct device *dev) |
dev | 1204 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1205 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 1219 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
dev | 1224 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
dev | 1231 | drivers/net/depca.c | depca_get_stats(struct device *dev) |
dev | 1233 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1251 | drivers/net/depca.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1253 | drivers/net/depca.c | short ioaddr = dev->base_addr; |
dev | 1254 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1256 | drivers/net/depca.c | if (irq2dev_map[dev->irq] != NULL) { |
dev | 1258 | drivers/net/depca.c | depca_init_ring(dev); /* Initialize the descriptor rings */ |
dev | 1267 | drivers/net/depca.c | LoadCSRs(dev); /* Reload CSR3 */ |
dev | 1268 | drivers/net/depca.c | InitRestartDepca(dev); /* Resume normal operation. */ |
dev | 1318 | drivers/net/depca.c | static struct device *isa_probe(struct device *dev) |
dev | 1329 | drivers/net/depca.c | dev = alloc_device(dev, ioaddr); |
dev | 1331 | drivers/net/depca.c | if ((status = depca_probe1(dev, ioaddr)) == 0) { |
dev | 1338 | drivers/net/depca.c | return dev; |
dev | 1345 | drivers/net/depca.c | static struct device *eisa_probe(struct device *dev) |
dev | 1355 | drivers/net/depca.c | dev = alloc_device(dev, ioaddr); |
dev | 1357 | drivers/net/depca.c | if ((status = depca_probe1(dev, ioaddr)) == 0) { |
dev | 1364 | drivers/net/depca.c | return dev; |
dev | 1371 | drivers/net/depca.c | static struct device *alloc_device(struct device *dev, int ioaddr) |
dev | 1376 | drivers/net/depca.c | while (dev->next != NULL) { |
dev | 1377 | drivers/net/depca.c | if (dev->next->base_addr == 0xffe0) break; |
dev | 1378 | drivers/net/depca.c | dev = dev->next; /* walk through eth device list */ |
dev | 1386 | drivers/net/depca.c | if (dev->next == NULL) { |
dev | 1387 | drivers/net/depca.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 1389 | drivers/net/depca.c | if (dev->next == NULL) { |
dev | 1400 | drivers/net/depca.c | if ((dev->next != NULL) && |
dev | 1402 | drivers/net/depca.c | dev = dev->next; /* point to the new device */ |
dev | 1403 | drivers/net/depca.c | dev->name = (char *)(dev + 1); |
dev | 1404 | drivers/net/depca.c | sprintf(dev->name,"eth%d", num_eth);/* New device name */ |
dev | 1405 | drivers/net/depca.c | dev->base_addr = ioaddr; /* assign the io address */ |
dev | 1406 | drivers/net/depca.c | dev->next = NULL; /* mark the end of list */ |
dev | 1407 | drivers/net/depca.c | dev->init = &depca_probe; /* initialisation routine */ |
dev | 1411 | drivers/net/depca.c | return dev; |
dev | 1472 | drivers/net/depca.c | } dev; |
dev | 1486 | drivers/net/depca.c | dev.llsig.a = ETH_PROM_SIG; |
dev | 1487 | drivers/net/depca.c | dev.llsig.b = ETH_PROM_SIG; |
dev | 1492 | drivers/net/depca.c | if (dev.Sig[j] == data) { /* track signature */ |
dev | 1495 | drivers/net/depca.c | if (data == dev.Sig[0]) { /* rare case.... */ |
dev | 59 | drivers/net/dummy.c | static int dummy_xmit(struct sk_buff *skb, struct device *dev); |
dev | 61 | drivers/net/dummy.c | static struct enet_statistics *dummy_get_stats(struct device *dev); |
dev | 65 | drivers/net/dummy.c | static int dummy_open(struct device *dev) |
dev | 71 | drivers/net/dummy.c | static int dummy_close(struct device *dev) |
dev | 80 | drivers/net/dummy.c | int dummy_init(struct device *dev) |
dev | 87 | drivers/net/dummy.c | dev->hard_start_xmit = dummy_xmit; |
dev | 90 | drivers/net/dummy.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 91 | drivers/net/dummy.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 92 | drivers/net/dummy.c | dev->get_stats = dummy_get_stats; |
dev | 95 | drivers/net/dummy.c | dev->open = &dummy_open; |
dev | 96 | drivers/net/dummy.c | dev->stop = &dummy_close; |
dev | 100 | drivers/net/dummy.c | ether_setup(dev); |
dev | 101 | drivers/net/dummy.c | dev->flags |= IFF_NOARP; |
dev | 107 | drivers/net/dummy.c | dummy_xmit(struct sk_buff *skb, struct device *dev) |
dev | 113 | drivers/net/dummy.c | if (skb == NULL || dev == NULL) |
dev | 119 | drivers/net/dummy.c | stats = (struct enet_statistics *)dev->priv; |
dev | 128 | drivers/net/dummy.c | dummy_get_stats(struct device *dev) |
dev | 130 | drivers/net/dummy.c | struct enet_statistics *stats = (struct enet_statistics*) dev->priv; |
dev | 138 | drivers/net/dummy.c | static int dummy_probe(struct device *dev) |
dev | 140 | drivers/net/dummy.c | dummy_init(dev); |
dev | 92 | drivers/net/e2100.c | int e2100_probe(struct device *dev); |
dev | 93 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr); |
dev | 95 | drivers/net/e2100.c | static int e21_open(struct device *dev); |
dev | 96 | drivers/net/e2100.c | static void e21_reset_8390(struct device *dev); |
dev | 97 | drivers/net/e2100.c | static int e21_block_input(struct device *dev, int count, |
dev | 99 | drivers/net/e2100.c | static void e21_block_output(struct device *dev, int count, |
dev | 101 | drivers/net/e2100.c | static int e21_close(struct device *dev); |
dev | 111 | drivers/net/e2100.c | int e2100_probe(struct device *dev) |
dev | 114 | drivers/net/e2100.c | int base_addr = dev->base_addr; |
dev | 117 | drivers/net/e2100.c | return e21_probe1(dev, base_addr); |
dev | 124 | drivers/net/e2100.c | if (e21_probe1(dev, *port) == 0) |
dev | 131 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr) |
dev | 134 | drivers/net/e2100.c | unsigned char *station_addr = dev->dev_addr; |
dev | 159 | drivers/net/e2100.c | printk("%s: E21** at %#3x,", dev->name, ioaddr); |
dev | 163 | drivers/net/e2100.c | if (dev->irq < 2) { |
dev | 167 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
dev | 171 | drivers/net/e2100.c | printk(" unable to get IRQ %d.\n", dev->irq); |
dev | 174 | drivers/net/e2100.c | } else if (dev->irq == 2) /* Fixup luser bogosity: IRQ2 is really IRQ9 */ |
dev | 175 | drivers/net/e2100.c | dev->irq = 9; |
dev | 178 | drivers/net/e2100.c | dev->base_addr = ioaddr; |
dev | 180 | drivers/net/e2100.c | ethdev_init(dev); |
dev | 187 | drivers/net/e2100.c | ei_status.saved_irq = dev->irq; |
dev | 191 | drivers/net/e2100.c | if (dev->mem_end & 15) |
dev | 192 | drivers/net/e2100.c | dev->if_port = dev->mem_end & 7; |
dev | 194 | drivers/net/e2100.c | dev->if_port = 0; |
dev | 198 | drivers/net/e2100.c | dev->if_port = 1; |
dev | 206 | drivers/net/e2100.c | if (dev->mem_start == 0) |
dev | 207 | drivers/net/e2100.c | dev->mem_start = 0xd0000; |
dev | 212 | drivers/net/e2100.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 213 | drivers/net/e2100.c | dev->mem_end = dev->rmem_end = dev->mem_start + 2*1024; |
dev | 216 | drivers/net/e2100.c | printk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq, |
dev | 217 | drivers/net/e2100.c | dev->if_port ? "secondary" : "primary", dev->mem_start); |
dev | 225 | drivers/net/e2100.c | dev->open = &e21_open; |
dev | 226 | drivers/net/e2100.c | dev->stop = &e21_close; |
dev | 227 | drivers/net/e2100.c | NS8390_init(dev, 0); |
dev | 233 | drivers/net/e2100.c | e21_open(struct device *dev) |
dev | 235 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 237 | drivers/net/e2100.c | if (request_irq(dev->irq, ei_interrupt, 0, "e2100")) { |
dev | 240 | drivers/net/e2100.c | irq2dev_map[dev->irq] = dev; |
dev | 244 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq & 7)); |
dev | 246 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0) |
dev | 247 | drivers/net/e2100.c | + (dev->if_port ? E21_ALT_IFPORT : 0)); |
dev | 249 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7)); |
dev | 251 | drivers/net/e2100.c | return ei_open(dev); |
dev | 255 | drivers/net/e2100.c | e21_reset_8390(struct device *dev) |
dev | 257 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 273 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 275 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 276 | drivers/net/e2100.c | char *shared_mem = (char *)dev->mem_start; |
dev | 294 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 297 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 298 | drivers/net/e2100.c | volatile char *shared_mem = (char *)dev->mem_start; |
dev | 310 | drivers/net/e2100.c | e21_close(struct device *dev) |
dev | 312 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 315 | drivers/net/e2100.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 317 | drivers/net/e2100.c | free_irq(dev->irq); |
dev | 318 | drivers/net/e2100.c | dev->irq = ei_status.saved_irq; |
dev | 326 | drivers/net/e2100.c | irq2dev_map[dev->irq] = NULL; |
dev | 328 | drivers/net/e2100.c | NS8390_init(dev, 0); |
dev | 106 | drivers/net/eepro.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 141 | drivers/net/eepro.c | extern int eepro_probe(struct device *dev); |
dev | 143 | drivers/net/eepro.c | static int eepro_probe1(struct device *dev, short ioaddr); |
dev | 144 | drivers/net/eepro.c | static int eepro_open(struct device *dev); |
dev | 145 | drivers/net/eepro.c | static int eepro_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 147 | drivers/net/eepro.c | static void eepro_rx(struct device *dev); |
dev | 148 | drivers/net/eepro.c | static void eepro_transmit_interrupt(struct device *dev); |
dev | 149 | drivers/net/eepro.c | static int eepro_close(struct device *dev); |
dev | 150 | drivers/net/eepro.c | static struct enet_statistics *eepro_get_stats(struct device *dev); |
dev | 151 | drivers/net/eepro.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 154 | drivers/net/eepro.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 155 | drivers/net/eepro.c | static int eepro_grab_irq(struct device *dev); |
dev | 284 | drivers/net/eepro.c | eepro_probe(struct device *dev) |
dev | 287 | drivers/net/eepro.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 290 | drivers/net/eepro.c | return eepro_probe1(dev, base_addr); |
dev | 298 | drivers/net/eepro.c | if (eepro_probe1(dev, ioaddr) == 0) |
dev | 310 | drivers/net/eepro.c | int eepro_probe1(struct device *dev, short ioaddr) |
dev | 346 | drivers/net/eepro.c | dev->name, ioaddr); |
dev | 351 | drivers/net/eepro.c | dev->name, ioaddr); |
dev | 355 | drivers/net/eepro.c | dev->base_addr = ioaddr; |
dev | 358 | drivers/net/eepro.c | dev->dev_addr[i] = ((unsigned char *) station_addr)[5-i]; |
dev | 359 | drivers/net/eepro.c | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); |
dev | 365 | drivers/net/eepro.c | dev->if_port = TPE; |
dev | 366 | drivers/net/eepro.c | else dev->if_port = BNC; |
dev | 368 | drivers/net/eepro.c | if (dev->irq < 2 && eepro) { |
dev | 371 | drivers/net/eepro.c | case 0: dev->irq = 9; break; |
dev | 372 | drivers/net/eepro.c | case 1: dev->irq = 3; break; |
dev | 373 | drivers/net/eepro.c | case 2: dev->irq = 5; break; |
dev | 374 | drivers/net/eepro.c | case 3: dev->irq = 10; break; |
dev | 375 | drivers/net/eepro.c | case 4: dev->irq = 11; break; |
dev | 381 | drivers/net/eepro.c | else if (dev->irq == 2) |
dev | 382 | drivers/net/eepro.c | dev->irq = 9; |
dev | 384 | drivers/net/eepro.c | if (dev->irq > 2) { |
dev | 385 | drivers/net/eepro.c | printk(", IRQ %d, %s.\n", dev->irq, |
dev | 386 | drivers/net/eepro.c | ifmap[dev->if_port]); |
dev | 387 | drivers/net/eepro.c | if (request_irq(dev->irq, &eepro_interrupt, 0, "eepro")) { |
dev | 388 | drivers/net/eepro.c | printk("%s: unable to get IRQ %d.\n", dev->name, dev->irq); |
dev | 392 | drivers/net/eepro.c | else printk(", %s.\n", ifmap[dev->if_port]); |
dev | 394 | drivers/net/eepro.c | if ((dev->mem_start & 0xf) > 0) |
dev | 395 | drivers/net/eepro.c | net_debug = dev->mem_start & 7; |
dev | 401 | drivers/net/eepro.c | dev->name); |
dev | 411 | drivers/net/eepro.c | if (dev->priv == NULL) |
dev | 412 | drivers/net/eepro.c | dev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL); |
dev | 413 | drivers/net/eepro.c | memset(dev->priv, 0, sizeof(struct eepro_local)); |
dev | 415 | drivers/net/eepro.c | dev->open = eepro_open; |
dev | 416 | drivers/net/eepro.c | dev->stop = eepro_close; |
dev | 417 | drivers/net/eepro.c | dev->hard_start_xmit = eepro_send_packet; |
dev | 418 | drivers/net/eepro.c | dev->get_stats = eepro_get_stats; |
dev | 419 | drivers/net/eepro.c | dev->set_multicast_list = &set_multicast_list; |
dev | 424 | drivers/net/eepro.c | ether_setup(dev); |
dev | 446 | drivers/net/eepro.c | static int eepro_grab_irq(struct device *dev) |
dev | 449 | drivers/net/eepro.c | int *irqp = irqlist, temp_reg, ioaddr = dev->base_addr; |
dev | 479 | drivers/net/eepro.c | (request_irq(dev->irq = *irqp, &eepro_interrupt, 0, "eepro") == 0)) |
dev | 501 | drivers/net/eepro.c | return dev->irq; |
dev | 505 | drivers/net/eepro.c | eepro_open(struct device *dev) |
dev | 508 | drivers/net/eepro.c | int i, ioaddr = dev->base_addr; |
dev | 509 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 514 | drivers/net/eepro.c | if (dev->dev_addr[0] == SA_ADDR0 && |
dev | 515 | drivers/net/eepro.c | dev->dev_addr[1] == SA_ADDR1 && |
dev | 516 | drivers/net/eepro.c | dev->dev_addr[2] == SA_ADDR2) |
dev | 521 | drivers/net/eepro.c | if (dev->irq < 2 && eepro_grab_irq(dev) == 0) { |
dev | 522 | drivers/net/eepro.c | printk("%s: unable to get IRQ %d.\n", dev->name, dev->irq); |
dev | 526 | drivers/net/eepro.c | if (irq2dev_map[dev->irq] != 0 |
dev | 527 | drivers/net/eepro.c | || (irq2dev_map[dev->irq] = dev) == 0) |
dev | 537 | drivers/net/eepro.c | outb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); |
dev | 553 | drivers/net/eepro.c | outb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); |
dev | 588 | drivers/net/eepro.c | dev->tbusy = 0; |
dev | 589 | drivers/net/eepro.c | dev->interrupt = 0; |
dev | 590 | drivers/net/eepro.c | dev->start = 1; |
dev | 604 | drivers/net/eepro.c | eepro_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 606 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 607 | drivers/net/eepro.c | int ioaddr = dev->base_addr; |
dev | 612 | drivers/net/eepro.c | if (dev->tbusy) { |
dev | 615 | drivers/net/eepro.c | int tickssofar = jiffies - dev->trans_start; |
dev | 619 | drivers/net/eepro.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 632 | drivers/net/eepro.c | dev->tbusy=0; |
dev | 633 | drivers/net/eepro.c | dev->trans_start = jiffies; |
dev | 643 | drivers/net/eepro.c | dev_tint(dev); |
dev | 648 | drivers/net/eepro.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 649 | drivers/net/eepro.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 654 | drivers/net/eepro.c | hardware_send_packet(dev, buf, length); |
dev | 655 | drivers/net/eepro.c | dev->trans_start = jiffies; |
dev | 675 | drivers/net/eepro.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 681 | drivers/net/eepro.c | if (dev == NULL) { |
dev | 685 | drivers/net/eepro.c | dev->interrupt = 1; |
dev | 687 | drivers/net/eepro.c | ioaddr = dev->base_addr; |
dev | 700 | drivers/net/eepro.c | eepro_rx(dev); |
dev | 710 | drivers/net/eepro.c | eepro_transmit_interrupt(dev); |
dev | 711 | drivers/net/eepro.c | dev->tbusy = 0; |
dev | 716 | drivers/net/eepro.c | dev->interrupt = 0; |
dev | 724 | drivers/net/eepro.c | eepro_close(struct device *dev) |
dev | 726 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 727 | drivers/net/eepro.c | int ioaddr = dev->base_addr; |
dev | 730 | drivers/net/eepro.c | dev->tbusy = 1; |
dev | 731 | drivers/net/eepro.c | dev->start = 0; |
dev | 756 | drivers/net/eepro.c | free_irq(dev->irq); |
dev | 758 | drivers/net/eepro.c | irq2dev_map[dev->irq] = 0; |
dev | 778 | drivers/net/eepro.c | eepro_get_stats(struct device *dev) |
dev | 780 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 792 | drivers/net/eepro.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 794 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 795 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 805 | drivers/net/eepro.c | printk("%s: promiscuous mode enabled.\n", dev->name); |
dev | 840 | drivers/net/eepro.c | eaddrs = (unsigned short *) dev->dev_addr; |
dev | 869 | drivers/net/eepro.c | dev->name); |
dev | 873 | drivers/net/eepro.c | dev->name, num_addrs); |
dev | 934 | drivers/net/eepro.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 936 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 937 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 1009 | drivers/net/eepro.c | if (dev->tbusy) { |
dev | 1010 | drivers/net/eepro.c | dev->tbusy = 0; |
dev | 1018 | drivers/net/eepro.c | dev->tbusy = 1; |
dev | 1024 | drivers/net/eepro.c | eepro_rx(struct device *dev) |
dev | 1026 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 1027 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 1051 | drivers/net/eepro.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 1056 | drivers/net/eepro.c | skb->dev = dev; |
dev | 1060 | drivers/net/eepro.c | skb->protocol = eth_type_trans(skb,dev); |
dev | 1074 | drivers/net/eepro.c | dev->name, rcv_event, rcv_status, rcv_next_frame, rcv_size); |
dev | 1096 | drivers/net/eepro.c | eepro_transmit_interrupt(struct device *dev) |
dev | 1098 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 1099 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 1111 | drivers/net/eepro.c | if (dev->tbusy) { |
dev | 1112 | drivers/net/eepro.c | dev->tbusy = 0; |
dev | 1123 | drivers/net/eepro.c | dev->name, xmt_status); |
dev | 288 | drivers/net/eexpress.c | extern int express_probe(struct device *dev); /* Called from Space.c */ |
dev | 290 | drivers/net/eexpress.c | static int eexp_probe1(struct device *dev, short ioaddr); |
dev | 291 | drivers/net/eexpress.c | static int eexp_open(struct device *dev); |
dev | 292 | drivers/net/eexpress.c | static int eexp_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 294 | drivers/net/eexpress.c | static void eexp_rx(struct device *dev); |
dev | 295 | drivers/net/eexpress.c | static int eexp_close(struct device *dev); |
dev | 296 | drivers/net/eexpress.c | static struct enet_statistics *eexp_get_stats(struct device *dev); |
dev | 297 | drivers/net/eexpress.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 300 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 301 | drivers/net/eexpress.c | static void init_82586_mem(struct device *dev); |
dev | 302 | drivers/net/eexpress.c | static void init_rx_bufs(struct device *dev); |
dev | 312 | drivers/net/eexpress.c | express_probe(struct device *dev) |
dev | 316 | drivers/net/eexpress.c | int base_addr = dev->base_addr; |
dev | 319 | drivers/net/eexpress.c | return eexp_probe1(dev, base_addr); |
dev | 338 | drivers/net/eexpress.c | && eexp_probe1(dev, *port) == 0) |
dev | 345 | drivers/net/eexpress.c | int eexp_probe1(struct device *dev, short ioaddr) |
dev | 350 | drivers/net/eexpress.c | printk("%s: EtherExpress at %#x,", dev->name, ioaddr); |
dev | 367 | drivers/net/eexpress.c | dev->base_addr = ioaddr; |
dev | 370 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
dev | 371 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
dev | 382 | drivers/net/eexpress.c | dev->irq = irqmap[setupval >> 13]; |
dev | 383 | drivers/net/eexpress.c | dev->if_port = (setupval & 0x1000) == 0 ? AUI : |
dev | 385 | drivers/net/eexpress.c | printk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]); |
dev | 394 | drivers/net/eexpress.c | if ((dev->mem_start & 0xf) > 0) |
dev | 395 | drivers/net/eexpress.c | net_debug = dev->mem_start & 7; |
dev | 401 | drivers/net/eexpress.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 402 | drivers/net/eexpress.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 404 | drivers/net/eexpress.c | dev->open = eexp_open; |
dev | 405 | drivers/net/eexpress.c | dev->stop = eexp_close; |
dev | 406 | drivers/net/eexpress.c | dev->hard_start_xmit = eexp_send_packet; |
dev | 407 | drivers/net/eexpress.c | dev->get_stats = eexp_get_stats; |
dev | 408 | drivers/net/eexpress.c | dev->set_multicast_list = &set_multicast_list; |
dev | 412 | drivers/net/eexpress.c | ether_setup(dev); |
dev | 422 | drivers/net/eexpress.c | eexp_open(struct device *dev) |
dev | 424 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 426 | drivers/net/eexpress.c | if (dev->irq == 0 || irqrmap[dev->irq] == 0) |
dev | 429 | drivers/net/eexpress.c | if (irq2dev_map[dev->irq] != 0 |
dev | 431 | drivers/net/eexpress.c | || (irq2dev_map[dev->irq] = dev) == 0 |
dev | 432 | drivers/net/eexpress.c | || request_irq(dev->irq, &eexp_interrupt, 0, "EExpress")) { |
dev | 437 | drivers/net/eexpress.c | init_82586_mem(dev); |
dev | 440 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
dev | 442 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 443 | drivers/net/eexpress.c | dev->interrupt = 0; |
dev | 444 | drivers/net/eexpress.c | dev->start = 1; |
dev | 452 | drivers/net/eexpress.c | eexp_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 454 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 455 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 457 | drivers/net/eexpress.c | if (dev->tbusy) { |
dev | 460 | drivers/net/eexpress.c | int tickssofar = jiffies - dev->trans_start; |
dev | 464 | drivers/net/eexpress.c | printk("%s: transmit timed out, %s? ", dev->name, |
dev | 472 | drivers/net/eexpress.c | init_82586_mem(dev); |
dev | 480 | drivers/net/eexpress.c | dev->tbusy=0; |
dev | 481 | drivers/net/eexpress.c | dev->trans_start = jiffies; |
dev | 488 | drivers/net/eexpress.c | dev_tint(dev); |
dev | 493 | drivers/net/eexpress.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 494 | drivers/net/eexpress.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 500 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 501 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
dev | 502 | drivers/net/eexpress.c | dev->trans_start = jiffies; |
dev | 504 | drivers/net/eexpress.c | outb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 520 | drivers/net/eexpress.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 525 | drivers/net/eexpress.c | if (dev == NULL) { |
dev | 529 | drivers/net/eexpress.c | dev->interrupt = 1; |
dev | 531 | drivers/net/eexpress.c | ioaddr = dev->base_addr; |
dev | 532 | drivers/net/eexpress.c | lp = (struct net_local *)dev->priv; |
dev | 537 | drivers/net/eexpress.c | printk("%s: EExp interrupt, status %4.4x.\n", dev->name, status); |
dev | 541 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 555 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 576 | drivers/net/eexpress.c | eexp_rx(dev); |
dev | 582 | drivers/net/eexpress.c | if ((status & 0x0700) != 0x0200 && dev->start) { |
dev | 586 | drivers/net/eexpress.c | dev->name, status); |
dev | 601 | drivers/net/eexpress.c | if ((status & 0x0070) != 0x0040 && dev->start) { |
dev | 609 | drivers/net/eexpress.c | dev->name, status, lp->rx_head, lp->rx_tail); |
dev | 620 | drivers/net/eexpress.c | init_rx_bufs(dev); |
dev | 630 | drivers/net/eexpress.c | printk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name, |
dev | 634 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
dev | 639 | drivers/net/eexpress.c | eexp_close(struct device *dev) |
dev | 641 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 643 | drivers/net/eexpress.c | dev->tbusy = 1; |
dev | 644 | drivers/net/eexpress.c | dev->start = 0; |
dev | 653 | drivers/net/eexpress.c | free_irq(dev->irq); |
dev | 655 | drivers/net/eexpress.c | irq2dev_map[dev->irq] = 0; |
dev | 671 | drivers/net/eexpress.c | eexp_get_stats(struct device *dev) |
dev | 673 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 687 | drivers/net/eexpress.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 691 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 755 | drivers/net/eexpress.c | init_82586_mem(struct device *dev) |
dev | 757 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 758 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 773 | drivers/net/eexpress.c | outsw(ioaddr, dev->dev_addr, 3); |
dev | 783 | drivers/net/eexpress.c | init_rx_bufs(dev); |
dev | 797 | drivers/net/eexpress.c | dev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD)); |
dev | 807 | drivers/net/eexpress.c | printk("%s: Initialized 82586, status %04x.\n", dev->name, |
dev | 813 | drivers/net/eexpress.c | static void init_rx_bufs(struct device *dev) |
dev | 815 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 816 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 854 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 856 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 857 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 894 | drivers/net/eexpress.c | "reap %4x status %4.4x.\n", dev->name, ioaddr, length, |
dev | 899 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 903 | drivers/net/eexpress.c | eexp_rx(struct device *dev) |
dev | 905 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 906 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 928 | drivers/net/eexpress.c | "next %04x data-buf @%04x %04x.\n", dev->name, rx_head, |
dev | 946 | drivers/net/eexpress.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 951 | drivers/net/eexpress.c | skb->dev = dev; |
dev | 957 | drivers/net/eexpress.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 969 | drivers/net/eexpress.c | printk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name, |
dev | 983 | drivers/net/eexpress.c | dev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)), |
dev | 140 | drivers/net/eql.c | int eql_init(struct device *dev); /* */ |
dev | 141 | drivers/net/eql.c | static int eql_open(struct device *dev); /* */ |
dev | 142 | drivers/net/eql.c | static int eql_close(struct device *dev); /* */ |
dev | 143 | drivers/net/eql.c | static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /* */ |
dev | 144 | drivers/net/eql.c | static int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /* */ |
dev | 146 | drivers/net/eql.c | static struct enet_statistics *eql_get_stats(struct device *dev); /* */ |
dev | 147 | drivers/net/eql.c | static int eql_header(unsigned char *buff, struct device *dev, |
dev | 150 | drivers/net/eql.c | static int eql_rebuild_header(void *buff, struct device *dev, |
dev | 155 | drivers/net/eql.c | static int eql_enslave(struct device *dev, slaving_request_t *srq); /* */ |
dev | 156 | drivers/net/eql.c | static int eql_emancipate(struct device *dev, slaving_request_t *srq); /* */ |
dev | 158 | drivers/net/eql.c | static int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /* */ |
dev | 159 | drivers/net/eql.c | static int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /* */ |
dev | 161 | drivers/net/eql.c | static int eql_g_master_cfg(struct device *dev, master_config_t *mc); /* */ |
dev | 162 | drivers/net/eql.c | static int eql_s_master_cfg(struct device *dev, master_config_t *mc); /* */ |
dev | 164 | drivers/net/eql.c | static inline int eql_is_slave(struct device *dev); /* */ |
dev | 165 | drivers/net/eql.c | static inline int eql_is_master(struct device *dev); /* */ |
dev | 176 | drivers/net/eql.c | static slave_queue_t *eql_new_slave_queue(struct device *dev); /* */ |
dev | 183 | drivers/net/eql.c | static int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
dev | 193 | drivers/net/eql.c | static slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
dev | 205 | drivers/net/eql.c | eql_init(struct device *dev) |
dev | 216 | drivers/net/eql.c | dev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL); |
dev | 217 | drivers/net/eql.c | memset (dev->priv, 0, sizeof (equalizer_t)); |
dev | 218 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 224 | drivers/net/eql.c | eql->timer.data = (unsigned long) dev->priv; |
dev | 229 | drivers/net/eql.c | dev->open = eql_open; |
dev | 230 | drivers/net/eql.c | dev->stop = eql_close; |
dev | 231 | drivers/net/eql.c | dev->do_ioctl = eql_ioctl; |
dev | 232 | drivers/net/eql.c | dev->hard_start_xmit = eql_slave_xmit; |
dev | 233 | drivers/net/eql.c | dev->get_stats = eql_get_stats; |
dev | 239 | drivers/net/eql.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 241 | drivers/net/eql.c | dev->hard_header = eql_header; |
dev | 242 | drivers/net/eql.c | dev->rebuild_header = eql_rebuild_header; |
dev | 245 | drivers/net/eql.c | dev->mtu = EQL_DEFAULT_MTU; /* set to 576 in eql.h */ |
dev | 246 | drivers/net/eql.c | dev->flags = IFF_MASTER; |
dev | 248 | drivers/net/eql.c | dev->family = AF_INET; |
dev | 249 | drivers/net/eql.c | dev->pa_addr = 0; |
dev | 250 | drivers/net/eql.c | dev->pa_brdaddr = 0; |
dev | 251 | drivers/net/eql.c | dev->pa_mask = 0; |
dev | 252 | drivers/net/eql.c | dev->pa_alen = sizeof (unsigned long); |
dev | 254 | drivers/net/eql.c | dev->type = ARPHRD_SLIP; |
dev | 262 | drivers/net/eql.c | eql_open(struct device *dev) |
dev | 264 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 269 | drivers/net/eql.c | printk ("%s: open\n", dev->name); |
dev | 272 | drivers/net/eql.c | new_queue = eql_new_slave_queue (dev); |
dev | 276 | drivers/net/eql.c | new_queue->master_dev = dev; |
dev | 282 | drivers/net/eql.c | printk ("%s: adding timer\n", dev->name); |
dev | 294 | drivers/net/eql.c | eql_close(struct device *dev) |
dev | 296 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 300 | drivers/net/eql.c | printk ("%s: close\n", dev->name); |
dev | 304 | drivers/net/eql.c | printk ("%s: stopping timer\n", dev->name); |
dev | 316 | drivers/net/eql.c | eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
dev | 323 | drivers/net/eql.c | return eql_enslave (dev, (slaving_request_t *) ifr->ifr_data); |
dev | 325 | drivers/net/eql.c | return eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data); |
dev | 328 | drivers/net/eql.c | return eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data); |
dev | 330 | drivers/net/eql.c | return eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data); |
dev | 333 | drivers/net/eql.c | return eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data); |
dev | 335 | drivers/net/eql.c | return eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data); |
dev | 345 | drivers/net/eql.c | eql_slave_xmit(struct sk_buff *skb, struct device *dev) |
dev | 347 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 366 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
dev | 388 | drivers/net/eql.c | eql_get_stats(struct device *dev) |
dev | 390 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 398 | drivers/net/eql.c | eql_header(unsigned char *buff, struct device *dev, |
dev | 408 | drivers/net/eql.c | eql_rebuild_header(void *buff, struct device *dev, |
dev | 422 | drivers/net/eql.c | eql_enslave(struct device *dev, slaving_request_t *srqp) |
dev | 432 | drivers/net/eql.c | printk ("%s: enslave '%s' %ld bps\n", dev->name, |
dev | 436 | drivers/net/eql.c | master_dev = dev; /* for "clarity" */ |
dev | 447 | drivers/net/eql.c | s->dev = slave_dev; |
dev | 467 | drivers/net/eql.c | eql_emancipate(struct device *dev, slaving_request_t *srqp) |
dev | 477 | drivers/net/eql.c | printk ("%s: emancipate `%s`\n", dev->name, srq.slave_name); |
dev | 481 | drivers/net/eql.c | master_dev = dev; /* for "clarity" */ |
dev | 499 | drivers/net/eql.c | eql_g_slave_cfg(struct device *dev, slave_config_t *scp) |
dev | 510 | drivers/net/eql.c | printk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name); |
dev | 513 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 532 | drivers/net/eql.c | eql_s_slave_cfg(struct device *dev, slave_config_t *scp) |
dev | 541 | drivers/net/eql.c | printk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name); |
dev | 546 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 566 | drivers/net/eql.c | eql_g_master_cfg(struct device *dev, master_config_t *mcp) |
dev | 573 | drivers/net/eql.c | printk ("%s: get master config\n", dev->name); |
dev | 576 | drivers/net/eql.c | if ( eql_is_master (dev) ) |
dev | 578 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 590 | drivers/net/eql.c | eql_s_master_cfg(struct device *dev, master_config_t *mcp) |
dev | 597 | drivers/net/eql.c | printk ("%s: set master config\n", dev->name); |
dev | 602 | drivers/net/eql.c | if ( eql_is_master (dev) ) |
dev | 604 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 618 | drivers/net/eql.c | eql_is_slave(struct device *dev) |
dev | 620 | drivers/net/eql.c | if (dev) |
dev | 622 | drivers/net/eql.c | if ((dev->flags & IFF_SLAVE) == IFF_SLAVE) |
dev | 631 | drivers/net/eql.c | eql_is_master(struct device *dev) |
dev | 633 | drivers/net/eql.c | if (dev) |
dev | 635 | drivers/net/eql.c | if ((dev->flags & IFF_MASTER) == IFF_MASTER) |
dev | 716 | drivers/net/eql.c | eql_new_slave_queue(struct device *dev) |
dev | 735 | drivers/net/eql.c | queue->master_dev = dev; |
dev | 776 | drivers/net/eql.c | duplicate_slave = eql_find_slave_dev (queue, slave->dev); |
dev | 810 | drivers/net/eql.c | current->dev != 0 ) |
dev | 833 | drivers/net/eql.c | eql_insert_slave_dev(slave_queue_t *queue, struct device *dev) |
dev | 842 | drivers/net/eql.c | slave->dev = dev; |
dev | 859 | drivers/net/eql.c | eql_remove_slave_dev(slave_queue_t *queue, struct device *dev) |
dev | 865 | drivers/net/eql.c | target = eql_find_slave_dev (queue, dev); |
dev | 896 | drivers/net/eql.c | if (queue->best_slave->dev != 0) |
dev | 897 | drivers/net/eql.c | return queue->best_slave->dev; |
dev | 959 | drivers/net/eql.c | if ( slave->dev != 0) |
dev | 961 | drivers/net/eql.c | if ((slave->dev->flags & IFF_UP) == IFF_UP ) |
dev | 1001 | drivers/net/eql.c | eql_find_slave_dev(slave_queue_t *queue, struct device *dev) |
dev | 1007 | drivers/net/eql.c | while (slave != 0 && slave->dev != dev && slave != 0) |
dev | 1010 | drivers/net/eql.c | if (slave->dev != 0) |
dev | 1011 | drivers/net/eql.c | printk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name); |
dev | 1108 | drivers/net/eql.c | if ((slave->dev->flags & IFF_UP) == IFF_UP ) |
dev | 291 | drivers/net/ewrk3.c | static int ewrk3_open(struct device *dev); |
dev | 292 | drivers/net/ewrk3.c | static int ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev); |
dev | 294 | drivers/net/ewrk3.c | static int ewrk3_close(struct device *dev); |
dev | 295 | drivers/net/ewrk3.c | static struct enet_statistics *ewrk3_get_stats(struct device *dev); |
dev | 296 | drivers/net/ewrk3.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 297 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
dev | 302 | drivers/net/ewrk3.c | static int ewrk3_hw_init(struct device *dev, short iobase); |
dev | 303 | drivers/net/ewrk3.c | static void ewrk3_init(struct device *dev); |
dev | 304 | drivers/net/ewrk3.c | static int ewrk3_rx(struct device *dev); |
dev | 305 | drivers/net/ewrk3.c | static int ewrk3_tx(struct device *dev); |
dev | 309 | drivers/net/ewrk3.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table); |
dev | 313 | drivers/net/ewrk3.c | static unsigned char aprom_crc (struct device *dev, unsigned char *eeprom_image, char chipType); |
dev | 316 | drivers/net/ewrk3.c | static struct device *isa_probe(struct device *dev); |
dev | 317 | drivers/net/ewrk3.c | static struct device *eisa_probe(struct device *dev); |
dev | 318 | drivers/net/ewrk3.c | static struct device *alloc_device(struct device *dev, int iobase); |
dev | 343 | drivers/net/ewrk3.c | int ewrk3_probe(struct device *dev) |
dev | 345 | drivers/net/ewrk3.c | int base_addr = dev->base_addr; |
dev | 358 | drivers/net/ewrk3.c | status = ewrk3_hw_init(dev, base_addr); |
dev | 365 | drivers/net/ewrk3.c | printk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, base_addr); |
dev | 369 | drivers/net/ewrk3.c | status = ewrk3_hw_init(dev, base_addr); |
dev | 381 | drivers/net/ewrk3.c | eth0=isa_probe(dev); |
dev | 383 | drivers/net/ewrk3.c | if (dev->priv) status=0; |
dev | 391 | drivers/net/ewrk3.c | if (status) dev->base_addr = base_addr; |
dev | 397 | drivers/net/ewrk3.c | ewrk3_hw_init(struct device *dev, short iobase) |
dev | 439 | drivers/net/ewrk3.c | printk("%s: Device has a bad on-board EEPROM.\n", dev->name); |
dev | 448 | drivers/net/ewrk3.c | dev->base_addr = iobase; |
dev | 459 | drivers/net/ewrk3.c | printk("%s: %s at %#3x", dev->name, name, iobase); |
dev | 464 | drivers/net/ewrk3.c | dev->name, name, iobase, ((iobase>>12)&0x0f)); |
dev | 466 | drivers/net/ewrk3.c | printk("%s: %s at %#3x", dev->name, name, iobase); |
dev | 473 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = |
dev | 477 | drivers/net/ewrk3.c | printk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]); |
dev | 482 | drivers/net/ewrk3.c | printk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM)); |
dev | 483 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
dev | 485 | drivers/net/ewrk3.c | printk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM)); |
dev | 486 | drivers/net/ewrk3.c | outb(dev->dev_addr[i], EWRK3_PAR0 + i); |
dev | 489 | drivers/net/ewrk3.c | if (aprom_crc(dev, eeprom_image, lemac)) { |
dev | 549 | drivers/net/ewrk3.c | dev->priv = (void *) kmalloc(sizeof(struct ewrk3_private), |
dev | 551 | drivers/net/ewrk3.c | lp = (struct ewrk3_private *)dev->priv; |
dev | 552 | drivers/net/ewrk3.c | memset(dev->priv, 0, sizeof(struct ewrk3_private)); |
dev | 569 | drivers/net/ewrk3.c | dev->dma = 0; |
dev | 573 | drivers/net/ewrk3.c | if (dev->irq < 2) { |
dev | 588 | drivers/net/ewrk3.c | dev->irq = autoirq_report(1); |
dev | 589 | drivers/net/ewrk3.c | if ((dev->irq) && (irqnum == dev->irq)) { |
dev | 590 | drivers/net/ewrk3.c | printk(" and uses IRQ%d.\n", dev->irq); |
dev | 592 | drivers/net/ewrk3.c | if (!dev->irq) { |
dev | 606 | drivers/net/ewrk3.c | printk(" and requires IRQ%d.\n", dev->irq); |
dev | 625 | drivers/net/ewrk3.c | dev->open = &ewrk3_open; |
dev | 626 | drivers/net/ewrk3.c | dev->hard_start_xmit = &ewrk3_queue_pkt; |
dev | 627 | drivers/net/ewrk3.c | dev->stop = &ewrk3_close; |
dev | 628 | drivers/net/ewrk3.c | dev->get_stats = &ewrk3_get_stats; |
dev | 630 | drivers/net/ewrk3.c | dev->set_multicast_list = &set_multicast_list; |
dev | 632 | drivers/net/ewrk3.c | dev->do_ioctl = &ewrk3_ioctl; |
dev | 634 | drivers/net/ewrk3.c | dev->mem_start = 0; |
dev | 637 | drivers/net/ewrk3.c | ether_setup(dev); |
dev | 648 | drivers/net/ewrk3.c | ewrk3_open(struct device *dev) |
dev | 650 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 651 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
dev | 661 | drivers/net/ewrk3.c | if (request_irq(dev->irq, &ewrk3_interrupt, 0, "ewrk3")) { |
dev | 662 | drivers/net/ewrk3.c | printk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 666 | drivers/net/ewrk3.c | irq2dev_map[dev->irq] = dev; |
dev | 671 | drivers/net/ewrk3.c | ewrk3_init(dev); |
dev | 674 | drivers/net/ewrk3.c | printk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq); |
dev | 677 | drivers/net/ewrk3.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
dev | 695 | drivers/net/ewrk3.c | dev->tbusy = 0; |
dev | 696 | drivers/net/ewrk3.c | dev->start = 1; |
dev | 697 | drivers/net/ewrk3.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 707 | drivers/net/ewrk3.c | dev->start = 0; |
dev | 708 | drivers/net/ewrk3.c | dev->tbusy = 1; |
dev | 709 | drivers/net/ewrk3.c | printk("%s: ewrk3 available for hard strapped set up only.\n", dev->name); |
dev | 725 | drivers/net/ewrk3.c | ewrk3_init(struct device *dev) |
dev | 727 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 729 | drivers/net/ewrk3.c | short iobase = dev->base_addr; |
dev | 734 | drivers/net/ewrk3.c | set_multicast_list(dev, HASH_TABLE_LEN, NULL); |
dev | 760 | drivers/net/ewrk3.c | ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev) |
dev | 762 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 763 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 768 | drivers/net/ewrk3.c | if (dev->tbusy || lp->lock) { |
dev | 769 | drivers/net/ewrk3.c | int tickssofar = jiffies - dev->trans_start; |
dev | 774 | drivers/net/ewrk3.c | dev->name, inb(EWRK3_CSR)); |
dev | 786 | drivers/net/ewrk3.c | ewrk3_init(dev); |
dev | 793 | drivers/net/ewrk3.c | dev->tbusy=0; |
dev | 794 | drivers/net/ewrk3.c | dev->trans_start = jiffies; |
dev | 797 | drivers/net/ewrk3.c | dev_tint(dev); |
dev | 804 | drivers/net/ewrk3.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 805 | drivers/net/ewrk3.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 836 | drivers/net/ewrk3.c | printk("%s: Oops - your private data area is hosed!\n",dev->name); |
dev | 877 | drivers/net/ewrk3.c | dev->trans_start = jiffies; |
dev | 896 | drivers/net/ewrk3.c | dev->tbusy = 0; |
dev | 911 | drivers/net/ewrk3.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 916 | drivers/net/ewrk3.c | if (dev == NULL) { |
dev | 919 | drivers/net/ewrk3.c | lp = (struct ewrk3_private *)dev->priv; |
dev | 920 | drivers/net/ewrk3.c | iobase = dev->base_addr; |
dev | 922 | drivers/net/ewrk3.c | if (dev->interrupt) |
dev | 923 | drivers/net/ewrk3.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 925 | drivers/net/ewrk3.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 940 | drivers/net/ewrk3.c | ewrk3_rx(dev); |
dev | 943 | drivers/net/ewrk3.c | ewrk3_tx(dev); |
dev | 955 | drivers/net/ewrk3.c | dev->tbusy = 0; /* clear TX busy flag */ |
dev | 965 | drivers/net/ewrk3.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 974 | drivers/net/ewrk3.c | ewrk3_rx(struct device *dev) |
dev | 976 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 977 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
dev | 1013 | drivers/net/ewrk3.c | printk("%s: Oops - your private data area is hosed!\n",dev->name); |
dev | 1040 | drivers/net/ewrk3.c | skb->dev = dev; |
dev | 1058 | drivers/net/ewrk3.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1078 | drivers/net/ewrk3.c | } else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) && |
dev | 1079 | drivers/net/ewrk3.c | (*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) { |
dev | 1088 | drivers/net/ewrk3.c | printk("%s: Insufficient memory; nuking packet.\n", dev->name); |
dev | 1119 | drivers/net/ewrk3.c | ewrk3_tx(struct device *dev) |
dev | 1121 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1122 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1154 | drivers/net/ewrk3.c | ewrk3_close(struct device *dev) |
dev | 1156 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1157 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1160 | drivers/net/ewrk3.c | dev->start = 0; |
dev | 1161 | drivers/net/ewrk3.c | dev->tbusy = 1; |
dev | 1165 | drivers/net/ewrk3.c | dev->name, inb(EWRK3_CSR)); |
dev | 1186 | drivers/net/ewrk3.c | free_irq(dev->irq); |
dev | 1188 | drivers/net/ewrk3.c | irq2dev_map[dev->irq] = 0; |
dev | 1199 | drivers/net/ewrk3.c | ewrk3_get_stats(struct device *dev) |
dev | 1201 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1216 | drivers/net/ewrk3.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1218 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1219 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1232 | drivers/net/ewrk3.c | SetMulticastFilter(dev, num_addrs, (char *)addrs, multicast_table); |
dev | 1251 | drivers/net/ewrk3.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table) |
dev | 1253 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1254 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
dev | 1334 | drivers/net/ewrk3.c | static struct device *isa_probe(struct device *dev) |
dev | 1352 | drivers/net/ewrk3.c | dev = alloc_device(dev, iobase); |
dev | 1354 | drivers/net/ewrk3.c | if ((status = ewrk3_hw_init(dev, iobase)) == 0) { |
dev | 1363 | drivers/net/ewrk3.c | printk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, iobase); |
dev | 1370 | drivers/net/ewrk3.c | return dev; |
dev | 1377 | drivers/net/ewrk3.c | static struct device *eisa_probe(struct device *dev) |
dev | 1395 | drivers/net/ewrk3.c | dev = alloc_device(dev, iobase); |
dev | 1397 | drivers/net/ewrk3.c | if ((status = ewrk3_hw_init(dev, iobase)) == 0) { |
dev | 1405 | drivers/net/ewrk3.c | return dev; |
dev | 1412 | drivers/net/ewrk3.c | static struct device *alloc_device(struct device *dev, int iobase) |
dev | 1417 | drivers/net/ewrk3.c | while (dev->next != NULL) { |
dev | 1418 | drivers/net/ewrk3.c | if (dev->next->base_addr == 0xffe0) break; |
dev | 1419 | drivers/net/ewrk3.c | dev = dev->next; /* walk through eth device list */ |
dev | 1427 | drivers/net/ewrk3.c | if (dev->next == NULL) { |
dev | 1428 | drivers/net/ewrk3.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 1430 | drivers/net/ewrk3.c | if (dev->next == NULL) { |
dev | 1441 | drivers/net/ewrk3.c | if ((dev->next != NULL) && |
dev | 1443 | drivers/net/ewrk3.c | dev = dev->next; /* point to the new device */ |
dev | 1444 | drivers/net/ewrk3.c | dev->name = (char *)(dev + sizeof(struct device)); |
dev | 1445 | drivers/net/ewrk3.c | sprintf(dev->name,"eth%d", num_eth);/* New device name */ |
dev | 1446 | drivers/net/ewrk3.c | dev->base_addr = iobase; /* assign the io address */ |
dev | 1447 | drivers/net/ewrk3.c | dev->next = NULL; /* mark the end of list */ |
dev | 1448 | drivers/net/ewrk3.c | dev->init = &ewrk3_probe; /* initialisation routine */ |
dev | 1452 | drivers/net/ewrk3.c | return dev; |
dev | 1576 | drivers/net/ewrk3.c | static unsigned char aprom_crc(struct device *dev, unsigned char *eeprom_image, char chipType) |
dev | 1581 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1611 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 1613 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1615 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
dev | 1625 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
dev | 1639 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
dev | 1672 | drivers/net/ewrk3.c | printk("%s: Boo!\n", dev->name); |
dev | 1697 | drivers/net/ewrk3.c | set_multicast_list(dev, ioc->len, tmp.addr); |
dev | 1705 | drivers/net/ewrk3.c | set_multicast_list(dev, 0, NULL); |
dev | 37 | drivers/net/hp-plus.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 95 | drivers/net/hp-plus.c | int hpplus_probe(struct device *dev); |
dev | 96 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr); |
dev | 98 | drivers/net/hp-plus.c | static void hpp_reset_8390(struct device *dev); |
dev | 99 | drivers/net/hp-plus.c | static int hpp_open(struct device *dev); |
dev | 100 | drivers/net/hp-plus.c | static int hpp_close(struct device *dev); |
dev | 101 | drivers/net/hp-plus.c | static int hpp_mem_block_input(struct device *dev, int count, |
dev | 103 | drivers/net/hp-plus.c | static void hpp_mem_block_output(struct device *dev, int count, |
dev | 105 | drivers/net/hp-plus.c | static int hpp_io_block_input(struct device *dev, int count, |
dev | 107 | drivers/net/hp-plus.c | static void hpp_io_block_output(struct device *dev, int count, |
dev | 120 | drivers/net/hp-plus.c | int hp_plus_probe(struct device *dev) |
dev | 123 | drivers/net/hp-plus.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 126 | drivers/net/hp-plus.c | return hpp_probe1(dev, base_addr); |
dev | 134 | drivers/net/hp-plus.c | if (hpp_probe1(dev, ioaddr) == 0) |
dev | 143 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr) |
dev | 155 | drivers/net/hp-plus.c | if (dev == NULL) |
dev | 156 | drivers/net/hp-plus.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 158 | drivers/net/hp-plus.c | printk("%s: %s at %#3x,", dev->name, name, ioaddr); |
dev | 165 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
dev | 189 | drivers/net/hp-plus.c | dev->irq = irq; |
dev | 205 | drivers/net/hp-plus.c | dev->base_addr = ioaddr + NIC_OFFSET; |
dev | 207 | drivers/net/hp-plus.c | ethdev_init(dev); |
dev | 209 | drivers/net/hp-plus.c | dev->open = &hpp_open; |
dev | 210 | drivers/net/hp-plus.c | dev->stop = &hpp_close; |
dev | 226 | drivers/net/hp-plus.c | dev->mem_start = mem_start; |
dev | 227 | drivers/net/hp-plus.c | dev->rmem_start = dev->mem_start + TX_2X_PAGES*256; |
dev | 228 | drivers/net/hp-plus.c | dev->mem_end = dev->rmem_end |
dev | 229 | drivers/net/hp-plus.c | = dev->mem_start + (HP_STOP_PG - HP_START_PG)*256; |
dev | 233 | drivers/net/hp-plus.c | NS8390_init(dev, 0); |
dev | 241 | drivers/net/hp-plus.c | hpp_open(struct device *dev) |
dev | 243 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 246 | drivers/net/hp-plus.c | if (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus")) { |
dev | 264 | drivers/net/hp-plus.c | return ei_open(dev); |
dev | 268 | drivers/net/hp-plus.c | hpp_close(struct device *dev) |
dev | 270 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 273 | drivers/net/hp-plus.c | free_irq(dev->irq); |
dev | 274 | drivers/net/hp-plus.c | irq2dev_map[dev->irq] = NULL; |
dev | 275 | drivers/net/hp-plus.c | NS8390_init(dev, 0); |
dev | 283 | drivers/net/hp-plus.c | hpp_reset_8390(struct device *dev) |
dev | 285 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 301 | drivers/net/hp-plus.c | printk("%s: hp_reset_8390() did not complete.\n", dev->name); |
dev | 311 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 313 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 323 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 325 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 332 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
dev | 341 | drivers/net/hp-plus.c | hpp_io_block_output(struct device *dev, int count, |
dev | 344 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 351 | drivers/net/hp-plus.c | hpp_mem_block_output(struct device *dev, int count, |
dev | 354 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 359 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
dev | 34 | drivers/net/hp.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 55 | drivers/net/hp.c | int hp_probe(struct device *dev); |
dev | 56 | drivers/net/hp.c | int hp_probe1(struct device *dev, int ioaddr); |
dev | 58 | drivers/net/hp.c | static void hp_reset_8390(struct device *dev); |
dev | 59 | drivers/net/hp.c | static int hp_block_input(struct device *dev, int count, |
dev | 61 | drivers/net/hp.c | static void hp_block_output(struct device *dev, int count, |
dev | 63 | drivers/net/hp.c | static void hp_init_card(struct device *dev); |
dev | 78 | drivers/net/hp.c | int hp_probe(struct device *dev) |
dev | 81 | drivers/net/hp.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 84 | drivers/net/hp.c | return hp_probe1(dev, base_addr); |
dev | 92 | drivers/net/hp.c | if (hp_probe1(dev, ioaddr) == 0) |
dev | 100 | drivers/net/hp.c | int hp_probe1(struct device *dev, int ioaddr) |
dev | 124 | drivers/net/hp.c | if (dev == NULL) |
dev | 125 | drivers/net/hp.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 130 | drivers/net/hp.c | printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); |
dev | 133 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 136 | drivers/net/hp.c | if (dev->irq < 2) { |
dev | 150 | drivers/net/hp.c | dev->irq = *irqp; |
dev | 160 | drivers/net/hp.c | if (dev->irq == 2) |
dev | 161 | drivers/net/hp.c | dev->irq = 9; |
dev | 162 | drivers/net/hp.c | if (request_irq(dev->irq, ei_interrupt, 0, "hp")) { |
dev | 163 | drivers/net/hp.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 172 | drivers/net/hp.c | dev->base_addr = ioaddr + NIC_OFFSET; |
dev | 174 | drivers/net/hp.c | ethdev_init(dev); |
dev | 185 | drivers/net/hp.c | hp_init_card(dev); |
dev | 191 | drivers/net/hp.c | hp_reset_8390(struct device *dev) |
dev | 193 | drivers/net/hp.c | int hp_base = dev->base_addr - NIC_OFFSET; |
dev | 207 | drivers/net/hp.c | printk("%s: hp_reset_8390() did not complete.\n", dev->name); |
dev | 219 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 221 | drivers/net/hp.c | int nic_base = dev->base_addr; |
dev | 247 | drivers/net/hp.c | dev->name, ring_offset + xfer_count, addr); |
dev | 254 | drivers/net/hp.c | hp_block_output(struct device *dev, int count, |
dev | 257 | drivers/net/hp.c | int nic_base = dev->base_addr; |
dev | 304 | drivers/net/hp.c | dev->name, (start_page << 8) + count, addr); |
dev | 312 | drivers/net/hp.c | hp_init_card(struct device *dev) |
dev | 314 | drivers/net/hp.c | int irq = dev->irq; |
dev | 315 | drivers/net/hp.c | NS8390_init(dev, 0); |
dev | 317 | drivers/net/hp.c | dev->base_addr - NIC_OFFSET + HP_CONFIGURE); |
dev | 77 | drivers/net/ibmtr.c | #define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args) |
dev | 78 | drivers/net/ibmtr.c | #define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args) |
dev | 86 | drivers/net/ibmtr.c | void (*do_tok_int)(struct device *dev)=NULL; |
dev | 98 | drivers/net/ibmtr.c | int tok_probe(struct device *dev); |
dev | 104 | drivers/net/ibmtr.c | static void initial_tok_int(struct device *dev); |
dev | 106 | drivers/net/ibmtr.c | static void open_sap(unsigned char type,struct device *dev); |
dev | 108 | drivers/net/ibmtr.c | static void tr_rx(struct device *dev); |
dev | 109 | drivers/net/ibmtr.c | static void tr_tx(struct device *dev); |
dev | 111 | drivers/net/ibmtr.c | static int tok_open(struct device *dev); |
dev | 112 | drivers/net/ibmtr.c | static int tok_close(struct device *dev); |
dev | 113 | drivers/net/ibmtr.c | static int tok_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 114 | drivers/net/ibmtr.c | static struct enet_statistics * tok_get_stats(struct device *dev); |
dev | 142 | drivers/net/ibmtr.c | int tok_probe(struct device *dev) { |
dev | 255 | drivers/net/ibmtr.c | dev->priv = ti; /* this seems like the logical use of the |
dev | 308 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
dev | 419 | drivers/net/ibmtr.c | if (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR") != 0) { |
dev | 424 | drivers/net/ibmtr.c | irq2dev_map[irq]=dev; |
dev | 428 | drivers/net/ibmtr.c | dev->base_addr=PIOaddr; /* set the value for device */ |
dev | 430 | drivers/net/ibmtr.c | dev->open=tok_open; |
dev | 431 | drivers/net/ibmtr.c | dev->stop=tok_close; |
dev | 432 | drivers/net/ibmtr.c | dev->hard_start_xmit=tok_send_packet; |
dev | 433 | drivers/net/ibmtr.c | dev->get_stats = NULL; |
dev | 434 | drivers/net/ibmtr.c | dev->get_stats = tok_get_stats; |
dev | 435 | drivers/net/ibmtr.c | dev->set_multicast_list = NULL; |
dev | 436 | drivers/net/ibmtr.c | tr_setup(dev); |
dev | 437 | drivers/net/ibmtr.c | tok_init_card((unsigned long)dev); |
dev | 465 | drivers/net/ibmtr.c | static int tok_open(struct device *dev) { |
dev | 467 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
dev | 470 | drivers/net/ibmtr.c | tok_init_card((unsigned long)dev); |
dev | 478 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 479 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 480 | drivers/net/ibmtr.c | dev->start=1; |
dev | 490 | drivers/net/ibmtr.c | static int tok_close(struct device *dev) { |
dev | 492 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 515 | drivers/net/ibmtr.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 517 | drivers/net/ibmtr.c | DPRINTK("Int from tok_driver, dev : %p\n",dev); |
dev | 519 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 529 | drivers/net/ibmtr.c | dev->interrupt=1; |
dev | 553 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 563 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 578 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 591 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 622 | drivers/net/ibmtr.c | open_sap(EXTENDED_SAP,dev); |
dev | 631 | drivers/net/ibmtr.c | tr_timer.data=(unsigned long)dev; |
dev | 646 | drivers/net/ibmtr.c | tr_timer.data=(unsigned long)dev; |
dev | 682 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 717 | drivers/net/ibmtr.c | tr_rx(dev); |
dev | 728 | drivers/net/ibmtr.c | tr_timer.data=(unsigned long)dev; |
dev | 739 | drivers/net/ibmtr.c | dev->tbusy=1; /* really srb busy... */ |
dev | 745 | drivers/net/ibmtr.c | tr_tx(dev); |
dev | 777 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 784 | drivers/net/ibmtr.c | initial_tok_int(dev); |
dev | 792 | drivers/net/ibmtr.c | static void initial_tok_int(struct device *dev) { |
dev | 798 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 838 | drivers/net/ibmtr.c | printk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" ); |
dev | 841 | drivers/net/ibmtr.c | tok_open_adapter((unsigned long)dev); |
dev | 850 | drivers/net/ibmtr.c | struct device *dev=(struct device *)dev_addr; |
dev | 851 | drivers/net/ibmtr.c | PIOaddr = dev->base_addr; |
dev | 852 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 859 | drivers/net/ibmtr.c | dev->tbusy=1; /* nothing can be done before reset and open completed */ |
dev | 880 | drivers/net/ibmtr.c | static void open_sap(unsigned char type,struct device *dev) { |
dev | 882 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 900 | drivers/net/ibmtr.c | struct device *dev=(struct device *)dev_addr; |
dev | 903 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 929 | drivers/net/ibmtr.c | static void tr_tx(struct device *dev) { |
dev | 931 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1017 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 1023 | drivers/net/ibmtr.c | static void tr_rx(struct device *dev) { |
dev | 1025 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1085 | drivers/net/ibmtr.c | skb->dev=dev; |
dev | 1122 | drivers/net/ibmtr.c | skb->protocol=tr_type_trans(skb,dev); |
dev | 1128 | drivers/net/ibmtr.c | static int tok_send_packet(struct sk_buff *skb, struct device *dev) { |
dev | 1130 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1136 | drivers/net/ibmtr.c | if (dev->tbusy) { |
dev | 1137 | drivers/net/ibmtr.c | int ticks_waited=jiffies - dev->trans_start; |
dev | 1143 | drivers/net/ibmtr.c | dev->trans_start+=5; /* we fake the transmission start time... */ |
dev | 1150 | drivers/net/ibmtr.c | dev_tint(dev); |
dev | 1154 | drivers/net/ibmtr.c | if(set_bit(0,(void *)&dev->tbusy)!=0) |
dev | 1164 | drivers/net/ibmtr.c | dev->trans_start=jiffies; |
dev | 1175 | drivers/net/ibmtr.c | static struct enet_statistics * tok_get_stats(struct device *dev) { |
dev | 1178 | drivers/net/ibmtr.c | toki=(struct tok_info *) dev->priv; |
dev | 39 | drivers/net/lance.c | struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 252 | drivers/net/lance.c | static int lance_open(struct device *dev); |
dev | 253 | drivers/net/lance.c | static void lance_init_ring(struct device *dev); |
dev | 254 | drivers/net/lance.c | static int lance_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 255 | drivers/net/lance.c | static int lance_rx(struct device *dev); |
dev | 257 | drivers/net/lance.c | static int lance_close(struct device *dev); |
dev | 258 | drivers/net/lance.c | static struct enet_statistics *lance_get_stats(struct device *dev); |
dev | 260 | drivers/net/lance.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 329 | drivers/net/lance.c | struct device *dev; |
dev | 387 | drivers/net/lance.c | dev = init_etherdev(0, sizeof(struct lance_private) |
dev | 392 | drivers/net/lance.c | printk("%s: %s at %#3x,", dev->name, chipname, ioaddr); |
dev | 397 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 399 | drivers/net/lance.c | dev->base_addr = ioaddr; |
dev | 403 | drivers/net/lance.c | dev->priv = (void *)(((int)dev->priv + 7) & ~7); |
dev | 404 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
dev | 406 | drivers/net/lance.c | lp->rx_buffs = (long)dev->priv + sizeof(struct lance_private); |
dev | 422 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 438 | drivers/net/lance.c | dev->dma = 4; /* Native bus-master, no DMA channel needed. */ |
dev | 439 | drivers/net/lance.c | dev->irq = pci_irq_line; |
dev | 444 | drivers/net/lance.c | dev->dma = dma_tbl[(port_val >> 4) & 3]; |
dev | 445 | drivers/net/lance.c | dev->irq = irq_tbl[(port_val >> 2) & 3]; |
dev | 446 | drivers/net/lance.c | printk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma); |
dev | 451 | drivers/net/lance.c | dev->dma = dma_tbl[(reset_val >> 2) & 3]; |
dev | 452 | drivers/net/lance.c | dev->irq = irq_tbl[(reset_val >> 4) & 7]; |
dev | 453 | drivers/net/lance.c | printk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma); |
dev | 458 | drivers/net/lance.c | dev->dma = bus_info & 0x07; |
dev | 459 | drivers/net/lance.c | dev->irq = (bus_info >> 4) & 0x0F; |
dev | 462 | drivers/net/lance.c | if (dev->mem_start & 0x07) |
dev | 463 | drivers/net/lance.c | dev->dma = dev->mem_start & 0x07; |
dev | 466 | drivers/net/lance.c | if (dev->dma == 0) { |
dev | 472 | drivers/net/lance.c | if (dev->irq >= 2) |
dev | 473 | drivers/net/lance.c | printk(" assigned IRQ %d", dev->irq); |
dev | 483 | drivers/net/lance.c | dev->irq = autoirq_report(1); |
dev | 484 | drivers/net/lance.c | if (dev->irq) |
dev | 485 | drivers/net/lance.c | printk(", probed IRQ %d", dev->irq); |
dev | 494 | drivers/net/lance.c | dev->dma = 4; |
dev | 497 | drivers/net/lance.c | if (dev->dma == 4) { |
dev | 499 | drivers/net/lance.c | } else if (dev->dma) { |
dev | 500 | drivers/net/lance.c | if (request_dma(dev->dma, chipname)) { |
dev | 501 | drivers/net/lance.c | printk("DMA %d allocation failed.\n", dev->dma); |
dev | 504 | drivers/net/lance.c | printk(", assigned DMA %d.\n", dev->dma); |
dev | 527 | drivers/net/lance.c | dev->dma = dma; |
dev | 528 | drivers/net/lance.c | printk(", DMA %d.\n", dev->dma); |
dev | 552 | drivers/net/lance.c | dev->open = &lance_open; |
dev | 553 | drivers/net/lance.c | dev->hard_start_xmit = &lance_start_xmit; |
dev | 554 | drivers/net/lance.c | dev->stop = &lance_close; |
dev | 555 | drivers/net/lance.c | dev->get_stats = &lance_get_stats; |
dev | 556 | drivers/net/lance.c | dev->set_multicast_list = &set_multicast_list; |
dev | 563 | drivers/net/lance.c | lance_open(struct device *dev) |
dev | 565 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 566 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 569 | drivers/net/lance.c | if (dev->irq == 0 || |
dev | 570 | drivers/net/lance.c | request_irq(dev->irq, &lance_interrupt, 0, lp->name)) { |
dev | 577 | drivers/net/lance.c | irq2dev_map[dev->irq] = dev; |
dev | 583 | drivers/net/lance.c | if (dev->dma != 4) { |
dev | 584 | drivers/net/lance.c | enable_dma(dev->dma); |
dev | 585 | drivers/net/lance.c | set_dma_mode(dev->dma, DMA_MODE_CASCADE); |
dev | 600 | drivers/net/lance.c | dev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring, |
dev | 603 | drivers/net/lance.c | lance_init_ring(dev); |
dev | 616 | drivers/net/lance.c | dev->tbusy = 0; |
dev | 617 | drivers/net/lance.c | dev->interrupt = 0; |
dev | 618 | drivers/net/lance.c | dev->start = 1; |
dev | 631 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
dev | 649 | drivers/net/lance.c | lance_purge_tx_ring(struct device *dev) |
dev | 651 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 665 | drivers/net/lance.c | lance_init_ring(struct device *dev) |
dev | 667 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 686 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 694 | drivers/net/lance.c | lance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit) |
dev | 696 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 700 | drivers/net/lance.c | lance_purge_tx_ring(dev); |
dev | 701 | drivers/net/lance.c | lance_init_ring(dev); |
dev | 703 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 704 | drivers/net/lance.c | outw(csr0_bits, dev->base_addr + LANCE_DATA); |
dev | 708 | drivers/net/lance.c | lance_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 710 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 711 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 716 | drivers/net/lance.c | if (dev->tbusy) { |
dev | 717 | drivers/net/lance.c | int tickssofar = jiffies - dev->trans_start; |
dev | 722 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
dev | 742 | drivers/net/lance.c | lance_restart(dev, 0x0043, 1); |
dev | 744 | drivers/net/lance.c | dev->tbusy=0; |
dev | 745 | drivers/net/lance.c | dev->trans_start = jiffies; |
dev | 751 | drivers/net/lance.c | dev_tint(dev); |
dev | 760 | drivers/net/lance.c | printk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name, |
dev | 767 | drivers/net/lance.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 768 | drivers/net/lance.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 774 | drivers/net/lance.c | printk("%s: tx queue lock!.\n", dev->name); |
dev | 801 | drivers/net/lance.c | dev->name, (int)(skb->data)); |
dev | 816 | drivers/net/lance.c | dev->trans_start = jiffies; |
dev | 822 | drivers/net/lance.c | dev->tbusy=0; |
dev | 834 | drivers/net/lance.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 839 | drivers/net/lance.c | if (dev == NULL) { |
dev | 844 | drivers/net/lance.c | ioaddr = dev->base_addr; |
dev | 845 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
dev | 846 | drivers/net/lance.c | if (dev->interrupt) |
dev | 847 | drivers/net/lance.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 849 | drivers/net/lance.c | dev->interrupt = 1; |
dev | 851 | drivers/net/lance.c | outw(0x00, dev->base_addr + LANCE_ADDR); |
dev | 852 | drivers/net/lance.c | while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 |
dev | 855 | drivers/net/lance.c | outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); |
dev | 861 | drivers/net/lance.c | dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); |
dev | 864 | drivers/net/lance.c | lance_rx(dev); |
dev | 890 | drivers/net/lance.c | dev->name, csr0); |
dev | 917 | drivers/net/lance.c | if (lp->tx_full && dev->tbusy |
dev | 921 | drivers/net/lance.c | dev->tbusy = 0; |
dev | 933 | drivers/net/lance.c | dev->name, csr0); |
dev | 940 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 941 | drivers/net/lance.c | outw(0x0004, dev->base_addr + LANCE_DATA); |
dev | 942 | drivers/net/lance.c | lance_restart(dev, 0x0002, 0); |
dev | 947 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 948 | drivers/net/lance.c | outw(0x7940, dev->base_addr + LANCE_DATA); |
dev | 952 | drivers/net/lance.c | dev->name, inw(ioaddr + LANCE_ADDR), |
dev | 953 | drivers/net/lance.c | inw(dev->base_addr + LANCE_DATA)); |
dev | 955 | drivers/net/lance.c | dev->interrupt = 0; |
dev | 960 | drivers/net/lance.c | lance_rx(struct device *dev) |
dev | 962 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 989 | drivers/net/lance.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 1002 | drivers/net/lance.c | skb->dev = dev; |
dev | 1006 | drivers/net/lance.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1025 | drivers/net/lance.c | lance_close(struct device *dev) |
dev | 1027 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 1028 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 1030 | drivers/net/lance.c | dev->start = 0; |
dev | 1031 | drivers/net/lance.c | dev->tbusy = 1; |
dev | 1041 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
dev | 1047 | drivers/net/lance.c | if (dev->dma != 4) |
dev | 1048 | drivers/net/lance.c | disable_dma(dev->dma); |
dev | 1050 | drivers/net/lance.c | free_irq(dev->irq); |
dev | 1052 | drivers/net/lance.c | irq2dev_map[dev->irq] = 0; |
dev | 1058 | drivers/net/lance.c | lance_get_stats(struct device *dev) |
dev | 1060 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 1061 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
dev | 1085 | drivers/net/lance.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1087 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
dev | 1105 | drivers/net/lance.c | printk("%s: Promiscuous mode enabled.\n", dev->name); |
dev | 1110 | drivers/net/lance.c | lance_restart(dev, 0x0142, 0); /* Resume normal operation */ |
dev | 47 | drivers/net/loopback.c | static int loopback_xmit(struct sk_buff *skb, struct device *dev) |
dev | 49 | drivers/net/loopback.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 53 | drivers/net/loopback.c | if (skb == NULL || dev == NULL) |
dev | 58 | drivers/net/loopback.c | if (dev->tbusy != 0) |
dev | 64 | drivers/net/loopback.c | dev->tbusy = 1; |
dev | 94 | drivers/net/loopback.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 95 | drivers/net/loopback.c | skb->dev=dev; |
dev | 105 | drivers/net/loopback.c | dev->tbusy = 0; |
dev | 110 | drivers/net/loopback.c | static struct enet_statistics *get_stats(struct device *dev) |
dev | 112 | drivers/net/loopback.c | return (struct enet_statistics *)dev->priv; |
dev | 115 | drivers/net/loopback.c | static int loopback_open(struct device *dev) |
dev | 117 | drivers/net/loopback.c | dev->flags|=IFF_LOOPBACK; |
dev | 122 | drivers/net/loopback.c | int loopback_init(struct device *dev) |
dev | 126 | drivers/net/loopback.c | dev->mtu = 2000; /* MTU */ |
dev | 127 | drivers/net/loopback.c | dev->tbusy = 0; |
dev | 128 | drivers/net/loopback.c | dev->hard_start_xmit = loopback_xmit; |
dev | 129 | drivers/net/loopback.c | dev->open = NULL; |
dev | 130 | drivers/net/loopback.c | dev->hard_header = eth_header; |
dev | 131 | drivers/net/loopback.c | dev->hard_header_len = ETH_HLEN; /* 14 */ |
dev | 132 | drivers/net/loopback.c | dev->addr_len = ETH_ALEN; /* 6 */ |
dev | 133 | drivers/net/loopback.c | dev->type = ARPHRD_ETHER; /* 0x0001 */ |
dev | 134 | drivers/net/loopback.c | dev->rebuild_header = eth_rebuild_header; |
dev | 135 | drivers/net/loopback.c | dev->open = loopback_open; |
dev | 136 | drivers/net/loopback.c | dev->flags = IFF_LOOPBACK|IFF_BROADCAST; |
dev | 137 | drivers/net/loopback.c | dev->family = AF_INET; |
dev | 139 | drivers/net/loopback.c | dev->pa_addr = in_aton("127.0.0.1"); |
dev | 140 | drivers/net/loopback.c | dev->pa_brdaddr = in_aton("127.255.255.255"); |
dev | 141 | drivers/net/loopback.c | dev->pa_mask = in_aton("255.0.0.0"); |
dev | 142 | drivers/net/loopback.c | dev->pa_alen = sizeof(unsigned long); |
dev | 144 | drivers/net/loopback.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 145 | drivers/net/loopback.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 146 | drivers/net/loopback.c | dev->get_stats = get_stats; |
dev | 153 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 53 | drivers/net/ne.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 76 | drivers/net/ne.c | #define NE_BASE (dev->base_addr) |
dev | 89 | drivers/net/ne.c | int ne_probe(struct device *dev); |
dev | 90 | drivers/net/ne.c | static int ne_probe1(struct device *dev, int ioaddr); |
dev | 92 | drivers/net/ne.c | static void ne_reset_8390(struct device *dev); |
dev | 93 | drivers/net/ne.c | static int ne_block_input(struct device *dev, int count, |
dev | 95 | drivers/net/ne.c | static void ne_block_output(struct device *dev, const int count, |
dev | 125 | drivers/net/ne.c | int ne_probe(struct device *dev) |
dev | 128 | drivers/net/ne.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 131 | drivers/net/ne.c | return ne_probe1(dev, base_addr); |
dev | 139 | drivers/net/ne.c | if (ne_probe1(dev, ioaddr) == 0) |
dev | 147 | drivers/net/ne.c | static int ne_probe1(struct device *dev, int ioaddr) |
dev | 223 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
dev | 266 | drivers/net/ne.c | if (dev == NULL) |
dev | 267 | drivers/net/ne.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 269 | drivers/net/ne.c | if (dev->irq < 2) { |
dev | 276 | drivers/net/ne.c | dev->irq = autoirq_report(0); |
dev | 278 | drivers/net/ne.c | printk(" autoirq is %d\n", dev->irq); |
dev | 279 | drivers/net/ne.c | } else if (dev->irq == 2) |
dev | 282 | drivers/net/ne.c | dev->irq = 9; |
dev | 287 | drivers/net/ne.c | int irqval = request_irq (dev->irq, ei_interrupt, 0, wordlength==2 ? "ne2000":"ne1000"); |
dev | 289 | drivers/net/ne.c | printk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval); |
dev | 294 | drivers/net/ne.c | dev->base_addr = ioaddr; |
dev | 299 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
dev | 301 | drivers/net/ne.c | ethdev_init(dev); |
dev | 303 | drivers/net/ne.c | dev->name, name, ioaddr, dev->irq); |
dev | 322 | drivers/net/ne.c | NS8390_init(dev, 0); |
dev | 329 | drivers/net/ne.c | ne_reset_8390(struct device *dev) |
dev | 342 | drivers/net/ne.c | printk("%s: ne_reset_8390() did not complete.\n", dev->name); |
dev | 354 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 359 | drivers/net/ne.c | int nic_base = dev->base_addr; |
dev | 366 | drivers/net/ne.c | dev->name, ei_status.dmaing, ei_status.irqlock, |
dev | 367 | drivers/net/ne.c | dev->interrupt); |
dev | 408 | drivers/net/ne.c | dev->name, ring_offset + xfer_count, addr); |
dev | 417 | drivers/net/ne.c | ne_block_output(struct device *dev, int count, |
dev | 437 | drivers/net/ne.c | dev->name, ei_status.dmaing, ei_status.irqlock, |
dev | 438 | drivers/net/ne.c | dev->interrupt); |
dev | 497 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
dev | 506 | drivers/net/ne.c | printk("%s: timeout waiting for Tx RDC.\n", dev->name); |
dev | 507 | drivers/net/ne.c | ne_reset_8390(dev); |
dev | 508 | drivers/net/ne.c | NS8390_init(dev,1); |
dev | 93 | drivers/net/net_init.c | init_etherdev(struct device *dev, int sizeof_priv, unsigned long *mem_startp) |
dev | 99 | drivers/net/net_init.c | if (dev == NULL) { |
dev | 110 | drivers/net/net_init.c | dev = cur_dev; |
dev | 111 | drivers/net/net_init.c | dev->init = NULL; |
dev | 114 | drivers/net/net_init.c | dev->priv = (void*) *mem_startp; |
dev | 117 | drivers/net/net_init.c | dev->priv = kmalloc(sizeof_priv, GFP_KERNEL); |
dev | 118 | drivers/net/net_init.c | memset(dev->priv, 0, sizeof_priv); |
dev | 126 | drivers/net/net_init.c | dev = (struct device *)*mem_startp; |
dev | 129 | drivers/net/net_init.c | dev = (struct device *)kmalloc(alloc_size, GFP_KERNEL); |
dev | 130 | drivers/net/net_init.c | memset(dev, 0, alloc_size); |
dev | 132 | drivers/net/net_init.c | dev->priv = (void *) (dev + 1); |
dev | 133 | drivers/net/net_init.c | dev->name = sizeof_priv + (char *)(dev + 1); |
dev | 139 | drivers/net/net_init.c | if (dev->name && |
dev | 140 | drivers/net/net_init.c | ((dev->name[0] == '\0') || (dev->name[0] == ' '))) { |
dev | 143 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
dev | 144 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 149 | drivers/net/net_init.c | ether_setup(dev); /* Hmmm, should this be called here? */ |
dev | 156 | drivers/net/net_init.c | (*old_devp)->next = dev; |
dev | 157 | drivers/net/net_init.c | dev->next = 0; |
dev | 159 | drivers/net/net_init.c | return dev; |
dev | 162 | drivers/net/net_init.c | void ether_setup(struct device *dev) |
dev | 168 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 171 | drivers/net/net_init.c | if (dev->name && (strncmp(dev->name, "eth", 3) == 0)) { |
dev | 172 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
dev | 174 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 176 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
dev | 179 | drivers/net/net_init.c | dev->name); |
dev | 183 | drivers/net/net_init.c | dev->hard_header = eth_header; |
dev | 184 | drivers/net/net_init.c | dev->rebuild_header = eth_rebuild_header; |
dev | 186 | drivers/net/net_init.c | dev->type = ARPHRD_ETHER; |
dev | 187 | drivers/net/net_init.c | dev->hard_header_len = ETH_HLEN; |
dev | 188 | drivers/net/net_init.c | dev->mtu = 1500; /* eth_mtu */ |
dev | 189 | drivers/net/net_init.c | dev->addr_len = ETH_ALEN; |
dev | 191 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
dev | 195 | drivers/net/net_init.c | dev->flags = IFF_BROADCAST|IFF_MULTICAST; |
dev | 196 | drivers/net/net_init.c | dev->family = AF_INET; |
dev | 197 | drivers/net/net_init.c | dev->pa_addr = 0; |
dev | 198 | drivers/net/net_init.c | dev->pa_brdaddr = 0; |
dev | 199 | drivers/net/net_init.c | dev->pa_mask = 0; |
dev | 200 | drivers/net/net_init.c | dev->pa_alen = sizeof(unsigned long); |
dev | 205 | drivers/net/net_init.c | void tr_setup(struct device *dev) |
dev | 211 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 213 | drivers/net/net_init.c | dev->hard_header = tr_header; |
dev | 214 | drivers/net/net_init.c | dev->rebuild_header = tr_rebuild_header; |
dev | 216 | drivers/net/net_init.c | dev->type = ARPHRD_IEEE802; |
dev | 217 | drivers/net/net_init.c | dev->hard_header_len = TR_HLEN; |
dev | 218 | drivers/net/net_init.c | dev->mtu = 2000; /* bug in fragmenter...*/ |
dev | 219 | drivers/net/net_init.c | dev->addr_len = TR_ALEN; |
dev | 221 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
dev | 225 | drivers/net/net_init.c | dev->flags = IFF_BROADCAST; |
dev | 226 | drivers/net/net_init.c | dev->family = AF_INET; |
dev | 227 | drivers/net/net_init.c | dev->pa_addr = 0; |
dev | 228 | drivers/net/net_init.c | dev->pa_brdaddr = 0; |
dev | 229 | drivers/net/net_init.c | dev->pa_mask = 0; |
dev | 230 | drivers/net/net_init.c | dev->pa_alen = sizeof(unsigned long); |
dev | 235 | drivers/net/net_init.c | int ether_config(struct device *dev, struct ifmap *map) |
dev | 238 | drivers/net/net_init.c | dev->mem_start = map->mem_start; |
dev | 240 | drivers/net/net_init.c | dev->mem_end = map->mem_end; |
dev | 242 | drivers/net/net_init.c | dev->base_addr = map->base_addr; |
dev | 244 | drivers/net/net_init.c | dev->irq = map->irq; |
dev | 246 | drivers/net/net_init.c | dev->dma = map->dma; |
dev | 248 | drivers/net/net_init.c | dev->if_port = map->port; |
dev | 252 | drivers/net/net_init.c | int register_netdev(struct device *dev) |
dev | 261 | drivers/net/net_init.c | if (dev && dev->init) { |
dev | 262 | drivers/net/net_init.c | if (dev->name && |
dev | 263 | drivers/net/net_init.c | ((dev->name[0] == '\0') || (dev->name[0] == ' '))) { |
dev | 266 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
dev | 267 | drivers/net/net_init.c | printk("loading device '%s'...\n", dev->name); |
dev | 268 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 273 | drivers/net/net_init.c | if (dev->init(dev) != 0) { |
dev | 283 | drivers/net/net_init.c | d->next = dev; |
dev | 286 | drivers/net/net_init.c | dev_base = dev; |
dev | 287 | drivers/net/net_init.c | dev->next = NULL; |
dev | 293 | drivers/net/net_init.c | void unregister_netdev(struct device *dev) |
dev | 304 | drivers/net/net_init.c | if (dev == NULL) { |
dev | 310 | drivers/net/net_init.c | if (dev->start) |
dev | 311 | drivers/net/net_init.c | printk("'%s' busy\n", dev->name); |
dev | 313 | drivers/net/net_init.c | if (dev_base == dev) |
dev | 314 | drivers/net/net_init.c | dev_base = dev->next; |
dev | 316 | drivers/net/net_init.c | while (d && (d->next != dev)) |
dev | 319 | drivers/net/net_init.c | if (d && (d->next == dev)) { |
dev | 320 | drivers/net/net_init.c | d->next = dev->next; |
dev | 321 | drivers/net/net_init.c | printk("'%s' unlinked\n", dev->name); |
dev | 324 | drivers/net/net_init.c | printk("'%s' not found\n", dev->name); |
dev | 330 | drivers/net/net_init.c | if (ethdev_index[i] == dev) { |
dev | 100 | drivers/net/ni52.c | #define ni_attn586() {outb(0,dev->base_addr+NI52_ATTENTION);} |
dev | 101 | drivers/net/ni52.c | #define ni_reset586() {outb(0,dev->base_addr+NI52_RESET);} |
dev | 146 | drivers/net/ni52.c | printk("%s: scb_cmd timed out .. resetting i82586\n",dev->name); \ |
dev | 163 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr); |
dev | 165 | drivers/net/ni52.c | static int ni52_open(struct device *dev); |
dev | 166 | drivers/net/ni52.c | static int ni52_close(struct device *dev); |
dev | 168 | drivers/net/ni52.c | static struct enet_statistics *ni52_get_stats(struct device *dev); |
dev | 169 | drivers/net/ni52.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 172 | drivers/net/ni52.c | static int init586(struct device *dev,int num_addrs,void *addrs); |
dev | 173 | drivers/net/ni52.c | static int check586(struct device *dev,char *where,unsigned size); |
dev | 174 | drivers/net/ni52.c | static void alloc586(struct device *dev); |
dev | 175 | drivers/net/ni52.c | static void startrecv586(struct device *dev); |
dev | 176 | drivers/net/ni52.c | static void *alloc_rfa(struct device *dev,void *ptr); |
dev | 177 | drivers/net/ni52.c | static void ni52_rcv_int(struct device *dev); |
dev | 178 | drivers/net/ni52.c | static void ni52_xmt_int(struct device *dev); |
dev | 179 | drivers/net/ni52.c | static void ni52_rnr_int(struct device *dev); |
dev | 207 | drivers/net/ni52.c | static int ni52_close(struct device *dev) |
dev | 209 | drivers/net/ni52.c | free_irq(dev->irq); |
dev | 210 | drivers/net/ni52.c | irq2dev_map[dev->irq] = 0; |
dev | 214 | drivers/net/ni52.c | dev->start = 0; |
dev | 215 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 224 | drivers/net/ni52.c | static int ni52_open(struct device *dev) |
dev | 226 | drivers/net/ni52.c | alloc586(dev); |
dev | 227 | drivers/net/ni52.c | init586(dev,0,NULL); |
dev | 228 | drivers/net/ni52.c | startrecv586(dev); |
dev | 230 | drivers/net/ni52.c | if(request_irq(dev->irq, &ni52_interrupt,0,"ni52")) |
dev | 235 | drivers/net/ni52.c | irq2dev_map[dev->irq] = dev; |
dev | 237 | drivers/net/ni52.c | dev->interrupt = 0; |
dev | 238 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 239 | drivers/net/ni52.c | dev->start = 1; |
dev | 248 | drivers/net/ni52.c | static int check586(struct device *dev,char *where,unsigned size) |
dev | 250 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 285 | drivers/net/ni52.c | void alloc586(struct device *dev) |
dev | 287 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 293 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
dev | 310 | drivers/net/ni52.c | printk("%s: Init-Problems (alloc).\n",dev->name); |
dev | 319 | drivers/net/ni52.c | int ni52_probe(struct device *dev) |
dev | 322 | drivers/net/ni52.c | int base_addr = dev->base_addr; |
dev | 327 | drivers/net/ni52.c | return ni52_probe1(dev, base_addr); |
dev | 339 | drivers/net/ni52.c | dev->base_addr = ioaddr; |
dev | 340 | drivers/net/ni52.c | if (ni52_probe1(dev, ioaddr) == 0) |
dev | 344 | drivers/net/ni52.c | dev->base_addr = base_addr; |
dev | 348 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr) |
dev | 354 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
dev | 356 | drivers/net/ni52.c | if(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1 |
dev | 357 | drivers/net/ni52.c | || dev->dev_addr[2] != NI52_ADDR2) |
dev | 360 | drivers/net/ni52.c | printk("%s: Ni52 found at %#3x, ",dev->name,dev->base_addr); |
dev | 364 | drivers/net/ni52.c | dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); |
dev | 366 | drivers/net/ni52.c | memset((char *) dev->priv,0,sizeof(struct priv)); |
dev | 371 | drivers/net/ni52.c | if(dev->mem_start != 0) /* no auto-mem-probe */ |
dev | 374 | drivers/net/ni52.c | if(!check586(dev,(char *) dev->mem_start,size)) { |
dev | 376 | drivers/net/ni52.c | if(!check586(dev,(char *) dev->mem_start,size)) { |
dev | 377 | drivers/net/ni52.c | printk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start); |
dev | 390 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
dev | 392 | drivers/net/ni52.c | if(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */ |
dev | 395 | drivers/net/ni52.c | if(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */ |
dev | 399 | drivers/net/ni52.c | dev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */ |
dev | 401 | drivers/net/ni52.c | ((struct priv *) (dev->priv))->base = dev->mem_start + size - 0x01000000; |
dev | 402 | drivers/net/ni52.c | alloc586(dev); |
dev | 406 | drivers/net/ni52.c | ((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8; |
dev | 408 | drivers/net/ni52.c | ((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16; |
dev | 410 | drivers/net/ni52.c | printk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size); |
dev | 412 | drivers/net/ni52.c | if(dev->irq < 2) |
dev | 417 | drivers/net/ni52.c | if(!(dev->irq = autoirq_report(2))) |
dev | 423 | drivers/net/ni52.c | else if(dev->irq == 2) |
dev | 424 | drivers/net/ni52.c | dev->irq = 9; |
dev | 426 | drivers/net/ni52.c | printk("IRQ %d.\n",dev->irq); |
dev | 428 | drivers/net/ni52.c | dev->open = &ni52_open; |
dev | 429 | drivers/net/ni52.c | dev->stop = &ni52_close; |
dev | 430 | drivers/net/ni52.c | dev->get_stats = &ni52_get_stats; |
dev | 431 | drivers/net/ni52.c | dev->hard_start_xmit = &ni52_send_packet; |
dev | 432 | drivers/net/ni52.c | dev->set_multicast_list = &set_multicast_list; |
dev | 434 | drivers/net/ni52.c | dev->if_port = 0; |
dev | 436 | drivers/net/ni52.c | ether_setup(dev); |
dev | 438 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 439 | drivers/net/ni52.c | dev->interrupt = 0; |
dev | 440 | drivers/net/ni52.c | dev->start = 0; |
dev | 450 | drivers/net/ni52.c | static int init586(struct device *dev,int num_addrs,void *addrs) |
dev | 455 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 490 | drivers/net/ni52.c | printk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status); |
dev | 503 | drivers/net/ni52.c | memcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN); |
dev | 515 | drivers/net/ni52.c | printk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status); |
dev | 537 | drivers/net/ni52.c | printk("%s: Problems while running the TDR.\n",dev->name); |
dev | 551 | drivers/net/ni52.c | printk("%s: TDR: Transceiver problem!\n",dev->name); |
dev | 553 | drivers/net/ni52.c | printk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK); |
dev | 557 | drivers/net/ni52.c | printk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK); |
dev | 560 | drivers/net/ni52.c | printk("%s: TDR: Unknown status %04x\n",dev->name,result); |
dev | 596 | drivers/net/ni52.c | ptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ |
dev | 607 | drivers/net/ni52.c | printk("%s: Ooooops, no memory for MC-Setup!\n",dev->name); |
dev | 614 | drivers/net/ni52.c | printk("%s: Sorry, can only apply %d MC-Address(es).\n",dev->name,num_addrs); |
dev | 631 | drivers/net/ni52.c | printk("%s: Can't apply multicast-address-list.\n",dev->name); |
dev | 646 | drivers/net/ni52.c | printk("%s: not enough shared-mem for your configuration!\n",dev->name); |
dev | 685 | drivers/net/ni52.c | static void *alloc_rfa(struct device *dev,void *ptr) |
dev | 690 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 731 | drivers/net/ni52.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 735 | drivers/net/ni52.c | if (dev == NULL) { |
dev | 739 | drivers/net/ni52.c | p = (struct priv *) dev->priv; |
dev | 741 | drivers/net/ni52.c | dev->interrupt = 1; |
dev | 749 | drivers/net/ni52.c | ni52_xmt_int(dev); |
dev | 752 | drivers/net/ni52.c | ni52_rcv_int(dev); |
dev | 757 | drivers/net/ni52.c | if(dev->start) |
dev | 758 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
dev | 772 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
dev | 773 | drivers/net/ni52.c | ni52_rnr_int(dev); |
dev | 781 | drivers/net/ni52.c | dev->interrupt = 0; |
dev | 788 | drivers/net/ni52.c | static void ni52_rcv_int(struct device *dev) |
dev | 794 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 810 | drivers/net/ni52.c | skb->dev = dev; |
dev | 812 | drivers/net/ni52.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 821 | drivers/net/ni52.c | printk("%s: received oversized frame.\n",dev->name); |
dev | 827 | drivers/net/ni52.c | printk("%s: oops! rfd-error-status: %04x\n",dev->name,status); |
dev | 842 | drivers/net/ni52.c | static void ni52_rnr_int(struct device *dev) |
dev | 844 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 853 | drivers/net/ni52.c | alloc_rfa(dev,(char *)p->rfd_first); |
dev | 854 | drivers/net/ni52.c | startrecv586(dev); /* restart RU */ |
dev | 856 | drivers/net/ni52.c | printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status); |
dev | 864 | drivers/net/ni52.c | static void ni52_xmt_int(struct device *dev) |
dev | 867 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 871 | drivers/net/ni52.c | printk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name); |
dev | 882 | drivers/net/ni52.c | printk("%s: late collision detected.\n",dev->name); |
dev | 887 | drivers/net/ni52.c | printk("%s: no carrier detected.\n",dev->name); |
dev | 890 | drivers/net/ni52.c | printk("%s: loss of CTS detected.\n",dev->name); |
dev | 893 | drivers/net/ni52.c | printk("%s: DMA underrun detected.\n",dev->name); |
dev | 896 | drivers/net/ni52.c | printk("%s: Max. collisions exceeded.\n",dev->name); |
dev | 906 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 914 | drivers/net/ni52.c | static void startrecv586(struct device *dev) |
dev | 916 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 928 | drivers/net/ni52.c | static int ni52_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 934 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 936 | drivers/net/ni52.c | if(dev->tbusy) |
dev | 938 | drivers/net/ni52.c | int tickssofar = jiffies - dev->trans_start; |
dev | 944 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 946 | drivers/net/ni52.c | printk("%s: strange ... timeout with CU active?!?\n",dev->name); |
dev | 947 | drivers/net/ni52.c | printk("%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); |
dev | 956 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 962 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status); |
dev | 963 | drivers/net/ni52.c | printk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status); |
dev | 965 | drivers/net/ni52.c | ni52_close(dev); |
dev | 966 | drivers/net/ni52.c | ni52_open(dev); |
dev | 968 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 974 | drivers/net/ni52.c | dev_tint(dev); |
dev | 982 | drivers/net/ni52.c | printk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %ld bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len); |
dev | 986 | drivers/net/ni52.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 987 | drivers/net/ni52.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1003 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 1012 | drivers/net/ni52.c | printk("%s: Can't start transmit-command.\n",dev->name); |
dev | 1023 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 1038 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 1043 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 1055 | drivers/net/ni52.c | static struct enet_statistics *ni52_get_stats(struct device *dev) |
dev | 1057 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1081 | drivers/net/ni52.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1083 | drivers/net/ni52.c | if(!dev->start && !num_addrs) |
dev | 1085 | drivers/net/ni52.c | printk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name); |
dev | 1089 | drivers/net/ni52.c | dev->start = 0; |
dev | 1090 | drivers/net/ni52.c | alloc586(dev); |
dev | 1091 | drivers/net/ni52.c | init586(dev,num_addrs,addrs); |
dev | 1092 | drivers/net/ni52.c | startrecv586(dev); |
dev | 1093 | drivers/net/ni52.c | dev->start = 1; |
dev | 77 | drivers/net/ni65.c | #define PORT dev->base_addr |
dev | 114 | drivers/net/ni65.c | static int ni65_probe1(struct device *dev,int); |
dev | 116 | drivers/net/ni65.c | static void recv_intr(struct device *dev); |
dev | 117 | drivers/net/ni65.c | static void xmit_intr(struct device *dev); |
dev | 118 | drivers/net/ni65.c | static int ni65_open(struct device *dev); |
dev | 119 | drivers/net/ni65.c | static int am7990_reinit(struct device *dev); |
dev | 120 | drivers/net/ni65.c | static int ni65_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 121 | drivers/net/ni65.c | static int ni65_close(struct device *dev); |
dev | 124 | drivers/net/ni65.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 149 | drivers/net/ni65.c | static int ni65_open(struct device *dev) |
dev | 151 | drivers/net/ni65.c | if(am7990_reinit(dev)) |
dev | 153 | drivers/net/ni65.c | dev->tbusy = 0; |
dev | 154 | drivers/net/ni65.c | dev->interrupt = 0; |
dev | 155 | drivers/net/ni65.c | dev->start = 1; |
dev | 160 | drivers/net/ni65.c | dev->start = 0; |
dev | 165 | drivers/net/ni65.c | static int ni65_close(struct device *dev) |
dev | 168 | drivers/net/ni65.c | dev->tbusy = 1; |
dev | 169 | drivers/net/ni65.c | dev->start = 0; |
dev | 178 | drivers/net/ni65.c | int ni65_probe(struct device *dev) |
dev | 181 | drivers/net/ni65.c | int base_addr = dev->base_addr; |
dev | 184 | drivers/net/ni65.c | return ni65_probe1(dev, base_addr); |
dev | 196 | drivers/net/ni65.c | dev->base_addr = ioaddr; |
dev | 197 | drivers/net/ni65.c | if (ni65_probe1(dev, ioaddr) == 0) |
dev | 201 | drivers/net/ni65.c | dev->base_addr = base_addr; |
dev | 206 | drivers/net/ni65.c | static int ni65_probe1(struct device *dev,int ioaddr) |
dev | 213 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
dev | 217 | drivers/net/ni65.c | printk("%s: wrong Hardaddress \n",dev->name); |
dev | 221 | drivers/net/ni65.c | if(dev->irq == 0) |
dev | 222 | drivers/net/ni65.c | dev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3]; |
dev | 223 | drivers/net/ni65.c | if(dev->dma == 0) |
dev | 224 | drivers/net/ni65.c | dev->dma = dmatab[inw(PORT+L_CONFIG)&3]; |
dev | 226 | drivers/net/ni65.c | printk("%s: %s found at %#3x, IRQ %d DMA %d.\n", dev->name, |
dev | 227 | drivers/net/ni65.c | "network card", dev->base_addr, dev->irq,dev->dma); |
dev | 230 | drivers/net/ni65.c | int irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni65"); |
dev | 233 | drivers/net/ni65.c | dev->name,dev->irq, irqval); |
dev | 236 | drivers/net/ni65.c | if(request_dma(dev->dma, "ni65") != 0) |
dev | 238 | drivers/net/ni65.c | printk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma); |
dev | 239 | drivers/net/ni65.c | free_irq(dev->irq); |
dev | 243 | drivers/net/ni65.c | irq2dev_map[dev->irq] = dev; |
dev | 248 | drivers/net/ni65.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); |
dev | 249 | drivers/net/ni65.c | memset((char *) dev->priv,0,sizeof(struct priv)); |
dev | 251 | drivers/net/ni65.c | dev->open = ni65_open; |
dev | 252 | drivers/net/ni65.c | dev->stop = ni65_close; |
dev | 253 | drivers/net/ni65.c | dev->hard_start_xmit = ni65_send_packet; |
dev | 254 | drivers/net/ni65.c | dev->get_stats = ni65_get_stats; |
dev | 255 | drivers/net/ni65.c | dev->set_multicast_list = set_multicast_list; |
dev | 257 | drivers/net/ni65.c | ether_setup(dev); |
dev | 259 | drivers/net/ni65.c | dev->interrupt = 0; |
dev | 260 | drivers/net/ni65.c | dev->tbusy = 0; |
dev | 261 | drivers/net/ni65.c | dev->start = 0; |
dev | 264 | drivers/net/ni65.c | printk("%s: Can't alloc TMD/RMD-buffer.\n",dev->name); |
dev | 268 | drivers/net/ni65.c | printk("%s: Can't alloc TMD/RMD buffer in lower 16MB!\n",dev->name); |
dev | 278 | drivers/net/ni65.c | printk("%s: Can't alloc Xmit-Mem.\n",dev->name); |
dev | 282 | drivers/net/ni65.c | printk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name); |
dev | 291 | drivers/net/ni65.c | printk("%s: unable to alloc recv-mem\n",dev->name); |
dev | 295 | drivers/net/ni65.c | printk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name); |
dev | 307 | drivers/net/ni65.c | static int am7990_reinit(struct device *dev) |
dev | 312 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
dev | 317 | drivers/net/ni65.c | disable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */ |
dev | 318 | drivers/net/ni65.c | set_dma_mode(dev->dma,DMA_MODE_CASCADE); |
dev | 319 | drivers/net/ni65.c | enable_dma(dev->dma); |
dev | 324 | drivers/net/ni65.c | printk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
dev | 325 | drivers/net/ni65.c | disable_dma(dev->dma); |
dev | 326 | drivers/net/ni65.c | free_dma(dev->dma); |
dev | 327 | drivers/net/ni65.c | free_irq(dev->irq); |
dev | 357 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
dev | 384 | drivers/net/ni65.c | printk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
dev | 385 | drivers/net/ni65.c | disable_dma(dev->dma); |
dev | 386 | drivers/net/ni65.c | free_dma(dev->dma); |
dev | 387 | drivers/net/ni65.c | free_irq(dev->irq); |
dev | 403 | drivers/net/ni65.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 405 | drivers/net/ni65.c | if (dev == NULL) { |
dev | 413 | drivers/net/ni65.c | dev->interrupt = 1; |
dev | 417 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
dev | 427 | drivers/net/ni65.c | recv_intr(dev); |
dev | 431 | drivers/net/ni65.c | xmit_intr(dev); |
dev | 435 | drivers/net/ni65.c | dev->interrupt = 0; |
dev | 445 | drivers/net/ni65.c | static void xmit_intr(struct device *dev) |
dev | 449 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
dev | 468 | drivers/net/ni65.c | printk("%s: xmit-error: %04x %04x\n",dev->name,(int) tmdstat,(int) tmdp->status2); |
dev | 470 | drivers/net/ni65.c | printk("%s: tdr-problems (e.g. no resistor)\n",dev->name); |
dev | 488 | drivers/net/ni65.c | dev->tbusy = 0; |
dev | 496 | drivers/net/ni65.c | static void recv_intr(struct device *dev) |
dev | 501 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
dev | 512 | drivers/net/ni65.c | printk("%s: packet too long\n",dev->name); |
dev | 518 | drivers/net/ni65.c | printk("%s: receive-error: %04x\n",dev->name,(int) rmdstat ); |
dev | 524 | drivers/net/ni65.c | printk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); |
dev | 544 | drivers/net/ni65.c | skb1->dev = dev; |
dev | 546 | drivers/net/ni65.c | skb1->protocol=eth_type_trans(skb1,dev); |
dev | 552 | drivers/net/ni65.c | printk("%s: can't alloc new sk_buff\n",dev->name); |
dev | 565 | drivers/net/ni65.c | static int ni65_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 567 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
dev | 570 | drivers/net/ni65.c | if(dev->tbusy) |
dev | 572 | drivers/net/ni65.c | int tickssofar = jiffies - dev->trans_start; |
dev | 576 | drivers/net/ni65.c | printk("%s: xmitter timed out, try to restart!\n",dev->name); |
dev | 577 | drivers/net/ni65.c | am7990_reinit(dev); |
dev | 578 | drivers/net/ni65.c | dev->tbusy=0; |
dev | 579 | drivers/net/ni65.c | dev->trans_start = jiffies; |
dev | 584 | drivers/net/ni65.c | dev_tint(dev); |
dev | 591 | drivers/net/ni65.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 593 | drivers/net/ni65.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 598 | drivers/net/ni65.c | printk("%s: Queue was locked!\n",dev->name); |
dev | 623 | drivers/net/ni65.c | dev->tbusy = 0; |
dev | 627 | drivers/net/ni65.c | dev->trans_start = jiffies; |
dev | 634 | drivers/net/ni65.c | static struct enet_statistics *ni65_get_stats(struct device *dev) |
dev | 636 | drivers/net/ni65.c | return &((struct priv *) dev->priv)->stats; |
dev | 639 | drivers/net/ni65.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 81 | drivers/net/pi2.c | struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 138 | drivers/net/pi2.c | static int pi0_preprobe(struct device *dev){return 0;} /* Dummy probe function */ |
dev | 149 | drivers/net/pi2.c | static int pi_probe(struct device *dev, int card_type); |
dev | 150 | drivers/net/pi2.c | static int pi_open(struct device *dev); |
dev | 151 | drivers/net/pi2.c | static int pi_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 153 | drivers/net/pi2.c | static int pi_close(struct device *dev); |
dev | 154 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 155 | drivers/net/pi2.c | static struct enet_statistics *pi_get_stats(struct device *dev); |
dev | 157 | drivers/net/pi2.c | static void b_rxint(struct device *dev, struct pi_local *lp); |
dev | 160 | drivers/net/pi2.c | static void a_rxint(struct device *dev, struct pi_local *lp); |
dev | 504 | drivers/net/pi2.c | static void a_rxint(struct device *dev, struct pi_local *lp) |
dev | 555 | drivers/net/pi2.c | printk("PI: %s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 561 | drivers/net/pi2.c | skb->dev = dev; |
dev | 577 | drivers/net/pi2.c | static void b_rxint(struct device *dev, struct pi_local *lp) |
dev | 641 | drivers/net/pi2.c | printk("PI: %s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 647 | drivers/net/pi2.c | skb->dev = dev; |
dev | 1071 | drivers/net/pi2.c | static int pi_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 1074 | drivers/net/pi2.c | return ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb); |
dev | 1078 | drivers/net/pi2.c | static int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 1081 | drivers/net/pi2.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
dev | 1084 | drivers/net/pi2.c | static void scc_init(struct device *dev) |
dev | 1087 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1186 | drivers/net/pi2.c | static void chipset_init(struct device *dev) |
dev | 1191 | drivers/net/pi2.c | cardbase = dev->base_addr & 0x3f0; |
dev | 1195 | drivers/net/pi2.c | wrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES); /* Hardware reset */ |
dev | 1197 | drivers/net/pi2.c | wrtscc(cardbase, dev->base_addr + CTL, R9, 0); |
dev | 1276 | drivers/net/pi2.c | static int pi_set_mac_address(struct device *dev, void *addr) |
dev | 1278 | drivers/net/pi2.c | memcpy(dev->dev_addr, addr, 7); /* addr is an AX.25 shifted ASCII */ |
dev | 1298 | drivers/net/pi2.c | static int pi_probe(struct device *dev, int card_type) |
dev | 1306 | drivers/net/pi2.c | ioaddr = dev->base_addr; |
dev | 1311 | drivers/net/pi2.c | dev->priv = (void *) (((int) dev->priv + 7) & ~7); |
dev | 1312 | drivers/net/pi2.c | lp = (struct pi_local *) dev->priv; |
dev | 1314 | drivers/net/pi2.c | memset(dev->priv, 0, sizeof(struct pi_local)); |
dev | 1317 | drivers/net/pi2.c | mem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local); |
dev | 1335 | drivers/net/pi2.c | lp->base = dev->base_addr; |
dev | 1336 | drivers/net/pi2.c | lp->cardbase = dev->base_addr & 0x3f0; |
dev | 1337 | drivers/net/pi2.c | if (dev->base_addr & CHANA) { |
dev | 1358 | drivers/net/pi2.c | chipset_init(dev); |
dev | 1360 | drivers/net/pi2.c | if (dev->base_addr & CHANA) { /* Do these things only for the A port */ |
dev | 1363 | drivers/net/pi2.c | lp->dmachan = dev->dma; |
dev | 1369 | drivers/net/pi2.c | if (dev->irq < 2) { |
dev | 1380 | drivers/net/pi2.c | dev->irq = autoirq_report(20); |
dev | 1381 | drivers/net/pi2.c | if (!dev->irq) { |
dev | 1386 | drivers/net/pi2.c | wrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES); /* Hardware reset */ |
dev | 1388 | drivers/net/pi2.c | wrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0); |
dev | 1393 | drivers/net/pi2.c | dev->irq, dev->dma); |
dev | 1399 | drivers/net/pi2.c | int irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2"); |
dev | 1402 | drivers/net/pi2.c | dev->irq, irqval); |
dev | 1412 | drivers/net/pi2.c | dev->open = pi_open; |
dev | 1413 | drivers/net/pi2.c | dev->stop = pi_close; |
dev | 1414 | drivers/net/pi2.c | dev->do_ioctl = pi_ioctl; |
dev | 1415 | drivers/net/pi2.c | dev->hard_start_xmit = pi_send_packet; |
dev | 1416 | drivers/net/pi2.c | dev->get_stats = pi_get_stats; |
dev | 1420 | drivers/net/pi2.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 1423 | drivers/net/pi2.c | dev->hard_header = pi_header; |
dev | 1424 | drivers/net/pi2.c | dev->rebuild_header = pi_rebuild_header; |
dev | 1425 | drivers/net/pi2.c | dev->set_mac_address = pi_set_mac_address; |
dev | 1427 | drivers/net/pi2.c | dev->type = AF_AX25; /* AF_AX25 device */ |
dev | 1428 | drivers/net/pi2.c | dev->hard_header_len = 17; /* We don't do digipeaters */ |
dev | 1429 | drivers/net/pi2.c | dev->mtu = 1500; /* eth_mtu is the default */ |
dev | 1430 | drivers/net/pi2.c | dev->addr_len = 7; /* sizeof an ax.25 address */ |
dev | 1432 | drivers/net/pi2.c | dev->broadcast[i] = 0xff; |
dev | 1434 | drivers/net/pi2.c | memcpy(dev->broadcast, ax25_bcast, 7); |
dev | 1435 | drivers/net/pi2.c | memcpy(dev->dev_addr, ax25_test, 7); |
dev | 1438 | drivers/net/pi2.c | dev->flags = 0; |
dev | 1439 | drivers/net/pi2.c | dev->family = AF_INET; |
dev | 1440 | drivers/net/pi2.c | dev->pa_addr = 0; |
dev | 1441 | drivers/net/pi2.c | dev->pa_brdaddr = 0; |
dev | 1442 | drivers/net/pi2.c | dev->pa_mask = 0; |
dev | 1443 | drivers/net/pi2.c | dev->pa_alen = sizeof(unsigned long); |
dev | 1455 | drivers/net/pi2.c | static int pi_open(struct device *dev) |
dev | 1460 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1462 | drivers/net/pi2.c | if (dev->base_addr & 2) { /* if A channel */ |
dev | 1464 | drivers/net/pi2.c | if (request_dma(dev->dma,"pi2")) { |
dev | 1465 | drivers/net/pi2.c | free_irq(dev->irq); |
dev | 1468 | drivers/net/pi2.c | irq2dev_map[dev->irq] = dev; |
dev | 1471 | drivers/net/pi2.c | chipset_init(dev); |
dev | 1475 | drivers/net/pi2.c | if (dev->base_addr & 2) { /* if A channel */ |
dev | 1476 | drivers/net/pi2.c | scc_init(dev); /* Called once for each channel */ |
dev | 1477 | drivers/net/pi2.c | scc_init(dev->next); |
dev | 1487 | drivers/net/pi2.c | dev->tbusy = 0; |
dev | 1488 | drivers/net/pi2.c | dev->interrupt = 0; |
dev | 1489 | drivers/net/pi2.c | dev->start = 1; |
dev | 1494 | drivers/net/pi2.c | static int pi_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 1496 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1502 | drivers/net/pi2.c | dev_tint(dev); |
dev | 1506 | drivers/net/pi2.c | dev->trans_start = jiffies; |
dev | 1568 | drivers/net/pi2.c | static int pi_close(struct device *dev) |
dev | 1577 | drivers/net/pi2.c | lp = (struct pi_local *) dev->priv; |
dev | 1580 | drivers/net/pi2.c | chipset_init(dev); /* reset the scc */ |
dev | 1585 | drivers/net/pi2.c | dev->tbusy = 1; |
dev | 1586 | drivers/net/pi2.c | dev->start = 0; |
dev | 1596 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
dev | 1600 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1634 | drivers/net/pi2.c | if (dev->base_addr & 2) { /* if A channel */ |
dev | 1639 | drivers/net/pi2.c | pi_close(dev); |
dev | 1641 | drivers/net/pi2.c | dev->dma = lp->dmachan = rq.dmachan; |
dev | 1644 | drivers/net/pi2.c | pi_open(dev); |
dev | 1664 | drivers/net/pi2.c | rq.irq = dev->irq; |
dev | 1678 | drivers/net/pi2.c | pi_get_stats(struct device *dev) |
dev | 1680 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 118 | drivers/net/pi2.h | int dev; /* Device number */ |
dev | 120 | drivers/net/plip.c | #define PAR_DATA(dev) ((dev)->base_addr+0) |
dev | 121 | drivers/net/plip.c | #define PAR_STATUS(dev) ((dev)->base_addr+1) |
dev | 122 | drivers/net/plip.c | #define PAR_CONTROL(dev) ((dev)->base_addr+2) |
dev | 125 | drivers/net/plip.c | static void plip_kick_bh(struct device *dev); |
dev | 126 | drivers/net/plip.c | static void plip_bh(struct device *dev); |
dev | 132 | drivers/net/plip.c | static int plip_rebuild_header(void *buff, struct device *dev, |
dev | 134 | drivers/net/plip.c | static int plip_tx_packet(struct sk_buff *skb, struct device *dev); |
dev | 135 | drivers/net/plip.c | static int plip_open(struct device *dev); |
dev | 136 | drivers/net/plip.c | static int plip_close(struct device *dev); |
dev | 137 | drivers/net/plip.c | static struct enet_statistics *plip_get_stats(struct device *dev); |
dev | 138 | drivers/net/plip.c | static int plip_config(struct device *dev, struct ifmap *map); |
dev | 139 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 198 | drivers/net/plip.c | int (*orig_rebuild_header)(void *eth, struct device *dev, |
dev | 205 | drivers/net/plip.c | plip_init(struct device *dev) |
dev | 210 | drivers/net/plip.c | if (check_region(PAR_DATA(dev), 3) < 0) |
dev | 214 | drivers/net/plip.c | outb(0, PAR_DATA(dev)); |
dev | 216 | drivers/net/plip.c | if (inb(PAR_DATA(dev)) != 0) |
dev | 220 | drivers/net/plip.c | printk("%s: Parallel port at %#3lx, ", dev->name, dev->base_addr); |
dev | 221 | drivers/net/plip.c | if (dev->irq) { |
dev | 222 | drivers/net/plip.c | printk("using assigned IRQ %d.\n", dev->irq); |
dev | 231 | drivers/net/plip.c | outb(0x00, PAR_CONTROL(dev)); |
dev | 233 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 234 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 235 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 240 | drivers/net/plip.c | dev->irq = irq; |
dev | 241 | drivers/net/plip.c | printk("using probed IRQ %d.\n", dev->irq); |
dev | 247 | drivers/net/plip.c | request_region(PAR_DATA(dev), 3, dev->name); |
dev | 250 | drivers/net/plip.c | ether_setup(dev); |
dev | 253 | drivers/net/plip.c | dev->hard_start_xmit = plip_tx_packet; |
dev | 254 | drivers/net/plip.c | dev->open = plip_open; |
dev | 255 | drivers/net/plip.c | dev->stop = plip_close; |
dev | 256 | drivers/net/plip.c | dev->get_stats = plip_get_stats; |
dev | 257 | drivers/net/plip.c | dev->set_config = plip_config; |
dev | 258 | drivers/net/plip.c | dev->do_ioctl = plip_ioctl; |
dev | 259 | drivers/net/plip.c | dev->flags = IFF_POINTOPOINT|IFF_NOARP; |
dev | 262 | drivers/net/plip.c | dev->priv = kmalloc(sizeof (struct net_local), GFP_KERNEL); |
dev | 263 | drivers/net/plip.c | if (dev->priv == NULL) |
dev | 265 | drivers/net/plip.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 266 | drivers/net/plip.c | nl = (struct net_local *) dev->priv; |
dev | 268 | drivers/net/plip.c | nl->orig_rebuild_header = dev->rebuild_header; |
dev | 269 | drivers/net/plip.c | dev->rebuild_header = plip_rebuild_header; |
dev | 279 | drivers/net/plip.c | nl->immediate.data = dev; |
dev | 284 | drivers/net/plip.c | nl->deferred.data = dev; |
dev | 293 | drivers/net/plip.c | plip_kick_bh(struct device *dev) |
dev | 295 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 314 | drivers/net/plip.c | static int plip_bh_timeout_error(struct device *dev, struct net_local *nl, |
dev | 323 | drivers/net/plip.c | typedef int (*plip_func)(struct device *dev, struct net_local *nl, |
dev | 337 | drivers/net/plip.c | plip_bh(struct device *dev) |
dev | 339 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 347 | drivers/net/plip.c | if ((r = (*f)(dev, nl, snd, rcv)) != OK |
dev | 348 | drivers/net/plip.c | && (r = plip_bh_timeout_error(dev, nl, snd, rcv, r)) != OK) { |
dev | 355 | drivers/net/plip.c | plip_bh_timeout_error(struct device *dev, struct net_local *nl, |
dev | 373 | drivers/net/plip.c | c0 = inb(PAR_STATUS(dev)); |
dev | 375 | drivers/net/plip.c | dev->name, snd->state, c0); |
dev | 391 | drivers/net/plip.c | c0 = inb(PAR_STATUS(dev)); |
dev | 393 | drivers/net/plip.c | dev->name, rcv->state, c0); |
dev | 408 | drivers/net/plip.c | disable_irq(dev->irq); |
dev | 409 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 410 | drivers/net/plip.c | dev->tbusy = 1; |
dev | 412 | drivers/net/plip.c | outb(0x00, PAR_DATA(dev)); |
dev | 419 | drivers/net/plip.c | plip_none(struct device *dev, struct net_local *nl, |
dev | 478 | drivers/net/plip.c | plip_receive_packet(struct device *dev, struct net_local *nl, |
dev | 481 | drivers/net/plip.c | unsigned short status_addr = PAR_STATUS(dev); |
dev | 487 | drivers/net/plip.c | disable_irq(dev->irq); |
dev | 488 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 489 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 490 | drivers/net/plip.c | outb(0x01, PAR_DATA(dev)); /* send ACK */ |
dev | 492 | drivers/net/plip.c | printk("%s: receive start\n", dev->name); |
dev | 505 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 506 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 520 | drivers/net/plip.c | if (rcv->length.h > dev->mtu || rcv->length.h < 8) { |
dev | 521 | drivers/net/plip.c | printk("%s: bogus packet size %d.\n", dev->name, rcv->length.h); |
dev | 527 | drivers/net/plip.c | printk("%s: Memory squeeze.\n", dev->name); |
dev | 531 | drivers/net/plip.c | rcv->skb->dev = dev; |
dev | 555 | drivers/net/plip.c | printk("%s: checksum error\n", dev->name); |
dev | 562 | drivers/net/plip.c | rcv->skb->protocol=eth_type_trans(rcv->skb, dev); |
dev | 567 | drivers/net/plip.c | printk("%s: receive end\n", dev->name); |
dev | 570 | drivers/net/plip.c | outb (0x00, PAR_DATA(dev)); |
dev | 576 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 577 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 582 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 583 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 639 | drivers/net/plip.c | plip_send_packet(struct device *dev, struct net_local *nl, |
dev | 642 | drivers/net/plip.c | unsigned short data_addr = PAR_DATA(dev); |
dev | 649 | drivers/net/plip.c | printk("%s: send skb lost\n", dev->name); |
dev | 668 | drivers/net/plip.c | printk("%s: collision.\n", dev->name); |
dev | 671 | drivers/net/plip.c | c0 = inb(PAR_STATUS(dev)); |
dev | 673 | drivers/net/plip.c | disable_irq(dev->irq); |
dev | 674 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 676 | drivers/net/plip.c | printk("%s: send start\n", dev->name); |
dev | 729 | drivers/net/plip.c | printk("%s: send end\n", dev->name); |
dev | 733 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 734 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 741 | drivers/net/plip.c | plip_connection_close(struct device *dev, struct net_local *nl, |
dev | 747 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 756 | drivers/net/plip.c | plip_error(struct device *dev, struct net_local *nl, |
dev | 761 | drivers/net/plip.c | status = inb(PAR_STATUS(dev)); |
dev | 764 | drivers/net/plip.c | printk("%s: reset interface.\n", dev->name); |
dev | 766 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 767 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 768 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 769 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 783 | drivers/net/plip.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 784 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 788 | drivers/net/plip.c | if (dev == NULL) { |
dev | 793 | drivers/net/plip.c | if (dev->interrupt) |
dev | 796 | drivers/net/plip.c | c0 = inb(PAR_STATUS(dev)); |
dev | 799 | drivers/net/plip.c | printk("%s: spurious interrupt\n", dev->name); |
dev | 802 | drivers/net/plip.c | dev->interrupt = 1; |
dev | 804 | drivers/net/plip.c | printk("%s: interrupt.\n", dev->name); |
dev | 809 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 812 | drivers/net/plip.c | dev->last_rx = jiffies; |
dev | 823 | drivers/net/plip.c | printk("%s: receive interrupt when receiving packet\n", dev->name); |
dev | 828 | drivers/net/plip.c | printk("%s: receive interrupt in error state\n", dev->name); |
dev | 835 | drivers/net/plip.c | plip_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
dev | 838 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 842 | drivers/net/plip.c | if ((dev->flags & IFF_NOARP)==0) |
dev | 843 | drivers/net/plip.c | return nl->orig_rebuild_header(buff, dev, dst, skb); |
dev | 847 | drivers/net/plip.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
dev | 858 | drivers/net/plip.c | plip_tx_packet(struct sk_buff *skb, struct device *dev) |
dev | 860 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 863 | drivers/net/plip.c | if (dev->tbusy) |
dev | 870 | drivers/net/plip.c | dev_tint(dev); |
dev | 874 | drivers/net/plip.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 875 | drivers/net/plip.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 879 | drivers/net/plip.c | if (skb->len > dev->mtu) { |
dev | 880 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
dev | 881 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 886 | drivers/net/plip.c | printk("%s: send request\n", dev->name); |
dev | 889 | drivers/net/plip.c | dev->trans_start = jiffies; |
dev | 911 | drivers/net/plip.c | plip_open(struct device *dev) |
dev | 913 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 916 | drivers/net/plip.c | if (dev->irq == 0) { |
dev | 917 | drivers/net/plip.c | printk("%s: IRQ is not set. Please set it by ifconfig.\n", dev->name); |
dev | 921 | drivers/net/plip.c | if (request_irq(dev->irq , plip_interrupt, 0, dev->name) != 0) { |
dev | 923 | drivers/net/plip.c | printk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq); |
dev | 926 | drivers/net/plip.c | irq2dev_map[dev->irq] = dev; |
dev | 930 | drivers/net/plip.c | outb (0x00, PAR_DATA(dev)); |
dev | 933 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 943 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
dev | 944 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
dev | 946 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 947 | drivers/net/plip.c | dev->start = 1; |
dev | 948 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 955 | drivers/net/plip.c | plip_close(struct device *dev) |
dev | 957 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 961 | drivers/net/plip.c | dev->tbusy = 1; |
dev | 962 | drivers/net/plip.c | dev->start = 0; |
dev | 964 | drivers/net/plip.c | free_irq(dev->irq); |
dev | 965 | drivers/net/plip.c | irq2dev_map[dev->irq] = NULL; |
dev | 969 | drivers/net/plip.c | outb(0x00, PAR_DATA(dev)); |
dev | 984 | drivers/net/plip.c | outb(0x00, PAR_CONTROL(dev)); |
dev | 990 | drivers/net/plip.c | plip_get_stats(struct device *dev) |
dev | 992 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 999 | drivers/net/plip.c | plip_config(struct device *dev, struct ifmap *map) |
dev | 1001 | drivers/net/plip.c | if (dev->flags & IFF_UP) |
dev | 1005 | drivers/net/plip.c | && map->base_addr != dev->base_addr) |
dev | 1006 | drivers/net/plip.c | printk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name); |
dev | 1009 | drivers/net/plip.c | dev->irq = map->irq; |
dev | 1014 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 1016 | drivers/net/plip.c | struct net_local *nl = (struct net_local *) dev->priv; |
dev | 103 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 122 | drivers/net/ppp.c | static int ppp_header(unsigned char *buff, struct device *dev, |
dev | 125 | drivers/net/ppp.c | static int ppp_rebuild_header(void *buff, struct device *dev); |
dev | 127 | drivers/net/ppp.c | struct device *dev); |
dev | 213 | drivers/net/ppp.c | ppp_init(struct device *dev) |
dev | 218 | drivers/net/ppp.c | ppp = &ppp_ctrl[dev->base_addr]; |
dev | 265 | drivers/net/ppp.c | ppp->line = dev->base_addr; |
dev | 267 | drivers/net/ppp.c | ppp->dev = dev; |
dev | 273 | drivers/net/ppp.c | dev->mtu = PPP_MTU; |
dev | 274 | drivers/net/ppp.c | dev->hard_start_xmit = ppp_xmit; |
dev | 275 | drivers/net/ppp.c | dev->open = ppp_dev_open; |
dev | 276 | drivers/net/ppp.c | dev->stop = ppp_dev_close; |
dev | 277 | drivers/net/ppp.c | dev->get_stats = ppp_get_stats; |
dev | 278 | drivers/net/ppp.c | dev->hard_header = ppp_header; |
dev | 279 | drivers/net/ppp.c | dev->rebuild_header = ppp_rebuild_header; |
dev | 280 | drivers/net/ppp.c | dev->hard_header_len = 0; |
dev | 281 | drivers/net/ppp.c | dev->addr_len = 0; |
dev | 282 | drivers/net/ppp.c | dev->type = ARPHRD_PPP; |
dev | 285 | drivers/net/ppp.c | dev->add_arp = ppp_add_arp; |
dev | 286 | drivers/net/ppp.c | dev->queue_xmit = dev_queue_xmit; |
dev | 288 | drivers/net/ppp.c | dev->do_ioctl = ppp_dev_ioctl; |
dev | 292 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
dev | 295 | drivers/net/ppp.c | dev->flags = IFF_POINTOPOINT; |
dev | 296 | drivers/net/ppp.c | dev->family = AF_INET; |
dev | 297 | drivers/net/ppp.c | dev->pa_addr = 0; |
dev | 298 | drivers/net/ppp.c | dev->pa_brdaddr = 0; |
dev | 299 | drivers/net/ppp.c | dev->pa_mask = 0; |
dev | 300 | drivers/net/ppp.c | dev->pa_alen = sizeof(unsigned long); |
dev | 369 | drivers/net/ppp.c | struct device *dev; |
dev | 376 | drivers/net/ppp.c | dev = ppp->dev; |
dev | 388 | drivers/net/ppp.c | dev->name, new_mtu, new_mru)); |
dev | 425 | drivers/net/ppp.c | dev->mem_start = (unsigned long) new_xbuff; |
dev | 426 | drivers/net/ppp.c | dev->mem_end = (unsigned long) (dev->mem_start + mtu); |
dev | 428 | drivers/net/ppp.c | dev->rmem_start = (unsigned long) new_rbuff; |
dev | 430 | drivers/net/ppp.c | dev->rmem_end = (unsigned long) (dev->rmem_start + mru); |
dev | 444 | drivers/net/ppp.c | dev->mtu = new_mtu; |
dev | 471 | drivers/net/ppp.c | if (ppp->dev) { |
dev | 472 | drivers/net/ppp.c | dev_close (ppp->dev); |
dev | 473 | drivers/net/ppp.c | ppp->dev->flags = 0; |
dev | 506 | drivers/net/ppp.c | PRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name)); |
dev | 521 | drivers/net/ppp.c | ppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown")); |
dev | 554 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru); |
dev | 572 | drivers/net/ppp.c | PRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name)); |
dev | 584 | drivers/net/ppp.c | ppp_dev_open(struct device *dev) |
dev | 586 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 589 | drivers/net/ppp.c | dev->flags |= IFF_POINTOPOINT; |
dev | 593 | drivers/net/ppp.c | dev->name)); |
dev | 598 | drivers/net/ppp.c | dev->name)); |
dev | 605 | drivers/net/ppp.c | ppp_dev_close(struct device *dev) |
dev | 607 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 611 | drivers/net/ppp.c | dev->name)); |
dev | 616 | drivers/net/ppp.c | dev->name)); |
dev | 622 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
dev | 624 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 667 | drivers/net/ppp.c | if (((struct ppp *) ppp)->dev->flags & IFF_UP) |
dev | 671 | drivers/net/ppp.c | dev_tint (((struct ppp *) ppp)->dev); |
dev | 1053 | drivers/net/ppp.c | if ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) { |
dev | 1092 | drivers/net/ppp.c | PRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name, |
dev | 1149 | drivers/net/ppp.c | PRINTK ((KERN_INFO "%s <-- src %lx dst %lx len %d\n", ppp->dev->name, |
dev | 1160 | drivers/net/ppp.c | skb->dev=ppp->dev; |
dev | 1356 | drivers/net/ppp.c | if (ppp->mtu != ppp->dev->mtu) /* Someone has been ifconfigging */ |
dev | 1357 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru); |
dev | 1444 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, temp_i); |
dev | 1503 | drivers/net/ppp.c | put_user (ppp->dev->base_addr, (int *) l); |
dev | 1504 | drivers/net/ppp.c | PRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %ld", ppp->dev->base_addr)); |
dev | 1705 | drivers/net/ppp.c | ppp_xmit(struct sk_buff *skb, struct device *dev) |
dev | 1720 | drivers/net/ppp.c | ppp = &ppp_ctrl[dev->base_addr]; |
dev | 1726 | drivers/net/ppp.c | PRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, |
dev | 1732 | drivers/net/ppp.c | dev_close (dev); |
dev | 1737 | drivers/net/ppp.c | PRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name)); |
dev | 1741 | drivers/net/ppp.c | if (!(dev->flags & IFF_UP)) { |
dev | 1744 | drivers/net/ppp.c | dev->name)); |
dev | 1798 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
dev | 1849 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 1856 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev) |
dev | 1862 | drivers/net/ppp.c | ppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev) |
dev | 1869 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 1876 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 1884 | drivers/net/ppp.c | ppp_get_stats (struct device *dev) |
dev | 1886 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 1953 | drivers/net/ppp.c | if (ppp->dev->flags & IFF_UP) |
dev | 1954 | drivers/net/ppp.c | ppp->dev->tbusy = 1; |
dev | 1966 | drivers/net/ppp.c | if (ppp->dev->flags & IFF_UP) |
dev | 1967 | drivers/net/ppp.c | ppp->dev->tbusy = 0; |
dev | 485 | drivers/net/sk_g16.c | int SK_init(struct device *dev); |
dev | 486 | drivers/net/sk_g16.c | static int SK_probe(struct device *dev, short ioaddr); |
dev | 488 | drivers/net/sk_g16.c | static int SK_open(struct device *dev); |
dev | 489 | drivers/net/sk_g16.c | static int SK_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 491 | drivers/net/sk_g16.c | static void SK_rxintr(struct device *dev); |
dev | 492 | drivers/net/sk_g16.c | static void SK_txintr(struct device *dev); |
dev | 493 | drivers/net/sk_g16.c | static int SK_close(struct device *dev); |
dev | 495 | drivers/net/sk_g16.c | static struct enet_statistics *SK_get_stats(struct device *dev); |
dev | 500 | drivers/net/sk_g16.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 508 | drivers/net/sk_g16.c | static int SK_lance_init(struct device *dev, unsigned short mode); |
dev | 520 | drivers/net/sk_g16.c | void SK_print_pos(struct device *dev, char *text); |
dev | 521 | drivers/net/sk_g16.c | void SK_print_dev(struct device *dev, char *text); |
dev | 522 | drivers/net/sk_g16.c | void SK_print_ram(struct device *dev); |
dev | 552 | drivers/net/sk_g16.c | int SK_init(struct device *dev) |
dev | 558 | drivers/net/sk_g16.c | int base_addr = dev->base_addr; |
dev | 570 | drivers/net/sk_g16.c | return SK_probe(dev, base_addr); |
dev | 601 | drivers/net/sk_g16.c | dev->base_addr = ioaddr; /* Set I/O Port Address */ |
dev | 603 | drivers/net/sk_g16.c | if (SK_probe(dev, ioaddr) == 0) |
dev | 609 | drivers/net/sk_g16.c | dev->base_addr = base_addr; /* Write back original base_addr */ |
dev | 636 | drivers/net/sk_g16.c | int SK_probe(struct device *dev, short ioaddr) |
dev | 666 | drivers/net/sk_g16.c | dev->name, SK_ADDR); |
dev | 696 | drivers/net/sk_g16.c | dev->name, SK_ADDR); |
dev | 714 | drivers/net/sk_g16.c | dev->name, SK_ADDR); |
dev | 740 | drivers/net/sk_g16.c | dev->name, SK_ADDR); |
dev | 752 | drivers/net/sk_g16.c | SK_print_pos(dev, "POS registers after ROM, RAM config"); |
dev | 760 | drivers/net/sk_g16.c | dev->dev_addr[i] = board->rom[j]; |
dev | 764 | drivers/net/sk_g16.c | if (!(dev->dev_addr[0] == SK_MAC0 && |
dev | 765 | drivers/net/sk_g16.c | dev->dev_addr[1] == SK_MAC1 && |
dev | 766 | drivers/net/sk_g16.c | dev->dev_addr[2] == SK_MAC2) ) |
dev | 774 | drivers/net/sk_g16.c | dev->name, |
dev | 776 | drivers/net/sk_g16.c | (unsigned int) dev->base_addr, |
dev | 777 | drivers/net/sk_g16.c | dev->dev_addr[0], |
dev | 778 | drivers/net/sk_g16.c | dev->dev_addr[1], |
dev | 779 | drivers/net/sk_g16.c | dev->dev_addr[2], |
dev | 780 | drivers/net/sk_g16.c | dev->dev_addr[3], |
dev | 781 | drivers/net/sk_g16.c | dev->dev_addr[4], |
dev | 782 | drivers/net/sk_g16.c | dev->dev_addr[5]); |
dev | 790 | drivers/net/sk_g16.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL); |
dev | 791 | drivers/net/sk_g16.c | memset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */ |
dev | 795 | drivers/net/sk_g16.c | dev->open = &SK_open; |
dev | 796 | drivers/net/sk_g16.c | dev->stop = &SK_close; |
dev | 797 | drivers/net/sk_g16.c | dev->hard_start_xmit = &SK_send_packet; |
dev | 798 | drivers/net/sk_g16.c | dev->get_stats = &SK_get_stats; |
dev | 801 | drivers/net/sk_g16.c | dev->set_multicast_list = &set_multicast_list; |
dev | 807 | drivers/net/sk_g16.c | ether_setup(dev); |
dev | 828 | drivers/net/sk_g16.c | SK_print_pos(dev, "End of SK_probe"); |
dev | 829 | drivers/net/sk_g16.c | SK_print_ram(dev); |
dev | 862 | drivers/net/sk_g16.c | static int SK_open(struct device *dev) |
dev | 866 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
dev | 870 | drivers/net/sk_g16.c | struct priv *p = (struct priv *)dev->priv; |
dev | 875 | drivers/net/sk_g16.c | if (dev->irq == 0) /* Autoirq */ |
dev | 896 | drivers/net/sk_g16.c | printk("%s: unable to get an IRQ\n", dev->name); |
dev | 900 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
dev | 905 | drivers/net/sk_g16.c | else if (dev->irq == 2) /* IRQ2 is always IRQ9 */ |
dev | 909 | drivers/net/sk_g16.c | printk("%s: unable to get IRQ 9\n", dev->name); |
dev | 912 | drivers/net/sk_g16.c | dev->irq = 9; |
dev | 928 | drivers/net/sk_g16.c | if (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16")) |
dev | 930 | drivers/net/sk_g16.c | printk("%s: unable to get selected IRQ\n", dev->name); |
dev | 934 | drivers/net/sk_g16.c | switch(dev->irq) |
dev | 946 | drivers/net/sk_g16.c | dev->name, |
dev | 947 | drivers/net/sk_g16.c | dev->irq, |
dev | 955 | drivers/net/sk_g16.c | irq2dev_map[dev->irq] = dev; /* Set IRQ as used by us */ |
dev | 958 | drivers/net/sk_g16.c | dev->name, (unsigned int)dev->base_addr, |
dev | 959 | drivers/net/sk_g16.c | (int) dev->irq, (unsigned int) p->ram); |
dev | 961 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
dev | 965 | drivers/net/sk_g16.c | dev->tbusy = 0; |
dev | 966 | drivers/net/sk_g16.c | dev->interrupt = 0; |
dev | 967 | drivers/net/sk_g16.c | dev->start = 1; |
dev | 982 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_DTX | MODE_DRX); |
dev | 988 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); |
dev | 991 | drivers/net/sk_g16.c | SK_print_pos(dev, "POS regs before returning OK"); |
dev | 1003 | drivers/net/sk_g16.c | dev->start = 0; /* Device not ready */ |
dev | 1027 | drivers/net/sk_g16.c | static int SK_lance_init(struct device *dev, unsigned short mode) |
dev | 1030 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1085 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
dev | 1148 | drivers/net/sk_g16.c | dev->name, (int) SK_read_reg(CSR0), |
dev | 1152 | drivers/net/sk_g16.c | SK_print_pos(dev, "LANCE INIT failed"); |
dev | 1153 | drivers/net/sk_g16.c | SK_print_dev(dev,"Device Structure:"); |
dev | 1193 | drivers/net/sk_g16.c | static int SK_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 1195 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1198 | drivers/net/sk_g16.c | if (dev->tbusy) |
dev | 1202 | drivers/net/sk_g16.c | int tickssofar = jiffies - dev->trans_start; |
dev | 1208 | drivers/net/sk_g16.c | printk("%s: xmitter timed out, try to restart!\n", dev->name); |
dev | 1210 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */ |
dev | 1212 | drivers/net/sk_g16.c | dev->tbusy = 0; /* Clear Transmitter flag */ |
dev | 1214 | drivers/net/sk_g16.c | dev->trans_start = jiffies; /* Mark Start of transmission */ |
dev | 1229 | drivers/net/sk_g16.c | dev_tint(dev); |
dev | 1243 | drivers/net/sk_g16.c | if (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ |
dev | 1245 | drivers/net/sk_g16.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1274 | drivers/net/sk_g16.c | dev->trans_start = jiffies; /* Mark start of transmission */ |
dev | 1287 | drivers/net/sk_g16.c | dev->tbusy = 0; |
dev | 1315 | drivers/net/sk_g16.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 1316 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1322 | drivers/net/sk_g16.c | if (dev == NULL) |
dev | 1328 | drivers/net/sk_g16.c | if (dev->interrupt) |
dev | 1330 | drivers/net/sk_g16.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 1335 | drivers/net/sk_g16.c | dev->interrupt = 1; /* We are handling an interrupt */ |
dev | 1346 | drivers/net/sk_g16.c | printk("%s: error: %04x\n", dev->name, csr0); |
dev | 1356 | drivers/net/sk_g16.c | SK_rxintr(dev); |
dev | 1361 | drivers/net/sk_g16.c | SK_txintr(dev); |
dev | 1366 | drivers/net/sk_g16.c | dev->interrupt = 0; /* We are out */ |
dev | 1387 | drivers/net/sk_g16.c | static void SK_txintr(struct device *dev) |
dev | 1391 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1411 | drivers/net/sk_g16.c | printk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat, |
dev | 1416 | drivers/net/sk_g16.c | printk("%s: tdr-problems \n", dev->name); |
dev | 1434 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); |
dev | 1468 | drivers/net/sk_g16.c | dev->tbusy = 0; |
dev | 1506 | drivers/net/sk_g16.c | static void SK_rxintr(struct device *dev) |
dev | 1511 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1541 | drivers/net/sk_g16.c | printk("%s: packet too long\n", dev->name); |
dev | 1557 | drivers/net/sk_g16.c | printk("%s: RX error: %04x\n", dev->name, (int) rmdstat); |
dev | 1585 | drivers/net/sk_g16.c | dev->name); |
dev | 1594 | drivers/net/sk_g16.c | skb->dev = dev; |
dev | 1614 | drivers/net/sk_g16.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1655 | drivers/net/sk_g16.c | static int SK_close(struct device *dev) |
dev | 1661 | drivers/net/sk_g16.c | dev->tbusy = 1; /* Transmitter busy */ |
dev | 1662 | drivers/net/sk_g16.c | dev->start = 0; /* Card down */ |
dev | 1664 | drivers/net/sk_g16.c | printk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, |
dev | 1669 | drivers/net/sk_g16.c | free_irq(dev->irq); /* Free IRQ */ |
dev | 1670 | drivers/net/sk_g16.c | irq2dev_map[dev->irq] = 0; /* Mark IRQ as unused */ |
dev | 1693 | drivers/net/sk_g16.c | static struct enet_statistics *SK_get_stats(struct device *dev) |
dev | 1696 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1740 | drivers/net/sk_g16.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1746 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_PROM); |
dev | 1751 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); |
dev | 2003 | drivers/net/sk_g16.c | void SK_print_pos(struct device *dev, char *text) |
dev | 2005 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
dev | 2038 | drivers/net/sk_g16.c | void SK_print_dev(struct device *dev, char *text) |
dev | 2040 | drivers/net/sk_g16.c | if (dev == NULL) |
dev | 2049 | drivers/net/sk_g16.c | dev->name, dev->base_addr, dev->irq); |
dev | 2052 | drivers/net/sk_g16.c | dev->start, dev->tbusy, dev->interrupt); |
dev | 2055 | drivers/net/sk_g16.c | (int) dev->next, (int) dev->init); |
dev | 2081 | drivers/net/sk_g16.c | void SK_print_ram(struct device *dev) |
dev | 2085 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 65 | drivers/net/skeleton.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 95 | drivers/net/skeleton.c | extern int netcard_probe(struct device *dev); |
dev | 97 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, int ioaddr); |
dev | 98 | drivers/net/skeleton.c | static int net_open(struct device *dev); |
dev | 99 | drivers/net/skeleton.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 101 | drivers/net/skeleton.c | static void net_rx(struct device *dev); |
dev | 102 | drivers/net/skeleton.c | static int net_close(struct device *dev); |
dev | 103 | drivers/net/skeleton.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 104 | drivers/net/skeleton.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 107 | drivers/net/skeleton.c | #define tx_done(dev) 1 |
dev | 109 | drivers/net/skeleton.c | extern void chipset_init(struct device *dev, int startp); |
dev | 125 | drivers/net/skeleton.c | netcard_probe(struct device *dev) |
dev | 128 | drivers/net/skeleton.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 131 | drivers/net/skeleton.c | return netcard_probe1(dev, base_addr); |
dev | 139 | drivers/net/skeleton.c | if (netcard_probe1(dev, ioaddr) == 0) |
dev | 151 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, int ioaddr) |
dev | 166 | drivers/net/skeleton.c | if (dev == NULL) |
dev | 167 | drivers/net/skeleton.c | dev = init_etherdev(0, sizeof(struct net_local), 0); |
dev | 172 | drivers/net/skeleton.c | printk("%s: %s found at %#3x, ", dev->name, "network card", ioaddr); |
dev | 175 | drivers/net/skeleton.c | dev->base_addr = ioaddr; |
dev | 179 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 188 | drivers/net/skeleton.c | if (dev->irq == -1) |
dev | 190 | drivers/net/skeleton.c | else if (dev->irq < 2) { /* "Auto-IRQ" */ |
dev | 194 | drivers/net/skeleton.c | dev->irq = autoirq_report(0); |
dev | 196 | drivers/net/skeleton.c | printk(" autoirq is %d", dev->irq); |
dev | 197 | drivers/net/skeleton.c | } else if (dev->irq == 2) |
dev | 200 | drivers/net/skeleton.c | dev->irq = 9; |
dev | 202 | drivers/net/skeleton.c | { int irqval = request_irq(dev->irq, &net_interrupt, 0, "skeleton"); |
dev | 204 | drivers/net/skeleton.c | printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name, |
dev | 205 | drivers/net/skeleton.c | dev->irq, irqval); |
dev | 213 | drivers/net/skeleton.c | if (dev->dma == 0) { |
dev | 214 | drivers/net/skeleton.c | if (request_dma(dev->dma, "netcard")) { |
dev | 215 | drivers/net/skeleton.c | printk("DMA %d allocation failed.\n", dev->dma); |
dev | 218 | drivers/net/skeleton.c | printk(", assigned DMA %d.\n", dev->dma); |
dev | 235 | drivers/net/skeleton.c | dev->dma = i; |
dev | 242 | drivers/net/skeleton.c | if (request_dma(dev->dma, "netcard")) { |
dev | 243 | drivers/net/skeleton.c | printk("probed DMA %d allocation failed.\n", dev->dma); |
dev | 253 | drivers/net/skeleton.c | if (dev->priv == NULL) |
dev | 254 | drivers/net/skeleton.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 255 | drivers/net/skeleton.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 257 | drivers/net/skeleton.c | dev->open = net_open; |
dev | 258 | drivers/net/skeleton.c | dev->stop = net_close; |
dev | 259 | drivers/net/skeleton.c | dev->hard_start_xmit = net_send_packet; |
dev | 260 | drivers/net/skeleton.c | dev->get_stats = net_get_stats; |
dev | 261 | drivers/net/skeleton.c | dev->set_multicast_list = &set_multicast_list; |
dev | 264 | drivers/net/skeleton.c | ether_setup(dev); |
dev | 278 | drivers/net/skeleton.c | net_open(struct device *dev) |
dev | 280 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 281 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 285 | drivers/net/skeleton.c | if (request_irq(dev->irq, &net_interrupt, 0, "skeleton")) { |
dev | 290 | drivers/net/skeleton.c | if (request_dma(dev->dma,"skeleton ethernet")) { |
dev | 291 | drivers/net/skeleton.c | free_irq(dev->irq); |
dev | 294 | drivers/net/skeleton.c | irq2dev_map[dev->irq] = dev; |
dev | 301 | drivers/net/skeleton.c | dev->tbusy = 0; |
dev | 302 | drivers/net/skeleton.c | dev->interrupt = 0; |
dev | 303 | drivers/net/skeleton.c | dev->start = 1; |
dev | 308 | drivers/net/skeleton.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 310 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 311 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 313 | drivers/net/skeleton.c | if (dev->tbusy) { |
dev | 316 | drivers/net/skeleton.c | int tickssofar = jiffies - dev->trans_start; |
dev | 319 | drivers/net/skeleton.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 320 | drivers/net/skeleton.c | tx_done(dev) ? "IRQ conflict" : "network cable problem"); |
dev | 322 | drivers/net/skeleton.c | chipset_init(dev, 1); |
dev | 323 | drivers/net/skeleton.c | dev->tbusy=0; |
dev | 324 | drivers/net/skeleton.c | dev->trans_start = jiffies; |
dev | 331 | drivers/net/skeleton.c | dev_tint(dev); |
dev | 337 | drivers/net/skeleton.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 338 | drivers/net/skeleton.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 344 | drivers/net/skeleton.c | dev->trans_start = jiffies; |
dev | 360 | drivers/net/skeleton.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 364 | drivers/net/skeleton.c | if (dev == NULL) { |
dev | 368 | drivers/net/skeleton.c | dev->interrupt = 1; |
dev | 370 | drivers/net/skeleton.c | ioaddr = dev->base_addr; |
dev | 371 | drivers/net/skeleton.c | lp = (struct net_local *)dev->priv; |
dev | 377 | drivers/net/skeleton.c | net_rx(dev); |
dev | 381 | drivers/net/skeleton.c | dev->tbusy = 0; |
dev | 390 | drivers/net/skeleton.c | dev->interrupt = 0; |
dev | 396 | drivers/net/skeleton.c | net_rx(struct device *dev) |
dev | 398 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 399 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 421 | drivers/net/skeleton.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 426 | drivers/net/skeleton.c | skb->dev = dev; |
dev | 429 | drivers/net/skeleton.c | memcpy(skb->data, (void*)dev->rmem_start, |
dev | 447 | drivers/net/skeleton.c | net_close(struct device *dev) |
dev | 449 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 450 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 454 | drivers/net/skeleton.c | dev->tbusy = 1; |
dev | 455 | drivers/net/skeleton.c | dev->start = 0; |
dev | 459 | drivers/net/skeleton.c | disable_dma(dev->dma); |
dev | 464 | drivers/net/skeleton.c | free_irq(dev->irq); |
dev | 465 | drivers/net/skeleton.c | free_dma(dev->dma); |
dev | 467 | drivers/net/skeleton.c | irq2dev_map[dev->irq] = 0; |
dev | 478 | drivers/net/skeleton.c | net_get_stats(struct device *dev) |
dev | 480 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 481 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
dev | 498 | drivers/net/skeleton.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 500 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
dev | 148 | drivers/net/slip.c | printk("%s: sl_free for already free unit.\n", sl->dev->name); |
dev | 158 | drivers/net/slip.c | struct device *dev = sl->dev; |
dev | 166 | drivers/net/slip.c | len = dev->mtu * 2; |
dev | 188 | drivers/net/slip.c | sl->dev->name); |
dev | 189 | drivers/net/slip.c | dev->mtu = sl->mtu; |
dev | 234 | drivers/net/slip.c | sl->mtu = dev->mtu + 73; |
dev | 236 | drivers/net/slip.c | sl->mtu = dev->mtu; |
dev | 260 | drivers/net/slip.c | if (set_bit(0, (void *) &sl->dev->tbusy)) { |
dev | 261 | drivers/net/slip.c | printk("%s: trying to lock already locked device!\n", sl->dev->name); |
dev | 270 | drivers/net/slip.c | if (!clear_bit(0, (void *)&sl->dev->tbusy)) { |
dev | 271 | drivers/net/slip.c | printk("%s: trying to unlock already unlocked device!\n", sl->dev->name); |
dev | 289 | drivers/net/slip.c | printk("%s: compressed packet ignored\n", sl->dev->name); |
dev | 306 | drivers/net/slip.c | printk("%s: header compression turned on\n", sl->dev->name); |
dev | 318 | drivers/net/slip.c | printk("%s: memory squeeze, dropping packet.\n", sl->dev->name); |
dev | 323 | drivers/net/slip.c | skb->dev = sl->dev; |
dev | 342 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu + 73) { /* Someone has been ifconfigging */ |
dev | 344 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu) { /* Someone has been ifconfigging */ |
dev | 351 | drivers/net/slip.c | printk ("%s: truncating oversized transmit packet!\n", sl->dev->name); |
dev | 381 | drivers/net/slip.c | sl->dev->trans_start = jiffies; |
dev | 397 | drivers/net/slip.c | if (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) { |
dev | 418 | drivers/net/slip.c | sl_xmit(struct sk_buff *skb, struct device *dev) |
dev | 420 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 422 | drivers/net/slip.c | if (!dev->start) { |
dev | 423 | drivers/net/slip.c | printk("%s: xmit call when iface is down\n", dev->name); |
dev | 436 | drivers/net/slip.c | if (dev->tbusy) { |
dev | 441 | drivers/net/slip.c | if (jiffies - dev->trans_start < 20 * HZ) { |
dev | 445 | drivers/net/slip.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 465 | drivers/net/slip.c | mode = ax25_ip_mode_get((ax25_address *)(skb->data + 1), dev); |
dev | 473 | drivers/net/slip.c | ax25_send_frame(skbn, (ax25_address *)dev->dev_addr, (ax25_address *)(skbn->data + 1), dev); |
dev | 496 | drivers/net/slip.c | sl_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 501 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 504 | drivers/net/slip.c | return ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb); |
dev | 514 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 519 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 522 | drivers/net/slip.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
dev | 532 | drivers/net/slip.c | sl_open(struct device *dev) |
dev | 534 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 548 | drivers/net/slip.c | len = dev->mtu * 2; |
dev | 577 | drivers/net/slip.c | sl->mtu = dev->mtu + 73; |
dev | 579 | drivers/net/slip.c | sl->mtu = dev->mtu; |
dev | 591 | drivers/net/slip.c | if (dev->pa_addr == 0) { |
dev | 592 | drivers/net/slip.c | dev->pa_addr=ntohl(0xC0A80001); |
dev | 594 | drivers/net/slip.c | dev->tbusy = 0; |
dev | 596 | drivers/net/slip.c | dev->start = 1; |
dev | 616 | drivers/net/slip.c | sl_close(struct device *dev) |
dev | 618 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 624 | drivers/net/slip.c | dev->tbusy = 1; |
dev | 625 | drivers/net/slip.c | dev->start = 0; |
dev | 649 | drivers/net/slip.c | if (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) |
dev | 657 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu + 73) { |
dev | 659 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu) { |
dev | 716 | drivers/net/slip.c | sl->dev->type = ARPHRD_SLIP + sl->mode; |
dev | 718 | drivers/net/slip.c | if (sl->dev->type == 260 || sl->dev->type == 272) { /* KISS */ |
dev | 719 | drivers/net/slip.c | sl->dev->type = ARPHRD_AX25; |
dev | 723 | drivers/net/slip.c | if ((err = sl_open(sl->dev))) { |
dev | 732 | drivers/net/slip.c | return sl->dev->base_addr; |
dev | 752 | drivers/net/slip.c | (void) dev_close(sl->dev); |
dev | 764 | drivers/net/slip.c | sl_get_stats(struct device *dev) |
dev | 767 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 953 | drivers/net/slip.c | sl_set_mac_address(struct device *dev, void *addr) |
dev | 962 | drivers/net/slip.c | memcpy_fromfs(dev->dev_addr, addr, 7); /* addr is an AX.25 shifted ASCII mac address */ |
dev | 968 | drivers/net/slip.c | sl_set_dev_mac_address(struct device *dev, void *addr) |
dev | 970 | drivers/net/slip.c | memcpy(dev->dev_addr, addr, 7); |
dev | 995 | drivers/net/slip.c | memcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1); |
dev | 1034 | drivers/net/slip.c | sl->dev->addr_len=7; /* sizeof an AX.25 addr */ |
dev | 1035 | drivers/net/slip.c | sl->dev->hard_header_len=17; /* We don't do digipeaters */ |
dev | 1037 | drivers/net/slip.c | sl->dev->addr_len=0; /* No mac addr in slip mode */ |
dev | 1038 | drivers/net/slip.c | sl->dev->hard_header_len=0; |
dev | 1042 | drivers/net/slip.c | sl->dev->type = ARPHRD_SLIP+sl->mode; |
dev | 1044 | drivers/net/slip.c | if (sl->dev->type == 260 || sl->dev->type == 272) { |
dev | 1045 | drivers/net/slip.c | sl->dev->type = ARPHRD_AX25; |
dev | 1052 | drivers/net/slip.c | return sl_set_mac_address(sl->dev, arg); |
dev | 1067 | drivers/net/slip.c | static int sl_open_dev(struct device *dev) |
dev | 1069 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 1077 | drivers/net/slip.c | slip_init(struct device *dev) |
dev | 1079 | drivers/net/slip.c | struct slip *sl = &sl_ctrl[dev->base_addr]; |
dev | 1126 | drivers/net/slip.c | sl->dev = dev; |
dev | 1129 | drivers/net/slip.c | dev->mtu = SL_MTU; |
dev | 1130 | drivers/net/slip.c | dev->hard_start_xmit = sl_xmit; |
dev | 1131 | drivers/net/slip.c | dev->open = sl_open_dev; |
dev | 1132 | drivers/net/slip.c | dev->stop = sl_close; |
dev | 1133 | drivers/net/slip.c | dev->hard_header = sl_header; |
dev | 1134 | drivers/net/slip.c | dev->get_stats = sl_get_stats; |
dev | 1137 | drivers/net/slip.c | dev->set_mac_address = sl_set_dev_mac_address; |
dev | 1140 | drivers/net/slip.c | dev->hard_header_len = 0; |
dev | 1141 | drivers/net/slip.c | dev->addr_len = 0; |
dev | 1142 | drivers/net/slip.c | dev->type = ARPHRD_SLIP + SL_MODE_DEFAULT; |
dev | 1144 | drivers/net/slip.c | if (sl->dev->type == 260 || sl->dev->type == 272) { |
dev | 1145 | drivers/net/slip.c | sl->dev->type = ARPHRD_AX25; |
dev | 1147 | drivers/net/slip.c | memcpy(dev->broadcast, ax25_bcast, 7); /* Only activated in AX.25 mode */ |
dev | 1148 | drivers/net/slip.c | memcpy(dev->dev_addr, ax25_test, 7); /* "" "" "" "" */ |
dev | 1150 | drivers/net/slip.c | dev->rebuild_header = sl_rebuild_header; |
dev | 1153 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 1157 | drivers/net/slip.c | dev->flags = 0; |
dev | 1158 | drivers/net/slip.c | dev->family = AF_INET; |
dev | 1159 | drivers/net/slip.c | dev->pa_addr = 0; |
dev | 1160 | drivers/net/slip.c | dev->pa_brdaddr = 0; |
dev | 1161 | drivers/net/slip.c | dev->pa_mask = 0; |
dev | 1162 | drivers/net/slip.c | dev->pa_alen = sizeof(unsigned long); |
dev | 53 | drivers/net/slip.h | struct device *dev; /* easy for intr handling */ |
dev | 107 | drivers/net/slip.h | extern int slip_init(struct device *dev); |
dev | 52 | drivers/net/smc-ultra.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 59 | drivers/net/smc-ultra.c | int ultra_probe(struct device *dev); |
dev | 60 | drivers/net/smc-ultra.c | int ultra_probe1(struct device *dev, int ioaddr); |
dev | 62 | drivers/net/smc-ultra.c | static int ultra_open(struct device *dev); |
dev | 63 | drivers/net/smc-ultra.c | static void ultra_reset_8390(struct device *dev); |
dev | 64 | drivers/net/smc-ultra.c | static int ultra_block_input(struct device *dev, int count, |
dev | 66 | drivers/net/smc-ultra.c | static void ultra_block_output(struct device *dev, int count, |
dev | 68 | drivers/net/smc-ultra.c | static int ultra_close_card(struct device *dev); |
dev | 88 | drivers/net/smc-ultra.c | int ultra_probe(struct device *dev) |
dev | 91 | drivers/net/smc-ultra.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 94 | drivers/net/smc-ultra.c | return ultra_probe1(dev, base_addr); |
dev | 102 | drivers/net/smc-ultra.c | if (ultra_probe1(dev, ioaddr) == 0) |
dev | 110 | drivers/net/smc-ultra.c | int ultra_probe1(struct device *dev, int ioaddr) |
dev | 134 | drivers/net/smc-ultra.c | if (dev == NULL) |
dev | 135 | drivers/net/smc-ultra.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 139 | drivers/net/smc-ultra.c | printk("%s: %s at %#3x,", dev->name, model_name, ioaddr); |
dev | 142 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
dev | 157 | drivers/net/smc-ultra.c | if (dev->irq < 2) { |
dev | 168 | drivers/net/smc-ultra.c | dev->irq = irq; |
dev | 177 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr+ULTRA_NIC_OFFSET; |
dev | 183 | drivers/net/smc-ultra.c | dev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ; |
dev | 187 | drivers/net/smc-ultra.c | ethdev_init(dev); |
dev | 195 | drivers/net/smc-ultra.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 196 | drivers/net/smc-ultra.c | dev->mem_end = dev->rmem_end |
dev | 197 | drivers/net/smc-ultra.c | = dev->mem_start + (ei_status.stop_page - START_PG)*256; |
dev | 200 | drivers/net/smc-ultra.c | dev->irq, dev->mem_start, dev->mem_end-1); |
dev | 207 | drivers/net/smc-ultra.c | dev->open = &ultra_open; |
dev | 208 | drivers/net/smc-ultra.c | dev->stop = &ultra_close_card; |
dev | 209 | drivers/net/smc-ultra.c | NS8390_init(dev, 0); |
dev | 215 | drivers/net/smc-ultra.c | ultra_open(struct device *dev) |
dev | 217 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */ |
dev | 219 | drivers/net/smc-ultra.c | if (request_irq(dev->irq, ei_interrupt, 0, ei_status.name)) |
dev | 225 | drivers/net/smc-ultra.c | return ei_open(dev); |
dev | 229 | drivers/net/smc-ultra.c | ultra_reset_8390(struct device *dev) |
dev | 231 | drivers/net/smc-ultra.c | int cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */ |
dev | 247 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 249 | drivers/net/smc-ultra.c | void *xfer_start = (void *)(dev->mem_start + ring_offset |
dev | 253 | drivers/net/smc-ultra.c | outb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET); |
dev | 255 | drivers/net/smc-ultra.c | if (xfer_start + count > (void*) dev->rmem_end) { |
dev | 257 | drivers/net/smc-ultra.c | int semi_count = (void*)dev->rmem_end - xfer_start; |
dev | 260 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 261 | drivers/net/smc-ultra.c | outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */ |
dev | 262 | drivers/net/smc-ultra.c | return dev->rmem_start + count; |
dev | 266 | drivers/net/smc-ultra.c | outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */ |
dev | 271 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 275 | drivers/net/smc-ultra.c | = (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8); |
dev | 278 | drivers/net/smc-ultra.c | outb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET); |
dev | 282 | drivers/net/smc-ultra.c | outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */ |
dev | 286 | drivers/net/smc-ultra.c | ultra_close_card(struct device *dev) |
dev | 288 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */ |
dev | 290 | drivers/net/smc-ultra.c | dev->start = 0; |
dev | 291 | drivers/net/smc-ultra.c | dev->tbusy = 1; |
dev | 294 | drivers/net/smc-ultra.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 297 | drivers/net/smc-ultra.c | free_irq(dev->irq); |
dev | 298 | drivers/net/smc-ultra.c | irq2dev_map[dev->irq] = 0; |
dev | 300 | drivers/net/smc-ultra.c | NS8390_init(dev, 0); |
dev | 39 | drivers/net/tulip.c | struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 158 | drivers/net/tulip.c | static int tulip_open(struct device *dev); |
dev | 159 | drivers/net/tulip.c | static void tulip_init_ring(struct device *dev); |
dev | 160 | drivers/net/tulip.c | static int tulip_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 161 | drivers/net/tulip.c | static int tulip_rx(struct device *dev); |
dev | 163 | drivers/net/tulip.c | static int tulip_close(struct device *dev); |
dev | 164 | drivers/net/tulip.c | static struct enet_statistics *tulip_get_stats(struct device *dev); |
dev | 165 | drivers/net/tulip.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 166 | drivers/net/tulip.c | static int set_mac_address(struct device *dev, void *addr); |
dev | 206 | drivers/net/tulip.c | struct device *dev; |
dev | 213 | drivers/net/tulip.c | dev = init_etherdev(0, sizeof(struct tulip_private) |
dev | 217 | drivers/net/tulip.c | printk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr); |
dev | 234 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = value); |
dev | 241 | drivers/net/tulip.c | dev->base_addr = ioaddr; |
dev | 242 | drivers/net/tulip.c | dev->irq = irq; |
dev | 245 | drivers/net/tulip.c | dev->priv = (void *)(((int)dev->priv + 7) & ~7); |
dev | 246 | drivers/net/tulip.c | tp = (struct tulip_private *)dev->priv; |
dev | 247 | drivers/net/tulip.c | tp->rx_buffs = (long)dev->priv + sizeof(struct tulip_private); |
dev | 250 | drivers/net/tulip.c | dev->open = &tulip_open; |
dev | 251 | drivers/net/tulip.c | dev->hard_start_xmit = &tulip_start_xmit; |
dev | 252 | drivers/net/tulip.c | dev->stop = &tulip_close; |
dev | 253 | drivers/net/tulip.c | dev->get_stats = &tulip_get_stats; |
dev | 255 | drivers/net/tulip.c | dev->set_multicast_list = &set_multicast_list; |
dev | 258 | drivers/net/tulip.c | dev->set_mac_address = &set_mac_address; |
dev | 266 | drivers/net/tulip.c | tulip_open(struct device *dev) |
dev | 268 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 269 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
dev | 284 | drivers/net/tulip.c | if (irq2dev_map[dev->irq] != NULL |
dev | 285 | drivers/net/tulip.c | || (irq2dev_map[dev->irq] = dev) == NULL |
dev | 286 | drivers/net/tulip.c | || dev->irq == 0 |
dev | 287 | drivers/net/tulip.c | || request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip")) { |
dev | 292 | drivers/net/tulip.c | printk("%s: tulip_open() irq %d.\n", dev->name, dev->irq); |
dev | 294 | drivers/net/tulip.c | tulip_init_ring(dev); |
dev | 298 | drivers/net/tulip.c | unsigned short *eaddrs = (unsigned short *)dev->dev_addr; |
dev | 333 | drivers/net/tulip.c | dev->tbusy = 0; |
dev | 334 | drivers/net/tulip.c | dev->interrupt = 0; |
dev | 335 | drivers/net/tulip.c | dev->start = 1; |
dev | 342 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13)); |
dev | 349 | drivers/net/tulip.c | tulip_init_ring(struct device *dev) |
dev | 351 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 376 | drivers/net/tulip.c | tulip_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 378 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 379 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
dev | 383 | drivers/net/tulip.c | if (dev->tbusy) { |
dev | 384 | drivers/net/tulip.c | int tickssofar = jiffies - dev->trans_start; |
dev | 389 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12), |
dev | 401 | drivers/net/tulip.c | dev->tbusy=0; |
dev | 402 | drivers/net/tulip.c | dev->trans_start = jiffies; |
dev | 408 | drivers/net/tulip.c | dev->name); |
dev | 409 | drivers/net/tulip.c | dev_tint(dev); |
dev | 416 | drivers/net/tulip.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 417 | drivers/net/tulip.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 440 | drivers/net/tulip.c | dev->trans_start = jiffies; |
dev | 449 | drivers/net/tulip.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 453 | drivers/net/tulip.c | if (dev == NULL) { |
dev | 458 | drivers/net/tulip.c | ioaddr = dev->base_addr; |
dev | 459 | drivers/net/tulip.c | lp = (struct tulip_private *)dev->priv; |
dev | 460 | drivers/net/tulip.c | if (dev->interrupt) |
dev | 461 | drivers/net/tulip.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 463 | drivers/net/tulip.c | dev->interrupt = 1; |
dev | 472 | drivers/net/tulip.c | dev->name, csr5, inl(dev->base_addr + CSR5)); |
dev | 478 | drivers/net/tulip.c | tulip_rx(dev); |
dev | 522 | drivers/net/tulip.c | if (lp->tx_full && dev->tbusy |
dev | 526 | drivers/net/tulip.c | dev->tbusy = 0; |
dev | 542 | drivers/net/tulip.c | dev->name, csr5); |
dev | 548 | drivers/net/tulip.c | dev->name, csr5); |
dev | 557 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5)); |
dev | 562 | drivers/net/tulip.c | if (dev->start == 0 && --stopit < 0) { |
dev | 564 | drivers/net/tulip.c | dev->name); |
dev | 569 | drivers/net/tulip.c | dev->interrupt = 0; |
dev | 574 | drivers/net/tulip.c | tulip_rx(struct device *dev) |
dev | 576 | drivers/net/tulip.c | struct tulip_private *lp = (struct tulip_private *)dev->priv; |
dev | 590 | drivers/net/tulip.c | dev->name, status); |
dev | 605 | drivers/net/tulip.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 620 | drivers/net/tulip.c | skb->dev = dev; |
dev | 622 | drivers/net/tulip.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 635 | drivers/net/tulip.c | tulip_close(struct device *dev) |
dev | 637 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
dev | 638 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 640 | drivers/net/tulip.c | dev->start = 0; |
dev | 641 | drivers/net/tulip.c | dev->tbusy = 1; |
dev | 645 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5)); |
dev | 654 | drivers/net/tulip.c | free_irq(dev->irq); |
dev | 655 | drivers/net/tulip.c | irq2dev_map[dev->irq] = 0; |
dev | 661 | drivers/net/tulip.c | tulip_get_stats(struct device *dev) |
dev | 663 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 664 | drivers/net/tulip.c | short ioaddr = dev->base_addr; |
dev | 678 | drivers/net/tulip.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 680 | drivers/net/tulip.c | short ioaddr = dev->base_addr; |
dev | 689 | drivers/net/tulip.c | printk("%s: Promiscuous mode enabled.\n", dev->name); |
dev | 691 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 706 | drivers/net/tulip.c | eaddrs = (unsigned short *)dev->dev_addr; |
dev | 718 | drivers/net/tulip.c | set_mac_address(struct device *dev, void *addr) |
dev | 721 | drivers/net/tulip.c | if (dev->start) |
dev | 723 | drivers/net/tulip.c | printk("%s: Setting MAC address to ", dev->name); |
dev | 725 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]); |
dev | 46 | drivers/net/tunnel.c | static int tunnel_xmit(struct sk_buff *skb, struct device *dev); |
dev | 47 | drivers/net/tunnel.c | static struct enet_statistics *tunnel_get_stats(struct device *dev); |
dev | 50 | drivers/net/tunnel.c | static int tunnel_open(struct device *dev) |
dev | 56 | drivers/net/tunnel.c | static int tunnel_close(struct device *dev) |
dev | 65 | drivers/net/tunnel.c | int tunnel_init(struct device *dev) |
dev | 75 | drivers/net/tunnel.c | ether_setup(dev); |
dev | 78 | drivers/net/tunnel.c | dev->hard_start_xmit = tunnel_xmit; |
dev | 79 | drivers/net/tunnel.c | dev->get_stats = tunnel_get_stats; |
dev | 80 | drivers/net/tunnel.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 81 | drivers/net/tunnel.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 83 | drivers/net/tunnel.c | dev->open = &tunnel_open; |
dev | 84 | drivers/net/tunnel.c | dev->stop = &tunnel_close; |
dev | 86 | drivers/net/tunnel.c | dev->type = ARPHRD_TUNNEL; /* IP tunnel hardware type (Linux 1.1.89) */ |
dev | 87 | drivers/net/tunnel.c | dev->flags |= IFF_NOARP; |
dev | 88 | drivers/net/tunnel.c | dev->flags |= IFF_LOOPBACK; /* Why doesn't tunnel work without this? [ should do now - AC]*/ |
dev | 89 | drivers/net/tunnel.c | dev->addr_len=0; |
dev | 90 | drivers/net/tunnel.c | dev->hard_header_len=0; |
dev | 91 | drivers/net/tunnel.c | dev->hard_header=NULL; |
dev | 120 | drivers/net/tunnel.c | static int tunnel_xmit(struct sk_buff *skb, struct device *dev) |
dev | 131 | drivers/net/tunnel.c | if (skb == NULL || dev == NULL) |
dev | 138 | drivers/net/tunnel.c | stats = (struct enet_statistics *)dev->priv; |
dev | 140 | drivers/net/tunnel.c | if (dev->tbusy != 0) |
dev | 146 | drivers/net/tunnel.c | dev->tbusy = 1; |
dev | 153 | drivers/net/tunnel.c | if ( ! dev->pa_dstaddr ) |
dev | 155 | drivers/net/tunnel.c | printk("%s: packet sent through tunnel to never-never land!\n", dev->name); |
dev | 157 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 167 | drivers/net/tunnel.c | printk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version); |
dev | 169 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 178 | drivers/net/tunnel.c | if ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) |
dev | 183 | drivers/net/tunnel.c | printk("%s: Warning: IP routing loop!\n", dev->name); |
dev | 184 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 189 | drivers/net/tunnel.c | if ( iph->daddr == dev->pa_addr ) |
dev | 191 | drivers/net/tunnel.c | printk("%s: Received inbound packet -- not handled.\n",dev->name); |
dev | 193 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 209 | drivers/net/tunnel.c | printk("%s: No free memory.\n",dev->name); |
dev | 211 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 227 | drivers/net/tunnel.c | iph->saddr = dev->pa_addr; |
dev | 228 | drivers/net/tunnel.c | iph->daddr = dev->pa_dstaddr; |
dev | 247 | drivers/net/tunnel.c | ip_forward(skb2, dev, 0, iph->daddr, 0); |
dev | 260 | drivers/net/tunnel.c | dev->tbusy=0; |
dev | 265 | drivers/net/tunnel.c | tunnel_get_stats(struct device *dev) |
dev | 267 | drivers/net/tunnel.c | return((struct enet_statistics*) dev->priv); |
dev | 273 | drivers/net/tunnel.c | static int tunnel_probe(struct device *dev) |
dev | 275 | drivers/net/tunnel.c | tunnel_init(dev); |
dev | 67 | drivers/net/wavelan.c | device *dev; |
dev | 190 | drivers/net/wavelan.c | wavelan_ints_off(device *dev) |
dev | 196 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 197 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 209 | drivers/net/wavelan.c | wavelan_ints_on(device *dev) |
dev | 215 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 216 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 343 | drivers/net/wavelan.c | wavelan_mmc_init(device *dev, psa_t *psa) |
dev | 350 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 351 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 420 | drivers/net/wavelan.c | wavelan_ack(device *dev) |
dev | 427 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 428 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 450 | drivers/net/wavelan.c | printk("%s: wavelan_ack(): board not accepting command.\n", dev->name); |
dev | 459 | drivers/net/wavelan.c | wavelan_synchronous_cmd(device *dev, char *str) |
dev | 467 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 468 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 486 | drivers/net/wavelan.c | printk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status); |
dev | 491 | drivers/net/wavelan.c | wavelan_ack(dev); |
dev | 498 | drivers/net/wavelan.c | wavelan_hardware_reset(device *dev) |
dev | 512 | drivers/net/wavelan.c | printk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev); |
dev | 514 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 515 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 536 | drivers/net/wavelan.c | wavelan_mmc_init(dev, &psa); |
dev | 572 | drivers/net/wavelan.c | printk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name); |
dev | 574 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 590 | drivers/net/wavelan.c | printk("%s: wavelan_hardware_reset(): status: expected 0x%02x, got 0x%02x.\n", dev->name, SCB_ST_CX | SCB_ST_CNA, scb.scb_status); |
dev | 592 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 596 | drivers/net/wavelan.c | wavelan_ack(dev); |
dev | 603 | drivers/net/wavelan.c | if (wavelan_synchronous_cmd(dev, "diag()") == -1) |
dev | 606 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 613 | drivers/net/wavelan.c | printk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name); |
dev | 615 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 675 | drivers/net/wavelan.c | if (wavelan_synchronous_cmd(dev, "reset()-configure") == -1) |
dev | 678 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 686 | drivers/net/wavelan.c | memcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr)); |
dev | 689 | drivers/net/wavelan.c | if (wavelan_synchronous_cmd(dev, "reset()-address") == -1) |
dev | 692 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 697 | drivers/net/wavelan.c | wavelan_ints_on(dev); |
dev | 702 | drivers/net/wavelan.c | wavelan_ru_start(dev); |
dev | 703 | drivers/net/wavelan.c | wavelan_cu_start(dev); |
dev | 706 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): 0\n", dev->name); |
dev | 737 | drivers/net/wavelan.c | wavelan_probe(device *dev) |
dev | 755 | drivers/net/wavelan.c | printk("%s: ->wavelan_probe(dev=0x%x (base_addr=0x%x))\n", dev->name, (unsigned int)dev, (unsigned int)dev->base_addr); |
dev | 760 | drivers/net/wavelan.c | printk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check()); |
dev | 763 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): ENODEV\n", dev->name); |
dev | 769 | drivers/net/wavelan.c | base_addr = dev->base_addr; |
dev | 777 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): ENXIO\n", dev->name); |
dev | 786 | drivers/net/wavelan.c | r = wavelan_probe1(dev, base_addr); |
dev | 788 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): %d\n", dev->name, r); |
dev | 797 | drivers/net/wavelan.c | if (wavelan_probe1(dev, iobase[i]) == 0) |
dev | 800 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): 0\n", dev->name); |
dev | 806 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): ENODEV\n", dev->name); |
dev | 813 | drivers/net/wavelan.c | wavelan_probe1(device *dev, unsigned short ioaddr) |
dev | 821 | drivers/net/wavelan.c | printk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr); |
dev | 841 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe1(): ENODEV\n", dev->name); |
dev | 845 | drivers/net/wavelan.c | printk("%s: WaveLAN at %#x,", dev->name, ioaddr); |
dev | 851 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name); |
dev | 855 | drivers/net/wavelan.c | dev->irq = irq; |
dev | 858 | drivers/net/wavelan.c | dev->base_addr = ioaddr; |
dev | 865 | drivers/net/wavelan.c | if (dev->mem_start != 0) |
dev | 867 | drivers/net/wavelan.c | psa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF; |
dev | 868 | drivers/net/wavelan.c | psa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF; |
dev | 871 | drivers/net/wavelan.c | dev->mem_start = 0x0000; |
dev | 872 | drivers/net/wavelan.c | dev->mem_end = 0x0000; |
dev | 873 | drivers/net/wavelan.c | dev->if_port = 0; |
dev | 875 | drivers/net/wavelan.c | memcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE); |
dev | 878 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]); |
dev | 880 | drivers/net/wavelan.c | printk(", IRQ %d", dev->irq); |
dev | 939 | drivers/net/wavelan.c | dev->priv = kmalloc(sizeof(net_local), GFP_KERNEL); |
dev | 940 | drivers/net/wavelan.c | memset(dev->priv, 0x00, sizeof(net_local)); |
dev | 941 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 956 | drivers/net/wavelan.c | lp->dev = dev; |
dev | 964 | drivers/net/wavelan.c | lp->watchdog.data = (unsigned long)dev; |
dev | 966 | drivers/net/wavelan.c | dev->open = wavelan_open; |
dev | 967 | drivers/net/wavelan.c | dev->stop = wavelan_close; |
dev | 968 | drivers/net/wavelan.c | dev->hard_start_xmit = wavelan_send_packet; |
dev | 969 | drivers/net/wavelan.c | dev->get_stats = wavelan_get_stats; |
dev | 970 | drivers/net/wavelan.c | dev->set_multicast_list = &wavelan_set_multicast_list; |
dev | 976 | drivers/net/wavelan.c | ether_setup(dev); |
dev | 978 | drivers/net/wavelan.c | dev->mtu = WAVELAN_MTU; |
dev | 981 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe1(): 0\n", dev->name); |
dev | 992 | drivers/net/wavelan.c | wavelan_ru_start(device *dev) |
dev | 1003 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1004 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1049 | drivers/net/wavelan.c | printk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name); |
dev | 1059 | drivers/net/wavelan.c | wavelan_cu_start(device *dev) |
dev | 1068 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1069 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1130 | drivers/net/wavelan.c | printk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name); |
dev | 1133 | drivers/net/wavelan.c | dev->tbusy = 0; |
dev | 1138 | drivers/net/wavelan.c | wavelan_open(device *dev) |
dev | 1146 | drivers/net/wavelan.c | printk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev); |
dev | 1148 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1149 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1151 | drivers/net/wavelan.c | if (dev->irq == 0) |
dev | 1154 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): -ENXIO\n", dev->name); |
dev | 1160 | drivers/net/wavelan.c | irq2dev_map[dev->irq] != (device *)0 |
dev | 1163 | drivers/net/wavelan.c | (irq2dev_map[dev->irq] = dev) == (device *)0 |
dev | 1165 | drivers/net/wavelan.c | request_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN") != 0 |
dev | 1168 | drivers/net/wavelan.c | irq2dev_map[dev->irq] = (device *)0; |
dev | 1170 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): -EAGAIN\n", dev->name); |
dev | 1175 | drivers/net/wavelan.c | if ((r = wavelan_hardware_reset(dev)) != -1) |
dev | 1177 | drivers/net/wavelan.c | dev->interrupt = 0; |
dev | 1178 | drivers/net/wavelan.c | dev->start = 1; |
dev | 1184 | drivers/net/wavelan.c | free_irq(dev->irq); |
dev | 1185 | drivers/net/wavelan.c | irq2dev_map[dev->irq] = (device *)0; |
dev | 1187 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name); |
dev | 1196 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): 0\n", dev->name); |
dev | 1203 | drivers/net/wavelan.c | hardware_send_packet(device *dev, void *buf, short length) |
dev | 1218 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1219 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1285 | drivers/net/wavelan.c | dev->tbusy = 0; |
dev | 1287 | drivers/net/wavelan.c | dev->trans_start = jiffies; |
dev | 1290 | drivers/net/wavelan.c | wavelan_watchdog((unsigned long)dev); |
dev | 1303 | drivers/net/wavelan.c | dev->name, |
dev | 1313 | drivers/net/wavelan.c | wavelan_send_packet(struct sk_buff *skb, device *dev) |
dev | 1317 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1319 | drivers/net/wavelan.c | if (dev->tbusy) |
dev | 1327 | drivers/net/wavelan.c | tickssofar = jiffies - dev->trans_start; |
dev | 1339 | drivers/net/wavelan.c | wavelan_ru_show(dev); |
dev | 1340 | drivers/net/wavelan.c | wavelan_cu_show(dev); |
dev | 1341 | drivers/net/wavelan.c | wavelan_dev_show(dev); |
dev | 1342 | drivers/net/wavelan.c | wavelan_local_show(dev); |
dev | 1344 | drivers/net/wavelan.c | printk("%s: transmit timed out -- resetting board.\n", dev->name); |
dev | 1346 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1356 | drivers/net/wavelan.c | dev_tint(dev); |
dev | 1363 | drivers/net/wavelan.c | if (set_bit(0, (void *)&dev->tbusy) == 0) |
dev | 1371 | drivers/net/wavelan.c | hardware_send_packet(dev, buf, length); |
dev | 1374 | drivers/net/wavelan.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1405 | drivers/net/wavelan.c | wavelan_receive(device *dev) |
dev | 1411 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1412 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1445 | drivers/net/wavelan.c | printk("%s: frame not received successfully.\n", dev->name); |
dev | 1453 | drivers/net/wavelan.c | printk("%s: no EOF flag.\n", dev->name); |
dev | 1458 | drivers/net/wavelan.c | printk("%s: frame too short.\n", dev->name); |
dev | 1464 | drivers/net/wavelan.c | printk("%s: rx DMA overrun.\n", dev->name); |
dev | 1470 | drivers/net/wavelan.c | printk("%s: ran out of resources.\n", dev->name); |
dev | 1476 | drivers/net/wavelan.c | printk("%s: alignment error.\n", dev->name); |
dev | 1482 | drivers/net/wavelan.c | printk("%s: CRC error.\n", dev->name); |
dev | 1487 | drivers/net/wavelan.c | printk("%s: frame has no data.\n", dev->name); |
dev | 1493 | drivers/net/wavelan.c | printk("%s: missing EOF flag.\n", dev->name); |
dev | 1496 | drivers/net/wavelan.c | printk("%s: missing F flag.\n", dev->name); |
dev | 1519 | drivers/net/wavelan.c | printk("%s: foreign MAC source addr=", dev->name); |
dev | 1534 | drivers/net/wavelan.c | printk("%s: fd_dest=", dev->name); |
dev | 1539 | drivers/net/wavelan.c | printk("%s: fd_src=", dev->name); |
dev | 1543 | drivers/net/wavelan.c | printk("%s: fd_length=%d\n", dev->name, fd.fd_length); |
dev | 1547 | drivers/net/wavelan.c | printk("%s: dest=", dev->name); |
dev | 1553 | drivers/net/wavelan.c | printk("%s: src=", dev->name); |
dev | 1559 | drivers/net/wavelan.c | printk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype)); |
dev | 1566 | drivers/net/wavelan.c | printk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize); |
dev | 1572 | drivers/net/wavelan.c | skb->dev = dev; |
dev | 1581 | drivers/net/wavelan.c | printk("%s: pkt_len=%d, data=\"", dev->name, pkt_len); |
dev | 1603 | drivers/net/wavelan.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1635 | drivers/net/wavelan.c | wavelan_complete(device *dev, unsigned short ioaddr, net_local *lp) |
dev | 1690 | drivers/net/wavelan.c | printk("%s: tx error: no CS.\n", dev->name); |
dev | 1695 | drivers/net/wavelan.c | printk("%s: tx error: lost CTS.\n", dev->name); |
dev | 1700 | drivers/net/wavelan.c | printk("%s: tx error: slow DMA.\n", dev->name); |
dev | 1706 | drivers/net/wavelan.c | printk("%s: tx error: heart beat.\n", dev->name); |
dev | 1712 | drivers/net/wavelan.c | printk("%s: tx error: too many collisions.\n", dev->name); |
dev | 1717 | drivers/net/wavelan.c | printk("%s: tx completed, tx_status 0x%04x.\n", dev->name, tx_status); |
dev | 1730 | drivers/net/wavelan.c | dev->tbusy = 0; |
dev | 1741 | drivers/net/wavelan.c | device *dev; |
dev | 1749 | drivers/net/wavelan.c | dev = (device *)a; |
dev | 1750 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1751 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1762 | drivers/net/wavelan.c | if (jiffies - dev->trans_start < WATCHDOG_JIFFIES) |
dev | 1768 | drivers/net/wavelan.c | nreaped = wavelan_complete(dev, ioaddr, lp); |
dev | 1770 | drivers/net/wavelan.c | printk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use); |
dev | 1786 | drivers/net/wavelan.c | device *dev; |
dev | 1793 | drivers/net/wavelan.c | if ((dev = (device *)(irq2dev_map[irq])) == (device *)0) |
dev | 1799 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1800 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1802 | drivers/net/wavelan.c | dev->interrupt = 1; |
dev | 1814 | drivers/net/wavelan.c | printk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status); |
dev | 1819 | drivers/net/wavelan.c | dev->interrupt = 0; |
dev | 1821 | drivers/net/wavelan.c | printk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name); |
dev | 1837 | drivers/net/wavelan.c | printk("%s: interrupt, status 0x%04x.\n", dev->name, status); |
dev | 1845 | drivers/net/wavelan.c | printk("%s: command completed.\n", dev->name); |
dev | 1846 | drivers/net/wavelan.c | (void)wavelan_complete(dev, ioaddr, lp); |
dev | 1855 | drivers/net/wavelan.c | printk("%s: received packet.\n", dev->name); |
dev | 1856 | drivers/net/wavelan.c | wavelan_receive(dev); |
dev | 1863 | drivers/net/wavelan.c | (((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start) |
dev | 1866 | drivers/net/wavelan.c | printk("%s: warning: CU inactive -- restarting.\n", dev->name); |
dev | 1868 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1875 | drivers/net/wavelan.c | (((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start) |
dev | 1878 | drivers/net/wavelan.c | printk("%s: warning: RU not ready -- restarting.\n", dev->name); |
dev | 1880 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1883 | drivers/net/wavelan.c | dev->interrupt = 0; |
dev | 1888 | drivers/net/wavelan.c | wavelan_close(device *dev) |
dev | 1895 | drivers/net/wavelan.c | printk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev); |
dev | 1897 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1898 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1900 | drivers/net/wavelan.c | dev->tbusy = 1; |
dev | 1901 | drivers/net/wavelan.c | dev->start = 0; |
dev | 1910 | drivers/net/wavelan.c | wavelan_ints_off(dev); |
dev | 1912 | drivers/net/wavelan.c | free_irq(dev->irq); |
dev | 1913 | drivers/net/wavelan.c | irq2dev_map[dev->irq] = (device *)0; |
dev | 1925 | drivers/net/wavelan.c | printk("%s: <-wavelan_close(): 0\n", dev->name); |
dev | 1936 | drivers/net/wavelan.c | wavelan_get_stats(device *dev) |
dev | 1940 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1947 | drivers/net/wavelan.c | wavelan_set_multicast_list(device *dev, int num_addrs, void *addrs) |
dev | 1953 | drivers/net/wavelan.c | printk("%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); |
dev | 1955 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1965 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1976 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1989 | drivers/net/wavelan.c | printk("%s: <-wavelan_set_multicast_list()\n", dev->name); |
dev | 1998 | drivers/net/wavelan.c | sprintf_stats(char *buffer, device *dev) |
dev | 2004 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2007 | drivers/net/wavelan.c | return sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
dev | 2010 | drivers/net/wavelan.c | mmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v)); |
dev | 2012 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status)); |
dev | 2013 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_h), &m.mmr_correct_nwid_h, sizeof(m.mmr_correct_nwid_h)); |
dev | 2014 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_l), &m.mmr_correct_nwid_l, sizeof(m.mmr_correct_nwid_l)); |
dev | 2015 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_h), &m.mmr_wrong_nwid_h, sizeof(m.mmr_wrong_nwid_h)); |
dev | 2016 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_l), &m.mmr_wrong_nwid_l, sizeof(m.mmr_wrong_nwid_l)); |
dev | 2017 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl)); |
dev | 2018 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl)); |
dev | 2019 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual)); |
dev | 2022 | drivers/net/wavelan.c | mmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v)); |
dev | 2031 | drivers/net/wavelan.c | dev->name, |
dev | 2070 | drivers/net/wavelan.c | size = sprintf_stats(buffer + len, lp->dev); |
dev | 2129 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
dev | 2134 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 2340 | drivers/net/wavelan.c | wavelan_ru_show(device *dev) |
dev | 2344 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2355 | drivers/net/wavelan.c | wavelan_cu_show(device *dev) |
dev | 2361 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2368 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
dev | 2378 | drivers/net/wavelan.c | wavelan_dev_show(device *dev) |
dev | 2381 | drivers/net/wavelan.c | printk(" start=%d,", dev->start); |
dev | 2382 | drivers/net/wavelan.c | printk(" tbusy=%d,", dev->tbusy); |
dev | 2383 | drivers/net/wavelan.c | printk(" interrupt=%d,", dev->interrupt); |
dev | 2384 | drivers/net/wavelan.c | printk(" trans_start=%ld,", dev->trans_start); |
dev | 2385 | drivers/net/wavelan.c | printk(" flags=0x%x,", dev->flags); |
dev | 2391 | drivers/net/wavelan.c | wavelan_local_show(device *dev) |
dev | 2395 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 32 | drivers/net/wd.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 39 | drivers/net/wd.c | int wd_probe(struct device *dev); |
dev | 40 | drivers/net/wd.c | int wd_probe1(struct device *dev, int ioaddr); |
dev | 42 | drivers/net/wd.c | static int wd_open(struct device *dev); |
dev | 43 | drivers/net/wd.c | static void wd_reset_8390(struct device *dev); |
dev | 44 | drivers/net/wd.c | static int wd_block_input(struct device *dev, int count, |
dev | 46 | drivers/net/wd.c | static void wd_block_output(struct device *dev, int count, |
dev | 48 | drivers/net/wd.c | static int wd_close_card(struct device *dev); |
dev | 78 | drivers/net/wd.c | int wd_probe(struct device *dev) |
dev | 81 | drivers/net/wd.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 84 | drivers/net/wd.c | return wd_probe1(dev, base_addr); |
dev | 92 | drivers/net/wd.c | if (wd_probe1(dev, ioaddr) == 0) |
dev | 100 | drivers/net/wd.c | int wd_probe1(struct device *dev, int ioaddr) |
dev | 115 | drivers/net/wd.c | if (dev == NULL) |
dev | 116 | drivers/net/wd.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 118 | drivers/net/wd.c | printk("%s: WD80x3 at %#3x, ", dev->name, ioaddr); |
dev | 120 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
dev | 137 | drivers/net/wd.c | dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; |
dev | 138 | drivers/net/wd.c | dev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1; |
dev | 179 | drivers/net/wd.c | dev->mem_start = WD_SHMEM; |
dev | 181 | drivers/net/wd.c | if (dev->mem_start == 0) { |
dev | 186 | drivers/net/wd.c | dev->mem_start = 0xd0000; |
dev | 187 | drivers/net/wd.c | printk(" assigning address %#lx", dev->mem_start); |
dev | 193 | drivers/net/wd.c | dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); |
dev | 199 | drivers/net/wd.c | dev->base_addr = ioaddr+WD_NIC_OFFSET; |
dev | 201 | drivers/net/wd.c | if (dev->irq < 2) { |
dev | 218 | drivers/net/wd.c | dev->irq = autoirq_report(2); |
dev | 222 | drivers/net/wd.c | printk(" autoirq is %d", dev->irq); |
dev | 223 | drivers/net/wd.c | if (dev->irq < 2) |
dev | 224 | drivers/net/wd.c | dev->irq = word16 ? 10 : 5; |
dev | 226 | drivers/net/wd.c | dev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)]; |
dev | 227 | drivers/net/wd.c | } else if (dev->irq == 2) /* Fixup bogosity: IRQ2 is really IRQ9 */ |
dev | 228 | drivers/net/wd.c | dev->irq = 9; |
dev | 232 | drivers/net/wd.c | if (request_irq(dev->irq, ei_interrupt, 0, "wd")) { |
dev | 233 | drivers/net/wd.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 239 | drivers/net/wd.c | ethdev_init(dev); |
dev | 248 | drivers/net/wd.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 249 | drivers/net/wd.c | dev->mem_end = dev->rmem_end |
dev | 250 | drivers/net/wd.c | = dev->mem_start + (ei_status.stop_page - WD_START_PG)*256; |
dev | 253 | drivers/net/wd.c | model_name, dev->irq, dev->mem_start, dev->mem_end-1); |
dev | 260 | drivers/net/wd.c | dev->open = &wd_open; |
dev | 261 | drivers/net/wd.c | dev->stop = &wd_close_card; |
dev | 262 | drivers/net/wd.c | NS8390_init(dev, 0); |
dev | 275 | drivers/net/wd.c | wd_open(struct device *dev) |
dev | 277 | drivers/net/wd.c | int ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 281 | drivers/net/wd.c | ei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB; |
dev | 282 | drivers/net/wd.c | ei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16; |
dev | 288 | drivers/net/wd.c | return ei_open(dev); |
dev | 292 | drivers/net/wd.c | wd_reset_8390(struct device *dev) |
dev | 294 | drivers/net/wd.c | int wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 301 | drivers/net/wd.c | outb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port); |
dev | 303 | drivers/net/wd.c | outb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5); |
dev | 315 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 317 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 318 | drivers/net/wd.c | long xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8); |
dev | 329 | drivers/net/wd.c | if (xfer_start + count > dev->rmem_end) { |
dev | 331 | drivers/net/wd.c | int semi_count = dev->rmem_end - xfer_start; |
dev | 334 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 346 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 349 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 350 | drivers/net/wd.c | long shmem = dev->mem_start + ((start_page - WD_START_PG)<<8); |
dev | 364 | drivers/net/wd.c | wd_close_card(struct device *dev) |
dev | 366 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 369 | drivers/net/wd.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 370 | drivers/net/wd.c | NS8390_init(dev, 0); |
dev | 371 | drivers/net/wd.c | dev->start = 0; |
dev | 182 | drivers/net/znet.c | int znet_probe(struct device *dev); |
dev | 183 | drivers/net/znet.c | static int znet_open(struct device *dev); |
dev | 184 | drivers/net/znet.c | static int znet_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 186 | drivers/net/znet.c | static void znet_rx(struct device *dev); |
dev | 187 | drivers/net/znet.c | static int znet_close(struct device *dev); |
dev | 188 | drivers/net/znet.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 189 | drivers/net/znet.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 190 | drivers/net/znet.c | static void hardware_init(struct device *dev); |
dev | 202 | drivers/net/znet.c | int znet_probe(struct device *dev) |
dev | 219 | drivers/net/znet.c | dev->base_addr = netinfo->iobase1; |
dev | 220 | drivers/net/znet.c | dev->irq = netinfo->irq1; |
dev | 222 | drivers/net/znet.c | printk(KERN_INFO "%s: ZNET at %#3x,", dev->name, dev->base_addr); |
dev | 226 | drivers/net/znet.c | printk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]); |
dev | 228 | drivers/net/znet.c | printk(", using IRQ %d DMA %d and %d.\n", dev->irq, netinfo->dma1, |
dev | 233 | drivers/net/znet.c | dev->name, netinfo->vendor, |
dev | 237 | drivers/net/znet.c | dev->name, netinfo->iobase1, netinfo->iosize1, |
dev | 244 | drivers/net/znet.c | dev->priv = (void *) &zn; |
dev | 249 | drivers/net/znet.c | if (request_irq(dev->irq, &znet_interrupt, 0, "ZNet") |
dev | 252 | drivers/net/znet.c | printk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name); |
dev | 255 | drivers/net/znet.c | irq2dev_map[dev->irq] = dev; |
dev | 273 | drivers/net/znet.c | dev->open = &znet_open; |
dev | 274 | drivers/net/znet.c | dev->hard_start_xmit = &znet_send_packet; |
dev | 275 | drivers/net/znet.c | dev->stop = &znet_close; |
dev | 276 | drivers/net/znet.c | dev->get_stats = net_get_stats; |
dev | 277 | drivers/net/znet.c | dev->set_multicast_list = &set_multicast_list; |
dev | 280 | drivers/net/znet.c | ether_setup(dev); |
dev | 286 | drivers/net/znet.c | static int znet_open(struct device *dev) |
dev | 288 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
dev | 291 | drivers/net/znet.c | printk(KERN_DEBUG "%s: znet_open() called.\n", dev->name); |
dev | 307 | drivers/net/znet.c | dev->name); |
dev | 309 | drivers/net/znet.c | dev->tbusy = 0; |
dev | 310 | drivers/net/znet.c | dev->interrupt = 0; |
dev | 311 | drivers/net/znet.c | hardware_init(dev); |
dev | 312 | drivers/net/znet.c | dev->start = 1; |
dev | 317 | drivers/net/znet.c | static int znet_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 319 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
dev | 322 | drivers/net/znet.c | printk(KERN_DEBUG "%s: ZNet_send_packet(%d).\n", dev->name, dev->tbusy); |
dev | 325 | drivers/net/znet.c | if (dev->tbusy) { |
dev | 327 | drivers/net/znet.c | int tickssofar = jiffies - dev->trans_start; |
dev | 335 | drivers/net/znet.c | " resetting.\n", dev->name, event, tx_status, rx_offset, state); |
dev | 338 | drivers/net/znet.c | dev->name); |
dev | 340 | drivers/net/znet.c | hardware_init(dev); |
dev | 344 | drivers/net/znet.c | dev_tint(dev); |
dev | 353 | drivers/net/znet.c | hardware_init(dev); |
dev | 357 | drivers/net/znet.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 358 | drivers/net/znet.c | printk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name); |
dev | 396 | drivers/net/znet.c | dev->trans_start = jiffies; |
dev | 398 | drivers/net/znet.c | printk(KERN_DEBUG "%s: Transmitter queued, length %d.\n", dev->name, length); |
dev | 407 | drivers/net/znet.c | struct device *dev = irq2dev_map[irq]; |
dev | 411 | drivers/net/znet.c | if (dev == NULL) { |
dev | 416 | drivers/net/znet.c | dev->interrupt = 1; |
dev | 417 | drivers/net/znet.c | ioaddr = dev->base_addr; |
dev | 431 | drivers/net/znet.c | dev->name, status, result, rx_ptr, running, boguscnt); |
dev | 437 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 454 | drivers/net/znet.c | dev->tbusy = 0; |
dev | 460 | drivers/net/znet.c | znet_rx(dev); |
dev | 466 | drivers/net/znet.c | dev->interrupt = 0; |
dev | 470 | drivers/net/znet.c | static void znet_rx(struct device *dev) |
dev | 472 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 473 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
dev | 484 | drivers/net/znet.c | dev->name, cur_frame_end_offset); |
dev | 554 | drivers/net/znet.c | printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 559 | drivers/net/znet.c | skb->dev = dev; |
dev | 574 | drivers/net/znet.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 595 | drivers/net/znet.c | static int znet_close(struct device *dev) |
dev | 597 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
dev | 599 | drivers/net/znet.c | dev->tbusy = 1; |
dev | 600 | drivers/net/znet.c | dev->start = 0; |
dev | 607 | drivers/net/znet.c | free_irq(dev->irq); |
dev | 610 | drivers/net/znet.c | printk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name); |
dev | 620 | drivers/net/znet.c | static struct enet_statistics *net_get_stats(struct device *dev) |
dev | 622 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 640 | drivers/net/znet.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 642 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
dev | 682 | drivers/net/znet.c | static void hardware_init(struct device *dev) |
dev | 684 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
dev | 709 | drivers/net/znet.c | printk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name, |
dev | 723 | drivers/net/znet.c | memcpy(zn.tx_cur, dev->dev_addr, 6); |
dev | 732 | drivers/net/znet.c | dev->tbusy = 0; |
dev | 214 | drivers/pci/pci.c | struct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev) |
dev | 220 | drivers/pci/pci.c | dev_info[i].device == dev) |
dev | 397 | drivers/pci/pci.c | static int sprint_dev_config(struct pci_dev *dev, char *buf, int size) |
dev | 406 | drivers/pci/pci.c | bus = dev->bus->number; |
dev | 407 | drivers/pci/pci.c | devfn = dev->devfn; |
dev | 465 | drivers/pci/pci.c | if (dev->irq) { |
dev | 469 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
dev | 472 | drivers/pci/pci.c | if (dev->master) { |
dev | 541 | drivers/pci/pci.c | struct pci_dev *dev; |
dev | 548 | drivers/pci/pci.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 549 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
dev | 582 | drivers/pci/pci.c | struct pci_dev *dev; |
dev | 607 | drivers/pci/pci.c | dev = pci_malloc(sizeof(*dev), mem_startp); |
dev | 608 | drivers/pci/pci.c | dev->bus = bus; |
dev | 614 | drivers/pci/pci.c | dev->next = pci_devices; |
dev | 615 | drivers/pci/pci.c | pci_devices = dev; |
dev | 617 | drivers/pci/pci.c | dev->devfn = devfn; |
dev | 618 | drivers/pci/pci.c | dev->vendor = l & 0xffff; |
dev | 619 | drivers/pci/pci.c | dev->device = (l >> 16) & 0xffff; |
dev | 626 | drivers/pci/pci.c | info = pci_lookup_dev(dev->vendor, dev->device); |
dev | 644 | drivers/pci/pci.c | dev->master = ((tmp & PCI_COMMAND_MASTER) != 0); |
dev | 650 | drivers/pci/pci.c | PCI_INTERRUPT_LINE, &dev->irq); |
dev | 656 | drivers/pci/pci.c | dev->class = l; |
dev | 661 | drivers/pci/pci.c | dev->sibling = bus->devices; |
dev | 662 | drivers/pci/pci.c | bus->devices = dev; |
dev | 664 | drivers/pci/pci.c | if (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) { |
dev | 673 | drivers/pci/pci.c | child->self = dev; |
dev | 2138 | drivers/scsi/53c7,8xx.c | int dev; |
dev | 2140 | drivers/scsi/53c7,8xx.c | for (dev = MINOR(inode->rdev), host = first_host; |
dev | 2141 | drivers/scsi/53c7,8xx.c | (host->hostt == the_template); --dev, host = host->next) |
dev | 2142 | drivers/scsi/53c7,8xx.c | if (!dev) return host; |
dev | 1108 | drivers/scsi/aha152x.c | int aha152x_biosparam(Scsi_Disk * disk, int dev, int *info_array ) |
dev | 1114 | drivers/scsi/aha152x.c | printk("aha152x_biosparam: dev=%x, size=%d, ", dev, size); |
dev | 1137 | drivers/scsi/aha1542.c | printk("Timed out command pending for %4.4x\n", SCpnt->request.dev); |
dev | 1143 | drivers/scsi/aha1542.c | printk("Other pending command %4.4x\n", SCpnt->request.dev); |
dev | 1227 | drivers/scsi/aha1542.c | int aha1542_biosparam(Scsi_Disk * disk, int dev, int * ip) |
dev | 496 | drivers/scsi/aha1740.c | int aha1740_biosparam(Disk * disk, int dev, int* ip) |
dev | 1399 | drivers/scsi/buslogic.c | scpnt->request.dev); |
dev | 1406 | drivers/scsi/buslogic.c | scpnt->request.dev); |
dev | 1501 | drivers/scsi/buslogic.c | int buslogic_biosparam(Disk *disk, int dev, int *ip) |
dev | 370 | drivers/scsi/constants.c | int dev = SCpnt->request.dev; |
dev | 401 | drivers/scsi/constants.c | printk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]); |
dev | 403 | drivers/scsi/constants.c | printk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]); |
dev | 431 | drivers/scsi/constants.c | printk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]); |
dev | 434 | drivers/scsi/constants.c | printk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]); |
dev | 1747 | drivers/scsi/fdomain.c | int fdomain_16x0_biosparam( Scsi_Disk *disk, int dev, int *info_array ) |
dev | 1805 | drivers/scsi/fdomain.c | drive = MINOR(dev) / 16; |
dev | 684 | drivers/scsi/in2000.c | int in2000_biosparam(Disk * disk, int dev, int* iinfo) |
dev | 446 | drivers/scsi/pas16.c | int pas16_biosparam(Disk * disk, int dev, int * ip) |
dev | 626 | drivers/scsi/qlogic.c | int qlogic_biosparam(Disk * disk, int dev, int ip[]) |
dev | 276 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xfffe; |
dev | 305 | drivers/scsi/scsi.c | int dev, lun, type; |
dev | 329 | drivers/scsi/scsi.c | for (dev = 0; dev < 8; ++dev) |
dev | 330 | drivers/scsi/scsi.c | if (shpnt->this_id != dev) |
dev | 339 | drivers/scsi/scsi.c | SDpnt->id = dev; |
dev | 363 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Mark not busy */ |
dev | 372 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) barrier(); |
dev | 373 | drivers/scsi/scsi.c | else if (SCpnt->request.dev != 0xfffe) { |
dev | 380 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 384 | drivers/scsi/scsi.c | printk("scsi: scan SCSIS id %d lun %d\n", dev, lun); |
dev | 417 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Mark not busy */ |
dev | 424 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) barrier(); |
dev | 425 | drivers/scsi/scsi.c | else if (SCpnt->request.dev != 0xfffe) { |
dev | 432 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 579 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Mark not busy */ |
dev | 587 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) barrier(); |
dev | 588 | drivers/scsi/scsi.c | else if (SCpnt->request.dev != 0xfffe) { |
dev | 595 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 697 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
dev | 704 | drivers/scsi/scsi.c | if(SCpnt->request.dev < 0) break; |
dev | 739 | drivers/scsi/scsi.c | req->dev = -1; |
dev | 743 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Busy, but no request */ |
dev | 767 | drivers/scsi/scsi.c | int dev = -1; |
dev | 782 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
dev | 794 | drivers/scsi/scsi.c | if(SCpnt->request.dev < 0) break; |
dev | 801 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
dev | 805 | drivers/scsi/scsi.c | if (!SCpnt || SCpnt->request.dev >= 0) /* Might have changed */ |
dev | 815 | drivers/scsi/scsi.c | (SCwait->request.dev > 0)); |
dev | 845 | drivers/scsi/scsi.c | req->dev = -1; |
dev | 850 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Busy */ |
dev | 1489 | drivers/scsi/scsi.c | if (MAJOR(SCpnt->request.dev) != SCSI_DISK_MAJOR && |
dev | 1490 | drivers/scsi/scsi.c | MAJOR(SCpnt->request.dev) != SCSI_CDROM_MAJOR) { |
dev | 1543 | drivers/scsi/scsi.c | if (SCpnt->request.dev == -1 || pid != SCpnt->pid) { |
dev | 1577 | drivers/scsi/scsi.c | if (SCpnt->request.dev == -1 || pid != SCpnt->pid) |
dev | 1658 | drivers/scsi/scsi.c | if (SCpnt1->request.dev > 0) { |
dev | 2026 | drivers/scsi/scsi.c | SCpnt->request.dev = -1; /* Mark not busy */ |
dev | 2226 | drivers/scsi/scsi.c | SCpnt->request.dev = -1; /* Mark not busy */ |
dev | 2348 | drivers/scsi/scsi.c | if(SCpnt->request.dev != -1) { |
dev | 2351 | drivers/scsi/scsi.c | if(SCpnt->request.dev == 0xffe0) SCpnt->request.dev = -1; |
dev | 2355 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffe0; /* Mark as busy */ |
dev | 2508 | drivers/scsi/scsi.c | SCpnt->request.dev, |
dev | 2534 | drivers/scsi/scsi.c | req->dev, |
dev | 558 | drivers/scsi/scsi.h | req->dev,req->sector); |
dev | 583 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
dev | 596 | drivers/scsi/scsi.h | req->dev = -1; |
dev | 613 | drivers/scsi/scsi.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 67 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1]; \ |
dev | 73 | drivers/scsi/scsi_debug.c | if (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\ |
dev | 79 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){ \ |
dev | 80 | drivers/scsi/scsi_debug.c | printk("Dev #s %x %x ",SCpnt->request.dev, target); \ |
dev | 88 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition"); \ |
dev | 89 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1]; \ |
dev | 98 | drivers/scsi/scsi_debug.c | if (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\ |
dev | 223 | drivers/scsi/scsi_debug.c | if(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f; |
dev | 551 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(Disk * disk, int dev, int* info){ |
dev | 84 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 91 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
dev | 96 | drivers/scsi/scsi_ioctl.c | SCpnt = allocate_device(NULL, dev, 1); |
dev | 101 | drivers/scsi/scsi_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 106 | drivers/scsi/scsi_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 112 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
dev | 116 | drivers/scsi/scsi_ioctl.c | if(dev->removable){ |
dev | 121 | drivers/scsi/scsi_ioctl.c | if (dev->removable){ |
dev | 122 | drivers/scsi/scsi_ioctl.c | dev->changed = 1; |
dev | 129 | drivers/scsi/scsi_ioctl.c | dev->host->host_no, |
dev | 130 | drivers/scsi/scsi_ioctl.c | dev->id, |
dev | 131 | drivers/scsi/scsi_ioctl.c | dev->lun, |
dev | 141 | drivers/scsi/scsi_ioctl.c | SCpnt->request.dev = -1; |
dev | 146 | drivers/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
dev | 179 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
dev | 183 | drivers/scsi/scsi_ioctl.c | SCpnt = allocate_device(NULL, dev, 1); |
dev | 188 | drivers/scsi/scsi_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 193 | drivers/scsi/scsi_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 211 | drivers/scsi/scsi_ioctl.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 222 | drivers/scsi/scsi_ioctl.c | printk("scsi_ioctl : device %d. command = ", dev->id); |
dev | 242 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
dev | 247 | drivers/scsi/scsi_ioctl.c | if (!dev) return -ENXIO; |
dev | 252 | drivers/scsi/scsi_ioctl.c | put_user(dev->id + (dev->lun << 8) + |
dev | 253 | drivers/scsi/scsi_ioctl.c | (dev->host->host_no << 16), (unsigned int *) arg); |
dev | 257 | drivers/scsi/scsi_ioctl.c | if(!dev->tagged_supported) return -EINVAL; |
dev | 258 | drivers/scsi/scsi_ioctl.c | dev->tagged_queue = 1; |
dev | 259 | drivers/scsi/scsi_ioctl.c | dev->current_tag = 1; |
dev | 263 | drivers/scsi/scsi_ioctl.c | if(!dev->tagged_supported) return -EINVAL; |
dev | 264 | drivers/scsi/scsi_ioctl.c | dev->tagged_queue = 0; |
dev | 265 | drivers/scsi/scsi_ioctl.c | dev->current_tag = 0; |
dev | 268 | drivers/scsi/scsi_ioctl.c | return ioctl_probe(dev->host, arg); |
dev | 271 | drivers/scsi/scsi_ioctl.c | return ioctl_command((Scsi_Device *) dev, arg); |
dev | 273 | drivers/scsi/scsi_ioctl.c | if (!dev->removable || !dev->lockable) return 0; |
dev | 275 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 278 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 281 | drivers/scsi/scsi_ioctl.c | if (!dev->removable || !dev->lockable) return 0; |
dev | 283 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 286 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 289 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 292 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 305 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
dev | 310 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
dev | 17 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 18 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 38 | drivers/scsi/scsicam.c | int dev, /* Device major, minor */ |
dev | 44 | drivers/scsi/scsicam.c | if (!(bh = bread(dev & ~0xf,0,1024))) |
dev | 54 | drivers/scsi/sd.c | int revalidate_scsidisk(int dev, int maxusage); |
dev | 188 | drivers/scsi/sd.c | printk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->host->host_no, result); |
dev | 200 | drivers/scsi/sd.c | printk("sd%c : %d sectors remain.\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors); |
dev | 243 | drivers/scsi/sd.c | 'a' + MINOR(SCpnt->request.dev)); |
dev | 295 | drivers/scsi/sd.c | if rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap |
dev | 306 | drivers/scsi/sd.c | if(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) { |
dev | 310 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
dev | 327 | drivers/scsi/sd.c | if (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) { |
dev | 328 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
dev | 337 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
dev | 338 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id, |
dev | 339 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result); |
dev | 365 | drivers/scsi/sd.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
dev | 386 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
dev | 410 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
dev | 415 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
dev | 433 | drivers/scsi/sd.c | int dev, block, this_count; |
dev | 442 | drivers/scsi/sd.c | if(!SCpnt || SCpnt->request.dev <= 0) { |
dev | 447 | drivers/scsi/sd.c | dev = MINOR(SCpnt->request.dev); |
dev | 452 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
dev | 455 | drivers/scsi/sd.c | if (dev >= (sd_template.dev_max << 4) || |
dev | 456 | drivers/scsi/sd.c | !rscsi_disks[DEVICE_NR(dev)].device || |
dev | 457 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
dev | 463 | drivers/scsi/sd.c | block += sd[dev].start_sect; |
dev | 464 | drivers/scsi/sd.c | dev = DEVICE_NR(dev); |
dev | 466 | drivers/scsi/sd.c | if (rscsi_disks[dev].device->changed) |
dev | 477 | drivers/scsi/sd.c | printk("sd%c : real dev = /dev/sd%c, block = %d\n", 'a' + MINOR(SCpnt->request.dev), dev, block); |
dev | 491 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024) |
dev | 501 | drivers/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
dev | 581 | drivers/scsi/sd.c | this_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff); |
dev | 743 | drivers/scsi/sd.c | printk("sd%c : %s %d/%d 512 byte blocks.\n", 'a' + MINOR(SCpnt->request.dev), |
dev | 750 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024){ |
dev | 757 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 256){ |
dev | 762 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
dev | 794 | drivers/scsi/sd.c | SCpnt->transfersize = rscsi_disks[dev].sector_size; |
dev | 797 | drivers/scsi/sd.c | this_count * rscsi_disks[dev].sector_size, |
dev | 843 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 873 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 883 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe) barrier(); |
dev | 899 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 909 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe) barrier(); |
dev | 934 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 945 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe) barrier(); |
dev | 947 | drivers/scsi/sd.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 952 | drivers/scsi/sd.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 960 | drivers/scsi/sd.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1197 | drivers/scsi/sd.c | int revalidate_scsidisk(int dev, int maxusage){ |
dev | 1205 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(dev)); |
dev | 1241 | drivers/scsi/sd.c | static int fop_revalidate_scsidisk(dev_t dev){ |
dev | 1242 | drivers/scsi/sd.c | return revalidate_scsidisk(dev, 0); |
dev | 20 | drivers/scsi/sd_ioctl.c | int dev = inode->i_rdev; |
dev | 32 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
dev | 37 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
dev | 38 | drivers/scsi/sd_ioctl.c | dev, |
dev | 67 | drivers/scsi/sd_ioctl.c | return revalidate_scsidisk(dev, 1); |
dev | 69 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
dev | 1599 | drivers/scsi/seagate.c | int seagate_st0x_biosparam(Disk * disk, int dev, int* ip) { |
dev | 68 | drivers/scsi/sg.c | int dev = MINOR(inode->i_rdev); |
dev | 69 | drivers/scsi/sg.c | if ((dev<0) || (dev>=sg_template.dev_max)) |
dev | 74 | drivers/scsi/sg.c | scsi_generics[dev].timeout=get_user((int *) arg); |
dev | 77 | drivers/scsi/sg.c | return scsi_generics[dev].timeout; |
dev | 79 | drivers/scsi/sg.c | return scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg); |
dev | 85 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 87 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
dev | 93 | drivers/scsi/sg.c | while(scsi_generics[dev].users) |
dev | 97 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
dev | 101 | drivers/scsi/sg.c | scsi_generics[dev].exclude=1; |
dev | 104 | drivers/scsi/sg.c | while(scsi_generics[dev].exclude) |
dev | 108 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
dev | 112 | drivers/scsi/sg.c | if (!scsi_generics[dev].users && scsi_generics[dev].pending && scsi_generics[dev].complete) |
dev | 114 | drivers/scsi/sg.c | if (scsi_generics[dev].buff != NULL) |
dev | 115 | drivers/scsi/sg.c | sg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
dev | 116 | drivers/scsi/sg.c | scsi_generics[dev].buff=NULL; |
dev | 117 | drivers/scsi/sg.c | scsi_generics[dev].pending=0; |
dev | 119 | drivers/scsi/sg.c | if (!scsi_generics[dev].users) |
dev | 120 | drivers/scsi/sg.c | scsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT; |
dev | 121 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
dev | 122 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)++; |
dev | 123 | drivers/scsi/sg.c | scsi_generics[dev].users++; |
dev | 129 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 130 | drivers/scsi/sg.c | scsi_generics[dev].users--; |
dev | 131 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
dev | 132 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)--; |
dev | 133 | drivers/scsi/sg.c | scsi_generics[dev].exclude=0; |
dev | 134 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].generic_wait); |
dev | 172 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 174 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 208 | drivers/scsi/sg.c | int dev=SCpnt->request.dev; |
dev | 209 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 212 | drivers/scsi/sg.c | printk("unexpected done for sg %d\n",dev); |
dev | 213 | drivers/scsi/sg.c | SCpnt->request.dev=-1; |
dev | 224 | drivers/scsi/sg.c | SCpnt->request.dev=-1; |
dev | 225 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].read_wait); |
dev | 230 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 235 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 290 | drivers/scsi/sg.c | SCpnt->request.dev=dev; |
dev | 235 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
dev | 247 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
dev | 248 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
dev | 271 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
dev | 272 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
dev | 273 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun, |
dev | 516 | drivers/scsi/sr.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
dev | 525 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
dev | 544 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
dev | 549 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
dev | 570 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
dev | 577 | drivers/scsi/sr.c | if(!SCpnt || SCpnt->request.dev <= 0) { |
dev | 582 | drivers/scsi/sr.c | dev = MINOR(SCpnt->request.dev); |
dev | 587 | drivers/scsi/sr.c | if (dev >= sr_template.nr_dev) |
dev | 595 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
dev | 603 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
dev | 656 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
dev | 784 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
dev | 791 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
dev | 793 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
dev | 798 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
dev | 815 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
dev | 846 | drivers/scsi/sr.c | SCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ? |
dev | 847 | drivers/scsi/sr.c | 1024 : scsi_CDs[dev].sector_size; |
dev | 851 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
dev | 897 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 918 | drivers/scsi/sr.c | SCpnt->request.dev = 0xffff; /* Mark as really busy */ |
dev | 929 | drivers/scsi/sr.c | while(SCpnt->request.dev != 0xfffe) barrier(); |
dev | 931 | drivers/scsi/sr.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 936 | drivers/scsi/sr.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 944 | drivers/scsi/sr.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 21 | drivers/scsi/sr_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 28 | drivers/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 50 | drivers/scsi/sr_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 55 | drivers/scsi/sr_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 87 | drivers/scsi/sr_ioctl.c | SCpnt->request.dev = -1; /* Deallocate */ |
dev | 97 | drivers/scsi/sr_ioctl.c | int dev = inode->i_rdev; |
dev | 100 | drivers/scsi/sr_ioctl.c | target = MINOR(dev); |
dev | 429 | drivers/scsi/sr_ioctl.c | RO_IOCTLS(dev,arg); |
dev | 112 | drivers/scsi/st.c | int dev = SCpnt->request.dev; |
dev | 121 | drivers/scsi/st.c | printk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result, |
dev | 137 | drivers/scsi/st.c | printk("st%d: Error %x. ", dev, result); |
dev | 151 | drivers/scsi/st.c | scsi_tapes[dev].recover_count++; |
dev | 152 | drivers/scsi/st.c | scsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT); |
dev | 159 | drivers/scsi/st.c | printk("st%d: Recovered %s error (%d).\n", dev, stp, |
dev | 160 | drivers/scsi/st.c | scsi_tapes[dev].recover_count); |
dev | 174 | drivers/scsi/st.c | if ((st_nbr = SCpnt->request.dev) < st_template.nr_dev && st_nbr >= 0) { |
dev | 196 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 198 | drivers/scsi/st.c | SCpnt->request.dev = 0xffff; |
dev | 211 | drivers/scsi/st.c | write_behind_check(int dev) |
dev | 217 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 249 | drivers/scsi/st.c | back_over_eof(int dev) |
dev | 252 | drivers/scsi/st.c | Scsi_Tape *STp = &(scsi_tapes[dev]); |
dev | 263 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 271 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 274 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 276 | drivers/scsi/st.c | printk("st%d: Backing over filemark failed.\n", dev); |
dev | 288 | drivers/scsi/st.c | flush_write_buffer(int dev) |
dev | 295 | drivers/scsi/st.c | Scsi_Tape *STp = &(scsi_tapes[dev]); |
dev | 298 | drivers/scsi/st.c | write_behind_check(dev); |
dev | 302 | drivers/scsi/st.c | printk("st%d: Async write error (flush) %x.\n", dev, |
dev | 320 | drivers/scsi/st.c | printk("st%d: Flushing %d bytes.\n", dev, transfer); |
dev | 332 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 340 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 344 | drivers/scsi/st.c | printk("st%d: Error on flush.\n", dev); |
dev | 362 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 373 | drivers/scsi/st.c | int dev; |
dev | 378 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 379 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 386 | drivers/scsi/st.c | return flush_write_buffer(dev); |
dev | 400 | drivers/scsi/st.c | result = back_over_eof(dev); /* Back over the EOF hit */ |
dev | 418 | drivers/scsi/st.c | int dev; |
dev | 426 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 427 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
dev | 429 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 431 | drivers/scsi/st.c | printk("st%d: Device already in use.\n", dev); |
dev | 440 | drivers/scsi/st.c | printk("st%d: No free buffers.\n", dev); |
dev | 461 | drivers/scsi/st.c | printk("st%d: Tape request not allocated", dev); |
dev | 468 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 478 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 487 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 497 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 508 | drivers/scsi/st.c | printk("st%d: No tape.\n", dev); |
dev | 514 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 522 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
dev | 523 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
dev | 530 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 539 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 549 | drivers/scsi/st.c | printk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block, |
dev | 557 | drivers/scsi/st.c | printk("st%d: Can't read block limits.\n", dev); |
dev | 565 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 574 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 580 | drivers/scsi/st.c | printk("st%d: No Mode Sense.\n", dev); |
dev | 585 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 589 | drivers/scsi/st.c | printk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev, |
dev | 602 | drivers/scsi/st.c | dev, STp->density, (STp->buffer)->b_data[5] * 65536 + |
dev | 607 | drivers/scsi/st.c | printk("st%d: Blocksize %d too large for buffer.\n", dev, |
dev | 631 | drivers/scsi/st.c | printk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev, |
dev | 641 | drivers/scsi/st.c | printk( "st%d: Write protected\n", dev); |
dev | 651 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
dev | 652 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
dev | 662 | drivers/scsi/st.c | int dev; |
dev | 670 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev); |
dev | 671 | drivers/scsi/st.c | rewind = (dev & 0x80) == 0; |
dev | 672 | drivers/scsi/st.c | dev = dev & 127; |
dev | 673 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 677 | drivers/scsi/st.c | result = flush_write_buffer(dev); |
dev | 681 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos)); |
dev | 691 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 700 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 705 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 706 | drivers/scsi/st.c | printk("st%d: Error on write filemark.\n", dev); |
dev | 709 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 714 | drivers/scsi/st.c | back_over_eof(dev); |
dev | 721 | drivers/scsi/st.c | printk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]); |
dev | 727 | drivers/scsi/st.c | back_over_eof(dev); |
dev | 740 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
dev | 741 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)--; |
dev | 751 | drivers/scsi/st.c | int dev; |
dev | 761 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 762 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 767 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 789 | drivers/scsi/st.c | write_behind_check(dev); |
dev | 793 | drivers/scsi/st.c | printk("st%d: Async write error (write) %x.\n", dev, |
dev | 858 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 867 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 873 | drivers/scsi/st.c | printk("st%d: Error on write:\n", dev); |
dev | 902 | drivers/scsi/st.c | dev, transfer); |
dev | 911 | drivers/scsi/st.c | printk("st%d: EOM with lost data.\n", dev); |
dev | 920 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 950 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 975 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 982 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 993 | drivers/scsi/st.c | int dev; |
dev | 1001 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 1002 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1007 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 1030 | drivers/scsi/st.c | printk("st%d: EOF flag up. Bytes %d\n", dev, |
dev | 1069 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1078 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1088 | drivers/scsi/st.c | printk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev, |
dev | 1115 | drivers/scsi/st.c | printk("st%d: Incorrect block size.\n", dev); |
dev | 1116 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1129 | drivers/scsi/st.c | printk("st%d: EOM detected (%d bytes read).\n", dev, |
dev | 1144 | drivers/scsi/st.c | dev, (STp->buffer)->buffer_bytes, total); |
dev | 1151 | drivers/scsi/st.c | printk("st%d: Tape error while reading.\n", dev); |
dev | 1153 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 1162 | drivers/scsi/st.c | dev); |
dev | 1173 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1193 | drivers/scsi/st.c | printk("st%d: EOF up. Left %d, needed %d.\n", dev, |
dev | 1208 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1227 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1238 | drivers/scsi/st.c | int dev, value; |
dev | 1241 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 1242 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1253 | drivers/scsi/st.c | dev, STp->do_buffer_writes, STp->do_async_writes, |
dev | 1268 | drivers/scsi/st.c | printk("st%d: Write threshold set to %d bytes.\n", dev, |
dev | 1284 | drivers/scsi/st.c | int dev = MINOR(inode->i_rdev); |
dev | 1294 | drivers/scsi/st.c | dev = dev & 127; |
dev | 1295 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1314 | drivers/scsi/st.c | printk("st%d: Spacing tape forward over %d filemarks.\n", dev, |
dev | 1335 | drivers/scsi/st.c | printk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp)); |
dev | 1351 | drivers/scsi/st.c | printk("st%d: Spacing tape forward %d blocks.\n", dev, |
dev | 1370 | drivers/scsi/st.c | printk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp)); |
dev | 1385 | drivers/scsi/st.c | printk("st%d: Spacing tape forward %d setmarks.\n", dev, |
dev | 1405 | drivers/scsi/st.c | printk("st%d: Spacing tape backward %ld setmarks.\n", dev, (-ltmp)); |
dev | 1427 | drivers/scsi/st.c | printk("st%d: Writing %d filemarks.\n", dev, |
dev | 1430 | drivers/scsi/st.c | printk("st%d: Writing %d setmarks.\n", dev, |
dev | 1447 | drivers/scsi/st.c | printk("st%d: Rewinding tape.\n", dev); |
dev | 1459 | drivers/scsi/st.c | printk("st%d: Unloading tape.\n", dev); |
dev | 1466 | drivers/scsi/st.c | printk("st%d: No op on tape.\n", dev); |
dev | 1479 | drivers/scsi/st.c | printk("st%d: Retensioning tape.\n", dev); |
dev | 1501 | drivers/scsi/st.c | printk("st%d: Spacing to end of recorded medium.\n", dev); |
dev | 1519 | drivers/scsi/st.c | printk("st%d: Erasing tape.\n", dev); |
dev | 1545 | drivers/scsi/st.c | printk("st%d: Seeking tape to block %ld.\n", dev, arg); |
dev | 1559 | drivers/scsi/st.c | printk("st%d: Illegal block size.\n", dev); |
dev | 1587 | drivers/scsi/st.c | printk("st%d: Setting block size to %d bytes.\n", dev, |
dev | 1592 | drivers/scsi/st.c | printk("st%d: Setting density code to %x.\n", dev, |
dev | 1595 | drivers/scsi/st.c | printk("st%d: Setting drive buffer code to %d.\n", dev, |
dev | 1601 | drivers/scsi/st.c | printk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in); |
dev | 1607 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1616 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1622 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1736 | drivers/scsi/st.c | int dev = MINOR(inode->i_rdev); |
dev | 1745 | drivers/scsi/st.c | dev = dev & 127; |
dev | 1746 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1749 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 1840 | drivers/scsi/st.c | printk("st%d: get tape position.\n", dev); |
dev | 1865 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1875 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1883 | drivers/scsi/st.c | printk("st%d: Can't read tape position.\n", dev); |
dev | 1901 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 292 | drivers/scsi/t128.c | int t128_biosparam(Disk * disk, int dev, int * ip) |
dev | 821 | drivers/scsi/u14-34f.c | int u14_34f_biosparam(Disk * disk, int dev, int * dkinfo) { |
dev | 1002 | drivers/scsi/ultrastor.c | int ultrastor_biosparam(Disk * disk, int dev, int * dkinfo) |
dev | 1209 | drivers/scsi/wd7000.c | int wd7000_biosparam(Disk * disk, int dev, int* ip) |
dev | 88 | drivers/sound/ad1848.c | static int ad1848_open (int dev, int mode); |
dev | 89 | drivers/sound/ad1848.c | static void ad1848_close (int dev); |
dev | 90 | drivers/sound/ad1848.c | static int ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 91 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 92 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 93 | drivers/sound/ad1848.c | static int ad1848_prepare_for_IO (int dev, int bsize, int bcount); |
dev | 94 | drivers/sound/ad1848.c | static void ad1848_reset (int dev); |
dev | 95 | drivers/sound/ad1848.c | static void ad1848_halt (int dev); |
dev | 190 | drivers/sound/ad1848.c | ad1848_open (int dev, int mode) |
dev | 198 | drivers/sound/ad1848.c | if (dev < 0 || dev >= num_audiodevs) |
dev | 201 | drivers/sound/ad1848.c | devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 219 | drivers/sound/ad1848.c | if (DMAbuf_open_dma (dev) < 0) |
dev | 234 | drivers/sound/ad1848.c | ad1848_close (int dev) |
dev | 237 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 246 | drivers/sound/ad1848.c | ad1848_reset (dev); |
dev | 247 | drivers/sound/ad1848.c | DMAbuf_close_dma (dev); |
dev | 409 | drivers/sound/ad1848.c | ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 411 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 456 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 459 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 476 | drivers/sound/ad1848.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 490 | drivers/sound/ad1848.c | ad1848_halt (dev); |
dev | 491 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 518 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 521 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 539 | drivers/sound/ad1848.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 553 | drivers/sound/ad1848.c | ad1848_halt (dev); |
dev | 554 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 589 | drivers/sound/ad1848.c | ad1848_prepare_for_IO (int dev, int bsize, int bcount) |
dev | 594 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 645 | drivers/sound/ad1848.c | ad1848_reset (int dev) |
dev | 647 | drivers/sound/ad1848.c | ad1848_halt (dev); |
dev | 651 | drivers/sound/ad1848.c | ad1848_halt (int dev) |
dev | 653 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 872 | drivers/sound/ad1848.c | int dev; |
dev | 876 | drivers/sound/ad1848.c | dev = irq2dev[irq]; |
dev | 877 | drivers/sound/ad1848.c | if (dev < 0 || dev >= num_audiodevs) |
dev | 880 | drivers/sound/ad1848.c | devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 887 | drivers/sound/ad1848.c | DMAbuf_outputintr (dev, 1); |
dev | 891 | drivers/sound/ad1848.c | DMAbuf_inputintr (dev); |
dev | 58 | drivers/sound/audio.c | set_format (int dev, int fmt) |
dev | 63 | drivers/sound/audio.c | local_conversion[dev] = 0; |
dev | 65 | drivers/sound/audio.c | if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */ |
dev | 69 | drivers/sound/audio.c | local_conversion[dev] = AFMT_MU_LAW; |
dev | 74 | drivers/sound/audio.c | audio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, fmt, 1); |
dev | 77 | drivers/sound/audio.c | if (local_conversion[dev]) /* This shadows the HW format */ |
dev | 78 | drivers/sound/audio.c | return local_conversion[dev]; |
dev | 80 | drivers/sound/audio.c | return audio_format[dev]; |
dev | 84 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
dev | 88 | drivers/sound/audio.c | int dev_type = dev & 0x0f; |
dev | 91 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 98 | drivers/sound/audio.c | if ((ret = DMAbuf_open (dev, mode)) < 0) |
dev | 101 | drivers/sound/audio.c | local_conversion[dev] = 0; |
dev | 103 | drivers/sound/audio.c | if (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, bits, 1) != bits) |
dev | 105 | drivers/sound/audio.c | audio_release (dev, file); |
dev | 111 | drivers/sound/audio.c | set_format (dev, AFMT_MU_LAW); |
dev | 114 | drivers/sound/audio.c | set_format (dev, bits); |
dev | 116 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 117 | drivers/sound/audio.c | audio_mode[dev] = AM_NONE; |
dev | 123 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
dev | 127 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 130 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 132 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 134 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 137 | drivers/sound/audio.c | DMAbuf_release (dev, mode); |
dev | 166 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 171 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 176 | drivers/sound/audio.c | if (audio_mode[dev] == AM_READ) /* |
dev | 180 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 183 | drivers/sound/audio.c | audio_mode[dev] = AM_WRITE; |
dev | 189 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 191 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 193 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 202 | drivers/sound/audio.c | if (wr_buff_no[dev] < 0) /* |
dev | 206 | drivers/sound/audio.c | if ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev], &wr_buff_size[dev])) < 0) |
dev | 208 | drivers/sound/audio.c | return wr_buff_no[dev]; |
dev | 210 | drivers/sound/audio.c | wr_buff_ptr[dev] = 0; |
dev | 214 | drivers/sound/audio.c | if (l > (wr_buff_size[dev] - wr_buff_ptr[dev])) |
dev | 215 | drivers/sound/audio.c | l = (wr_buff_size[dev] - wr_buff_ptr[dev]); |
dev | 217 | drivers/sound/audio.c | if (!audio_devs[dev]->copy_from_user) |
dev | 221 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
dev | 224 | drivers/sound/audio.c | audio_devs[dev]->copy_from_user (dev, |
dev | 225 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
dev | 232 | drivers/sound/audio.c | if (local_conversion[dev] == AFMT_MU_LAW) |
dev | 240 | drivers/sound/audio.c | translate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l); |
dev | 245 | drivers/sound/audio.c | wr_buff_ptr[dev] += l; |
dev | 247 | drivers/sound/audio.c | if (wr_buff_ptr[dev] >= wr_buff_size[dev]) |
dev | 249 | drivers/sound/audio.c | if ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0) |
dev | 254 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 263 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 269 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 273 | drivers/sound/audio.c | if (audio_mode[dev] == AM_WRITE) |
dev | 275 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 277 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 279 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 283 | drivers/sound/audio.c | audio_mode[dev] = AM_READ; |
dev | 287 | drivers/sound/audio.c | if ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l)) < 0) |
dev | 297 | drivers/sound/audio.c | if (local_conversion[dev] == AFMT_MU_LAW) |
dev | 311 | drivers/sound/audio.c | DMAbuf_rmchars (dev, buff_no, l); |
dev | 321 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
dev | 325 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 330 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 332 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 334 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 336 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 340 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 342 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 344 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 350 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 351 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 355 | drivers/sound/audio.c | return IOCTL_OUT (arg, audio_devs[dev]->format_mask); |
dev | 359 | drivers/sound/audio.c | return IOCTL_OUT (arg, set_format (dev, IOCTL_IN (arg))); |
dev | 362 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 382 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 388 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 394 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
dev | 400 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
dev | 404 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
dev | 411 | drivers/sound/audio.c | audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
dev | 118 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 119 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 120 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
dev | 122 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
dev | 124 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 125 | drivers/sound/dev_table.h | int (*prepare_for_input) (int dev, int bufsize, int nbufs); |
dev | 126 | drivers/sound/dev_table.h | int (*prepare_for_output) (int dev, int bufsize, int nbufs); |
dev | 127 | drivers/sound/dev_table.h | void (*reset) (int dev); |
dev | 128 | drivers/sound/dev_table.h | void (*halt_xfer) (int dev); |
dev | 129 | drivers/sound/dev_table.h | int (*local_qlen)(int dev); |
dev | 130 | drivers/sound/dev_table.h | void (*copy_from_user)(int dev, char *localbuf, int localoffs, |
dev | 139 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 148 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 149 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 150 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 151 | drivers/sound/dev_table.h | int (*kill_note) (int dev, int voice, int note, int velocity); |
dev | 152 | drivers/sound/dev_table.h | int (*start_note) (int dev, int voice, int note, int velocity); |
dev | 153 | drivers/sound/dev_table.h | int (*set_instr) (int dev, int voice, int instr); |
dev | 154 | drivers/sound/dev_table.h | void (*reset) (int dev); |
dev | 155 | drivers/sound/dev_table.h | void (*hw_control) (int dev, unsigned char *event); |
dev | 156 | drivers/sound/dev_table.h | int (*load_patch) (int dev, int format, snd_rw_buf *addr, |
dev | 158 | drivers/sound/dev_table.h | void (*aftertouch) (int dev, int voice, int pressure); |
dev | 159 | drivers/sound/dev_table.h | void (*controller) (int dev, int voice, int ctrl_num, int value); |
dev | 160 | drivers/sound/dev_table.h | void (*panning) (int dev, int voice, int value); |
dev | 161 | drivers/sound/dev_table.h | void (*volume_method) (int dev, int mode); |
dev | 162 | drivers/sound/dev_table.h | int (*pmgr_interface) (int dev, struct patmgr_info *info); |
dev | 163 | drivers/sound/dev_table.h | void (*bender) (int dev, int chn, int value); |
dev | 164 | drivers/sound/dev_table.h | int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); |
dev | 173 | drivers/sound/dev_table.h | int (*open) (int dev, int mode, |
dev | 174 | drivers/sound/dev_table.h | void (*inputintr)(int dev, unsigned char data), |
dev | 175 | drivers/sound/dev_table.h | void (*outputintr)(int dev) |
dev | 177 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 178 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 179 | drivers/sound/dev_table.h | int (*putc) (int dev, unsigned char data); |
dev | 180 | drivers/sound/dev_table.h | int (*start_read) (int dev); |
dev | 181 | drivers/sound/dev_table.h | int (*end_read) (int dev); |
dev | 182 | drivers/sound/dev_table.h | void (*kick)(int dev); |
dev | 183 | drivers/sound/dev_table.h | int (*command) (int dev, unsigned char *data); |
dev | 184 | drivers/sound/dev_table.h | int (*buffer_status) (int dev); |
dev | 185 | drivers/sound/dev_table.h | int (*prefix_cmd) (int dev, unsigned char status); |
dev | 192 | drivers/sound/dev_table.h | int (*open)(int dev, int mode); |
dev | 193 | drivers/sound/dev_table.h | void (*close)(int dev); |
dev | 194 | drivers/sound/dev_table.h | int (*event)(int dev, unsigned char *ev); |
dev | 195 | drivers/sound/dev_table.h | unsigned long (*get_time)(int dev); |
dev | 196 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 197 | drivers/sound/dev_table.h | void (*arm_timer)(int dev, long time); |
dev | 48 | drivers/sound/dmabuf.c | reorganize_buffers (int dev) |
dev | 54 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 55 | drivers/sound/dmabuf.c | struct audio_operations *dsp_dev = audio_devs[dev]; |
dev | 63 | drivers/sound/dmabuf.c | sr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1); |
dev | 64 | drivers/sound/dmabuf.c | nc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1); |
dev | 65 | drivers/sound/dmabuf.c | sz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1); |
dev | 70 | drivers/sound/dmabuf.c | dev, sr, nc, sz); |
dev | 112 | drivers/sound/dmabuf.c | if (dmap->fragment_size > audio_devs[dev]->buffsize) |
dev | 113 | drivers/sound/dmabuf.c | dmap->fragment_size = audio_devs[dev]->buffsize; |
dev | 151 | drivers/sound/dmabuf.c | dma_init_buffers (int dev) |
dev | 153 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap = &dmaps[dev]; |
dev | 155 | drivers/sound/dmabuf.c | RESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 165 | drivers/sound/dmabuf.c | DMAbuf_open (int dev, int mode) |
dev | 170 | drivers/sound/dmabuf.c | if (dev >= num_audiodevs) |
dev | 172 | drivers/sound/dmabuf.c | printk ("PCM device %d not installed.\n", dev); |
dev | 176 | drivers/sound/dmabuf.c | if (!audio_devs[dev]) |
dev | 178 | drivers/sound/dmabuf.c | printk ("PCM device %d not initialized\n", dev); |
dev | 182 | drivers/sound/dmabuf.c | dmap = audio_devs[dev]->dmap = &dmaps[dev]; |
dev | 189 | drivers/sound/dmabuf.c | sound_dma_malloc (dev); |
dev | 195 | drivers/sound/dmabuf.c | if ((retval = audio_devs[dev]->open (dev, mode)) < 0) |
dev | 203 | drivers/sound/dmabuf.c | dma_init_buffers (dev); |
dev | 204 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1); |
dev | 205 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1); |
dev | 206 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1); |
dev | 212 | drivers/sound/dmabuf.c | dma_reset (int dev) |
dev | 219 | drivers/sound/dmabuf.c | audio_devs[dev]->reset (dev); |
dev | 220 | drivers/sound/dmabuf.c | audio_devs[dev]->close (dev); |
dev | 222 | drivers/sound/dmabuf.c | if ((retval = audio_devs[dev]->open (dev, audio_devs[dev]->dmap->open_mode)) < 0) |
dev | 226 | drivers/sound/dmabuf.c | dma_init_buffers (dev); |
dev | 227 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 231 | drivers/sound/dmabuf.c | dma_sync (int dev) |
dev | 235 | drivers/sound/dmabuf.c | if (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT) |
dev | 239 | drivers/sound/dmabuf.c | while (!PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) |
dev | 240 | drivers/sound/dmabuf.c | && audio_devs[dev]->dmap->qlen) |
dev | 242 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ); |
dev | 243 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 246 | drivers/sound/dmabuf.c | return audio_devs[dev]->dmap->qlen; |
dev | 257 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) /* Device has hidden buffers */ |
dev | 259 | drivers/sound/dmabuf.c | while (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 260 | drivers/sound/dmabuf.c | && audio_devs[dev]->local_qlen (dev)) |
dev | 262 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ); |
dev | 267 | drivers/sound/dmabuf.c | return audio_devs[dev]->dmap->qlen; |
dev | 271 | drivers/sound/dmabuf.c | DMAbuf_release (int dev, int mode) |
dev | 275 | drivers/sound/dmabuf.c | if (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 276 | drivers/sound/dmabuf.c | && (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT)) |
dev | 278 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 282 | drivers/sound/dmabuf.c | sound_dma_free (dev); |
dev | 286 | drivers/sound/dmabuf.c | audio_devs[dev]->reset (dev); |
dev | 288 | drivers/sound/dmabuf.c | audio_devs[dev]->close (dev); |
dev | 290 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap->dma_mode = DMODE_NONE; |
dev | 291 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap->flags &= ~DMA_BUSY; |
dev | 298 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
dev | 302 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 309 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 315 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 316 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 321 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 327 | drivers/sound/dmabuf.c | if ((err = audio_devs[dev]->prepare_for_input (dev, |
dev | 338 | drivers/sound/dmabuf.c | audio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail], |
dev | 340 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE) || |
dev | 347 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ); |
dev | 348 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 352 | drivers/sound/dmabuf.c | SET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 369 | drivers/sound/dmabuf.c | DMAbuf_rmchars (int dev, int buff_no, int c) |
dev | 371 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 380 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 391 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 393 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 398 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 403 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 404 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 410 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 469 | drivers/sound/dmabuf.c | if (dmap->fragment_size > audio_devs[dev]->buffsize) |
dev | 470 | drivers/sound/dmabuf.c | dmap->fragment_size = audio_devs[dev]->buffsize; |
dev | 472 | drivers/sound/dmabuf.c | if (dmap->fragment_size == audio_devs[dev]->buffsize && |
dev | 473 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 482 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
dev | 489 | drivers/sound/dmabuf.c | space_in_queue (int dev) |
dev | 492 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 505 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) |
dev | 507 | drivers/sound/dmabuf.c | tmp = audio_devs[dev]->local_qlen (dev); |
dev | 521 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
dev | 525 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 529 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 534 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 535 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 541 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 548 | drivers/sound/dmabuf.c | if ((err = audio_devs[dev]->prepare_for_output (dev, |
dev | 557 | drivers/sound/dmabuf.c | while (!space_in_queue (dev) && |
dev | 563 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ); |
dev | 564 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 569 | drivers/sound/dmabuf.c | SET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 571 | drivers/sound/dmabuf.c | else if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 579 | drivers/sound/dmabuf.c | if (!space_in_queue (dev)) |
dev | 592 | drivers/sound/dmabuf.c | DMAbuf_start_output (int dev, int buff_no, int l) |
dev | 594 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 602 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 607 | drivers/sound/dmabuf.c | ((audio_devs[dev]->flags & DMA_AUTOMODE) && |
dev | 608 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & NEEDS_RESTART)) |
dev | 618 | drivers/sound/dmabuf.c | audio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead], |
dev | 620 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE) || |
dev | 629 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
dev | 631 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 632 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 644 | drivers/sound/dmabuf.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 661 | drivers/sound/dmabuf.c | printk ("sound: Invalid DMA mode for device %d\n", dev); |
dev | 670 | drivers/sound/dmabuf.c | printk ("sound: Invalid DMA mode for device %d\n", dev); |
dev | 723 | drivers/sound/dmabuf.c | int dev; |
dev | 729 | drivers/sound/dmabuf.c | for (dev = 0; dev < num_audiodevs; dev++) |
dev | 730 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap = &dmaps[dev]; |
dev | 735 | drivers/sound/dmabuf.c | DMAbuf_outputintr (int dev, int event_type) |
dev | 748 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 755 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 765 | drivers/sound/dmabuf.c | audio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead], |
dev | 767 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE)); |
dev | 773 | drivers/sound/dmabuf.c | audio_devs[dev]->halt_xfer (dev); |
dev | 774 | drivers/sound/dmabuf.c | if ((audio_devs[dev]->flags & DMA_AUTOMODE) && |
dev | 775 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & NEEDS_RESTART) |
dev | 783 | drivers/sound/dmabuf.c | if (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 785 | drivers/sound/dmabuf.c | WAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 791 | drivers/sound/dmabuf.c | DMAbuf_inputintr (int dev) |
dev | 794 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 800 | drivers/sound/dmabuf.c | audio_devs[dev]->halt_xfer (dev); |
dev | 802 | drivers/sound/dmabuf.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 812 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 815 | drivers/sound/dmabuf.c | audio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail], |
dev | 817 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE)); |
dev | 822 | drivers/sound/dmabuf.c | if (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 824 | drivers/sound/dmabuf.c | WAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 830 | drivers/sound/dmabuf.c | DMAbuf_open_dma (int dev) |
dev | 833 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 852 | drivers/sound/dmabuf.c | DMAbuf_close_dma (int dev) |
dev | 854 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 879 | drivers/sound/dmabuf.c | DMAbuf_open (int dev, int mode) |
dev | 885 | drivers/sound/dmabuf.c | DMAbuf_release (int dev, int mode) |
dev | 891 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
dev | 897 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
dev | 903 | drivers/sound/dmabuf.c | DMAbuf_rmchars (int dev, int buff_no, int c) |
dev | 909 | drivers/sound/dmabuf.c | DMAbuf_start_output (int dev, int buff_no, int l) |
dev | 915 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 927 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
dev | 951 | drivers/sound/dmabuf.c | DMAbuf_inputintr (int dev) |
dev | 957 | drivers/sound/dmabuf.c | DMAbuf_outputintr (int dev, int underrun_flag) |
dev | 43 | drivers/sound/gus_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 53 | drivers/sound/gus_midi.c | gus_midi_open (int dev, int mode, |
dev | 54 | drivers/sound/gus_midi.c | void (*input) (int dev, unsigned char data), |
dev | 55 | drivers/sound/gus_midi.c | void (*output) (int dev) |
dev | 122 | drivers/sound/gus_midi.c | gus_midi_close (int dev) |
dev | 133 | drivers/sound/gus_midi.c | gus_midi_out (int dev, unsigned char midi_byte) |
dev | 183 | drivers/sound/gus_midi.c | gus_midi_start_read (int dev) |
dev | 189 | drivers/sound/gus_midi.c | gus_midi_end_read (int dev) |
dev | 195 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 201 | drivers/sound/gus_midi.c | gus_midi_kick (int dev) |
dev | 206 | drivers/sound/gus_midi.c | gus_midi_buffer_status (int dev) |
dev | 839 | drivers/sound/gus_wave.c | guswave_ioctl (int dev, |
dev | 869 | drivers/sound/gus_wave.c | guswave_set_instr (int dev, int voice, int instr_no) |
dev | 907 | drivers/sound/gus_wave.c | guswave_kill_note (int dev, int voice, int note, int velocity) |
dev | 928 | drivers/sound/gus_wave.c | guswave_aftertouch (int dev, int voice, int pressure) |
dev | 970 | drivers/sound/gus_wave.c | guswave_panning (int dev, int voice, int value) |
dev | 977 | drivers/sound/gus_wave.c | guswave_volume_method (int dev, int mode) |
dev | 1114 | drivers/sound/gus_wave.c | guswave_controller (int dev, int voice, int ctrl_num, int value) |
dev | 1173 | drivers/sound/gus_wave.c | guswave_start_note2 (int dev, int voice, int note_num, int volume) |
dev | 1368 | drivers/sound/gus_wave.c | guswave_start_note (int dev, int voice, int note_num, int volume) |
dev | 1382 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
dev | 1408 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
dev | 1412 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
dev | 1428 | drivers/sound/gus_wave.c | guswave_reset (int dev) |
dev | 1440 | drivers/sound/gus_wave.c | guswave_open (int dev, int mode) |
dev | 1462 | drivers/sound/gus_wave.c | guswave_close (int dev) |
dev | 1472 | drivers/sound/gus_wave.c | guswave_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 1715 | drivers/sound/gus_wave.c | pmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0); |
dev | 1721 | drivers/sound/gus_wave.c | guswave_hw_control (int dev, unsigned char *event) |
dev | 1748 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, p1); |
dev | 1907 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 1967 | drivers/sound/gus_wave.c | gus_sampling_reset (int dev) |
dev | 1972 | drivers/sound/gus_wave.c | gus_sampling_open (int dev, int mode) |
dev | 2004 | drivers/sound/gus_wave.c | gus_sampling_close (int dev) |
dev | 2157 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
dev | 2192 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
dev | 2197 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
dev | 2214 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
dev | 2244 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
dev | 2250 | drivers/sound/gus_wave.c | pcm_current_dev = dev; |
dev | 2251 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
dev | 2255 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
dev | 2263 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 2267 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
dev | 2279 | drivers/sound/gus_wave.c | gus_sampling_prepare_for_input (int dev, int bsize, int bcount) |
dev | 2297 | drivers/sound/gus_wave.c | gus_sampling_prepare_for_output (int dev, int bsize, int bcount) |
dev | 2328 | drivers/sound/gus_wave.c | gus_local_qlen (int dev) |
dev | 2334 | drivers/sound/gus_wave.c | gus_copy_from_user (int dev, char *localbuf, int localoffs, |
dev | 2404 | drivers/sound/gus_wave.c | guswave_bender (int dev, int voice, int value) |
dev | 2421 | drivers/sound/gus_wave.c | guswave_patchmgr (int dev, struct patmgr_info *rec) |
dev | 2604 | drivers/sound/gus_wave.c | guswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc) |
dev | 2703 | drivers/sound/gus_wave.c | gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 81 | drivers/sound/ics2101.c | write_mix (int dev, int chn, int vol) |
dev | 85 | drivers/sound/ics2101.c | int ctrl_addr = dev << 3; |
dev | 86 | drivers/sound/ics2101.c | int attn_addr = dev << 3; |
dev | 105 | drivers/sound/ics2101.c | OUTB (selector[dev], u_MixData); |
dev | 112 | drivers/sound/ics2101.c | set_volumes (int dev, int vol) |
dev | 126 | drivers/sound/ics2101.c | write_mix (dev, CHN_LEFT, left); |
dev | 127 | drivers/sound/ics2101.c | write_mix (dev, CHN_RIGHT, right); |
dev | 130 | drivers/sound/ics2101.c | volumes[dev] = vol; |
dev | 135 | drivers/sound/ics2101.c | ics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 143 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
dev | 176 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
dev | 79 | drivers/sound/midi_synth.c | midi_synth_input (int dev, unsigned char data) |
dev | 83 | drivers/sound/midi_synth.c | if (dev < 0 || dev > num_synths) |
dev | 89 | drivers/sound/midi_synth.c | orig_dev = midi2synth[dev]; |
dev | 94 | drivers/sound/midi_synth.c | midi_synth_output (int dev) |
dev | 102 | drivers/sound/midi_synth.c | midi_synth_ioctl (int dev, |
dev | 113 | drivers/sound/midi_synth.c | IOCTL_TO_USER ((char *) arg, 0, synth_devs[dev]->info, |
dev | 129 | drivers/sound/midi_synth.c | midi_synth_kill_note (int dev, int channel, int note, int velocity) |
dev | 131 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 195 | drivers/sound/midi_synth.c | midi_synth_set_instr (int dev, int channel, int instr_no) |
dev | 197 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 215 | drivers/sound/midi_synth.c | midi_synth_start_note (int dev, int channel, int note, int velocity) |
dev | 217 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 255 | drivers/sound/midi_synth.c | midi_synth_reset (int dev) |
dev | 260 | drivers/sound/midi_synth.c | midi_synth_open (int dev, int mode) |
dev | 262 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 268 | drivers/sound/midi_synth.c | midi2synth[orig_dev] = dev; |
dev | 279 | drivers/sound/midi_synth.c | midi_synth_close (int dev) |
dev | 281 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 292 | drivers/sound/midi_synth.c | midi_synth_hw_control (int dev, unsigned char *event) |
dev | 297 | drivers/sound/midi_synth.c | midi_synth_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 300 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 379 | drivers/sound/midi_synth.c | midi_synth_panning (int dev, int channel, int pressure) |
dev | 384 | drivers/sound/midi_synth.c | midi_synth_aftertouch (int dev, int channel, int pressure) |
dev | 386 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 413 | drivers/sound/midi_synth.c | midi_synth_controller (int dev, int channel, int ctrl_num, int value) |
dev | 415 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 440 | drivers/sound/midi_synth.c | midi_synth_patchmgr (int dev, struct patmgr_info *rec) |
dev | 446 | drivers/sound/midi_synth.c | midi_synth_bender (int dev, int channel, int value) |
dev | 448 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 1 | drivers/sound/midi_synth.h | int midi_synth_ioctl (int dev, |
dev | 3 | drivers/sound/midi_synth.h | int midi_synth_kill_note (int dev, int channel, int note, int velocity); |
dev | 4 | drivers/sound/midi_synth.h | int midi_synth_set_instr (int dev, int channel, int instr_no); |
dev | 5 | drivers/sound/midi_synth.h | int midi_synth_start_note (int dev, int channel, int note, int volume); |
dev | 6 | drivers/sound/midi_synth.h | void midi_synth_reset (int dev); |
dev | 7 | drivers/sound/midi_synth.h | int midi_synth_open (int dev, int mode); |
dev | 8 | drivers/sound/midi_synth.h | void midi_synth_close (int dev); |
dev | 9 | drivers/sound/midi_synth.h | void midi_synth_hw_control (int dev, unsigned char *event); |
dev | 10 | drivers/sound/midi_synth.h | int midi_synth_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 12 | drivers/sound/midi_synth.h | void midi_synth_panning (int dev, int channel, int pressure); |
dev | 13 | drivers/sound/midi_synth.h | void midi_synth_aftertouch (int dev, int channel, int pressure); |
dev | 14 | drivers/sound/midi_synth.h | void midi_synth_controller (int dev, int channel, int ctrl_num, int value); |
dev | 15 | drivers/sound/midi_synth.h | int midi_synth_patchmgr (int dev, struct patmgr_info *rec); |
dev | 16 | drivers/sound/midi_synth.h | void midi_synth_bender (int dev, int chn, int value); |
dev | 91 | drivers/sound/midibuf.c | drain_midi_queue (int dev) |
dev | 98 | drivers/sound/midibuf.c | if (midi_devs[dev]->buffer_status != NULL) |
dev | 99 | drivers/sound/midibuf.c | while (!PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]) && |
dev | 100 | drivers/sound/midibuf.c | midi_devs[dev]->buffer_status (dev)) |
dev | 101 | drivers/sound/midibuf.c | DO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], HZ / 10); |
dev | 105 | drivers/sound/midibuf.c | midi_input_intr (int dev, unsigned char data) |
dev | 107 | drivers/sound/midibuf.c | if (midi_in_buf[dev] == NULL) |
dev | 117 | drivers/sound/midibuf.c | if (SPACE_AVAIL (midi_in_buf[dev])) |
dev | 119 | drivers/sound/midibuf.c | QUEUE_BYTE (midi_in_buf[dev], data); |
dev | 120 | drivers/sound/midibuf.c | if (SOMEONE_WAITING (input_sleeper[dev], input_sleep_flag[dev])) |
dev | 121 | drivers/sound/midibuf.c | WAKE_UP (input_sleeper[dev], input_sleep_flag[dev]); |
dev | 127 | drivers/sound/midibuf.c | midi_output_intr (int dev) |
dev | 138 | drivers/sound/midibuf.c | int dev; |
dev | 143 | drivers/sound/midibuf.c | for (dev = 0; dev < num_midis; dev++) |
dev | 144 | drivers/sound/midibuf.c | if (midi_out_buf[dev] != NULL) |
dev | 146 | drivers/sound/midibuf.c | while (DATA_AVAIL (midi_out_buf[dev]) && |
dev | 147 | drivers/sound/midibuf.c | midi_devs[dev]->putc (dev, |
dev | 148 | drivers/sound/midibuf.c | midi_out_buf[dev]->queue[midi_out_buf[dev]->head])) |
dev | 150 | drivers/sound/midibuf.c | midi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE; |
dev | 151 | drivers/sound/midibuf.c | midi_out_buf[dev]->len--; |
dev | 154 | drivers/sound/midibuf.c | if (DATA_AVAIL (midi_out_buf[dev]) < 100 && |
dev | 155 | drivers/sound/midibuf.c | SOMEONE_WAITING (midi_sleeper[dev], midi_sleep_flag[dev])) |
dev | 156 | drivers/sound/midibuf.c | WAKE_UP (midi_sleeper[dev], midi_sleep_flag[dev]); |
dev | 166 | drivers/sound/midibuf.c | MIDIbuf_open (int dev, struct fileinfo *file) |
dev | 171 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 180 | drivers/sound/midibuf.c | if (dev < 0 || dev >= num_midis) |
dev | 182 | drivers/sound/midibuf.c | printk ("Sound: Nonexistent MIDI interface %d\n", dev); |
dev | 191 | drivers/sound/midibuf.c | if ((err = midi_devs[dev]->open (dev, mode, |
dev | 198 | drivers/sound/midibuf.c | parms[dev].prech_timeout = 0; |
dev | 200 | drivers/sound/midibuf.c | RESET_WAIT_QUEUE (midi_sleeper[dev], midi_sleep_flag[dev]); |
dev | 201 | drivers/sound/midibuf.c | RESET_WAIT_QUEUE (input_sleeper[dev], input_sleep_flag[dev]); |
dev | 203 | drivers/sound/midibuf.c | midi_in_buf[dev] = (struct midi_buf *) KERNEL_MALLOC (sizeof (struct midi_buf)); |
dev | 205 | drivers/sound/midibuf.c | if (midi_in_buf[dev] == NULL) |
dev | 208 | drivers/sound/midibuf.c | midi_devs[dev]->close (dev); |
dev | 212 | drivers/sound/midibuf.c | midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; |
dev | 214 | drivers/sound/midibuf.c | midi_out_buf[dev] = (struct midi_buf *) KERNEL_MALLOC (sizeof (struct midi_buf)); |
dev | 216 | drivers/sound/midibuf.c | if (midi_out_buf[dev] == NULL) |
dev | 219 | drivers/sound/midibuf.c | midi_devs[dev]->close (dev); |
dev | 220 | drivers/sound/midibuf.c | KERNEL_FREE (midi_in_buf[dev]); |
dev | 221 | drivers/sound/midibuf.c | midi_in_buf[dev] = NULL; |
dev | 225 | drivers/sound/midibuf.c | midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; |
dev | 237 | drivers/sound/midibuf.c | MIDIbuf_release (int dev, struct fileinfo *file) |
dev | 242 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 253 | drivers/sound/midibuf.c | midi_devs[dev]->putc (dev, 0xfe); /* |
dev | 258 | drivers/sound/midibuf.c | while (!PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]) && |
dev | 259 | drivers/sound/midibuf.c | DATA_AVAIL (midi_out_buf[dev])) |
dev | 260 | drivers/sound/midibuf.c | DO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], 0); /* |
dev | 264 | drivers/sound/midibuf.c | drain_midi_queue (dev); /* |
dev | 269 | drivers/sound/midibuf.c | midi_devs[dev]->close (dev); |
dev | 270 | drivers/sound/midibuf.c | KERNEL_FREE (midi_in_buf[dev]); |
dev | 271 | drivers/sound/midibuf.c | KERNEL_FREE (midi_out_buf[dev]); |
dev | 272 | drivers/sound/midibuf.c | midi_in_buf[dev] = NULL; |
dev | 273 | drivers/sound/midibuf.c | midi_out_buf[dev] = NULL; |
dev | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 285 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 296 | drivers/sound/midibuf.c | n = SPACE_AVAIL (midi_out_buf[dev]); |
dev | 302 | drivers/sound/midibuf.c | DO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], 0); |
dev | 303 | drivers/sound/midibuf.c | if (PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev])) |
dev | 309 | drivers/sound/midibuf.c | n = SPACE_AVAIL (midi_out_buf[dev]); |
dev | 318 | drivers/sound/midibuf.c | QUEUE_BYTE (midi_out_buf[dev], tmp_data); |
dev | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 336 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 340 | drivers/sound/midibuf.c | if (!DATA_AVAIL (midi_in_buf[dev])) /* |
dev | 344 | drivers/sound/midibuf.c | DO_SLEEP (input_sleeper[dev], input_sleep_flag[dev], |
dev | 345 | drivers/sound/midibuf.c | parms[dev].prech_timeout); |
dev | 346 | drivers/sound/midibuf.c | if (PROCESS_ABORTING (input_sleeper[dev], input_sleep_flag[dev])) |
dev | 352 | drivers/sound/midibuf.c | if (c == 0 && DATA_AVAIL (midi_in_buf[dev])) /* |
dev | 356 | drivers/sound/midibuf.c | n = DATA_AVAIL (midi_in_buf[dev]); |
dev | 363 | drivers/sound/midibuf.c | REMOVE_BYTE (midi_in_buf[dev], tmp_data); |
dev | 375 | drivers/sound/midibuf.c | MIDIbuf_ioctl (int dev, struct fileinfo *file, |
dev | 380 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 391 | drivers/sound/midibuf.c | parms[dev].prech_timeout = val; |
dev | 396 | drivers/sound/midibuf.c | return midi_devs[dev]->ioctl (dev, cmd, arg); |
dev | 402 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 404 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 409 | drivers/sound/midibuf.c | if (!DATA_AVAIL (midi_in_buf[dev])) |
dev | 411 | drivers/sound/midibuf.c | input_sleep_flag[dev].mode = WK_SLEEP; |
dev | 412 | drivers/sound/midibuf.c | select_wait (&input_sleeper[dev], wait); |
dev | 419 | drivers/sound/midibuf.c | if (SPACE_AVAIL (midi_out_buf[dev])) |
dev | 421 | drivers/sound/midibuf.c | midi_sleep_flag[dev].mode = WK_SLEEP; |
dev | 422 | drivers/sound/midibuf.c | select_wait (&midi_sleeper[dev], wait); |
dev | 77 | drivers/sound/mpu401.c | void (*inputintr) (int dev, unsigned char data); |
dev | 107 | drivers/sound/mpu401.c | static void set_uart_mode (int dev, struct mpu_config *devc, int arg); |
dev | 485 | drivers/sound/mpu401.c | int dev; |
dev | 497 | drivers/sound/mpu401.c | dev = irq2dev[irq]; |
dev | 498 | drivers/sound/mpu401.c | if (dev == -1) |
dev | 504 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 513 | drivers/sound/mpu401.c | mpu401_open (int dev, int mode, |
dev | 514 | drivers/sound/mpu401.c | void (*input) (int dev, unsigned char data), |
dev | 515 | drivers/sound/mpu401.c | void (*output) (int dev) |
dev | 521 | drivers/sound/mpu401.c | if (dev < 0 || dev >= num_midis) |
dev | 524 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 532 | drivers/sound/mpu401.c | irq2dev[devc->irq] = dev; |
dev | 536 | drivers/sound/mpu401.c | set_uart_mode (dev, devc, 1); |
dev | 549 | drivers/sound/mpu401.c | mpu401_close (int dev) |
dev | 553 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 568 | drivers/sound/mpu401.c | mpu401_out (int dev, unsigned char midi_byte) |
dev | 575 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 608 | drivers/sound/mpu401.c | mpu401_command (int dev, mpu_command_rec * cmd) |
dev | 615 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 665 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
dev | 701 | drivers/sound/mpu401.c | exec_cmd (int dev, int cmd, int data) |
dev | 712 | drivers/sound/mpu401.c | if ((ret = mpu401_command (dev, &rec)) < 0) |
dev | 718 | drivers/sound/mpu401.c | mpu401_prefix_cmd (int dev, unsigned char status) |
dev | 720 | drivers/sound/mpu401.c | struct mpu_config *devc = &dev_conf[dev]; |
dev | 727 | drivers/sound/mpu401.c | if (exec_cmd (dev, 0xD0, 0) < 0) |
dev | 736 | drivers/sound/mpu401.c | if (exec_cmd (dev, 0xDF, 0) < 0) |
dev | 750 | drivers/sound/mpu401.c | mpu401_start_read (int dev) |
dev | 756 | drivers/sound/mpu401.c | mpu401_end_read (int dev) |
dev | 762 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 766 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 781 | drivers/sound/mpu401.c | set_uart_mode (dev, devc, !IOCTL_IN (arg)); |
dev | 792 | drivers/sound/mpu401.c | if ((ret = mpu401_command (dev, &rec)) < 0) |
dev | 806 | drivers/sound/mpu401.c | mpu401_kick (int dev) |
dev | 811 | drivers/sound/mpu401.c | mpu401_buffer_status (int dev) |
dev | 819 | drivers/sound/mpu401.c | mpu_synth_ioctl (int dev, |
dev | 825 | drivers/sound/mpu401.c | midi_dev = synth_devs[dev]->midi_dev; |
dev | 852 | drivers/sound/mpu401.c | mpu_synth_open (int dev, int mode) |
dev | 857 | drivers/sound/mpu401.c | midi_dev = synth_devs[dev]->midi_dev; |
dev | 872 | drivers/sound/mpu401.c | devc->synthno = dev; |
dev | 891 | drivers/sound/mpu401.c | mpu_synth_close (int dev) |
dev | 896 | drivers/sound/mpu401.c | midi_dev = synth_devs[dev]->midi_dev; |
dev | 1153 | drivers/sound/mpu401.c | set_uart_mode (int dev, struct mpu_config *devc, int arg) |
dev | 1166 | drivers/sound/mpu401.c | if (exec_cmd (dev, UART_MODE_ON, 0) < 0) |
dev | 1336 | drivers/sound/mpu401.c | mpu_timer_open (int dev, int mode) |
dev | 1338 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1359 | drivers/sound/mpu401.c | mpu_timer_close (int dev) |
dev | 1361 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1371 | drivers/sound/mpu401.c | mpu_timer_event (int dev, unsigned char *event) |
dev | 1375 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1449 | drivers/sound/mpu401.c | mpu_timer_get_time (int dev) |
dev | 1458 | drivers/sound/mpu401.c | mpu_timer_ioctl (int dev, |
dev | 1461 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1560 | drivers/sound/mpu401.c | mpu_timer_arm (int dev, long time) |
dev | 89 | drivers/sound/opl3.c | static int opl3_kill_note (int dev, int voice, int note, int velocity); |
dev | 132 | drivers/sound/opl3.c | opl3_ioctl (int dev, |
dev | 150 | drivers/sound/opl3.c | pmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0); |
dev | 293 | drivers/sound/opl3.c | opl3_kill_note (int dev, int voice, int note, int velocity) |
dev | 343 | drivers/sound/opl3.c | opl3_set_instr (int dev, int voice, int instr_no) |
dev | 540 | drivers/sound/opl3.c | opl3_start_note (int dev, int voice, int note, int volume) |
dev | 820 | drivers/sound/opl3.c | opl3_reset (int dev) |
dev | 841 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 0, 64); |
dev | 859 | drivers/sound/opl3.c | opl3_open (int dev, int mode) |
dev | 876 | drivers/sound/opl3.c | opl3_close (int dev) |
dev | 883 | drivers/sound/opl3.c | opl3_reset (dev); |
dev | 887 | drivers/sound/opl3.c | opl3_hw_control (int dev, unsigned char *event) |
dev | 892 | drivers/sound/opl3.c | opl3_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 916 | drivers/sound/opl3.c | opl3_panning (int dev, int voice, int pressure) |
dev | 921 | drivers/sound/opl3.c | opl3_volume_method (int dev, int mode) |
dev | 932 | drivers/sound/opl3.c | opl3_aftertouch (int dev, int voice, int pressure) |
dev | 1002 | drivers/sound/opl3.c | bend_pitch (int dev, int voice, int value) |
dev | 1044 | drivers/sound/opl3.c | opl3_controller (int dev, int voice, int ctrl_num, int value) |
dev | 1052 | drivers/sound/opl3.c | bend_pitch (dev, voice, value); |
dev | 1062 | drivers/sound/opl3.c | opl3_patchmgr (int dev, struct patmgr_info *rec) |
dev | 1068 | drivers/sound/opl3.c | opl3_bender (int dev, int voice, int value) |
dev | 1073 | drivers/sound/opl3.c | bend_pitch (dev, voice, value); |
dev | 1077 | drivers/sound/opl3.c | opl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc) |
dev | 46 | drivers/sound/pas2_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 49 | drivers/sound/pas2_midi.c | pas_midi_open (int dev, int mode, |
dev | 50 | drivers/sound/pas2_midi.c | void (*input) (int dev, unsigned char data), |
dev | 51 | drivers/sound/pas2_midi.c | void (*output) (int dev) |
dev | 118 | drivers/sound/pas2_midi.c | pas_midi_close (int dev) |
dev | 155 | drivers/sound/pas2_midi.c | pas_midi_out (int dev, unsigned char midi_byte) |
dev | 205 | drivers/sound/pas2_midi.c | pas_midi_start_read (int dev) |
dev | 211 | drivers/sound/pas2_midi.c | pas_midi_end_read (int dev) |
dev | 217 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 223 | drivers/sound/pas2_midi.c | pas_midi_kick (int dev) |
dev | 229 | drivers/sound/pas2_midi.c | pas_buffer_status (int dev) |
dev | 306 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 156 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 223 | drivers/sound/pas2_pcm.c | pas_pcm_reset (int dev) |
dev | 231 | drivers/sound/pas2_pcm.c | pas_pcm_open (int dev, int mode) |
dev | 240 | drivers/sound/pas2_pcm.c | if (DMAbuf_open_dma (dev) < 0) |
dev | 252 | drivers/sound/pas2_pcm.c | pas_pcm_close (int dev) |
dev | 260 | drivers/sound/pas2_pcm.c | pas_pcm_reset (dev); |
dev | 261 | drivers/sound/pas2_pcm.c | DMAbuf_close_dma (dev); |
dev | 269 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
dev | 277 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
dev | 280 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 293 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 295 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
dev | 317 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
dev | 326 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
dev | 339 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 341 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
dev | 363 | drivers/sound/pas2_pcm.c | pas_pcm_prepare_for_input (int dev, int bsize, int bcount) |
dev | 368 | drivers/sound/pas2_pcm.c | pas_pcm_prepare_for_output (int dev, int bsize, int bcount) |
dev | 52 | drivers/sound/patmgr.c | pmgr_open (int dev) |
dev | 54 | drivers/sound/patmgr.c | if (dev < 0 || dev >= num_synths) |
dev | 57 | drivers/sound/patmgr.c | if (pmgr_opened[dev]) |
dev | 59 | drivers/sound/patmgr.c | pmgr_opened[dev] = 1; |
dev | 61 | drivers/sound/patmgr.c | RESET_WAIT_QUEUE (server_procs[dev], server_wait_flag[dev]); |
dev | 67 | drivers/sound/patmgr.c | pmgr_release (int dev) |
dev | 70 | drivers/sound/patmgr.c | if (mbox[dev]) /* |
dev | 75 | drivers/sound/patmgr.c | mbox[dev]->key = PM_ERROR; |
dev | 76 | drivers/sound/patmgr.c | mbox[dev]->parm1 = RET_ERROR (EIO); |
dev | 82 | drivers/sound/patmgr.c | pmgr_opened[dev] = 0; |
dev | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 93 | drivers/sound/patmgr.c | printk ("PATMGR%d: Invalid read count\n", dev); |
dev | 97 | drivers/sound/patmgr.c | while (!ok && !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev])) |
dev | 101 | drivers/sound/patmgr.c | while (!(mbox[dev] && msg_direction[dev] == A_TO_S) && |
dev | 102 | drivers/sound/patmgr.c | !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev])) |
dev | 104 | drivers/sound/patmgr.c | DO_SLEEP (server_procs[dev], server_wait_flag[dev], 0); |
dev | 107 | drivers/sound/patmgr.c | if (mbox[dev] && msg_direction[dev] == A_TO_S) |
dev | 109 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
dev | 110 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 130 | drivers/sound/patmgr.c | printk ("PATMGR%d: Write count < 4\n", dev); |
dev | 134 | drivers/sound/patmgr.c | COPY_FROM_USER (mbox[dev], buf, 0, 4); |
dev | 136 | drivers/sound/patmgr.c | if (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE) |
dev | 140 | drivers/sound/patmgr.c | tmp_dev = ((unsigned short *) mbox[dev])[2]; |
dev | 141 | drivers/sound/patmgr.c | if (tmp_dev != dev) |
dev | 144 | drivers/sound/patmgr.c | return synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev], |
dev | 150 | drivers/sound/patmgr.c | printk ("PATMGR%d: Invalid write count\n", dev); |
dev | 161 | drivers/sound/patmgr.c | if (mbox[dev] && !msg_direction[dev]) |
dev | 163 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
dev | 164 | drivers/sound/patmgr.c | msg_direction[dev] = S_TO_A; |
dev | 178 | drivers/sound/patmgr.c | pmgr_access (int dev, struct patmgr_info *rec) |
dev | 185 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 186 | drivers/sound/patmgr.c | printk (" PATMGR: Server %d mbox full. Why?\n", dev); |
dev | 190 | drivers/sound/patmgr.c | mbox[dev] = rec; |
dev | 191 | drivers/sound/patmgr.c | msg_direction[dev] = A_TO_S; |
dev | 193 | drivers/sound/patmgr.c | if (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev])) |
dev | 195 | drivers/sound/patmgr.c | WAKE_UP (server_procs[dev], server_wait_flag[dev]); |
dev | 200 | drivers/sound/patmgr.c | if (msg_direction[dev] != S_TO_A) |
dev | 212 | drivers/sound/patmgr.c | mbox[dev] = NULL; |
dev | 213 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 222 | drivers/sound/patmgr.c | pmgr_inform (int dev, int event, unsigned long p1, unsigned long p2, |
dev | 228 | drivers/sound/patmgr.c | if (!pmgr_opened[dev]) |
dev | 233 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 234 | drivers/sound/patmgr.c | printk (" PATMGR: Server %d mbox full. Why?\n", dev); |
dev | 237 | drivers/sound/patmgr.c | mbox[dev] = |
dev | 240 | drivers/sound/patmgr.c | mbox[dev]->key = PM_K_EVENT; |
dev | 241 | drivers/sound/patmgr.c | mbox[dev]->command = event; |
dev | 242 | drivers/sound/patmgr.c | mbox[dev]->parm1 = p1; |
dev | 243 | drivers/sound/patmgr.c | mbox[dev]->parm2 = p2; |
dev | 244 | drivers/sound/patmgr.c | mbox[dev]->parm3 = p3; |
dev | 245 | drivers/sound/patmgr.c | msg_direction[dev] = A_TO_S; |
dev | 247 | drivers/sound/patmgr.c | if (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev])) |
dev | 249 | drivers/sound/patmgr.c | WAKE_UP (server_procs[dev], server_wait_flag[dev]); |
dev | 253 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 254 | drivers/sound/patmgr.c | KERNEL_FREE (mbox[dev]); |
dev | 255 | drivers/sound/patmgr.c | mbox[dev] = NULL; |
dev | 256 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 758 | drivers/sound/pss.c | pss_open (int dev, struct fileinfo *file) |
dev | 772 | drivers/sound/pss.c | dev = dev >> 4; |
dev | 785 | drivers/sound/pss.c | pss_release (int dev, struct fileinfo *file) |
dev | 793 | drivers/sound/pss.c | dev = dev >> 4; |
dev | 810 | drivers/sound/pss.c | pss_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 818 | drivers/sound/pss.c | dev = dev >> 4; |
dev | 826 | drivers/sound/pss.c | pss_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 831 | drivers/sound/pss.c | dev = dev >> 4; |
dev | 843 | drivers/sound/pss.c | pss_ioctl (int dev, struct fileinfo *file, |
dev | 846 | drivers/sound/pss.c | DEB (printk ("pss_ioctl dev=%d cmd=%x\n", dev, cmd)); |
dev | 850 | drivers/sound/pss.c | dev = dev >> 4; |
dev | 885 | drivers/sound/pss.c | pss_select (int dev, struct fileinfo * file, int sel_type, select_table * wait) |
dev | 891 | drivers/sound/pss.c | dev = dev >> 4; |
dev | 69 | drivers/sound/sb16_dsp.c | static int sb16_dsp_open (int dev, int mode); |
dev | 70 | drivers/sound/sb16_dsp.c | static void sb16_dsp_close (int dev); |
dev | 71 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 72 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 73 | drivers/sound/sb16_dsp.c | static int sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 74 | drivers/sound/sb16_dsp.c | static int sb16_dsp_prepare_for_input (int dev, int bsize, int bcount); |
dev | 75 | drivers/sound/sb16_dsp.c | static int sb16_dsp_prepare_for_output (int dev, int bsize, int bcount); |
dev | 76 | drivers/sound/sb16_dsp.c | static void sb16_dsp_reset (int dev); |
dev | 77 | drivers/sound/sb16_dsp.c | static void sb16_dsp_halt (int dev); |
dev | 159 | drivers/sound/sb16_dsp.c | sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 211 | drivers/sound/sb16_dsp.c | sb16_dsp_open (int dev, int mode) |
dev | 254 | drivers/sound/sb16_dsp.c | sb16_dsp_close (int dev) |
dev | 274 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 287 | drivers/sound/sb16_dsp.c | int pos, chan = audio_devs[dev]->dmachan; |
dev | 298 | drivers/sound/sb16_dsp.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 312 | drivers/sound/sb16_dsp.c | sb16_dsp_halt (dev); |
dev | 313 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 331 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 344 | drivers/sound/sb16_dsp.c | int pos, chan = audio_devs[dev]->dmachan; |
dev | 355 | drivers/sound/sb16_dsp.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 370 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 389 | drivers/sound/sb16_dsp.c | sb16_dsp_prepare_for_input (int dev, int bsize, int bcount) |
dev | 398 | drivers/sound/sb16_dsp.c | sb16_dsp_prepare_for_output (int dev, int bsize, int bcount) |
dev | 414 | drivers/sound/sb16_dsp.c | sb16_dsp_reset (int dev) |
dev | 427 | drivers/sound/sb16_dsp.c | sb16_dsp_halt (int dev) |
dev | 62 | drivers/sound/sb16_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 84 | drivers/sound/sb16_midi.c | sb16midi_open (int dev, int mode, |
dev | 85 | drivers/sound/sb16_midi.c | void (*input) (int dev, unsigned char data), |
dev | 86 | drivers/sound/sb16_midi.c | void (*output) (int dev) |
dev | 103 | drivers/sound/sb16_midi.c | sb16midi_close (int dev) |
dev | 109 | drivers/sound/sb16_midi.c | sb16midi_out (int dev, unsigned char midi_byte) |
dev | 145 | drivers/sound/sb16_midi.c | sb16midi_start_read (int dev) |
dev | 151 | drivers/sound/sb16_midi.c | sb16midi_end_read (int dev) |
dev | 157 | drivers/sound/sb16_midi.c | sb16midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 163 | drivers/sound/sb16_midi.c | sb16midi_kick (int dev) |
dev | 168 | drivers/sound/sb16_midi.c | sb16midi_buffer_status (int dev) |
dev | 394 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
dev | 403 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 405 | drivers/sound/sb_dsp.c | if (audio_devs[dev]->dmachan > 3) |
dev | 444 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
dev | 457 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 459 | drivers/sound/sb_dsp.c | if (audio_devs[dev]->dmachan > 3) |
dev | 505 | drivers/sound/sb_dsp.c | sb_dsp_prepare_for_input (int dev, int bsize, int bcount) |
dev | 528 | drivers/sound/sb_dsp.c | sb_dsp_prepare_for_output (int dev, int bsize, int bcount) |
dev | 549 | drivers/sound/sb_dsp.c | sb_dsp_halt_xfer (int dev) |
dev | 590 | drivers/sound/sb_dsp.c | sb_dsp_open (int dev, int mode) |
dev | 619 | drivers/sound/sb_dsp.c | if (DMAbuf_open_dma (dev) < 0) |
dev | 635 | drivers/sound/sb_dsp.c | sb_dsp_close (int dev) |
dev | 637 | drivers/sound/sb_dsp.c | DMAbuf_close_dma (dev); |
dev | 647 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 703 | drivers/sound/sb_dsp.c | sb_dsp_reset (int dev) |
dev | 64 | drivers/sound/sb_midi.c | void (*midi_input_intr) (int dev, unsigned char data); |
dev | 67 | drivers/sound/sb_midi.c | sb_midi_open (int dev, int mode, |
dev | 68 | drivers/sound/sb_midi.c | void (*input) (int dev, unsigned char data), |
dev | 69 | drivers/sound/sb_midi.c | void (*output) (int dev) |
dev | 133 | drivers/sound/sb_midi.c | sb_midi_close (int dev) |
dev | 148 | drivers/sound/sb_midi.c | sb_midi_out (int dev, unsigned char midi_byte) |
dev | 170 | drivers/sound/sb_midi.c | sb_midi_start_read (int dev) |
dev | 181 | drivers/sound/sb_midi.c | sb_midi_end_read (int dev) |
dev | 192 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 155 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
dev | 160 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
dev | 165 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
dev | 176 | drivers/sound/sb_mixer.c | sb_mixer_get (int dev) |
dev | 178 | drivers/sound/sb_mixer.c | if (!((1 << dev) & supported_devices)) |
dev | 181 | drivers/sound/sb_mixer.c | return levels[dev]; |
dev | 185 | drivers/sound/sb_mixer.c | sb_mixer_set (int dev, int value) |
dev | 198 | drivers/sound/sb_mixer.c | if (dev > 31) |
dev | 201 | drivers/sound/sb_mixer.c | if (!(supported_devices & (1 << dev))) /* |
dev | 206 | drivers/sound/sb_mixer.c | regoffs = (*iomap)[dev][LEFT_CHN].regno; |
dev | 212 | drivers/sound/sb_mixer.c | change_bits (&val, dev, LEFT_CHN, left); |
dev | 214 | drivers/sound/sb_mixer.c | levels[dev] = left | (left << 8); |
dev | 216 | drivers/sound/sb_mixer.c | if ((*iomap)[dev][RIGHT_CHN].regno != regoffs) /* |
dev | 223 | drivers/sound/sb_mixer.c | regoffs = (*iomap)[dev][RIGHT_CHN].regno; |
dev | 235 | drivers/sound/sb_mixer.c | change_bits (&val, dev, RIGHT_CHN, right); |
dev | 238 | drivers/sound/sb_mixer.c | levels[dev] = left | (right << 8); |
dev | 328 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 98 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 104 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 108 | drivers/sound/sequencer.c | if (dev) /* |
dev | 111 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
dev | 141 | drivers/sound/sequencer.c | sequencer_midi_output (int dev) |
dev | 178 | drivers/sound/sequencer.c | sequencer_midi_input (int dev, unsigned char data) |
dev | 197 | drivers/sound/sequencer.c | event[2] = dev; |
dev | 231 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 238 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 240 | drivers/sound/sequencer.c | DEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count)); |
dev | 245 | drivers/sound/sequencer.c | if (dev) /* |
dev | 248 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
dev | 261 | drivers/sound/sequencer.c | dev = *(unsigned short *) &event[2]; |
dev | 262 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_synthdev) |
dev | 265 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 268 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
dev | 311 | drivers/sound/sequencer.c | int dev = event[2]; |
dev | 313 | drivers/sound/sequencer.c | if (dev >= max_mididev) |
dev | 315 | drivers/sound/sequencer.c | printk ("Sequencer Error: Nonexistent MIDI device %d\n", dev); |
dev | 321 | drivers/sound/sequencer.c | if ((err = midi_devs[dev]->open (dev, mode, |
dev | 325 | drivers/sound/sequencer.c | printk ("Sequencer Error: Unable to open Midi #%d\n", dev); |
dev | 329 | drivers/sound/sequencer.c | midi_opened[dev] = 1; |
dev | 390 | drivers/sound/sequencer.c | int dev = q[2]; |
dev | 392 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_synthdev) |
dev | 395 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 401 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, q[3], q[4], q[5]); |
dev | 408 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, q[3], q[4], q[5]); |
dev | 412 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, q[3], q[4]); |
dev | 416 | drivers/sound/sequencer.c | synth_devs[dev]->aftertouch (dev, q[3], q[4]); |
dev | 420 | drivers/sound/sequencer.c | synth_devs[dev]->panning (dev, q[3], (char) q[4]); |
dev | 424 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]); |
dev | 428 | drivers/sound/sequencer.c | if (synth_devs[dev]->volume_method != NULL) |
dev | 429 | drivers/sound/sequencer.c | synth_devs[dev]->volume_method (dev, q[3]); |
dev | 440 | drivers/sound/sequencer.c | find_voice (int dev, int chn, int note) |
dev | 447 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
dev | 448 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc.map[i] == key) |
dev | 455 | drivers/sound/sequencer.c | alloc_voice (int dev, int chn, int note) |
dev | 462 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
dev | 463 | drivers/sound/sequencer.c | &synth_devs[dev]->alloc); |
dev | 464 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.map[voice] = key; |
dev | 471 | drivers/sound/sequencer.c | unsigned char dev = event[1]; |
dev | 478 | drivers/sound/sequencer.c | if ((int) dev > max_synthdev) |
dev | 480 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 482 | drivers/sound/sequencer.c | if (!synth_devs[dev]) |
dev | 487 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc_voice) |
dev | 488 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
dev | 503 | drivers/sound/sequencer.c | if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) |
dev | 505 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
dev | 513 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, voice, |
dev | 514 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num); |
dev | 517 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, voice, note, parm); |
dev | 523 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, voice, note, parm); |
dev | 537 | drivers/sound/sequencer.c | unsigned char dev = event[1]; |
dev | 545 | drivers/sound/sequencer.c | if ((int) dev > max_synthdev) |
dev | 547 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 549 | drivers/sound/sequencer.c | if (!synth_devs[dev]) |
dev | 557 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
dev | 560 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
dev | 580 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0xff; |
dev | 582 | drivers/sound/sequencer.c | if (dev < num_synths) |
dev | 588 | drivers/sound/sequencer.c | val = ((synth_devs[dev]-> |
dev | 590 | drivers/sound/sequencer.c | | (synth_devs[dev]-> |
dev | 595 | drivers/sound/sequencer.c | val = synth_devs[dev]->chn_info[chn].controllers[p1]; |
dev | 597 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, val); |
dev | 600 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
dev | 603 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
dev | 607 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
dev | 804 | drivers/sound/sequencer.c | int dev; |
dev | 806 | drivers/sound/sequencer.c | dev = q[2]; |
dev | 808 | drivers/sound/sequencer.c | if (!midi_devs[dev]->putc (dev, q[1])) |
dev | 823 | drivers/sound/sequencer.c | midi_written[dev] = 1; |
dev | 883 | drivers/sound/sequencer.c | reset_controllers (int dev, unsigned char *controller, int update_dev) |
dev | 896 | drivers/sound/sequencer.c | int dev; |
dev | 900 | drivers/sound/sequencer.c | for (dev = 0; dev < num_midis; dev++) |
dev | 901 | drivers/sound/sequencer.c | if (midi_devs[dev]->converter != NULL) |
dev | 904 | drivers/sound/sequencer.c | midi_devs[dev]->converter; |
dev | 907 | drivers/sound/sequencer.c | for (dev = 0; dev < max_synthdev; dev++) |
dev | 913 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = 0; |
dev | 914 | drivers/sound/sequencer.c | reset_controllers (dev, |
dev | 915 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers, |
dev | 925 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
dev | 930 | drivers/sound/sequencer.c | level = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1; |
dev | 932 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 935 | drivers/sound/sequencer.c | DEB (printk ("sequencer_open(dev=%d)\n", dev)); |
dev | 943 | drivers/sound/sequencer.c | if (dev) /* |
dev | 949 | drivers/sound/sequencer.c | dev--; |
dev | 951 | drivers/sound/sequencer.c | if (dev >= MAX_SYNTH_DEV) |
dev | 953 | drivers/sound/sequencer.c | if (pmgr_present[dev]) |
dev | 955 | drivers/sound/sequencer.c | if ((err = pmgr_open (dev)) < 0) |
dev | 960 | drivers/sound/sequencer.c | pmgr_present[dev] = 1; |
dev | 1115 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
dev | 1120 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 1122 | drivers/sound/sequencer.c | DEB (printk ("sequencer_release(dev=%d)\n", dev)); |
dev | 1124 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1128 | drivers/sound/sequencer.c | dev--; |
dev | 1129 | drivers/sound/sequencer.c | pmgr_release (dev); |
dev | 1130 | drivers/sound/sequencer.c | pmgr_present[dev] = 0; |
dev | 1198 | drivers/sound/sequencer.c | midi_outc (int dev, unsigned char data) |
dev | 1220 | drivers/sound/sequencer.c | while (n && !midi_devs[dev]->putc (dev, data)) |
dev | 1325 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 1331 | drivers/sound/sequencer.c | orig_dev = dev = dev >> 4; |
dev | 1342 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 1351 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 1372 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1388 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1398 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1424 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1442 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 1458 | drivers/sound/sequencer.c | dev = IOCTL_IN (arg); |
dev | 1459 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1462 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 1465 | drivers/sound/sequencer.c | if (!orig_dev && pmgr_present[dev]) |
dev | 1466 | drivers/sound/sequencer.c | pmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0); |
dev | 1468 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 1481 | drivers/sound/sequencer.c | int dev = IOCTL_IN (arg); |
dev | 1483 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1486 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 1489 | drivers/sound/sequencer.c | return IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
dev | 1495 | drivers/sound/sequencer.c | int dev = IOCTL_IN (arg); |
dev | 1497 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1500 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 1503 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 1511 | drivers/sound/sequencer.c | int dev; |
dev | 1514 | drivers/sound/sequencer.c | dev = inf.device; |
dev | 1516 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_synthdev) |
dev | 1519 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 1522 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 1529 | drivers/sound/sequencer.c | int dev; |
dev | 1532 | drivers/sound/sequencer.c | dev = inf.device; |
dev | 1534 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_mididev) |
dev | 1537 | drivers/sound/sequencer.c | IOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf)); |
dev | 1545 | drivers/sound/sequencer.c | int dev, err; |
dev | 1550 | drivers/sound/sequencer.c | dev = inf->device; |
dev | 1552 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1558 | drivers/sound/sequencer.c | if (!synth_devs[dev]->pmgr_interface) |
dev | 1564 | drivers/sound/sequencer.c | if ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1) |
dev | 1579 | drivers/sound/sequencer.c | int dev, err; |
dev | 1584 | drivers/sound/sequencer.c | dev = inf->device; |
dev | 1586 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1592 | drivers/sound/sequencer.c | if (!pmgr_present[dev]) |
dev | 1598 | drivers/sound/sequencer.c | if ((err = pmgr_access (dev, inf)) < 0) |
dev | 1614 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1642 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1663 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 1667 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 1815 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 1821 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 1827 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
dev | 1833 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
dev | 1837 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 1844 | drivers/sound/sequencer.c | sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
dev | 1856 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 5 | drivers/sound/sound_calls.h | int DMAbuf_open(int dev, int mode); |
dev | 6 | drivers/sound/sound_calls.h | int DMAbuf_release(int dev, int mode); |
dev | 7 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size); |
dev | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
dev | 9 | drivers/sound/sound_calls.h | int DMAbuf_rmchars(int dev, int buff_no, int c); |
dev | 10 | drivers/sound/sound_calls.h | int DMAbuf_start_output(int dev, int buff_no, int l); |
dev | 11 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 13 | drivers/sound/sound_calls.h | int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode); |
dev | 17 | drivers/sound/sound_calls.h | void DMAbuf_inputintr(int dev); |
dev | 18 | drivers/sound/sound_calls.h | void DMAbuf_outputintr(int dev, int underflow_flag); |
dev | 24 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 25 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 26 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
dev | 27 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
dev | 28 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
dev | 30 | drivers/sound/sound_calls.h | int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 37 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 38 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 39 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
dev | 40 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
dev | 41 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 43 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 52 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 59 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 60 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 61 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
dev | 62 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
dev | 63 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
dev | 65 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 66 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
dev | 70 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 79 | drivers/sound/sound_calls.h | int CMIDI_open (int dev, struct fileinfo *file); |
dev | 80 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 81 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 82 | drivers/sound/sound_calls.h | int CMIDI_close (int dev, struct fileinfo *file); |
dev | 92 | drivers/sound/sound_calls.h | int pro_midi_open(int dev, int mode); |
dev | 93 | drivers/sound/sound_calls.h | void pro_midi_close(int dev); |
dev | 94 | drivers/sound/sound_calls.h | int pro_midi_write(int dev, snd_rw_buf *uio); |
dev | 95 | drivers/sound/sound_calls.h | int pro_midi_read(int dev, snd_rw_buf *uio); |
dev | 105 | drivers/sound/sound_calls.h | void sound_dma_malloc(int dev); |
dev | 106 | drivers/sound/sound_calls.h | void sound_dma_free(int dev); |
dev | 109 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 110 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 111 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
dev | 112 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
dev | 113 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
dev | 192 | drivers/sound/sound_calls.h | int gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg); |
dev | 210 | drivers/sound/sound_calls.h | int pmgr_open(int dev); |
dev | 211 | drivers/sound/sound_calls.h | void pmgr_release(int dev); |
dev | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
dev | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
dev | 214 | drivers/sound/sound_calls.h | int pmgr_access(int dev, struct patmgr_info *rec); |
dev | 215 | drivers/sound/sound_calls.h | int pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2, |
dev | 228 | drivers/sound/sound_calls.h | void ad1848_interrupt (int dev, struct pt_regs *regs); |
dev | 236 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 237 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 238 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
dev | 239 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
dev | 240 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
dev | 242 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 278 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 280 | drivers/sound/sound_switch.c | DEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count)); |
dev | 282 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 291 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
dev | 296 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
dev | 301 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
dev | 306 | drivers/sound/sound_switch.c | return pss_read (dev, file, buf, count); |
dev | 310 | drivers/sound/sound_switch.c | printk ("Sound: Undefined minor device %d\n", dev); |
dev | 317 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 320 | drivers/sound/sound_switch.c | DEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count)); |
dev | 322 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 327 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
dev | 333 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
dev | 338 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
dev | 343 | drivers/sound/sound_switch.c | return pss_write (dev, file, buf, count); |
dev | 354 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
dev | 358 | drivers/sound/sound_switch.c | DEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount)); |
dev | 360 | drivers/sound/sound_switch.c | if ((dev >= SND_NDEVS) || (dev < 0)) |
dev | 362 | drivers/sound/sound_switch.c | printk ("Invalid minor device %d\n", dev); |
dev | 366 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 384 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
dev | 390 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
dev | 397 | drivers/sound/sound_switch.c | if ((retval = pss_open (dev, file)) < 0) |
dev | 405 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
dev | 410 | drivers/sound/sound_switch.c | printk ("Invalid minor device %d\n", dev); |
dev | 414 | drivers/sound/sound_switch.c | sbc_devices[dev].usecount++; |
dev | 421 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
dev | 424 | drivers/sound/sound_switch.c | DEB (printk ("sound_release_sw(dev=%d)\n", dev)); |
dev | 426 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 440 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
dev | 445 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
dev | 451 | drivers/sound/sound_switch.c | pss_release (dev, file); |
dev | 458 | drivers/sound/sound_switch.c | audio_release (dev, file); |
dev | 462 | drivers/sound/sound_switch.c | printk ("Sound error: Releasing unknown device 0x%02x\n", dev); |
dev | 465 | drivers/sound/sound_switch.c | sbc_devices[dev].usecount--; |
dev | 470 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
dev | 473 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
dev | 475 | drivers/sound/sound_switch.c | if ((dev & 0x0f) != SND_DEV_CTL && num_mixers > 0) |
dev | 481 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 489 | drivers/sound/sound_switch.c | dev = dev >> 4; |
dev | 491 | drivers/sound/sound_switch.c | if (dev >= num_mixers) |
dev | 494 | drivers/sound/sound_switch.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
dev | 499 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
dev | 505 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
dev | 510 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
dev | 516 | drivers/sound/sound_switch.c | return pss_ioctl (dev, file, cmd, arg); |
dev | 151 | drivers/sound/sound_timer.c | timer_open (int dev, int mode) |
dev | 166 | drivers/sound/sound_timer.c | timer_close (int dev) |
dev | 173 | drivers/sound/sound_timer.c | timer_event (int dev, unsigned char *event) |
dev | 238 | drivers/sound/sound_timer.c | timer_get_time (int dev) |
dev | 247 | drivers/sound/sound_timer.c | timer_ioctl (int dev, |
dev | 328 | drivers/sound/sound_timer.c | timer_arm (int dev, long time) |
dev | 63 | drivers/sound/soundcard.c | int dev; |
dev | 65 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 66 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 68 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
dev | 74 | drivers/sound/soundcard.c | int dev; |
dev | 76 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 77 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 79 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
dev | 91 | drivers/sound/soundcard.c | int dev; |
dev | 93 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 94 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 96 | drivers/sound/soundcard.c | if (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS) |
dev | 102 | drivers/sound/soundcard.c | files[dev].mode = 0; |
dev | 105 | drivers/sound/soundcard.c | files[dev].mode = OPEN_READWRITE; |
dev | 107 | drivers/sound/soundcard.c | files[dev].mode = OPEN_READ; |
dev | 109 | drivers/sound/soundcard.c | files[dev].mode = OPEN_WRITE; |
dev | 111 | drivers/sound/soundcard.c | return sound_open_sw (dev, &files[dev]); |
dev | 117 | drivers/sound/soundcard.c | int dev; |
dev | 119 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 120 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 122 | drivers/sound/soundcard.c | sound_release_sw (dev, &files[dev]); |
dev | 129 | drivers/sound/soundcard.c | int dev; |
dev | 131 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 132 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 134 | drivers/sound/soundcard.c | return sound_ioctl_sw (dev, &files[dev], cmd, arg); |
dev | 140 | drivers/sound/soundcard.c | int dev; |
dev | 142 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 143 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 145 | drivers/sound/soundcard.c | DEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type)); |
dev | 147 | drivers/sound/soundcard.c | switch (dev & 0x0f) |
dev | 151 | drivers/sound/soundcard.c | return sequencer_select (dev, &files[dev], sel_type, wait); |
dev | 157 | drivers/sound/soundcard.c | return MIDIbuf_select (dev, &files[dev], sel_type, wait); |
dev | 292 | drivers/sound/soundcard.c | int i, dev; |
dev | 303 | drivers/sound/soundcard.c | for (dev = 0; dev < num_audiodevs; dev++) /* Enumerate devices */ |
dev | 304 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0) |
dev | 306 | drivers/sound/soundcard.c | dmap = audio_devs[dev]->dmap; |
dev | 308 | drivers/sound/soundcard.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 309 | drivers/sound/soundcard.c | audio_devs[dev]->buffcount = 1; |
dev | 311 | drivers/sound/soundcard.c | if (audio_devs[dev]->dmachan > 3 && audio_devs[dev]->buffsize > 65536) |
dev | 318 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize > dma_pagesize) |
dev | 319 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = dma_pagesize; |
dev | 320 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize &= 0xfffff000; /* Truncate to n*4k */ |
dev | 321 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize < 4096) |
dev | 322 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = 4096; |
dev | 326 | drivers/sound/soundcard.c | for (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; dmap->raw_count++) |
dev | 328 | drivers/sound/soundcard.c | start_addr = mem_ptr - audio_devs[dev]->buffsize; |
dev | 329 | drivers/sound/soundcard.c | if (!valid_dma_page (start_addr, audio_devs[dev]->buffsize, dma_pagesize)) |
dev | 333 | drivers/sound/soundcard.c | end_addr = start_addr + audio_devs[dev]->buffsize - 1; |
dev | 105 | drivers/sound/sys_timer.c | def_tmr_open (int dev, int mode) |
dev | 121 | drivers/sound/sys_timer.c | def_tmr_close (int dev) |
dev | 127 | drivers/sound/sys_timer.c | def_tmr_event (int dev, unsigned char *event) |
dev | 189 | drivers/sound/sys_timer.c | def_tmr_get_time (int dev) |
dev | 198 | drivers/sound/sys_timer.c | def_tmr_ioctl (int dev, |
dev | 278 | drivers/sound/sys_timer.c | def_tmr_arm (int dev, long time) |
dev | 69 | drivers/sound/uart6850.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 133 | drivers/sound/uart6850.c | uart6850_open (int dev, int mode, |
dev | 134 | drivers/sound/uart6850.c | void (*input) (int dev, unsigned char data), |
dev | 135 | drivers/sound/uart6850.c | void (*output) (int dev) |
dev | 158 | drivers/sound/uart6850.c | uart6850_close (int dev) |
dev | 166 | drivers/sound/uart6850.c | uart6850_out (int dev, unsigned char midi_byte) |
dev | 202 | drivers/sound/uart6850.c | uart6850_command (int dev, unsigned char *midi_byte) |
dev | 208 | drivers/sound/uart6850.c | uart6850_start_read (int dev) |
dev | 214 | drivers/sound/uart6850.c | uart6850_end_read (int dev) |
dev | 220 | drivers/sound/uart6850.c | uart6850_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 226 | drivers/sound/uart6850.c | uart6850_kick (int dev) |
dev | 231 | drivers/sound/uart6850.c | uart6850_buffer_status (int dev) |
dev | 34 | fs/block_dev.c | unsigned int dev; |
dev | 40 | fs/block_dev.c | dev = inode->i_rdev; |
dev | 44 | fs/block_dev.c | if (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)]) |
dev | 45 | fs/block_dev.c | blocksize = blksize_size[MAJOR(dev)][MINOR(dev)]; |
dev | 59 | fs/block_dev.c | if (blk_size[MAJOR(dev)]) |
dev | 60 | fs/block_dev.c | size = ((loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits; |
dev | 72 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
dev | 74 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
dev | 79 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 80 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
dev | 84 | fs/block_dev.c | !read_ahead[MAJOR(dev)]) { |
dev | 87 | fs/block_dev.c | bh = bread(dev,block,blocksize); |
dev | 90 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2; |
dev | 100 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
dev | 175 | fs/block_dev.c | unsigned int dev; |
dev | 179 | fs/block_dev.c | dev = inode->i_rdev; |
dev | 181 | fs/block_dev.c | if (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)]) |
dev | 182 | fs/block_dev.c | blocksize = blksize_size[MAJOR(dev)][MINOR(dev)]; |
dev | 191 | fs/block_dev.c | if (blk_size[MAJOR(dev)]) |
dev | 192 | fs/block_dev.c | size = (loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS; |
dev | 213 | fs/block_dev.c | if (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9)) |
dev | 214 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9); |
dev | 243 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 246 | fs/block_dev.c | *bhb = getblk(dev, block++, blocksize); |
dev | 137 | fs/buffer.c | static int sync_buffers(dev_t dev, int wait) |
dev | 162 | fs/buffer.c | if (dev && bh->b_dev != dev) |
dev | 213 | fs/buffer.c | void sync_dev(dev_t dev) |
dev | 215 | fs/buffer.c | sync_buffers(dev, 0); |
dev | 216 | fs/buffer.c | sync_supers(dev); |
dev | 217 | fs/buffer.c | sync_inodes(dev); |
dev | 218 | fs/buffer.c | sync_buffers(dev, 0); |
dev | 221 | fs/buffer.c | int fsync_dev(dev_t dev) |
dev | 223 | fs/buffer.c | sync_buffers(dev, 0); |
dev | 224 | fs/buffer.c | sync_supers(dev); |
dev | 225 | fs/buffer.c | sync_inodes(dev); |
dev | 226 | fs/buffer.c | return sync_buffers(dev, 1); |
dev | 254 | fs/buffer.c | void invalidate_buffers(dev_t dev) |
dev | 263 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 266 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 276 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash) |
dev | 277 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
dev | 413 | fs/buffer.c | static struct buffer_head * find_buffer(dev_t dev, int block, int size) |
dev | 417 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
dev | 418 | fs/buffer.c | if (tmp->b_dev==dev && tmp->b_blocknr==block) |
dev | 423 | fs/buffer.c | MAJOR(dev), MINOR(dev)); |
dev | 436 | fs/buffer.c | struct buffer_head * get_hash_table(dev_t dev, int block, int size) |
dev | 441 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
dev | 445 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
dev | 451 | fs/buffer.c | void set_blocksize(dev_t dev, int size) |
dev | 456 | fs/buffer.c | if (!blksize_size[MAJOR(dev)]) |
dev | 464 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) { |
dev | 465 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
dev | 468 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == size) |
dev | 470 | fs/buffer.c | sync_buffers(dev, 2); |
dev | 471 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
dev | 481 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 487 | fs/buffer.c | if (bh->b_dev == dev && bh->b_size != size) { |
dev | 689 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
dev | 701 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
dev | 711 | fs/buffer.c | if (find_buffer(dev,block,size)) |
dev | 725 | fs/buffer.c | bh->b_dev=dev; |
dev | 800 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
dev | 804 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
dev | 806 | fs/buffer.c | MAJOR(dev), MINOR(dev)); |
dev | 827 | fs/buffer.c | struct buffer_head * breada(dev_t dev, int block, int bufsize, |
dev | 839 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
dev | 849 | fs/buffer.c | if (blocks > (read_ahead[MAJOR(dev)] >> index)) |
dev | 850 | fs/buffer.c | blocks = read_ahead[MAJOR(dev)] >> index; |
dev | 857 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
dev | 1000 | fs/buffer.c | dev_t dev, int *b, int size) |
dev | 1018 | fs/buffer.c | first = get_hash_table(dev, block, size); |
dev | 1041 | fs/buffer.c | dev_t dev, int b[], int size) |
dev | 1058 | fs/buffer.c | if (find_buffer(dev, block, size)) |
dev | 1071 | fs/buffer.c | bh->b_dev = dev; |
dev | 1111 | fs/buffer.c | dev_t dev, int *b, int size) |
dev | 1119 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
dev | 1121 | fs/buffer.c | return check_aligned(bh, address, dev, b, size); |
dev | 1122 | fs/buffer.c | return try_to_load_aligned(address, dev, b, size); |
dev | 1132 | fs/buffer.c | unsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int no_share) |
dev | 1139 | fs/buffer.c | where = try_to_share_buffers(address, dev, b, size); |
dev | 1147 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
dev | 1166 | fs/buffer.c | void bwrite_page(unsigned long address, dev_t dev, int b[], int size) |
dev | 1174 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
dev | 1473 | fs/buffer.c | dev_t dev, unsigned int starting_block) |
dev | 1502 | fs/buffer.c | p->b_dev=dev; |
dev | 1525 | fs/buffer.c | static int reassign_cluster(dev_t dev, |
dev | 1542 | fs/buffer.c | if (try_to_reassign(bh, &bh, dev, starting_block)) |
dev | 1552 | fs/buffer.c | static unsigned long try_to_generate_cluster(dev_t dev, int block, int size) |
dev | 1570 | fs/buffer.c | if (find_buffer(dev, nblock++, size)) |
dev | 1583 | fs/buffer.c | bh->b_dev = dev; |
dev | 1609 | fs/buffer.c | unsigned long generate_cluster(dev_t dev, int b[], int size) |
dev | 1615 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
dev | 1625 | fs/buffer.c | retval = try_to_generate_cluster(dev, b[0], size); |
dev | 1630 | fs/buffer.c | return try_to_generate_cluster(dev, b[0], size); |
dev | 1632 | fs/buffer.c | return reassign_cluster(dev, b[0], size); |
dev | 44 | fs/dcache.c | unsigned long dev; |
dev | 55 | fs/dcache.c | memcpy((void *) &newde->dev, (void *) &de->dev, \ |
dev | 73 | fs/dcache.c | #define hash_fn(dev,dir,namehash) (((dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES) |
dev | 138 | fs/dcache.c | if (de->dev != dir->i_dev) |
dev | 204 | fs/dcache.c | de->dev = dir->i_dev; |
dev | 142 | fs/devices.c | int check_disk_change(dev_t dev) |
dev | 147 | fs/devices.c | i = MAJOR(dev); |
dev | 152 | fs/devices.c | if (!fops->check_media_change(dev)) |
dev | 156 | fs/devices.c | MAJOR(dev), MINOR(dev)); |
dev | 158 | fs/devices.c | if (super_blocks[i].s_dev == dev) |
dev | 160 | fs/devices.c | invalidate_inodes(dev); |
dev | 161 | fs/devices.c | invalidate_buffers(dev); |
dev | 164 | fs/devices.c | fops->revalidate(dev); |
dev | 182 | fs/ext/freelists.c | dev_t dev; |
dev | 204 | fs/ext/freelists.c | dev = inode->i_dev; |
dev | 222 | fs/ext/freelists.c | if (!(bh = bread(dev, block, sb->s_blocksize))) |
dev | 62 | fs/ext/inode.c | int dev = s->s_dev,block; |
dev | 65 | fs/ext/inode.c | set_blocksize(dev, BLOCK_SIZE); |
dev | 66 | fs/ext/inode.c | if (!(bh = bread(dev, 1, BLOCK_SIZE))) { |
dev | 91 | fs/ext/inode.c | dev); |
dev | 97 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
dev | 108 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
dev | 118 | fs/ext/inode.c | s->s_dev = dev; |
dev | 400 | fs/ext2/super.c | int dev = sb->s_dev; |
dev | 415 | fs/ext2/super.c | set_blocksize (dev, BLOCK_SIZE); |
dev | 416 | fs/ext2/super.c | if (!(bh = bread (dev, sb_block, BLOCK_SIZE))) { |
dev | 439 | fs/ext2/super.c | MAJOR(dev), MINOR(dev)); |
dev | 450 | fs/ext2/super.c | set_blocksize (dev, sb->s_blocksize); |
dev | 453 | fs/ext2/super.c | bh = bread (dev, logic_sb_block, sb->s_blocksize); |
dev | 534 | fs/ext2/super.c | MAJOR(dev), MINOR(dev)); |
dev | 543 | fs/ext2/super.c | dev); |
dev | 596 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
dev | 634 | fs/ext2/super.c | sb->s_dev = dev; |
dev | 240 | fs/hpfs/hpfs_fs.c | static unsigned count_one_bitmap(dev_t dev, secno secno); |
dev | 249 | fs/hpfs/hpfs_fs.c | static struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno, |
dev | 255 | fs/hpfs/hpfs_fs.c | static dnode_secno fnode_dno(dev_t dev, ino_t ino); |
dev | 256 | fs/hpfs/hpfs_fs.c | static struct fnode *map_fnode(dev_t dev, ino_t ino, |
dev | 258 | fs/hpfs/hpfs_fs.c | static struct anode *map_anode(dev_t dev, unsigned secno, |
dev | 260 | fs/hpfs/hpfs_fs.c | static struct dnode *map_dnode(dev_t dev, unsigned secno, |
dev | 262 | fs/hpfs/hpfs_fs.c | static void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp); |
dev | 263 | fs/hpfs/hpfs_fs.c | static void *map_4sectors(dev_t dev, unsigned secno, |
dev | 338 | fs/hpfs/hpfs_fs.c | dev_t dev; |
dev | 361 | fs/hpfs/hpfs_fs.c | dev = s->s_dev; |
dev | 362 | fs/hpfs/hpfs_fs.c | set_blocksize(dev, 512); |
dev | 368 | fs/hpfs/hpfs_fs.c | bootblock = map_sector(dev, 0, &bh0); |
dev | 372 | fs/hpfs/hpfs_fs.c | superblock = map_sector(dev, 16, &bh1); |
dev | 376 | fs/hpfs/hpfs_fs.c | spareblock = map_sector(dev, 17, &bh2); |
dev | 491 | fs/hpfs/hpfs_fs.c | root_dno = fnode_dno(dev, s->s_hpfs_root); |
dev | 838 | fs/hpfs/hpfs_fs.c | static unsigned count_one_bitmap(dev_t dev, secno secno) |
dev | 844 | fs/hpfs/hpfs_fs.c | bits = map_4sectors(dev, secno, &qbh); |
dev | 1542 | fs/hpfs/hpfs_fs.c | static struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno, |
dev | 1548 | fs/hpfs/hpfs_fs.c | struct dnode *dnode = map_dnode(dev, dno, qbh); |
dev | 1572 | fs/hpfs/hpfs_fs.c | static dnode_secno fnode_dno(dev_t dev, ino_t ino) |
dev | 1578 | fs/hpfs/hpfs_fs.c | fnode = map_fnode(dev, ino, &bh); |
dev | 1589 | fs/hpfs/hpfs_fs.c | static struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp) |
dev | 1598 | fs/hpfs/hpfs_fs.c | fnode = map_sector(dev, ino_secno(ino), bhp); |
dev | 1610 | fs/hpfs/hpfs_fs.c | static struct anode *map_anode(dev_t dev, unsigned secno, |
dev | 1620 | fs/hpfs/hpfs_fs.c | anode = map_sector(dev, secno, bhp); |
dev | 1632 | fs/hpfs/hpfs_fs.c | static struct dnode *map_dnode(dev_t dev, unsigned secno, |
dev | 1642 | fs/hpfs/hpfs_fs.c | dnode = map_4sectors(dev, secno, qbh); |
dev | 1654 | fs/hpfs/hpfs_fs.c | static void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp) |
dev | 1658 | fs/hpfs/hpfs_fs.c | if ((*bhp = bh = bread(dev, secno, 512)) != 0) |
dev | 1668 | fs/hpfs/hpfs_fs.c | static void *map_4sectors(dev_t dev, unsigned secno, |
dev | 1683 | fs/hpfs/hpfs_fs.c | qbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX); |
dev | 1688 | fs/hpfs/hpfs_fs.c | qbh->bh[1] = bh = bread(dev, secno + 1, 512); |
dev | 1693 | fs/hpfs/hpfs_fs.c | qbh->bh[2] = bh = bread(dev, secno + 2, 512); |
dev | 1698 | fs/hpfs/hpfs_fs.c | qbh->bh[3] = bh = bread(dev, secno + 3, 512); |
dev | 24 | fs/inode.c | static inline int const hashfn(dev_t dev, unsigned int i) |
dev | 26 | fs/inode.c | return (dev ^ i) % NR_IHASH; |
dev | 29 | fs/inode.c | static inline struct inode_hash_entry * const hash(dev_t dev, int i) |
dev | 31 | fs/inode.c | return hash_table + hashfn(dev, i); |
dev | 162 | fs/inode.c | int fs_may_mount(dev_t dev) |
dev | 171 | fs/inode.c | if (inode->i_dev != dev) |
dev | 180 | fs/inode.c | int fs_may_umount(dev_t dev, struct inode * mount_root) |
dev | 187 | fs/inode.c | if (inode->i_dev != dev || !inode->i_count) |
dev | 196 | fs/inode.c | int fs_may_remount_ro(dev_t dev) |
dev | 204 | fs/inode.c | file->f_inode->i_dev != dev) |
dev | 339 | fs/inode.c | void invalidate_inodes(dev_t dev) |
dev | 348 | fs/inode.c | if (inode->i_dev != dev) |
dev | 351 | fs/inode.c | printk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev)); |
dev | 358 | fs/inode.c | void sync_inodes(dev_t dev) |
dev | 365 | fs/inode.c | if (dev && inode->i_dev != dev) |
dev | 155 | fs/isofs/inode.c | static unsigned int isofs_get_last_session(int dev) |
dev | 168 | fs/isofs/inode.c | if (get_blkfops(MAJOR(dev))->ioctl!=NULL) |
dev | 170 | fs/isofs/inode.c | inode_fake.i_rdev=dev; |
dev | 173 | fs/isofs/inode.c | i=get_blkfops(MAJOR(dev))->ioctl(&inode_fake, |
dev | 198 | fs/isofs/inode.c | int dev=s->s_dev; |
dev | 238 | fs/isofs/inode.c | set_blocksize(dev, opt.blocksize); |
dev | 244 | fs/isofs/inode.c | vol_desc_start = isofs_get_last_session(dev); |
dev | 250 | fs/isofs/inode.c | if (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), opt.blocksize))) { |
dev | 253 | fs/isofs/inode.c | dev, iso_blknum); |
dev | 357 | fs/isofs/inode.c | s->s_dev = dev; |
dev | 778 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
dev | 780 | fs/isofs/inode.c | return bread(dev, block, size); |
dev | 129 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
dev | 135 | fs/minix/inode.c | set_blocksize(dev, BLOCK_SIZE); |
dev | 136 | fs/minix/inode.c | if (!(bh = bread(dev,1,BLOCK_SIZE))) { |
dev | 168 | fs/minix/inode.c | printk("VFS: Can't find a minix filesystem on dev 0x%04x.\n", dev); |
dev | 178 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
dev | 183 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
dev | 203 | fs/minix/inode.c | s->s_dev = dev; |
dev | 440 | fs/namei.c | int do_mknod(const char * filename, int mode, dev_t dev) |
dev | 468 | fs/namei.c | error = dir->i_op->mknod(dir,basename,namelen,mode,dev); |
dev | 474 | fs/namei.c | asmlinkage int sys_mknod(const char * filename, int mode, dev_t dev) |
dev | 492 | fs/namei.c | error = do_mknod(tmp,mode,dev); |
dev | 187 | fs/nfs/dir.c | int dev; |
dev | 203 | fs/nfs/dir.c | if (entry->dev == dir->i_dev && entry->inode == dir->i_ino |
dev | 224 | fs/nfs/dir.c | entry->dev = 0; |
dev | 250 | fs/nfs/dir.c | entry->dev = dir->i_dev; |
dev | 263 | fs/nfs/dir.c | int dev; |
dev | 268 | fs/nfs/dir.c | dev = inode->i_dev; |
dev | 272 | fs/nfs/dir.c | dev = entry->dev; |
dev | 279 | fs/nfs/dir.c | if (entry->dev == dev && entry->fattr.fileid == fileid) |
dev | 280 | fs/nfs/dir.c | entry->dev = 0; |
dev | 288 | fs/nfs/dir.c | int dev = file->i_dev; |
dev | 294 | fs/nfs/dir.c | if (entry->dev == dev && entry->fattr.fileid == fileid) |
dev | 79 | fs/nfs/inode.c | dev_t dev = sb->s_dev; |
dev | 110 | fs/nfs/inode.c | sb->s_dev = dev; |
dev | 25 | fs/open.c | asmlinkage int sys_ustat(int dev, struct ustat * ubuf) |
dev | 636 | fs/proc/array.c | dev_t dev; |
dev | 649 | fs/proc/array.c | dev = map->vm_inode->i_dev; |
dev | 652 | fs/proc/array.c | dev = 0; |
dev | 658 | fs/proc/array.c | MAJOR(dev),MINOR(dev), ino); |
dev | 174 | fs/proc/link.c | unsigned int dev,ino; |
dev | 186 | fs/proc/link.c | dev = inode->i_dev; |
dev | 189 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
dev | 200 | fs/super.c | void sync_supers(dev_t dev) |
dev | 207 | fs/super.c | if (dev && sb->s_dev != dev) |
dev | 212 | fs/super.c | if (dev && (dev != sb->s_dev)) |
dev | 219 | fs/super.c | static struct super_block * get_super(dev_t dev) |
dev | 223 | fs/super.c | if (!dev) |
dev | 227 | fs/super.c | if (s->s_dev == dev) { |
dev | 229 | fs/super.c | if (s->s_dev == dev) |
dev | 237 | fs/super.c | void put_super(dev_t dev) |
dev | 241 | fs/super.c | if (dev == ROOT_DEV) { |
dev | 243 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 246 | fs/super.c | if (!(sb = get_super(dev))) |
dev | 250 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 257 | fs/super.c | static struct super_block * read_super(dev_t dev,char *name,int flags, |
dev | 263 | fs/super.c | if (!dev) |
dev | 265 | fs/super.c | check_disk_change(dev); |
dev | 266 | fs/super.c | s = get_super(dev); |
dev | 271 | fs/super.c | MAJOR(dev), MINOR(dev), name); |
dev | 280 | fs/super.c | s->s_dev = dev; |
dev | 286 | fs/super.c | s->s_dev = dev; |
dev | 312 | fs/super.c | static void put_unnamed_dev(dev_t dev) |
dev | 314 | fs/super.c | if (!dev) |
dev | 316 | fs/super.c | if (MAJOR(dev) == UNNAMED_MAJOR && |
dev | 317 | fs/super.c | clear_bit(MINOR(dev), unnamed_dev_in_use)) |
dev | 320 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 323 | fs/super.c | static int do_umount(dev_t dev) |
dev | 328 | fs/super.c | if (dev==ROOT_DEV) { |
dev | 331 | fs/super.c | if (!(sb=get_super(dev))) |
dev | 334 | fs/super.c | fsync_dev(dev); |
dev | 341 | fs/super.c | if (!(sb=get_super(dev)) || !(sb->s_covered)) |
dev | 345 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 346 | fs/super.c | if (!fs_may_umount(dev, sb->s_mounted)) |
dev | 355 | fs/super.c | put_super(dev); |
dev | 373 | fs/super.c | dev_t dev; |
dev | 387 | fs/super.c | dev = inode->i_rdev; |
dev | 397 | fs/super.c | dev = inode->i_sb->s_dev; |
dev | 400 | fs/super.c | dummy_inode.i_rdev = dev; |
dev | 403 | fs/super.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 407 | fs/super.c | if (!(retval = do_umount(dev)) && dev != ROOT_DEV) { |
dev | 408 | fs/super.c | fops = get_blkfops(MAJOR(dev)); |
dev | 411 | fs/super.c | if (MAJOR(dev) == UNNAMED_MAJOR) |
dev | 412 | fs/super.c | put_unnamed_dev(dev); |
dev | 418 | fs/super.c | fsync_dev(dev); |
dev | 431 | fs/super.c | static int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data) |
dev | 448 | fs/super.c | if (!fs_may_mount(dev)) { |
dev | 452 | fs/super.c | sb = read_super(dev,type,flags,data,0); |
dev | 555 | fs/super.c | dev_t dev; |
dev | 595 | fs/super.c | dev = inode->i_rdev; |
dev | 596 | fs/super.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 600 | fs/super.c | fops = get_blkfops(MAJOR(dev)); |
dev | 618 | fs/super.c | if (!(dev = get_unnamed_dev())) |
dev | 631 | fs/super.c | retval = do_mount(dev,dir_name,t,flags,(void *) page); |
dev | 350 | fs/sysv/inode.c | int dev = sb->s_dev; |
dev | 363 | fs/sysv/inode.c | set_blocksize(dev,BLOCK_SIZE); |
dev | 366 | fs/sysv/inode.c | if ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) { |
dev | 371 | fs/sysv/inode.c | if ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) { |
dev | 387 | fs/sysv/inode.c | if ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) { |
dev | 403 | fs/sysv/inode.c | printk("VFS: unable to read Xenix/SystemV/Coherent superblock on device %d/%d\n",MAJOR(dev),MINOR(dev)); |
dev | 438 | fs/sysv/inode.c | set_blocksize(dev,sb->sv_block_size); |
dev | 442 | fs/sysv/inode.c | if ((bh1 = bread(dev, blocknr, sb->sv_block_size)) == NULL) |
dev | 444 | fs/sysv/inode.c | if ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL) |
dev | 450 | fs/sysv/inode.c | if ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL) |
dev | 456 | fs/sysv/inode.c | if ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL) |
dev | 462 | fs/sysv/inode.c | if ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL) |
dev | 480 | fs/sysv/inode.c | printk("VFS: Found a %s FS (block size = %d) on device %d/%d\n",found,sb->sv_block_size,MAJOR(dev),MINOR(dev)); |
dev | 486 | fs/sysv/inode.c | sb->s_dev = dev; |
dev | 73 | fs/xiafs/inode.c | int i, z, dev; |
dev | 76 | fs/xiafs/inode.c | dev=s->s_dev; |
dev | 79 | fs/xiafs/inode.c | set_blocksize(dev, BLOCK_SIZE); |
dev | 81 | fs/xiafs/inode.c | if (!(bh = bread(dev, 0, BLOCK_SIZE))) { |
dev | 96 | fs/xiafs/inode.c | dev); |
dev | 106 | fs/xiafs/inode.c | set_blocksize(dev, s->s_blocksize); |
dev | 107 | fs/xiafs/inode.c | bh = bread (dev, 0, s->s_blocksize); |
dev | 137 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
dev | 147 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
dev | 153 | fs/xiafs/inode.c | s->s_dev = dev; |
dev | 15 | include/linux/blkdev.h | int dev; /* -1 if no request */ |
dev | 41 | include/linux/blkdev.h | extern void resetup_one_dev(struct gendisk *dev, int drive); |
dev | 31 | include/linux/etherdevice.h | extern int eth_header(unsigned char *buff, struct device *dev, |
dev | 35 | include/linux/etherdevice.h | extern int eth_rebuild_header(void *buff, struct device *dev, |
dev | 37 | include/linux/etherdevice.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 348 | include/linux/fs.h | int (*check_media_change) (dev_t dev); |
dev | 349 | include/linux/fs.h | int (*revalidate) (dev_t dev); |
dev | 424 | include/linux/fs.h | extern int fs_may_mount(dev_t dev); |
dev | 425 | include/linux/fs.h | extern int fs_may_umount(dev_t dev, struct inode * mount_root); |
dev | 426 | include/linux/fs.h | extern int fs_may_remount_ro(dev_t dev); |
dev | 468 | include/linux/fs.h | extern int check_disk_change(dev_t dev); |
dev | 469 | include/linux/fs.h | extern void invalidate_inodes(dev_t dev); |
dev | 470 | include/linux/fs.h | extern void invalidate_buffers(dev_t dev); |
dev | 472 | include/linux/fs.h | extern void sync_inodes(dev_t dev); |
dev | 473 | include/linux/fs.h | extern void sync_dev(dev_t dev); |
dev | 474 | include/linux/fs.h | extern int fsync_dev(dev_t dev); |
dev | 475 | include/linux/fs.h | extern void sync_supers(dev_t dev); |
dev | 485 | include/linux/fs.h | extern int do_mknod(const char * filename, int mode, dev_t dev); |
dev | 494 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
dev | 495 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
dev | 497 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer); |
dev | 498 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
dev | 499 | include/linux/fs.h | extern int is_read_only(int dev); |
dev | 501 | include/linux/fs.h | extern void set_blocksize(dev_t dev, int size); |
dev | 502 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
dev | 503 | include/linux/fs.h | extern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int no_share); |
dev | 504 | include/linux/fs.h | extern void bwrite_page(unsigned long addr,dev_t dev,int b[],int size); |
dev | 505 | include/linux/fs.h | extern struct buffer_head * breada(dev_t dev,int block, int size, |
dev | 507 | include/linux/fs.h | extern void put_super(dev_t dev); |
dev | 508 | include/linux/fs.h | unsigned long generate_cluster(dev_t dev, int b[], int size); |
dev | 37 | include/linux/if_eql.h | struct device *dev; |
dev | 194 | include/linux/if_ppp.h | struct device *dev; /* easy for intr handling */ |
dev | 79 | include/linux/igmp.h | extern void ip_mc_drop_device(struct device *dev); |
dev | 80 | include/linux/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
dev | 81 | include/linux/igmp.h | extern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr); |
dev | 172 | include/linux/iso_fs.h | extern int isofs_new_block(int dev); |
dev | 173 | include/linux/iso_fs.h | extern int isofs_free_block(int dev, int block); |
dev | 201 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
dev | 86 | include/linux/netdevice.h | int (*init)(struct device *dev); |
dev | 93 | include/linux/netdevice.h | struct enet_statistics* (*get_stats)(struct device *dev); |
dev | 138 | include/linux/netdevice.h | int (*open)(struct device *dev); |
dev | 139 | include/linux/netdevice.h | int (*stop)(struct device *dev); |
dev | 141 | include/linux/netdevice.h | struct device *dev); |
dev | 143 | include/linux/netdevice.h | struct device *dev, |
dev | 149 | include/linux/netdevice.h | int (*rebuild_header)(void *eth, struct device *dev, |
dev | 152 | include/linux/netdevice.h | void (*set_multicast_list)(struct device *dev, |
dev | 155 | include/linux/netdevice.h | int (*set_mac_address)(struct device *dev, void *addr); |
dev | 157 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 159 | include/linux/netdevice.h | int (*set_config)(struct device *dev, struct ifmap *map); |
dev | 160 | include/linux/netdevice.h | int (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
dev | 166 | include/linux/netdevice.h | struct device * dev; |
dev | 197 | include/linux/netdevice.h | extern int dev_open(struct device *dev); |
dev | 198 | include/linux/netdevice.h | extern int dev_close(struct device *dev); |
dev | 199 | include/linux/netdevice.h | extern void dev_queue_xmit(struct sk_buff *skb, struct device *dev, |
dev | 205 | include/linux/netdevice.h | struct device * dev); |
dev | 209 | include/linux/netdevice.h | extern void dev_tint(struct device *dev); |
dev | 217 | include/linux/netdevice.h | extern void ether_setup(struct device *dev); |
dev | 218 | include/linux/netdevice.h | extern void tr_setup(struct device *dev); |
dev | 219 | include/linux/netdevice.h | extern int ether_config(struct device *dev, struct ifmap *map); |
dev | 221 | include/linux/netdevice.h | extern int register_netdev(struct device *dev); |
dev | 222 | include/linux/netdevice.h | extern void unregister_netdev(struct device *dev); |
dev | 226 | include/linux/netdevice.h | extern void dev_mc_upload(struct device *dev); |
dev | 227 | include/linux/netdevice.h | extern void dev_mc_delete(struct device *dev, void *addr, int alen, int all); |
dev | 228 | include/linux/netdevice.h | extern void dev_mc_add(struct device *dev, void *addr, int alen, int newonly); |
dev | 229 | include/linux/netdevice.h | extern void dev_mc_discard(struct device *dev); |
dev | 231 | include/linux/netdevice.h | extern void ip_mc_allhost(struct device *dev); |
dev | 420 | include/linux/pci.h | unsigned int dev); |
dev | 15 | include/linux/scsicam.h | extern int scsicam_bios_param (Disk *disk, int dev, int *ip); |
dev | 49 | include/linux/skbuff.h | struct device *dev; /* Device we arrived on/are leaving by */ |
dev | 663 | include/linux/soundcard.h | #define MIXER_READ(dev) _IOR('M', dev, int) |
dev | 686 | include/linux/soundcard.h | #define MIXER_WRITE(dev) _IOWR('M', dev, int) |
dev | 820 | include/linux/soundcard.h | #define PM_LOAD_PATCH(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \ |
dev | 821 | include/linux/soundcard.h | _pm_info.device=dev, _pm_info.data.data8[0]=pgm, \ |
dev | 824 | include/linux/soundcard.h | #define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \ |
dev | 825 | include/linux/soundcard.h | _pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \ |
dev | 829 | include/linux/soundcard.h | #define SEQ_VOLUME_MODE(dev, mode) {_SEQ_NEEDBUF(8);\ |
dev | 832 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 844 | include/linux/soundcard.h | #define _CHN_VOICE(dev, event, chn, note, parm) \ |
dev | 847 | include/linux/soundcard.h | _seqbuf[_seqbufptr+1] = (dev);\ |
dev | 856 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, chn, note, vol) \ |
dev | 857 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) |
dev | 859 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, chn, note, vol) \ |
dev | 860 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) |
dev | 862 | include/linux/soundcard.h | #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ |
dev | 863 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) |
dev | 869 | include/linux/soundcard.h | #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ |
dev | 872 | include/linux/soundcard.h | _seqbuf[_seqbufptr+1] = (dev);\ |
dev | 880 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ |
dev | 881 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) |
dev | 883 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, chn, patch) \ |
dev | 884 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) |
dev | 886 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, chn, controller, value) \ |
dev | 887 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) |
dev | 889 | include/linux/soundcard.h | #define SEQ_BENDER(dev, chn, value) \ |
dev | 890 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value) |
dev | 893 | include/linux/soundcard.h | #define SEQ_V2_X_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\ |
dev | 896 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 906 | include/linux/soundcard.h | #define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) |
dev | 907 | include/linux/soundcard.h | #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value) |
dev | 908 | include/linux/soundcard.h | #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128) |
dev | 909 | include/linux/soundcard.h | #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100) |
dev | 910 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2) |
dev | 912 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) {_SEQ_NEEDBUF(8);\ |
dev | 915 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 340 | include/linux/sysv_fs.h | sv_get_hash_table (struct super_block *sb, int dev, unsigned int block) |
dev | 342 | include/linux/sysv_fs.h | return get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size); |
dev | 347 | include/linux/sysv_fs.h | sv_getblk (struct super_block *sb, int dev, unsigned int block) |
dev | 349 | include/linux/sysv_fs.h | return getblk (dev, block + sb->sv_block_base, sb->sv_block_size); |
dev | 354 | include/linux/sysv_fs.h | sv_bread (struct super_block *sb, int dev, unsigned int block) |
dev | 356 | include/linux/sysv_fs.h | return bread (dev, block + sb->sv_block_base, sb->sv_block_size); |
dev | 524 | include/linux/tpqic02.h | #define TP_DENS(dev) ((MINOR(dev) >> 1) & 0x07) /* tape density */ |
dev | 525 | include/linux/tpqic02.h | #define TP_UNIT(dev) ((MINOR(dev) >> 4) & 0x07) /* unit number */ |
dev | 528 | include/linux/tpqic02.h | #define TP_DIAGS(dev) (QIC02_TAPE_DEBUG & TPQD_DIAGS) |
dev | 31 | include/linux/trdevice.h | extern int tr_header(unsigned char *buff, struct device *dev, |
dev | 35 | include/linux/trdevice.h | extern int tr_rebuild_header(void *buff, struct device *dev, |
dev | 37 | include/linux/trdevice.h | extern unsigned short tr_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 117 | include/linux/xd.h | static int xd_reread_partitions (int dev); |
dev | 7 | include/net/arp.h | extern void arp_device_down(struct device *dev); |
dev | 8 | include/net/arp.h | extern int arp_rcv(struct sk_buff *skb, struct device *dev, |
dev | 11 | include/net/arp.h | struct device *dev, unsigned long saddr, struct sk_buff *skb); |
dev | 15 | include/net/arp.h | struct device *dev, unsigned long src_ip, |
dev | 17 | include/net/arp.h | extern int arp_find_cache(unsigned char *dp, unsigned long daddr, struct device *dev); |
dev | 43 | include/net/atalk.h | struct device *dev; |
dev | 52 | include/net/atalk.h | struct device *dev; |
dev | 139 | include/net/atalk.h | extern struct atalk_iface *atalk_find_dev(struct device *dev); |
dev | 140 | include/net/atalk.h | extern struct at_addr *atalk_find_dev_addr(struct device *dev); |
dev | 141 | include/net/atalk.h | extern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr); |
dev | 142 | include/net/atalk.h | extern void aarp_send_probe(struct device *dev, struct at_addr *addr); |
dev | 27 | include/net/eth.h | extern int eth_header(unsigned char *buff, struct device *dev, |
dev | 30 | include/net/eth.h | extern int eth_rebuild_header(void *buff, struct device *dev); |
dev | 32 | include/net/eth.h | struct device *dev); |
dev | 33 | include/net/eth.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 34 | include/net/eth.h | extern int eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
dev | 29 | include/net/icmp.h | unsigned long info, struct device *dev); |
dev | 30 | include/net/icmp.h | extern int icmp_rcv(struct sk_buff *skb1, struct device *dev, |
dev | 45 | include/net/ip.h | extern void ip_mc_dropdevice(struct device *dev); |
dev | 73 | include/net/ip.h | struct device *dev; /* Device - for icmp replies */ |
dev | 86 | include/net/ip.h | struct device **dev, int type, |
dev | 90 | include/net/ip.h | extern int ip_rcv(struct sk_buff *skb, struct device *dev, |
dev | 92 | include/net/ip.h | extern void ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict); |
dev | 96 | include/net/ip.h | struct device *dev, struct sk_buff *skb, |
dev | 1 | include/net/ipip.h | extern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 48 | include/net/ipx.h | extern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt); |
dev | 49 | include/net/ipx.h | extern void ipxrtr_device_down(struct device *dev); |
dev | 75 | include/net/netrom.h | struct device *dev; |
dev | 31 | include/net/protocol.h | int (*handler)(struct sk_buff *skb, struct device *dev, |
dev | 35 | include/net/protocol.h | int (*frag_handler)(struct sk_buff *skb, struct device *dev, |
dev | 7 | include/net/rarp.h | struct device *dev, |
dev | 46 | include/net/route.h | extern void ip_rt_flush(struct device *dev); |
dev | 48 | include/net/route.h | unsigned long gw, struct device *dev, unsigned short mss, unsigned long window, unsigned short irtt); |
dev | 238 | include/net/sock.h | struct device **dev, int type, |
dev | 244 | include/net/sock.h | struct device *dev, struct sk_buff *skb, |
dev | 249 | include/net/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
dev | 127 | include/net/tcp.h | extern int tcp_rcv(struct sk_buff *skb, struct device *dev, |
dev | 45 | include/net/udp.h | extern int udp_rcv(struct sk_buff *skb, struct device *dev, |
dev | 61 | kernel/ksyms.c | extern void set_device_ro(int dev,int flag); |
dev | 23 | net/802/p8022.c | p8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 31 | net/802/p8022.c | return proto->rcvfunc(skb, dev, pt); |
dev | 43 | net/802/p8022.c | struct device *dev = skb->dev; |
dev | 45 | net/802/p8022.c | unsigned long hard_len = dev->hard_header_len; |
dev | 48 | net/802/p8022.c | dev->hard_header(skb->data, dev, len - hard_len, |
dev | 11 | net/802/p8023.c | struct device *dev = skb->dev; |
dev | 13 | net/802/p8023.c | unsigned long hard_len = dev->hard_header_len; |
dev | 15 | net/802/p8023.c | dev->hard_header(skb->data, dev, len - hard_len, |
dev | 40 | net/802/psnap.c | int snap_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 64 | net/802/psnap.c | return proto->rcvfunc(skb, dev, &psnap_packet_type); |
dev | 77 | net/802/psnap.c | struct device *dev = skb->dev; |
dev | 80 | net/802/psnap.c | rawp = skb->data + snap_dl->header_length+dev->hard_header_len; |
dev | 20 | net/802/tr.c | static void tr_source_route(struct trh_hdr *trh,struct device *dev); |
dev | 41 | net/802/tr.c | int tr_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 51 | net/802/tr.c | memcpy(trh->saddr,saddr,dev->addr_len); |
dev | 53 | net/802/tr.c | memset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */ |
dev | 62 | net/802/tr.c | memcpy(trh->daddr,daddr,dev->addr_len); |
dev | 63 | net/802/tr.c | tr_source_route(trh,dev); |
dev | 64 | net/802/tr.c | return(dev->hard_header_len); |
dev | 66 | net/802/tr.c | return -dev->hard_header_len; |
dev | 70 | net/802/tr.c | int tr_rebuild_header(void *buff, struct device *dev, unsigned long dest, |
dev | 81 | net/802/tr.c | if(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) { |
dev | 85 | net/802/tr.c | tr_source_route(trh,dev); |
dev | 90 | net/802/tr.c | unsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) { |
dev | 100 | net/802/tr.c | if(!memcmp(trh->daddr,dev->broadcast,TR_ALEN)) |
dev | 106 | net/802/tr.c | else if(dev->flags & IFF_PROMISC) |
dev | 108 | net/802/tr.c | if(memcmp(trh->daddr, dev->dev_addr, TR_ALEN)) |
dev | 117 | net/802/tr.c | static void tr_source_route(struct trh_hdr *trh,struct device *dev) { |
dev | 124 | net/802/tr.c | if(!memcmp(&(trh->daddr[0]),&(dev->broadcast[0]),TR_ALEN)) { |
dev | 63 | net/appletalk/aarp.c | struct device *dev; /* Device to use */ |
dev | 103 | net/appletalk/aarp.c | struct device *dev=a->dev; |
dev | 104 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
dev | 106 | net/appletalk/aarp.c | struct elapaarp *eah=(struct elapaarp *)(skb->data+dev->hard_header_len+aarp_dl->header_length); |
dev | 107 | net/appletalk/aarp.c | struct at_addr *sat=atalk_find_dev_addr(dev); |
dev | 119 | net/appletalk/aarp.c | skb->dev = a->dev; |
dev | 131 | net/appletalk/aarp.c | memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); |
dev | 154 | net/appletalk/aarp.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 163 | net/appletalk/aarp.c | static void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha) |
dev | 165 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
dev | 167 | net/appletalk/aarp.c | struct elapaarp *eah=(struct elapaarp *)(skb->data+dev->hard_header_len+aarp_dl->header_length); |
dev | 179 | net/appletalk/aarp.c | skb->dev = dev; |
dev | 191 | net/appletalk/aarp.c | memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); |
dev | 216 | net/appletalk/aarp.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 224 | net/appletalk/aarp.c | void aarp_send_probe(struct device *dev, struct at_addr *us) |
dev | 226 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
dev | 228 | net/appletalk/aarp.c | struct elapaarp *eah=(struct elapaarp *)(skb->data+dev->hard_header_len+aarp_dl->header_length); |
dev | 241 | net/appletalk/aarp.c | skb->dev = dev; |
dev | 253 | net/appletalk/aarp.c | memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); |
dev | 275 | net/appletalk/aarp.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 330 | net/appletalk/aarp.c | static void aarp_expire_device(struct aarp_entry **n, struct device *dev) |
dev | 335 | net/appletalk/aarp.c | if((*n)->dev==dev) |
dev | 403 | net/appletalk/aarp.c | static struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat) |
dev | 411 | net/appletalk/aarp.c | list->target_addr.s_node==sat->s_node && list->dev==dev) |
dev | 423 | net/appletalk/aarp.c | int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr) |
dev | 433 | net/appletalk/aarp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 438 | net/appletalk/aarp.c | skb->dev = dev; |
dev | 452 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL); |
dev | 454 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, skb->sk->priority); |
dev | 458 | net/appletalk/aarp.c | a=aarp_find_entry(resolved[hash],dev,sa); |
dev | 467 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL); |
dev | 469 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, skb->sk->priority); |
dev | 476 | net/appletalk/aarp.c | a=aarp_find_entry(unresolved[hash],dev,sa); |
dev | 504 | net/appletalk/aarp.c | a->dev=dev; |
dev | 549 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL); |
dev | 551 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, skb->sk->priority); |
dev | 559 | net/appletalk/aarp.c | static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 573 | net/appletalk/aarp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 625 | net/appletalk/aarp.c | ifa=atalk_find_dev(dev); |
dev | 656 | net/appletalk/aarp.c | if((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev) |
dev | 694 | net/appletalk/aarp.c | aarp_send_reply(dev,ma,&sa,ea->hw_src); |
dev | 275 | net/appletalk/ddp.c | static void atif_drop_device(struct device *dev) |
dev | 282 | net/appletalk/ddp.c | if (tmp->dev == dev) |
dev | 292 | net/appletalk/ddp.c | static struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa) |
dev | 299 | net/appletalk/ddp.c | iface->dev=dev; |
dev | 358 | net/appletalk/ddp.c | aarp_send_probe(atif->dev, &atif->address); |
dev | 380 | net/appletalk/ddp.c | struct at_addr *atalk_find_dev_addr(struct device *dev) |
dev | 384 | net/appletalk/ddp.c | if(iface->dev==dev) |
dev | 393 | net/appletalk/ddp.c | if(!(iface->dev->flags&IFF_LOOPBACK)) |
dev | 406 | net/appletalk/ddp.c | struct atalk_iface *atalk_find_dev(struct device *dev) |
dev | 410 | net/appletalk/ddp.c | if(iface->dev==dev) |
dev | 420 | net/appletalk/ddp.c | static struct atalk_iface *atalk_find_anynet(int node, struct device *dev) |
dev | 424 | net/appletalk/ddp.c | if ( iface->dev != dev || ( iface->status & ATIF_PROBE )) { |
dev | 470 | net/appletalk/ddp.c | if(atrtr_default.dev) |
dev | 487 | net/appletalk/ddp.c | return atr->dev; |
dev | 494 | net/appletalk/ddp.c | static void atrtr_set_default(struct device *dev) |
dev | 496 | net/appletalk/ddp.c | atrtr_default.dev=dev; |
dev | 562 | net/appletalk/ddp.c | devhint = riface->dev; |
dev | 579 | net/appletalk/ddp.c | rt->dev=devhint; |
dev | 615 | net/appletalk/ddp.c | void atrtr_device_down(struct device *dev) |
dev | 621 | net/appletalk/ddp.c | if (tmp->dev == dev) { |
dev | 628 | net/appletalk/ddp.c | if(atrtr_default.dev==dev) |
dev | 662 | net/appletalk/ddp.c | struct device *dev; |
dev | 675 | net/appletalk/ddp.c | if((dev=dev_get(atreq.ifr_name))==NULL) |
dev | 679 | net/appletalk/ddp.c | atif=atalk_find_dev(dev); |
dev | 688 | net/appletalk/ddp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 705 | net/appletalk/ddp.c | atrtr_device_down(dev); /* Flush old routes */ |
dev | 709 | net/appletalk/ddp.c | atif=atif_add_device(dev, &sa->sat_addr); |
dev | 718 | net/appletalk/ddp.c | if(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0) |
dev | 720 | net/appletalk/ddp.c | atif_drop_device(dev); |
dev | 737 | net/appletalk/ddp.c | if(dev->flags&IFF_LOOPBACK) |
dev | 744 | net/appletalk/ddp.c | atrtr_create(&rtdef, dev); |
dev | 745 | net/appletalk/ddp.c | atrtr_set_default(dev); |
dev | 756 | net/appletalk/ddp.c | atrtr_create(&rtdef, dev); |
dev | 759 | net/appletalk/ddp.c | dev_mc_add(dev, aarp_mcast, 6, 1); |
dev | 819 | net/appletalk/ddp.c | iface->dev->name, |
dev | 849 | net/appletalk/ddp.c | if(atrtr_default.dev) |
dev | 854 | net/appletalk/ddp.c | rt->dev->name); |
dev | 861 | net/appletalk/ddp.c | rt->dev->name); |
dev | 1327 | net/appletalk/ddp.c | int atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1383 | net/appletalk/ddp.c | atif=atalk_find_anynet(ddp->deh_dnode, dev); |
dev | 1406 | net/appletalk/ddp.c | if(aarp_send_ddp(dev,skb, &ta, NULL)==-1) |
dev | 1447 | net/appletalk/ddp.c | struct device *dev; |
dev | 1501 | net/appletalk/ddp.c | dev=rt->dev; |
dev | 1511 | net/appletalk/ddp.c | dev=rt->dev; |
dev | 1515 | net/appletalk/ddp.c | printk("SK %p: Size needed %d, device %s\n", sk, size, dev->name); |
dev | 1517 | net/appletalk/ddp.c | size += dev->hard_header_len; |
dev | 1528 | net/appletalk/ddp.c | skb->dev=dev; |
dev | 1533 | net/appletalk/ddp.c | skb->h.raw=skb->data+ddp_dl->header_length+dev->hard_header_len; |
dev | 1570 | net/appletalk/ddp.c | if((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK))) |
dev | 1578 | net/appletalk/ddp.c | if(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1) |
dev | 1585 | net/appletalk/ddp.c | if((dev->flags&IFF_LOOPBACK) || loopback) |
dev | 1591 | net/appletalk/ddp.c | ddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr); |
dev | 1593 | net/appletalk/ddp.c | skb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len; |
dev | 1595 | net/appletalk/ddp.c | skb->len -= dev->hard_header_len ; |
dev | 1596 | net/appletalk/ddp.c | atalk_rcv(skb,dev,NULL); |
dev | 1608 | net/appletalk/ddp.c | if(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1) |
dev | 189 | net/ax25/af_ax25.c | static void ax25_kill_by_device(struct device *dev) |
dev | 194 | net/ax25/af_ax25.c | if (s->device == dev) { |
dev | 206 | net/ax25/af_ax25.c | ax25_rt_device_down(dev); |
dev | 242 | net/ax25/af_ax25.c | static struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type) |
dev | 253 | net/ax25/af_ax25.c | if (s->device == NULL || s->device == dev) { |
dev | 291 | net/ax25/af_ax25.c | static ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev) |
dev | 302 | net/ax25/af_ax25.c | if (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) { |
dev | 533 | net/ax25/af_ax25.c | int ax25_send_frame(struct sk_buff *skb, ax25_address *src, ax25_address *dest, struct device *dev) |
dev | 549 | net/ax25/af_ax25.c | if (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) { |
dev | 558 | net/ax25/af_ax25.c | ax25->device = dev; |
dev | 583 | net/ax25/af_ax25.c | struct device *dev; |
dev | 585 | net/ax25/af_ax25.c | for (dev = dev_base; dev != NULL; dev = dev->next) { |
dev | 586 | net/ax25/af_ax25.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25) { /* Active kiss ax25 mode */ |
dev | 587 | net/ax25/af_ax25.c | if (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) |
dev | 588 | net/ax25/af_ax25.c | return dev; |
dev | 817 | net/ax25/af_ax25.c | static struct sock *ax25_make_new(struct sock *osk, struct device *dev) |
dev | 884 | net/ax25/af_ax25.c | ax25->device = dev; |
dev | 975 | net/ax25/af_ax25.c | struct device *dev; |
dev | 1011 | net/ax25/af_ax25.c | if ((dev = ax25rtr_get_dev(call)) == NULL) { |
dev | 1017 | net/ax25/af_ax25.c | sk->ax25->device = dev; |
dev | 1228 | net/ax25/af_ax25.c | int ax25_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype) |
dev | 1252 | net/ax25/af_ax25.c | if ((data = ax25_parse_addr(data, skb->len + dev->hard_header_len - 1, &src, &dest, &dp, &type)) == NULL) { |
dev | 1260 | net/ax25/af_ax25.c | ax25_rt_rx_frame(&src, dev); |
dev | 1266 | net/ax25/af_ax25.c | if (ax25cmp(&dp.calls[dp.lastrepeat + 1], (ax25_address *)dev->dev_addr) == 0) { |
dev | 1278 | net/ax25/af_ax25.c | dev = dev_scan; |
dev | 1282 | net/ax25/af_ax25.c | skb->len += dev->hard_header_len; |
dev | 1284 | net/ax25/af_ax25.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 1298 | net/ax25/af_ax25.c | if (ax25cmp(&dest, (ax25_address *)dev->dev_addr) == 0) |
dev | 1314 | net/ax25/af_ax25.c | if (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) { |
dev | 1323 | net/ax25/af_ax25.c | ax25_ip_mode_set(&src, dev, 'D'); |
dev | 1324 | net/ax25/af_ax25.c | ip_rcv(skb, dev, ptype); /* Note ptype here is the wrong one, fix me later */ |
dev | 1328 | net/ax25/af_ax25.c | arp_rcv(skb, dev, ptype); /* Note ptype here is wrong... */ |
dev | 1357 | net/ax25/af_ax25.c | if ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) { |
dev | 1374 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1380 | net/ax25/af_ax25.c | if ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) { |
dev | 1381 | net/ax25/af_ax25.c | if (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) { |
dev | 1383 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1425 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1431 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1437 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1447 | net/ax25/af_ax25.c | ax25->device = dev; |
dev | 1785 | net/ax25/af_ax25.c | struct device *dev; |
dev | 1796 | net/ax25/af_ax25.c | if ((dev = ax25->device) == NULL) |
dev | 1799 | net/ax25/af_ax25.c | devname = dev->name; |
dev | 1910 | net/ax25/af_ax25.c | int ax25_encapsulate(unsigned char *buff, struct device *dev, unsigned short type, void *daddr, |
dev | 1917 | net/ax25/af_ax25.c | memcpy(buff, daddr, dev->addr_len); /* Address specified */ |
dev | 1924 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
dev | 1926 | net/ax25/af_ax25.c | memcpy(buff, dev->dev_addr, dev->addr_len); |
dev | 1955 | net/ax25/af_ax25.c | int ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb) |
dev | 1957 | net/ax25/af_ax25.c | if (arp_find(bp + 1, dest, dev, dev->pa_addr, skb)) |
dev | 77 | net/ax25/ax25_in.c | ip_rcv(skb, skb->dev, NULL); /* Wrong ptype */ |
dev | 57 | net/ax25/ax25_route.c | struct device *dev; |
dev | 63 | net/ax25/ax25_route.c | void ax25_rt_rx_frame(ax25_address *src, struct device *dev) |
dev | 78 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) { |
dev | 89 | net/ax25/ax25_route.c | oldest->dev = dev; |
dev | 100 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
dev | 114 | net/ax25/ax25_route.c | void ax25_rt_device_down(struct device *dev) |
dev | 122 | net/ax25/ax25_route.c | if (s->dev == dev) { |
dev | 153 | net/ax25/ax25_route.c | ax25_rt->dev ? ax25_rt->dev->name : "???", |
dev | 240 | net/ax25/ax25_route.c | if ((ax25->device = ax25_rt->dev) == NULL) |
dev | 262 | net/ax25/ax25_route.c | void ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode) |
dev | 267 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) { |
dev | 277 | net/ax25/ax25_route.c | char ax25_ip_mode_get(ax25_address *callsign, struct device *dev) |
dev | 282 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) |
dev | 144 | net/ax25/ax25_subr.c | struct device *dev; |
dev | 146 | net/ax25/ax25_subr.c | if ((dev = ax25->device) == NULL) |
dev | 180 | net/ax25/ax25_subr.c | void ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi) |
dev | 199 | net/ax25/ax25_subr.c | if (dev == NULL) |
dev | 209 | net/ax25/ax25_subr.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 189 | net/core/dev.c | struct device *dev; |
dev | 191 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 193 | net/core/dev.c | if (strcmp(dev->name, name) == 0) |
dev | 194 | net/core/dev.c | return(dev); |
dev | 204 | net/core/dev.c | int dev_open(struct device *dev) |
dev | 211 | net/core/dev.c | if (dev->open) |
dev | 212 | net/core/dev.c | ret = dev->open(dev); |
dev | 220 | net/core/dev.c | dev->flags |= (IFF_UP | IFF_RUNNING); |
dev | 228 | net/core/dev.c | ip_mc_allhost(dev); |
dev | 230 | net/core/dev.c | dev_mc_upload(dev); |
dev | 231 | net/core/dev.c | notifier_call_chain(&netdev_chain, NETDEV_UP, dev); |
dev | 241 | net/core/dev.c | int dev_close(struct device *dev) |
dev | 247 | net/core/dev.c | if (dev->flags != 0) |
dev | 250 | net/core/dev.c | dev->flags = 0; |
dev | 254 | net/core/dev.c | if (dev->stop) |
dev | 255 | net/core/dev.c | dev->stop(dev); |
dev | 259 | net/core/dev.c | notifier_call_chain(&netdev_chain, NETDEV_DOWN, dev); |
dev | 263 | net/core/dev.c | dev_mc_discard(dev); |
dev | 267 | net/core/dev.c | dev->pa_addr = 0; |
dev | 268 | net/core/dev.c | dev->pa_dstaddr = 0; |
dev | 269 | net/core/dev.c | dev->pa_brdaddr = 0; |
dev | 270 | net/core/dev.c | dev->pa_mask = 0; |
dev | 277 | net/core/dev.c | while((skb=skb_dequeue(&dev->buffs[ct]))!=NULL) |
dev | 312 | net/core/dev.c | void dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri) |
dev | 326 | net/core/dev.c | skb->dev = dev; |
dev | 353 | net/core/dev.c | if (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) { |
dev | 361 | net/core/dev.c | skb_queue_tail(dev->buffs + pri,skb); |
dev | 363 | net/core/dev.c | skb = skb_dequeue(dev->buffs + pri); |
dev | 377 | net/core/dev.c | if ((ptype->dev == dev || !ptype->dev) && |
dev | 387 | net/core/dev.c | skb2->len-=skb->dev->hard_header_len; |
dev | 388 | net/core/dev.c | ptype->func(skb2, skb->dev, ptype); |
dev | 394 | net/core/dev.c | if (dev->hard_start_xmit(skb, dev) == 0) { |
dev | 409 | net/core/dev.c | skb_queue_head(dev->buffs + pri,skb); |
dev | 485 | net/core/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
dev | 493 | net/core/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
dev | 514 | net/core/dev.c | dev->name); |
dev | 530 | net/core/dev.c | amount = min(len2, (unsigned long) dev->rmem_end - |
dev | 537 | net/core/dev.c | if ((unsigned long) buff == dev->rmem_end) |
dev | 538 | net/core/dev.c | buff = (unsigned char *) dev->rmem_start; |
dev | 547 | net/core/dev.c | skb->dev = dev; |
dev | 564 | net/core/dev.c | struct device *dev; |
dev | 566 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 568 | net/core/dev.c | if (dev->flags != 0 && !dev->tbusy) { |
dev | 572 | net/core/dev.c | dev_tint(dev); |
dev | 655 | net/core/dev.c | skb->h.raw = skb->data + skb->dev->hard_header_len; |
dev | 656 | net/core/dev.c | skb->len -= skb->dev->hard_header_len; |
dev | 676 | net/core/dev.c | pt_prev->func(skb2,skb->dev, pt_prev); |
dev | 683 | net/core/dev.c | if ((ptype->type == type || ptype->type == htons(ETH_P_ALL)) && (!ptype->dev || ptype->dev==skb->dev)) |
dev | 701 | net/core/dev.c | pt_prev->func(skb2, skb->dev, pt_prev); |
dev | 713 | net/core/dev.c | pt_prev->func(skb, skb->dev, pt_prev); |
dev | 752 | net/core/dev.c | void dev_tint(struct device *dev) |
dev | 771 | net/core/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
dev | 782 | net/core/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
dev | 786 | net/core/dev.c | if (dev->tbusy) |
dev | 805 | net/core/dev.c | struct device *dev; |
dev | 834 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 836 | net/core/dev.c | if(!(dev->flags & IFF_UP)) /* Downed devices don't count */ |
dev | 839 | net/core/dev.c | strcpy(ifr.ifr_name, dev->name); |
dev | 840 | net/core/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family; |
dev | 841 | net/core/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
dev | 880 | net/core/dev.c | static int sprintf_stats(char *buffer, struct device *dev) |
dev | 882 | net/core/dev.c | struct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL); |
dev | 887 | net/core/dev.c | dev->name, |
dev | 898 | net/core/dev.c | size = sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
dev | 915 | net/core/dev.c | struct device *dev; |
dev | 925 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 927 | net/core/dev.c | size = sprintf_stats(buffer+len, dev); |
dev | 972 | net/core/dev.c | struct device *dev; |
dev | 989 | net/core/dev.c | if ((dev = dev_get(ifr.ifr_name)) == NULL) |
dev | 995 | net/core/dev.c | ifr.ifr_flags = dev->flags; |
dev | 1000 | net/core/dev.c | int old_flags = dev->flags; |
dev | 1001 | net/core/dev.c | dev->flags = ifr.ifr_flags & ( |
dev | 1010 | net/core/dev.c | dev_mc_upload(dev); |
dev | 1016 | net/core/dev.c | if ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) |
dev | 1018 | net/core/dev.c | ret = dev_close(dev); |
dev | 1026 | net/core/dev.c | ret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP)) |
dev | 1027 | net/core/dev.c | ? dev_open(dev) : 0; |
dev | 1032 | net/core/dev.c | dev->flags&=~IFF_UP; /* Didn't open so down the if */ |
dev | 1039 | net/core/dev.c | &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
dev | 1041 | net/core/dev.c | &ifr.ifr_addr).sin_family = dev->family; |
dev | 1047 | net/core/dev.c | dev->pa_addr = (*(struct sockaddr_in *) |
dev | 1049 | net/core/dev.c | dev->family = ifr.ifr_addr.sa_family; |
dev | 1054 | net/core/dev.c | dev->pa_mask = ip_get_mask(dev->pa_addr); |
dev | 1056 | net/core/dev.c | dev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask; |
dev | 1062 | net/core/dev.c | &ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr; |
dev | 1064 | net/core/dev.c | &ifr.ifr_broadaddr).sin_family = dev->family; |
dev | 1073 | net/core/dev.c | dev->pa_brdaddr = (*(struct sockaddr_in *) |
dev | 1080 | net/core/dev.c | &ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr; |
dev | 1082 | net/core/dev.c | &ifr.ifr_dstaddr).sin_family = dev->family; |
dev | 1090 | net/core/dev.c | dev->pa_dstaddr = (*(struct sockaddr_in *) |
dev | 1097 | net/core/dev.c | &ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask; |
dev | 1099 | net/core/dev.c | &ifr.ifr_netmask).sin_family = dev->family; |
dev | 1114 | net/core/dev.c | dev->pa_mask = mask; |
dev | 1121 | net/core/dev.c | ifr.ifr_metric = dev->metric; |
dev | 1125 | net/core/dev.c | dev->metric = ifr.ifr_metric; |
dev | 1130 | net/core/dev.c | ifr.ifr_mtu = dev->mtu; |
dev | 1141 | net/core/dev.c | dev->mtu = ifr.ifr_mtu; |
dev | 1155 | net/core/dev.c | memcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN); |
dev | 1159 | net/core/dev.c | memcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN); |
dev | 1160 | net/core/dev.c | ifr.ifr_hwaddr.sa_family=dev->type; |
dev | 1164 | net/core/dev.c | if(dev->set_mac_address==NULL) |
dev | 1166 | net/core/dev.c | if(ifr.ifr_hwaddr.sa_family!=dev->type) |
dev | 1168 | net/core/dev.c | ret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data); |
dev | 1172 | net/core/dev.c | ifr.ifr_map.mem_start=dev->mem_start; |
dev | 1173 | net/core/dev.c | ifr.ifr_map.mem_end=dev->mem_end; |
dev | 1174 | net/core/dev.c | ifr.ifr_map.base_addr=dev->base_addr; |
dev | 1175 | net/core/dev.c | ifr.ifr_map.irq=dev->irq; |
dev | 1176 | net/core/dev.c | ifr.ifr_map.dma=dev->dma; |
dev | 1177 | net/core/dev.c | ifr.ifr_map.port=dev->if_port; |
dev | 1183 | net/core/dev.c | if(dev->set_config==NULL) |
dev | 1185 | net/core/dev.c | return dev->set_config(dev,&ifr.ifr_map); |
dev | 1188 | net/core/dev.c | if(dev->set_multicast_list==NULL) |
dev | 1192 | net/core/dev.c | dev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1); |
dev | 1196 | net/core/dev.c | if(dev->set_multicast_list==NULL) |
dev | 1200 | net/core/dev.c | dev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1); |
dev | 1209 | net/core/dev.c | if(dev->do_ioctl==NULL) |
dev | 1211 | net/core/dev.c | ret=dev->do_ioctl(dev, &ifr, getset); |
dev | 1306 | net/core/dev.c | struct device *dev, *dev2; |
dev | 1316 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev=dev->next) |
dev | 1318 | net/core/dev.c | if (dev->init && dev->init(dev)) |
dev | 1325 | net/core/dev.c | dev_base = dev->next; |
dev | 1327 | net/core/dev.c | dev2->next = dev->next; |
dev | 1331 | net/core/dev.c | dev2 = dev; |
dev | 60 | net/core/dev_mcast.c | void dev_mc_upload(struct device *dev) |
dev | 69 | net/core/dev_mcast.c | if(!(dev->flags&IFF_UP)) |
dev | 74 | net/core/dev_mcast.c | if(dev->set_multicast_list==NULL) |
dev | 77 | net/core/dev_mcast.c | if(dev->flags&IFF_PROMISC) |
dev | 79 | net/core/dev_mcast.c | dev->set_multicast_list(dev, -1, NULL); |
dev | 83 | net/core/dev_mcast.c | if(dev->mc_count==0) |
dev | 85 | net/core/dev_mcast.c | dev->set_multicast_list(dev,0,NULL); |
dev | 89 | net/core/dev_mcast.c | data=kmalloc(dev->mc_count*dev->addr_len, GFP_KERNEL); |
dev | 92 | net/core/dev_mcast.c | printk("Unable to get memory to set multicast list on %s\n",dev->name); |
dev | 95 | net/core/dev_mcast.c | for(tmp = data, dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next) |
dev | 98 | net/core/dev_mcast.c | tmp+=dev->addr_len; |
dev | 100 | net/core/dev_mcast.c | dev->set_multicast_list(dev,dev->mc_count,data); |
dev | 108 | net/core/dev_mcast.c | void dev_mc_delete(struct device *dev, void *addr, int alen, int all) |
dev | 111 | net/core/dev_mcast.c | for(dmi=&dev->mc_list;*dmi!=NULL;dmi=&(*dmi)->next) |
dev | 119 | net/core/dev_mcast.c | dev->mc_count--; |
dev | 121 | net/core/dev_mcast.c | dev_mc_upload(dev); |
dev | 131 | net/core/dev_mcast.c | void dev_mc_add(struct device *dev, void *addr, int alen, int newonly) |
dev | 134 | net/core/dev_mcast.c | for(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next) |
dev | 148 | net/core/dev_mcast.c | dmi->next=dev->mc_list; |
dev | 150 | net/core/dev_mcast.c | dev->mc_list=dmi; |
dev | 151 | net/core/dev_mcast.c | dev->mc_count++; |
dev | 152 | net/core/dev_mcast.c | dev_mc_upload(dev); |
dev | 159 | net/core/dev_mcast.c | void dev_mc_discard(struct device *dev) |
dev | 161 | net/core/dev_mcast.c | while(dev->mc_list!=NULL) |
dev | 163 | net/core/dev_mcast.c | struct dev_mc_list *tmp=dev->mc_list; |
dev | 164 | net/core/dev_mcast.c | dev->mc_list=dev->mc_list->next; |
dev | 167 | net/core/dev_mcast.c | dev->mc_count=0; |
dev | 457 | net/core/skbuff.c | if(skb->in_dev_queue && skb->dev!=NULL) |
dev | 458 | net/core/skbuff.c | skb->dev->pkt_queue--; |
dev | 510 | net/core/skbuff.c | n->dev=skb->dev; |
dev | 525 | net/core/sock.c | sk->prot->rcv(skb, skb->dev, sk->opt, |
dev | 84 | net/ethernet/eth.c | int eth_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 105 | net/ethernet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
dev | 107 | net/ethernet/eth.c | memcpy(eth->h_source,dev->dev_addr,dev->addr_len); |
dev | 113 | net/ethernet/eth.c | if (dev->flags & IFF_LOOPBACK) |
dev | 115 | net/ethernet/eth.c | memset(eth->h_dest, 0, dev->addr_len); |
dev | 116 | net/ethernet/eth.c | return(dev->hard_header_len); |
dev | 121 | net/ethernet/eth.c | memcpy(eth->h_dest,daddr,dev->addr_len); |
dev | 122 | net/ethernet/eth.c | return dev->hard_header_len; |
dev | 125 | net/ethernet/eth.c | return -dev->hard_header_len; |
dev | 135 | net/ethernet/eth.c | int eth_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
dev | 147 | net/ethernet/eth.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
dev | 155 | net/ethernet/eth.c | return arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0; |
dev | 168 | net/ethernet/eth.c | unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev) |
dev | 175 | net/ethernet/eth.c | if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0) |
dev | 181 | net/ethernet/eth.c | else if(dev->flags&IFF_PROMISC) |
dev | 183 | net/ethernet/eth.c | if(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN)) |
dev | 202 | net/ethernet/eth.c | void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr) |
dev | 204 | net/ethernet/eth.c | int v=arp_find_cache(sk->ip_hcache_data, daddr, dev); |
dev | 209 | net/ethernet/eth.c | memcpy(sk->ip_hcache_data+6, dev->dev_addr, ETH_ALEN); |
dev | 11 | net/ethernet/pe2.c | struct device *dev = skb->dev; |
dev | 13 | net/ethernet/pe2.c | unsigned long hard_len = dev->hard_header_len; |
dev | 15 | net/ethernet/pe2.c | dev->hard_header(skb->data, dev, ETH_P_IPX, |
dev | 347 | net/ipv4/af_inet.c | skb->dev = NULL; |
dev | 94 | net/ipv4/arp.c | struct device *dev; /* Device the entry is tied to */ |
dev | 270 | net/ipv4/arp.c | struct device *dev=ptr; |
dev | 289 | net/ipv4/arp.c | if(entry->dev==dev) |
dev | 311 | net/ipv4/arp.c | struct device *dev, unsigned long src_ip, |
dev | 322 | net/ipv4/arp.c | if(dev->flags&IFF_NOARP) |
dev | 329 | net/ipv4/arp.c | skb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4) |
dev | 330 | net/ipv4/arp.c | + dev->hard_header_len, GFP_ATOMIC); |
dev | 336 | net/ipv4/arp.c | skb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4); |
dev | 338 | net/ipv4/arp.c | skb->dev = dev; |
dev | 345 | net/ipv4/arp.c | dev->hard_header(skb->data,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb); |
dev | 348 | net/ipv4/arp.c | arp = (struct arphdr *) (skb->data + dev->hard_header_len); |
dev | 349 | net/ipv4/arp.c | arp->ar_hrd = htons(dev->type); |
dev | 352 | net/ipv4/arp.c | arp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP); |
dev | 354 | net/ipv4/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP); |
dev | 359 | net/ipv4/arp.c | arp->ar_hln = dev->addr_len; |
dev | 365 | net/ipv4/arp.c | memcpy(arp_ptr, src_hw, dev->addr_len); |
dev | 366 | net/ipv4/arp.c | arp_ptr+=dev->addr_len; |
dev | 370 | net/ipv4/arp.c | memcpy(arp_ptr, dest_hw, dev->addr_len); |
dev | 372 | net/ipv4/arp.c | memset(arp_ptr, 0, dev->addr_len); |
dev | 373 | net/ipv4/arp.c | arp_ptr+=dev->addr_len; |
dev | 376 | net/ipv4/arp.c | dev_queue_xmit(skb, dev, 0); |
dev | 410 | net/ipv4/arp.c | struct device *dev = entry->dev; |
dev | 417 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, |
dev | 418 | net/ipv4/arp.c | NULL, dev->dev_addr); |
dev | 488 | net/ipv4/arp.c | if(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb)) |
dev | 492 | net/ipv4/arp.c | dev_queue_xmit(skb, skb->dev, 0); |
dev | 494 | net/ipv4/arp.c | dev_queue_xmit(skb,skb->dev,skb->sk->priority); |
dev | 561 | net/ipv4/arp.c | int arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 584 | net/ipv4/arp.c | if (arp->ar_hln != dev->addr_len || |
dev | 585 | net/ipv4/arp.c | dev->type != ntohs(arp->ar_hrd) || |
dev | 586 | net/ipv4/arp.c | dev->flags & IFF_NOARP || |
dev | 599 | net/ipv4/arp.c | switch(dev->type) |
dev | 646 | net/ipv4/arp.c | hlen = dev->addr_len; |
dev | 647 | net/ipv4/arp.c | htype = dev->type; |
dev | 707 | net/ipv4/arp.c | if(tip!=dev->pa_addr) |
dev | 727 | net/ipv4/arp.c | if (proxy_entry->dev != dev && proxy_entry->htype == htype && |
dev | 736 | net/ipv4/arp.c | arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha); |
dev | 752 | net/ipv4/arp.c | arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr); |
dev | 821 | net/ipv4/arp.c | entry->dev = skb->dev; |
dev | 840 | net/ipv4/arp.c | int arp_find(unsigned char *haddr, unsigned long paddr, struct device *dev, |
dev | 853 | net/ipv4/arp.c | memcpy(haddr, dev->dev_addr, dev->addr_len); |
dev | 858 | net/ipv4/arp.c | if(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802) |
dev | 877 | net/ipv4/arp.c | memcpy(haddr, dev->broadcast, dev->addr_len); |
dev | 913 | net/ipv4/arp.c | memcpy(haddr, entry->ha, dev->addr_len); |
dev | 933 | net/ipv4/arp.c | memset(entry->ha, 0, dev->addr_len); |
dev | 934 | net/ipv4/arp.c | entry->hlen = dev->addr_len; |
dev | 935 | net/ipv4/arp.c | entry->htype = dev->type; |
dev | 936 | net/ipv4/arp.c | entry->dev = dev; |
dev | 962 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, |
dev | 963 | net/ipv4/arp.c | dev->dev_addr); |
dev | 1080 | net/ipv4/arp.c | int arp_find_cache(unsigned char *dp, unsigned long daddr, struct device *dev) |
dev | 1094 | net/ipv4/arp.c | memcpy(dp, dev->dev_addr, dev->addr_len); |
dev | 1098 | net/ipv4/arp.c | if(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802) |
dev | 1117 | net/ipv4/arp.c | memcpy(dp, dev->broadcast, dev->addr_len); |
dev | 1260 | net/ipv4/arp.c | entry->dev = rt->rt_dev; |
dev | 78 | net/ipv4/devinet.c | struct device *dev; |
dev | 107 | net/ipv4/devinet.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 109 | net/ipv4/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 116 | net/ipv4/devinet.c | if ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/) |
dev | 122 | net/ipv4/devinet.c | if (addr == dev->pa_addr) |
dev | 128 | net/ipv4/devinet.c | if ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr) |
dev | 134 | net/ipv4/devinet.c | if (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) |
dev | 136 | net/ipv4/devinet.c | if ((addr & ~dev->pa_mask) == 0) |
dev | 138 | net/ipv4/devinet.c | if ((addr & ~dev->pa_mask) == ~dev->pa_mask) |
dev | 146 | net/ipv4/devinet.c | if (((addr ^ dev->pa_addr) & mask) == 0) |
dev | 172 | net/ipv4/devinet.c | struct device *dev; |
dev | 174 | net/ipv4/devinet.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 176 | net/ipv4/devinet.c | if (dev->flags & IFF_LOOPBACK) |
dev | 177 | net/ipv4/devinet.c | return(dev->pa_addr); |
dev | 191 | net/ipv4/devinet.c | struct device *dev; |
dev | 193 | net/ipv4/devinet.c | for (dev = dev_base; dev; dev = dev->next) |
dev | 195 | net/ipv4/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 197 | net/ipv4/devinet.c | if (!(dev->flags & IFF_POINTOPOINT)) |
dev | 199 | net/ipv4/devinet.c | if (addr != dev->pa_dstaddr) |
dev | 201 | net/ipv4/devinet.c | return dev; |
dev | 203 | net/ipv4/devinet.c | for (dev = dev_base; dev; dev = dev->next) |
dev | 205 | net/ipv4/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 207 | net/ipv4/devinet.c | if (dev->flags & IFF_POINTOPOINT) |
dev | 209 | net/ipv4/devinet.c | if (dev->pa_mask & (addr ^ dev->pa_addr)) |
dev | 211 | net/ipv4/devinet.c | return dev; |
dev | 100 | net/ipv4/icmp.c | void icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev) |
dev | 115 | net/ipv4/icmp.c | iph = (struct iphdr *) (skb_in->data + dev->hard_header_len); |
dev | 213 | net/ipv4/icmp.c | len = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) + |
dev | 228 | net/ipv4/icmp.c | our_addr = dev->pa_addr; |
dev | 351 | net/ipv4/icmp.c | struct device *dev, unsigned long source) |
dev | 368 | net/ipv4/icmp.c | printk("icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name); |
dev | 380 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0); |
dev | 396 | net/ipv4/icmp.c | ((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) || |
dev | 401 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
dev | 423 | net/ipv4/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 435 | net/ipv4/icmp.c | size = dev->hard_header_len + 64 + len; |
dev | 490 | net/ipv4/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 511 | net/ipv4/icmp.c | size = dev->hard_header_len + 84; |
dev | 577 | net/ipv4/icmp.c | static void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 590 | net/ipv4/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 602 | net/ipv4/icmp.c | size = dev->hard_header_len + 64 + len; |
dev | 643 | net/ipv4/icmp.c | memcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask)); |
dev | 659 | net/ipv4/icmp.c | int icmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt, |
dev | 706 | net/ipv4/icmp.c | daddr=dev->pa_addr; |
dev | 725 | net/ipv4/icmp.c | icmp_redirect(icmph, skb1, dev, saddr); |
dev | 729 | net/ipv4/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 737 | net/ipv4/icmp.c | icmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 745 | net/ipv4/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 753 | net/ipv4/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 83 | net/ipv4/igmp.c | static void igmp_send_report(struct device *dev, unsigned long address, int type) |
dev | 91 | net/ipv4/igmp.c | tmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL, |
dev | 107 | net/ipv4/igmp.c | ip_queue_xmit(NULL,dev,skb,1); |
dev | 127 | net/ipv4/igmp.c | extern __inline__ void igmp_heard_report(struct device *dev, unsigned long address) |
dev | 130 | net/ipv4/igmp.c | for(im=dev->ip_mc_list;im!=NULL;im=im->next) |
dev | 135 | net/ipv4/igmp.c | extern __inline__ void igmp_heard_query(struct device *dev) |
dev | 138 | net/ipv4/igmp.c | for(im=dev->ip_mc_list;im!=NULL;im=im->next) |
dev | 164 | net/ipv4/igmp.c | void ip_mc_filter_add(struct device *dev, unsigned long addr) |
dev | 167 | net/ipv4/igmp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 170 | net/ipv4/igmp.c | dev_mc_add(dev,buf,ETH_ALEN,0); |
dev | 177 | net/ipv4/igmp.c | void ip_mc_filter_del(struct device *dev, unsigned long addr) |
dev | 180 | net/ipv4/igmp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 183 | net/ipv4/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
dev | 202 | net/ipv4/igmp.c | int igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 219 | net/ipv4/igmp.c | igmp_heard_query(dev); |
dev | 221 | net/ipv4/igmp.c | igmp_heard_report(dev,igh.group); |
dev | 235 | net/ipv4/igmp.c | static void ip_mc_inc_group(struct device *dev, unsigned long addr) |
dev | 238 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
dev | 250 | net/ipv4/igmp.c | i->interface=dev; |
dev | 252 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
dev | 254 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
dev | 261 | net/ipv4/igmp.c | static void ip_mc_dec_group(struct device *dev, unsigned long addr) |
dev | 264 | net/ipv4/igmp.c | for(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next) |
dev | 285 | net/ipv4/igmp.c | void ip_mc_drop_device(struct device *dev) |
dev | 289 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
dev | 294 | net/ipv4/igmp.c | dev->ip_mc_list=NULL; |
dev | 301 | net/ipv4/igmp.c | void ip_mc_allhost(struct device *dev) |
dev | 304 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
dev | 311 | net/ipv4/igmp.c | i->interface=dev; |
dev | 313 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
dev | 314 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
dev | 323 | net/ipv4/igmp.c | int ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr) |
dev | 329 | net/ipv4/igmp.c | if(!(dev->flags&IFF_MULTICAST)) |
dev | 339 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
dev | 348 | net/ipv4/igmp.c | sk->ip_mc_list->multidev[unused]=dev; |
dev | 349 | net/ipv4/igmp.c | ip_mc_inc_group(dev,addr); |
dev | 357 | net/ipv4/igmp.c | int ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr) |
dev | 362 | net/ipv4/igmp.c | if(!(dev->flags&IFF_MULTICAST)) |
dev | 369 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
dev | 372 | net/ipv4/igmp.c | ip_mc_dec_group(dev,addr); |
dev | 176 | net/ipv4/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
dev | 180 | net/ipv4/ip.c | skb->dev = dev; |
dev | 182 | net/ipv4/ip.c | if (dev->hard_header) |
dev | 188 | net/ipv4/ip.c | mac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb); |
dev | 208 | net/ipv4/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
dev | 224 | net/ipv4/ip.c | if(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name) |
dev | 225 | net/ipv4/ip.c | *dev=dev_get(skb->sk->ip_mc_name); |
dev | 227 | net/ipv4/ip.c | if (*dev == NULL) |
dev | 239 | net/ipv4/ip.c | *dev = rt->rt_dev; |
dev | 284 | net/ipv4/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
dev | 292 | net/ipv4/ip.c | skb->dev = *dev; |
dev | 478 | net/ipv4/ip.c | ICMP_EXC_FRAGTIME, 0, qp->dev); |
dev | 494 | net/ipv4/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
dev | 505 | net/ipv4/ip.c | skb->dev = qp->dev; |
dev | 546 | net/ipv4/ip.c | qp->dev = dev; |
dev | 676 | net/ipv4/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
dev | 723 | net/ipv4/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
dev | 743 | net/ipv4/ip.c | ptr = skb->data + dev->hard_header_len + ihl; |
dev | 869 | net/ipv4/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
dev | 884 | net/ipv4/ip.c | iph = (struct iphdr *) (raw + dev->hard_header_len); |
dev | 894 | net/ipv4/ip.c | hlen += dev->hard_header_len; /* Total header size */ |
dev | 895 | net/ipv4/ip.c | mtu = (dev->mtu - hlen); /* Size of data space */ |
dev | 908 | net/ipv4/ip.c | icmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev->mtu, dev); |
dev | 921 | net/ipv4/ip.c | icmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev); |
dev | 1006 | net/ipv4/ip.c | skb2->h.raw+=dev->hard_header_len; |
dev | 1028 | net/ipv4/ip.c | ip_queue_xmit(sk, dev, skb2, 2); |
dev | 1041 | net/ipv4/ip.c | void ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict) |
dev | 1058 | net/ipv4/ip.c | if(!(is_frag&4) && (fw_res=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0))!=1) |
dev | 1061 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev); |
dev | 1093 | net/ipv4/ip.c | icmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev); |
dev | 1109 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev); |
dev | 1132 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev); |
dev | 1148 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev); |
dev | 1169 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && rt->rt_flags&RTF_MODIFIED) |
dev | 1170 | net/ipv4/ip.c | icmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev); |
dev | 1238 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); |
dev | 1263 | net/ipv4/ip.c | int ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1320 | net/ipv4/ip.c | if ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))<1) |
dev | 1323 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev); |
dev | 1369 | net/ipv4/ip.c | icmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev); |
dev | 1390 | net/ipv4/ip.c | if (iph->daddr!=skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) |
dev | 1395 | net/ipv4/ip.c | icmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev); |
dev | 1411 | net/ipv4/ip.c | icmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev); |
dev | 1416 | net/ipv4/ip.c | *(long *)(&opt_ptr[opt_ptr[2]])=skb->dev->pa_addr; /* Record hop */ |
dev | 1463 | net/ipv4/ip.c | if ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0) |
dev | 1467 | net/ipv4/ip.c | if(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK)) |
dev | 1472 | net/ipv4/ip.c | struct ip_mc_list *ip_mc=dev->ip_mc_list; |
dev | 1495 | net/ipv4/ip.c | ip_forward(skb, dev, is_frag|4, iph->daddr, 0); |
dev | 1506 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); |
dev | 1516 | net/ipv4/ip.c | skb=ip_defrag(iph,skb,dev); |
dev | 1519 | net/ipv4/ip.c | skb->dev = dev; |
dev | 1558 | net/ipv4/ip.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr); |
dev | 1609 | net/ipv4/ip.c | ipprot->handler(skb2, dev, NULL, iph->daddr, |
dev | 1623 | net/ipv4/ip.c | raw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr); |
dev | 1627 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev); |
dev | 1661 | net/ipv4/ip.c | ip_forward(skb, dev, is_frag, target_addr, target_strict); |
dev | 1684 | net/ipv4/ip.c | struct device *dev=&loopback_dev; |
dev | 1686 | net/ipv4/ip.c | struct sk_buff *newskb=alloc_skb(len+dev->hard_header_len, GFP_ATOMIC); |
dev | 1693 | net/ipv4/ip.c | newskb->dev=dev; |
dev | 1701 | net/ipv4/ip.c | newskb->len=len+dev->hard_header_len; |
dev | 1704 | net/ipv4/ip.c | newskb->ip_hdr=(struct iphdr *)(newskb->data+ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr)); |
dev | 1710 | net/ipv4/ip.c | ip_queue_xmit(NULL, dev, newskb, 1); |
dev | 1723 | net/ipv4/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
dev | 1730 | net/ipv4/ip.c | if (dev == NULL) |
dev | 1743 | net/ipv4/ip.c | skb->dev = dev; |
dev | 1755 | net/ipv4/ip.c | ptr += dev->hard_header_len; |
dev | 1758 | net/ipv4/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
dev | 1761 | net/ipv4/ip.c | if(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1) |
dev | 1787 | net/ipv4/ip.c | if(skb->len > dev->mtu + dev->hard_header_len) |
dev | 1789 | net/ipv4/ip.c | ip_fragment(sk,skb,dev,0); |
dev | 1863 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); |
dev | 1872 | net/ipv4/ip.c | if (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK)) |
dev | 1877 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 1880 | net/ipv4/ip.c | struct ip_mc_list *imc=dev->ip_mc_list; |
dev | 1885 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 1901 | net/ipv4/ip.c | if((dev->flags&IFF_BROADCAST) && iph->daddr==dev->pa_brdaddr && !(dev->flags&IFF_LOOPBACK)) |
dev | 1902 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 1904 | net/ipv4/ip.c | if (dev->flags & IFF_UP) |
dev | 1913 | net/ipv4/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 1917 | net/ipv4/ip.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 1943 | net/ipv4/ip.c | struct device *dev; |
dev | 1949 | net/ipv4/ip.c | for(dev = dev_base; dev; dev = dev->next) |
dev | 1951 | net/ipv4/ip.c | if((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)) |
dev | 1954 | net/ipv4/ip.c | dev->name, dev->mc_count); |
dev | 1955 | net/ipv4/ip.c | for(im = dev->ip_mc_list; im; im = im->next) |
dev | 1993 | net/ipv4/ip.c | struct device *dev; |
dev | 1994 | net/ipv4/ip.c | for(dev = dev_base; dev; dev = dev->next) |
dev | 1996 | net/ipv4/ip.c | if((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&& |
dev | 1997 | net/ipv4/ip.c | (dev->pa_addr==addr)) |
dev | 1998 | net/ipv4/ip.c | return dev; |
dev | 2056 | net/ipv4/ip.c | struct device *dev=NULL; |
dev | 2083 | net/ipv4/ip.c | dev=ip_mc_find_devfor(addr.s_addr); |
dev | 2089 | net/ipv4/ip.c | if(dev) |
dev | 2091 | net/ipv4/ip.c | strcpy(sk->ip_mc_name,dev->name); |
dev | 2106 | net/ipv4/ip.c | struct device *dev=NULL; |
dev | 2129 | net/ipv4/ip.c | dev=rt->rt_dev; |
dev | 2139 | net/ipv4/ip.c | dev=ip_mc_find_devfor(mreq.imr_interface.s_addr); |
dev | 2146 | net/ipv4/ip.c | if(!dev) |
dev | 2153 | net/ipv4/ip.c | return ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr); |
dev | 2161 | net/ipv4/ip.c | struct device *dev=NULL; |
dev | 2181 | net/ipv4/ip.c | dev=rt->rt_dev; |
dev | 2188 | net/ipv4/ip.c | dev=ip_mc_find_devfor(mreq.imr_interface.s_addr); |
dev | 2195 | net/ipv4/ip.c | if(!dev) |
dev | 2202 | net/ipv4/ip.c | return ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr); |
dev | 2349 | net/ipv4/ip.c | struct device *dev; |
dev | 2355 | net/ipv4/ip.c | dev=dev_get(skb->ip_mc_name); |
dev | 2356 | net/ipv4/ip.c | if(!dev) |
dev | 2419 | net/ipv4/ip.c | dev=rt->rt_dev; |
dev | 2428 | net/ipv4/ip.c | fragheaderlen = dev->hard_header_len; |
dev | 2437 | net/ipv4/ip.c | maxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen; |
dev | 2500 | net/ipv4/ip.c | skb->dev = dev; |
dev | 2518 | net/ipv4/ip.c | memcpy(skb->data,sk->ip_hcache_data, dev->hard_header_len); |
dev | 2521 | net/ipv4/ip.c | else if (dev->hard_header) |
dev | 2523 | net/ipv4/ip.c | if(dev->hard_header(skb->data, dev, ETH_P_IP, |
dev | 2532 | net/ipv4/ip.c | data = (char *)skb->data + dev->hard_header_len; |
dev | 2581 | net/ipv4/ip.c | ip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1); |
dev | 2592 | net/ipv4/ip.c | if (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) |
dev | 2631 | net/ipv4/ip.c | if (dev->flags & IFF_UP) |
dev | 2633 | net/ipv4/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 518 | net/ipv4/ip_fw.c | static struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp) |
dev | 588 | net/ipv4/ip_fw.c | from = ntohl(dev->pa_addr); |
dev | 654 | net/ipv4/ip_fw.c | void ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev) |
dev | 718 | net/ipv4/ip_fw.c | iph->saddr = dev->pa_addr; /* my own address */ |
dev | 735 | net/ipv4/ip_fw.c | skb = revamp(*skb_ptr, dev, ms); |
dev | 758 | net/ipv4/ip_fw.c | printk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name); |
dev | 1192 | net/ipv4/ip_fw.c | void ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f) |
dev | 1194 | net/ipv4/ip_fw.c | (void) ip_fw_chk(iph, dev, f, 0, 1); |
dev | 50 | net/ipv4/ipip.c | int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 59 | net/ipv4/ipip.c | ip_forward(skb, dev, 0, daddr, 0); |
dev | 72 | net/ipv4/packet.c | int packet_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 90 | net/ipv4/packet.c | skb->dev = dev; |
dev | 91 | net/ipv4/packet.c | skb->len += dev->hard_header_len; |
dev | 145 | net/ipv4/packet.c | struct device *dev; |
dev | 172 | net/ipv4/packet.c | dev = dev_get(saddr->sa_data); |
dev | 173 | net/ipv4/packet.c | if (dev == NULL) |
dev | 183 | net/ipv4/packet.c | if(len>dev->mtu+dev->hard_header_len) |
dev | 212 | net/ipv4/packet.c | if (dev->flags & IFF_UP) |
dev | 213 | net/ipv4/packet.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 266 | net/ipv4/packet.c | p->dev = NULL; |
dev | 341 | net/ipv4/packet.c | saddr->sa_family = skb->dev->type; |
dev | 342 | net/ipv4/packet.c | memcpy(saddr->sa_data,skb->dev->name, 14); |
dev | 73 | net/ipv4/rarp.c | struct device *dev; /* Device the entry is tied to */ |
dev | 143 | net/ipv4/rarp.c | int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 158 | net/ipv4/rarp.c | if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) |
dev | 159 | net/ipv4/rarp.c | || dev->flags&IFF_NOARP) |
dev | 180 | net/ipv4/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
dev | 182 | net/ipv4/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
dev | 197 | net/ipv4/rarp.c | rarp_ptr+=dev->addr_len; |
dev | 201 | net/ipv4/rarp.c | rarp_ptr+=dev->addr_len; |
dev | 218 | net/ipv4/rarp.c | arp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, |
dev | 219 | net/ipv4/rarp.c | dev->dev_addr); |
dev | 319 | net/ipv4/rarp.c | entry->dev = rt->rt_dev; |
dev | 97 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, long saddr, long daddr) |
dev | 103 | net/ipv4/raw.c | skb->dev = dev; |
dev | 120 | net/ipv4/route.c | void ip_rt_flush(struct device *dev) |
dev | 130 | net/ipv4/route.c | if (r->rt_dev != dev) { |
dev | 166 | net/ipv4/route.c | static unsigned long guess_mask(unsigned long dst, struct device * dev) |
dev | 173 | net/ipv4/route.c | if ((dst ^ dev->pa_addr) & mask) |
dev | 175 | net/ipv4/route.c | return dev->pa_mask; |
dev | 212 | net/ipv4/route.c | unsigned long gw, struct device *dev, unsigned short mtu, unsigned long window, unsigned short irtt) |
dev | 233 | net/ipv4/route.c | if (!((dst ^ dev->pa_addr) & dev->pa_mask)) |
dev | 235 | net/ipv4/route.c | mask = dev->pa_mask; |
dev | 244 | net/ipv4/route.c | mask = guess_mask(dst, dev); |
dev | 252 | net/ipv4/route.c | if (gw == dev->pa_addr) |
dev | 261 | net/ipv4/route.c | if (dev != get_gw_dev(gw)) |
dev | 281 | net/ipv4/route.c | rt->rt_dev = dev; |
dev | 284 | net/ipv4/route.c | rt->rt_mss = dev->mtu - HEADER_SIZE; |
dev | 379 | net/ipv4/route.c | struct device * dev = NULL; |
dev | 391 | net/ipv4/route.c | dev = dev_get(devname); |
dev | 393 | net/ipv4/route.c | if (!dev) |
dev | 420 | net/ipv4/route.c | if (!dev && (flags & RTF_GATEWAY)) |
dev | 428 | net/ipv4/route.c | dev = dev2; |
dev | 458 | net/ipv4/route.c | if (!dev) |
dev | 459 | net/ipv4/route.c | dev = get_gw_dev(gw); |
dev | 461 | net/ipv4/route.c | else if (!dev) |
dev | 462 | net/ipv4/route.c | dev = ip_dev_check(daddr); |
dev | 468 | net/ipv4/route.c | if (dev == NULL) |
dev | 475 | net/ipv4/route.c | ip_rt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt); |
dev | 435 | net/ipv4/tcp.c | struct device *dev; |
dev | 447 | net/ipv4/tcp.c | dev = skb->dev; |
dev | 460 | net/ipv4/tcp.c | iph = (struct iphdr *)(skb->data + dev->hard_header_len); |
dev | 494 | net/ipv4/tcp.c | if (dev->flags & IFF_UP) |
dev | 510 | net/ipv4/tcp.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 1171 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, 0); |
dev | 1261 | net/ipv4/tcp.c | struct device *dev = NULL; |
dev | 1303 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
dev | 1366 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 1408 | net/ipv4/tcp.c | struct device *dev = NULL; |
dev | 1654 | net/ipv4/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
dev | 1665 | net/ipv4/tcp.c | skb->dev = dev; |
dev | 1755 | net/ipv4/tcp.c | struct device *dev = NULL; |
dev | 1789 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 1817 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 2268 | net/ipv4/tcp.c | struct device *dev=NULL; |
dev | 2296 | net/ipv4/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
dev | 2325 | net/ipv4/tcp.c | buff->dev = dev; |
dev | 2356 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
dev | 2453 | net/ipv4/tcp.c | struct proto *prot, struct options *opt, struct device *dev, int tos, int ttl) |
dev | 2478 | net/ipv4/tcp.c | buff->dev = dev; |
dev | 2634 | net/ipv4/tcp.c | struct options *opt, struct device *dev, u32 seq) |
dev | 2656 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
dev | 2794 | net/ipv4/tcp.c | if ((saddr ^ daddr) & dev->pa_mask) |
dev | 2805 | net/ipv4/tcp.c | newsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE); |
dev | 3039 | net/ipv4/tcp.c | skb->dev->hard_header_len); |
dev | 3054 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, skb->free); |
dev | 3832 | net/ipv4/tcp.c | sk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl); |
dev | 4221 | net/ipv4/tcp.c | struct device *dev=NULL; |
dev | 4286 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 4328 | net/ipv4/tcp.c | if ((sk->saddr ^ sk->daddr) & dev->pa_mask) |
dev | 4341 | net/ipv4/tcp.c | sk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE); |
dev | 4370 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
dev | 4382 | net/ipv4/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
dev | 4424 | net/ipv4/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
dev | 4469 | net/ipv4/tcp.c | int tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 4535 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
dev | 4566 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
dev | 4612 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
dev | 4632 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq()); |
dev | 4672 | net/ipv4/tcp.c | sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
dev | 4769 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000); |
dev | 4785 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
dev | 4801 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
dev | 4818 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
dev | 4867 | net/ipv4/tcp.c | struct device *dev=NULL; |
dev | 4906 | net/ipv4/tcp.c | iph = (struct iphdr *)(skb->data + skb->dev->hard_header_len); |
dev | 4911 | net/ipv4/tcp.c | skb->dev->hard_header_len, |
dev | 4928 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 4938 | net/ipv4/tcp.c | buff->dev = dev; |
dev | 4950 | net/ipv4/tcp.c | tcp_data_start = skb->data + skb->dev->hard_header_len + |
dev | 5005 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 5043 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 109 | net/ipv4/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len); |
dev | 511 | net/ipv4/udp.c | int udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 520 | net/ipv4/udp.c | if(!dev || dev->pa_addr!=daddr) |
dev | 582 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
dev | 609 | net/ipv4/udp.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev); |
dev | 619 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
dev | 622 | net/ipv4/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len) |
dev | 625 | net/ipv4/udp.c | skb->dev = dev; |
dev | 201 | net/ipx/af_ipx.c | ipxitf_find_using_phys(struct device *dev, unsigned short datalink) |
dev | 206 | net/ipx/af_ipx.c | i && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); |
dev | 304 | net/ipx/af_ipx.c | struct device *dev = ptr; |
dev | 313 | net/ipx/af_ipx.c | if (i->if_dev == dev) |
dev | 472 | net/ipx/af_ipx.c | struct device *dev = intrfc->if_dev; |
dev | 481 | net/ipx/af_ipx.c | if ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) |
dev | 514 | net/ipx/af_ipx.c | addr_len = dev->addr_len; |
dev | 516 | net/ipx/af_ipx.c | memcpy(dest_node, dev->broadcast, addr_len); |
dev | 526 | net/ipx/af_ipx.c | skb->dev = dev; |
dev | 537 | net/ipx/af_ipx.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 671 | net/ipx/af_ipx.c | struct device *dev; |
dev | 711 | net/ipx/af_ipx.c | dev=dev_get(idef->ipx_device); |
dev | 712 | net/ipx/af_ipx.c | if (dev==NULL) |
dev | 715 | net/ipx/af_ipx.c | if (!(dev->flags & IFF_UP)) |
dev | 719 | net/ipx/af_ipx.c | if(dev->addr_len>IPX_NODE_LEN) |
dev | 722 | net/ipx/af_ipx.c | if ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) { |
dev | 728 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
dev | 738 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length; |
dev | 740 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len); |
dev | 755 | net/ipx/af_ipx.c | struct device *dev = NULL; |
dev | 771 | net/ipx/af_ipx.c | dev=dev_get(idef->ipx_device); |
dev | 772 | net/ipx/af_ipx.c | if(dev==NULL) return -ENODEV; |
dev | 774 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, dlink_type); |
dev | 783 | net/ipx/af_ipx.c | ipxitf_auto_create(struct device *dev, unsigned short dlink_type) |
dev | 796 | net/ipx/af_ipx.c | if (dev == NULL) |
dev | 800 | net/ipx/af_ipx.c | if(dev->addr_len>IPX_NODE_LEN) return NULL; |
dev | 804 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
dev | 811 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + |
dev | 814 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), |
dev | 815 | net/ipx/af_ipx.c | dev->dev_addr, dev->addr_len); |
dev | 855 | net/ipx/af_ipx.c | struct device *dev; |
dev | 861 | net/ipx/af_ipx.c | dev=dev_get(ifr.ifr_name); |
dev | 862 | net/ipx/af_ipx.c | if(!dev) |
dev | 864 | net/ipx/af_ipx.c | ipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type)); |
dev | 1631 | net/ipx/af_ipx.c | int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1654 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, pt->type); |
dev | 1657 | net/ipx/af_ipx.c | intrfc = ipxitf_auto_create(dev, pt->type); |
dev | 696 | net/netrom/af_netrom.c | struct device *dev; |
dev | 717 | net/netrom/af_netrom.c | if ((dev = nr_dev_first()) == NULL) |
dev | 723 | net/netrom/af_netrom.c | source = (ax25_address *)dev->dev_addr; |
dev | 861 | net/netrom/af_netrom.c | int nr_rx_frame(struct sk_buff *skb, struct device *dev) |
dev | 885 | net/netrom/af_netrom.c | return nr_rx_ip(skb, dev); |
dev | 52 | net/netrom/nr_dev.c | int nr_rx_ip(struct sk_buff *skb, struct device *dev) |
dev | 54 | net/netrom/nr_dev.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 56 | net/netrom/nr_dev.c | if (!dev->start) { |
dev | 64 | net/netrom/nr_dev.c | skb->dev=dev; |
dev | 66 | net/netrom/nr_dev.c | ip_rcv(skb, dev, NULL); |
dev | 76 | net/netrom/nr_dev.c | static int nr_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 89 | net/netrom/nr_dev.c | memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); |
dev | 93 | net/netrom/nr_dev.c | buff += dev->addr_len; |
dev | 96 | net/netrom/nr_dev.c | memcpy(buff, daddr, dev->addr_len); |
dev | 100 | net/netrom/nr_dev.c | buff += dev->addr_len; |
dev | 116 | net/netrom/nr_dev.c | static int nr_rebuild_header(void *buff, struct device *dev, |
dev | 121 | net/netrom/nr_dev.c | if (arp_find(bp + 24, raddr, dev, dev->pa_addr, skb)) |
dev | 135 | net/netrom/nr_dev.c | static int nr_set_mac_address(struct device *dev, void *addr) |
dev | 137 | net/netrom/nr_dev.c | memcpy(dev->dev_addr, addr, dev->addr_len); |
dev | 142 | net/netrom/nr_dev.c | static int nr_open(struct device *dev) |
dev | 144 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 145 | net/netrom/nr_dev.c | dev->start = 1; |
dev | 150 | net/netrom/nr_dev.c | static int nr_close(struct device *dev) |
dev | 152 | net/netrom/nr_dev.c | dev->tbusy = 1; |
dev | 153 | net/netrom/nr_dev.c | dev->start = 0; |
dev | 158 | net/netrom/nr_dev.c | static int nr_xmit(struct sk_buff *skb, struct device *dev) |
dev | 160 | net/netrom/nr_dev.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 163 | net/netrom/nr_dev.c | if (skb == NULL || dev == NULL) |
dev | 166 | net/netrom/nr_dev.c | if (!dev->start) { |
dev | 173 | net/netrom/nr_dev.c | if (dev->tbusy != 0) { |
dev | 179 | net/netrom/nr_dev.c | dev->tbusy = 1; |
dev | 185 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 193 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 203 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 210 | net/netrom/nr_dev.c | static struct enet_statistics *nr_get_stats(struct device *dev) |
dev | 212 | net/netrom/nr_dev.c | return (struct enet_statistics *)dev->priv; |
dev | 215 | net/netrom/nr_dev.c | int nr_init(struct device *dev) |
dev | 219 | net/netrom/nr_dev.c | dev->mtu = 236; /* MTU */ |
dev | 220 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 221 | net/netrom/nr_dev.c | dev->hard_start_xmit = nr_xmit; |
dev | 222 | net/netrom/nr_dev.c | dev->open = nr_open; |
dev | 223 | net/netrom/nr_dev.c | dev->stop = nr_close; |
dev | 225 | net/netrom/nr_dev.c | dev->hard_header = nr_header; |
dev | 226 | net/netrom/nr_dev.c | dev->hard_header_len = 37; |
dev | 227 | net/netrom/nr_dev.c | dev->addr_len = 7; |
dev | 228 | net/netrom/nr_dev.c | dev->type = ARPHRD_NETROM; |
dev | 229 | net/netrom/nr_dev.c | dev->rebuild_header = nr_rebuild_header; |
dev | 230 | net/netrom/nr_dev.c | dev->set_mac_address = nr_set_mac_address; |
dev | 233 | net/netrom/nr_dev.c | dev->flags = 0; |
dev | 234 | net/netrom/nr_dev.c | dev->family = AF_INET; |
dev | 236 | net/netrom/nr_dev.c | dev->pa_addr = 0; |
dev | 237 | net/netrom/nr_dev.c | dev->pa_brdaddr = 0; |
dev | 238 | net/netrom/nr_dev.c | dev->pa_mask = 0; |
dev | 239 | net/netrom/nr_dev.c | dev->pa_alen = sizeof(unsigned long); |
dev | 241 | net/netrom/nr_dev.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 243 | net/netrom/nr_dev.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 245 | net/netrom/nr_dev.c | dev->get_stats = nr_get_stats; |
dev | 249 | net/netrom/nr_dev.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 62 | net/netrom/nr_route.c | struct device *dev, int quality, int obs_count) |
dev | 75 | net/netrom/nr_route.c | if (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
dev | 87 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
dev | 273 | net/netrom/nr_route.c | static int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev) |
dev | 286 | net/netrom/nr_route.c | if (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
dev | 323 | net/netrom/nr_route.c | static int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality) |
dev | 329 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) { |
dev | 341 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
dev | 362 | net/netrom/nr_route.c | static int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality) |
dev | 367 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
dev | 450 | net/netrom/nr_route.c | void nr_rt_device_down(struct device *dev) |
dev | 460 | net/netrom/nr_route.c | if (s->dev == dev) { |
dev | 496 | net/netrom/nr_route.c | struct device *dev; |
dev | 498 | net/netrom/nr_route.c | if ((dev = dev_get(devname)) == NULL) |
dev | 501 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25) |
dev | 502 | net/netrom/nr_route.c | return dev; |
dev | 512 | net/netrom/nr_route.c | struct device *dev, *first = NULL; |
dev | 514 | net/netrom/nr_route.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 515 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM) |
dev | 516 | net/netrom/nr_route.c | if (first == NULL || strncmp(dev->name, first->name, 3) < 0) |
dev | 517 | net/netrom/nr_route.c | first = dev; |
dev | 527 | net/netrom/nr_route.c | struct device *dev; |
dev | 529 | net/netrom/nr_route.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 530 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) |
dev | 531 | net/netrom/nr_route.c | return dev; |
dev | 543 | net/netrom/nr_route.c | struct device *dev; |
dev | 552 | net/netrom/nr_route.c | if ((dev = nr_ax25_dev_get(nr_node.device)) == NULL) |
dev | 555 | net/netrom/nr_route.c | &nr_node.neighbour, dev, nr_node.quality, nr_node.obs_count); |
dev | 561 | net/netrom/nr_route.c | if ((dev = nr_ax25_dev_get(nr_node.device)) == NULL) |
dev | 563 | net/netrom/nr_route.c | return nr_del_node(&nr_node.callsign, &nr_node.neighbour, dev); |
dev | 569 | net/netrom/nr_route.c | if ((dev = nr_ax25_dev_get(nr_neigh.device)) == NULL) |
dev | 571 | net/netrom/nr_route.c | return nr_add_neigh(&nr_neigh.callsign, dev, nr_neigh.quality); |
dev | 577 | net/netrom/nr_route.c | if ((dev = nr_ax25_dev_get(nr_neigh.device)) == NULL) |
dev | 579 | net/netrom/nr_route.c | return nr_del_neigh(&nr_neigh.callsign, dev, nr_neigh.quality); |
dev | 592 | net/netrom/nr_route.c | void nr_link_failed(ax25_address *callsign, struct device *dev) |
dev | 598 | net/netrom/nr_route.c | if (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev) |
dev | 618 | net/netrom/nr_route.c | struct device *dev; |
dev | 628 | net/netrom/nr_route.c | if ((dev = nr_dev_get(nr_dest)) != NULL) /* Its for me */ |
dev | 629 | net/netrom/nr_route.c | return nr_rx_frame(skb, dev); |
dev | 649 | net/netrom/nr_route.c | if ((dev = nr_dev_first()) == NULL) |
dev | 653 | net/netrom/nr_route.c | skb->len += dev->hard_header_len; |
dev | 655 | net/netrom/nr_route.c | ax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->dev); |
dev | 724 | net/netrom/nr_route.c | nr_neigh->dev ? nr_neigh->dev->name : "???", |