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 | if (dev->class >> 8 == PCI_CLASS_NOT_DEFINED || |
dev | 213 | arch/alpha/kernel/bios32.c | dev->class >> 8 == PCI_CLASS_NOT_DEFINED_VGA || |
dev | 214 | arch/alpha/kernel/bios32.c | dev->class >> 8 == PCI_CLASS_DISPLAY_VGA || |
dev | 215 | arch/alpha/kernel/bios32.c | dev->class >> 8 == PCI_CLASS_DISPLAY_XGA) |
dev | 225 | arch/alpha/kernel/bios32.c | pcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, |
dev | 234 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 249 | arch/alpha/kernel/bios32.c | for (dev = bus->devices; dev; dev = dev->sibling) { |
dev | 250 | arch/alpha/kernel/bios32.c | if (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) { |
dev | 251 | arch/alpha/kernel/bios32.c | layout_dev(dev); |
dev | 314 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 316 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 317 | arch/alpha/kernel/bios32.c | if (dev->vendor == vendor && dev->device == device_id) { |
dev | 319 | arch/alpha/kernel/bios32.c | *devfn = dev->devfn; |
dev | 320 | arch/alpha/kernel/bios32.c | *bus = dev->bus->number; |
dev | 338 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 340 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 341 | arch/alpha/kernel/bios32.c | if (dev->class == class_code) { |
dev | 343 | arch/alpha/kernel/bios32.c | *devfn = dev->devfn; |
dev | 344 | arch/alpha/kernel/bios32.c | *bus = dev->bus->number; |
dev | 406 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 411 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 412 | arch/alpha/kernel/bios32.c | dev->irq = 0; |
dev | 417 | arch/alpha/kernel/bios32.c | if (dev->bus->number != 0) |
dev | 421 | arch/alpha/kernel/bios32.c | pcibios_read_config_byte(dev->bus->number, dev->devfn, |
dev | 423 | arch/alpha/kernel/bios32.c | if (irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin] != -1) |
dev | 424 | arch/alpha/kernel/bios32.c | dev->irq = irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin]; |
dev | 427 | arch/alpha/kernel/bios32.c | pcibios_write_config_byte(dev->bus->number, dev->devfn, |
dev | 428 | arch/alpha/kernel/bios32.c | PCI_INTERRUPT_LINE, dev->irq); |
dev | 548 | arch/alpha/kernel/bios32.c | struct pci_dev *dev; |
dev | 587 | arch/alpha/kernel/bios32.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 588 | arch/alpha/kernel/bios32.c | dev->irq = 0; |
dev | 589 | arch/alpha/kernel/bios32.c | if (dev->bus->number != 0 || |
dev | 590 | arch/alpha/kernel/bios32.c | PCI_SLOT(dev->devfn) < 6 || PCI_SLOT(dev->devfn) > 12) |
dev | 593 | arch/alpha/kernel/bios32.c | dev->bus->number, PCI_SLOT(dev->devfn)); |
dev | 597 | arch/alpha/kernel/bios32.c | pcibios_read_config_byte(dev->bus->number, dev->devfn, |
dev | 599 | arch/alpha/kernel/bios32.c | pirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin]; |
dev | 603 | arch/alpha/kernel/bios32.c | dev->irq = (route_tab >> (8 * pirq)) & 0xff; |
dev | 606 | arch/alpha/kernel/bios32.c | pcibios_write_config_byte(dev->bus->number, dev->devfn, |
dev | 607 | arch/alpha/kernel/bios32.c | PCI_INTERRUPT_LINE, dev->irq); |
dev | 243 | arch/alpha/kernel/osf_sys.c | dev_t dev; |
dev | 259 | arch/alpha/kernel/osf_sys.c | dev = inode->i_rdev; |
dev | 260 | arch/alpha/kernel/osf_sys.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 264 | arch/alpha/kernel/osf_sys.c | fops = get_blkfops(MAJOR(dev)); |
dev | 340 | arch/alpha/kernel/osf_sys.c | dev_t dev; |
dev | 348 | arch/alpha/kernel/osf_sys.c | dev = get_unnamed_dev(); |
dev | 349 | arch/alpha/kernel/osf_sys.c | if (!dev) |
dev | 351 | arch/alpha/kernel/osf_sys.c | retval = do_mount(dev, dirname, "proc", flags, NULL); |
dev | 353 | arch/alpha/kernel/osf_sys.c | put_unnamed_dev(dev); |
dev | 198 | 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 | 76 | drivers/block/blk.h | extern void set_device_ro(int dev,int flag); |
dev | 87 | drivers/block/blk.h | #define RO_IOCTLS(dev,where) \ |
dev | 89 | drivers/block/blk.h | set_device_ro((dev),get_fs_long((long *) (where))); return 0; \ |
dev | 91 | drivers/block/blk.h | if (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; } |
dev | 286 | drivers/block/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->dev) |
dev | 325 | drivers/block/blk.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 355 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
dev | 381 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
dev | 386 | drivers/block/blk.h | req->dev = -1; |
dev | 1486 | drivers/block/cdu31a.c | if (CURRENT && (CURRENT->dev > 0)) |
dev | 1516 | drivers/block/cdu31a.c | if (!(CURRENT) || CURRENT->dev < 0) |
dev | 1528 | drivers/block/cdu31a.c | in.i_rdev = CURRENT->dev; |
dev | 1535 | drivers/block/cdu31a.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
dev | 651 | drivers/block/cm206.c | if (CURRENT == NULL || CURRENT->dev == -1) return; |
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 | 3306 | drivers/block/floppy.c | static int check_floppy_change(dev_t dev) |
dev | 3308 | drivers/block/floppy.c | int drive = DRIVE( dev ); |
dev | 3310 | drivers/block/floppy.c | if (MAJOR(dev) != MAJOR_NR) { |
dev | 3327 | drivers/block/floppy.c | (!TYPE(dev) && !current_type[drive])) |
dev | 3336 | drivers/block/floppy.c | static int floppy_revalidate(dev_t dev) |
dev | 3338 | drivers/block/floppy.c | #define NO_GEOM (!current_type[drive] && !TYPE(dev)) |
dev | 3340 | drivers/block/floppy.c | int drive=DRIVE(dev); |
dev | 3363 | drivers/block/floppy.c | int size = floppy_blocksizes[MINOR(dev)]; |
dev | 3366 | drivers/block/floppy.c | if (!(bh = getblk(dev,0,size))){ |
dev | 78 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
dev | 86 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 92 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) |
dev | 107 | drivers/block/genhd.c | this_size = hd->part[MINOR(dev)].nr_sects; |
dev | 153 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
dev | 160 | drivers/block/genhd.c | static int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
dev | 171 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) { |
dev | 201 | drivers/block/genhd.c | if (ide_xlate_1024(dev, 1, label)) { |
dev | 215 | drivers/block/genhd.c | (void) ide_xlate_1024 (dev, 0, " [DM6:MBR]"); |
dev | 221 | drivers/block/genhd.c | (void)ide_xlate_1024(dev,0," [DM6:AUX]"); |
dev | 275 | drivers/block/genhd.c | static int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector) |
dev | 313 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) { |
dev | 343 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
dev | 351 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 358 | drivers/block/genhd.c | hd->part[MINOR(dev)].start_sect = 0; |
dev | 363 | drivers/block/genhd.c | print_minor_name(hd, MINOR(dev)); |
dev | 365 | drivers/block/genhd.c | if (msdos_partition(hd, dev, first_sector)) |
dev | 369 | drivers/block/genhd.c | if (osf_partition(hd, dev, first_sector)) |
dev | 384 | drivers/block/genhd.c | void resetup_one_dev(struct gendisk *dev, int drive) |
dev | 387 | drivers/block/genhd.c | int major = dev->major << 8; |
dev | 388 | drivers/block/genhd.c | int first_minor = drive << dev->minor_shift; |
dev | 389 | drivers/block/genhd.c | int end_minor = first_minor + dev->max_p; |
dev | 391 | drivers/block/genhd.c | blk_size[dev->major] = NULL; |
dev | 393 | drivers/block/genhd.c | check_partition(dev, major + first_minor); |
dev | 399 | drivers/block/genhd.c | if (dev->sizes != NULL) { /* optional safeguard in ll_rw_blk.c */ |
dev | 401 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 402 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
dev | 406 | drivers/block/genhd.c | static void setup_dev(struct gendisk *dev) |
dev | 409 | drivers/block/genhd.c | int major = dev->major << 8; |
dev | 410 | drivers/block/genhd.c | int end_minor = dev->max_nr * dev->max_p; |
dev | 412 | drivers/block/genhd.c | blk_size[dev->major] = NULL; |
dev | 414 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
dev | 415 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
dev | 417 | drivers/block/genhd.c | dev->init(dev); |
dev | 418 | drivers/block/genhd.c | for (drive = 0 ; drive < dev->nr_real ; drive++) { |
dev | 419 | drivers/block/genhd.c | int first_minor = drive << dev->minor_shift; |
dev | 421 | drivers/block/genhd.c | check_partition(dev, major + first_minor); |
dev | 423 | drivers/block/genhd.c | if (dev->sizes != NULL) { /* optional safeguard in ll_rw_blk.c */ |
dev | 425 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 426 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
dev | 269 | drivers/block/gscd.c | unsigned int block,dev; |
dev | 273 | drivers/block/gscd.c | if (!(CURRENT) || CURRENT->dev < 0) return; |
dev | 275 | drivers/block/gscd.c | dev = MINOR(CURRENT->dev); |
dev | 289 | drivers/block/gscd.c | if (MINOR(CURRENT -> dev) != 0) |
dev | 307 | drivers/block/gscd.c | printk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect ); |
dev | 134 | drivers/block/hd.c | devc = CURRENT ? 'a' + DEVICE_NR(CURRENT->dev) : '?'; |
dev | 283 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev); |
dev | 285 | drivers/block/hd.c | struct hd_driveid *id = hd_ident_info[dev]; |
dev | 287 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 290 | drivers/block/hd.c | printk (" hd%c: non-IDE device, %dMB, CHS=%d/%d/%d\n", dev+'a', |
dev | 291 | drivers/block/hd.c | hd_info[dev].cyl*hd_info[dev].head*hd_info[dev].sect / 2048, |
dev | 292 | drivers/block/hd.c | hd_info[dev].cyl, hd_info[dev].head, hd_info[dev].sect); |
dev | 294 | drivers/block/hd.c | hd_ident_info[dev] = NULL; |
dev | 299 | drivers/block/hd.c | max_mult[dev] = id->max_multsect; |
dev | 308 | drivers/block/hd.c | hd_info[dev].cyl = id->cur_cyls; |
dev | 309 | drivers/block/hd.c | hd_info[dev].head = id->cur_heads; |
dev | 310 | drivers/block/hd.c | hd_info[dev].sect = id->cur_sectors; |
dev | 316 | drivers/block/hd.c | dev+'a', id->model, id->cyls*id->heads*id->sectors/2048, |
dev | 317 | drivers/block/hd.c | id->buf_size/2, bios_info[dev].cyl, bios_info[dev].head, |
dev | 318 | drivers/block/hd.c | bios_info[dev].sect, id->max_multsect); |
dev | 325 | drivers/block/hd.c | special_op[dev] = recalibrate[dev] = 1; |
dev | 336 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS); |
dev | 338 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 341 | drivers/block/hd.c | mult_req[dev] = mult_count[dev] = 0; |
dev | 344 | drivers/block/hd.c | if ((mult_count[dev] = mult_req[dev])) |
dev | 346 | drivers/block/hd.c | dev+'a', mult_count[dev]); |
dev | 348 | drivers/block/hd.c | printk (" hd%c: disabled multiple mode\n", dev+'a'); |
dev | 446 | drivers/block/hd.c | int dev; |
dev | 450 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->dev); |
dev | 453 | drivers/block/hd.c | special_op[dev] = recalibrate[dev] = 1; |
dev | 457 | drivers/block/hd.c | special_op[dev] = recalibrate[dev] = 1; |
dev | 474 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(CURRENT->dev); |
dev | 475 | drivers/block/hd.c | int i, retries = 100000, msect = mult_count[dev], nsect; |
dev | 477 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 507 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
dev | 527 | drivers/block/hd.c | static inline void multwrite (unsigned int dev) |
dev | 529 | drivers/block/hd.c | unsigned int mcount = mult_count[dev]; |
dev | 549 | drivers/block/hd.c | unsigned int dev = DEVICE_NR(WCURRENT.dev); |
dev | 551 | drivers/block/hd.c | if (unmask_intr[dev]) |
dev | 556 | drivers/block/hd.c | multwrite(dev); |
dev | 585 | drivers/block/hd.c | if (unmask_intr[DEVICE_NR(WCURRENT.dev)]) |
dev | 635 | drivers/block/hd.c | unsigned int dev; |
dev | 643 | drivers/block/hd.c | dev = DEVICE_NR(CURRENT->dev); |
dev | 644 | drivers/block/hd.c | printk("hd%c: timeout\n", dev+'a'); |
dev | 647 | drivers/block/hd.c | printk("hd%c: too many errors\n", dev+'a'); |
dev | 656 | drivers/block/hd.c | int do_special_op (unsigned int dev) |
dev | 658 | drivers/block/hd.c | if (recalibrate[dev]) { |
dev | 659 | drivers/block/hd.c | recalibrate[dev] = 0; |
dev | 660 | drivers/block/hd.c | hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); |
dev | 663 | drivers/block/hd.c | if (!identified[dev]) { |
dev | 664 | drivers/block/hd.c | identified[dev] = 1; |
dev | 665 | drivers/block/hd.c | unmask_intr[dev] = DEFAULT_UNMASK_INTR; |
dev | 666 | drivers/block/hd.c | mult_req[dev] = DEFAULT_MULT_COUNT; |
dev | 667 | drivers/block/hd.c | hd_out(dev,0,0,0,0,WIN_IDENTIFY,&identify_intr); |
dev | 670 | drivers/block/hd.c | if (mult_req[dev] != mult_count[dev]) { |
dev | 671 | drivers/block/hd.c | hd_out(dev,mult_req[dev],0,0,0,WIN_SETMULT,&set_multmode_intr); |
dev | 674 | drivers/block/hd.c | if (hd_info[dev].head > 16) { |
dev | 675 | drivers/block/hd.c | printk ("hd%c: cannot handle device with more than 16 heads - giving up\n", dev+'a'); |
dev | 678 | drivers/block/hd.c | special_op[dev] = 0; |
dev | 696 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
dev | 698 | drivers/block/hd.c | if (CURRENT && CURRENT->dev < 0) return; |
dev | 710 | drivers/block/hd.c | dev = MINOR(CURRENT->dev); |
dev | 713 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
dev | 715 | drivers/block/hd.c | if (dev >= (NR_HD<<6)) |
dev | 716 | drivers/block/hd.c | printk("hd: bad minor number: device=0x%04x\n", CURRENT->dev); |
dev | 719 | drivers/block/hd.c | (CURRENT->dev>>6)+'a', block, nsect); |
dev | 724 | drivers/block/hd.c | block += hd[dev].start_sect; |
dev | 725 | drivers/block/hd.c | dev >>= 6; |
dev | 726 | drivers/block/hd.c | if (special_op[dev]) { |
dev | 727 | drivers/block/hd.c | if (do_special_op(dev)) |
dev | 731 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
dev | 732 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
dev | 733 | drivers/block/hd.c | head = track % hd_info[dev].head; |
dev | 734 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
dev | 737 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
dev | 740 | drivers/block/hd.c | if (!unmask_intr[dev]) |
dev | 743 | drivers/block/hd.c | unsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ; |
dev | 744 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
dev | 750 | drivers/block/hd.c | if (mult_count[dev]) |
dev | 751 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr); |
dev | 753 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
dev | 760 | drivers/block/hd.c | if (mult_count[dev]) { |
dev | 762 | drivers/block/hd.c | multwrite(dev); |
dev | 781 | drivers/block/hd.c | int dev, err; |
dev | 786 | drivers/block/hd.c | dev = DEVICE_NR(inode->i_rdev); |
dev | 787 | drivers/block/hd.c | if (dev >= NR_HD) |
dev | 795 | drivers/block/hd.c | put_user(bios_info[dev].head, |
dev | 797 | drivers/block/hd.c | put_user(bios_info[dev].sect, |
dev | 799 | drivers/block/hd.c | put_user(bios_info[dev].cyl, |
dev | 836 | drivers/block/hd.c | unmask_intr[dev] = arg; |
dev | 844 | drivers/block/hd.c | put_user(unmask_intr[dev], (long *) arg); |
dev | 852 | drivers/block/hd.c | put_user(mult_count[dev], (long *) arg); |
dev | 860 | drivers/block/hd.c | if (arg > max_mult[dev]) |
dev | 862 | drivers/block/hd.c | else if (mult_req[dev] != mult_count[dev]) { |
dev | 863 | drivers/block/hd.c | special_op[dev] = 1; |
dev | 866 | drivers/block/hd.c | mult_req[dev] = arg; |
dev | 867 | drivers/block/hd.c | special_op[dev] = 1; |
dev | 876 | drivers/block/hd.c | if (hd_ident_info[dev] == NULL) return -ENOMSG; |
dev | 880 | drivers/block/hd.c | memcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid)); |
dev | 1079 | drivers/block/hd.c | static int revalidate_hddisk(int dev, int maxusage) |
dev | 1088 | drivers/block/hd.c | target = DEVICE_NR(dev); |
dev | 524 | drivers/block/ide-cd.c | rq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
dev | 1350 | drivers/block/ide-cd.c | req->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
dev | 1321 | drivers/block/ide.c | minor = MINOR(rq->dev); |
dev | 1323 | drivers/block/ide.c | if (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) { |
dev | 1324 | drivers/block/ide.c | printk("%s: bad device number: 0x%04x\n", hwif->name, rq->dev); |
dev | 1410 | drivers/block/ide.c | if (rq != NULL && rq->dev != -1) |
dev | 1627 | drivers/block/ide.c | rq.dev = rdev; |
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 | 350 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 364 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 412 | drivers/block/ll_rw_blk.c | void ll_rw_page(int rw, int dev, unsigned long page, char * buffer) |
dev | 415 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 420 | drivers/block/ll_rw_blk.c | printk("Trying to read nonexistent block-device %04x (%ld)\n",dev,sector); |
dev | 425 | drivers/block/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 426 | drivers/block/ll_rw_blk.c | printk("Can't page to read-only device 0x%X\n",dev); |
dev | 429 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
dev | 453 | drivers/block/ll_rw_blk.c | struct blk_dev_struct * dev; |
dev | 463 | drivers/block/ll_rw_blk.c | dev = NULL; |
dev | 465 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
dev | 466 | drivers/block/ll_rw_blk.c | if (!dev || !dev->request_fn) { |
dev | 502 | drivers/block/ll_rw_blk.c | plug_device(dev, &plug); |
dev | 513 | drivers/block/ll_rw_blk.c | unplug_device(dev); |
dev | 524 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
dev | 529 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 541 | drivers/block/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 542 | drivers/block/ll_rw_blk.c | printk("Can't swap to read-only device 0x%X\n",dev); |
dev | 553 | drivers/block/ll_rw_blk.c | req[j] = get_request_wait(NR_REQUEST, dev); |
dev | 556 | drivers/block/ll_rw_blk.c | req[j] = get_request(NR_REQUEST, dev); |
dev | 585 | drivers/block/ll_rw_blk.c | req->dev = -1; |
dev | 142 | drivers/block/mcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
dev | 542 | drivers/block/mcdx.c | int dev; |
dev | 549 | drivers/block/mcdx.c | if ((CURRENT == NULL) || (CURRENT->dev < 0)) { |
dev | 554 | drivers/block/mcdx.c | stuffp = mcdx_stuffp[MINOR(CURRENT->dev)]; |
dev | 558 | drivers/block/mcdx.c | dev = MINOR(CURRENT->dev); |
dev | 560 | drivers/block/mcdx.c | if ((dev < 0) || (dev >= MCDX_NDRIVES) || (!stuffp->present)) { |
dev | 561 | drivers/block/mcdx.c | WARN(("do_request(): bad device: 0x%04x\n", CURRENT->dev)); |
dev | 43 | drivers/block/ramdisk.c | if ((MINOR(CURRENT->dev) != RAMDISK_MINOR) || |
dev | 4386 | drivers/block/sbpcd.c | if ((CURRENT==NULL)||(CURRENT->dev<0)) goto err_done; |
dev | 4393 | drivers/block/sbpcd.c | i = MINOR(CURRENT->dev); |
dev | 4396 | drivers/block/sbpcd.c | msg(DBG_INF, "do_request: bad device: %04X\n", CURRENT->dev); |
dev | 911 | drivers/block/sjcd.c | ( CURRENT != NULL && MAJOR( CURRENT->dev ) == MAJOR_NR && \ |
dev | 817 | drivers/block/sonycd535.c | unsigned int dev; |
dev | 835 | drivers/block/sonycd535.c | if (!(CURRENT) || CURRENT->dev < 0) { |
dev | 839 | drivers/block/sonycd535.c | dev = MINOR(CURRENT->dev); |
dev | 842 | drivers/block/sonycd535.c | if (dev != 0) { |
dev | 1113 | drivers/block/sonycd535.c | unsigned int dev; |
dev | 1123 | drivers/block/sonycd535.c | dev = MINOR(inode->i_rdev) >> 6; |
dev | 1124 | 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 | 2432 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 2434 | drivers/char/tpqic02.c | if (TP_DIAGS(dev)) |
dev | 2435 | drivers/char/tpqic02.c | printk("qic02_tape_release: dev=%x\n", dev); |
dev | 2451 | 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 | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 293 | drivers/net/3c501.c | if (dev->priv == NULL) |
dev | 295 | drivers/net/3c501.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 298 | drivers/net/3c501.c | dev->open = &el_open; |
dev | 299 | drivers/net/3c501.c | dev->hard_start_xmit = &el_start_xmit; |
dev | 300 | drivers/net/3c501.c | dev->stop = &el1_close; |
dev | 301 | drivers/net/3c501.c | dev->get_stats = &el1_get_stats; |
dev | 302 | drivers/net/3c501.c | dev->set_multicast_list = &set_multicast_list; |
dev | 304 | drivers/net/3c501.c | ether_setup(dev); |
dev | 312 | drivers/net/3c501.c | el_open(struct device *dev) |
dev | 314 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 317 | drivers/net/3c501.c | printk("%s: Doing el_open()...", dev->name); |
dev | 319 | drivers/net/3c501.c | if (request_irq(dev->irq, &el_interrupt, 0, "3c501")) { |
dev | 322 | drivers/net/3c501.c | irq2dev_map[dev->irq] = dev; |
dev | 324 | drivers/net/3c501.c | el_reset(dev); |
dev | 326 | drivers/net/3c501.c | dev->start = 1; |
dev | 334 | drivers/net/3c501.c | el_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 336 | drivers/net/3c501.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 337 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 340 | drivers/net/3c501.c | if (dev->tbusy) { |
dev | 341 | drivers/net/3c501.c | if (jiffies - dev->trans_start < 20) { |
dev | 348 | drivers/net/3c501.c | dev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS)); |
dev | 354 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 355 | drivers/net/3c501.c | dev->trans_start = jiffies; |
dev | 359 | drivers/net/3c501.c | dev_tint(dev); |
dev | 369 | drivers/net/3c501.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 372 | drivers/net/3c501.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 404 | drivers/net/3c501.c | printk("%s: burped during tx load.\n", dev->name); |
dev | 408 | drivers/net/3c501.c | dev->trans_start = jiffies; |
dev | 423 | drivers/net/3c501.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 428 | drivers/net/3c501.c | if (dev == NULL || dev->irq != irq) { |
dev | 433 | drivers/net/3c501.c | ioaddr = dev->base_addr; |
dev | 434 | drivers/net/3c501.c | lp = (struct net_local *)dev->priv; |
dev | 438 | drivers/net/3c501.c | printk("%s: el_interrupt() aux=%#02x", dev->name, axsr); |
dev | 439 | drivers/net/3c501.c | if (dev->interrupt) |
dev | 440 | drivers/net/3c501.c | printk("%s: Reentering the interrupt driver!\n", dev->name); |
dev | 441 | drivers/net/3c501.c | dev->interrupt = 1; |
dev | 445 | drivers/net/3c501.c | if (dev->tbusy) { |
dev | 463 | drivers/net/3c501.c | " gp=%03x rp=%03x.\n", dev->name, txsr, axsr, |
dev | 465 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 473 | drivers/net/3c501.c | dev->name); |
dev | 486 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 499 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 525 | drivers/net/3c501.c | el_receive(dev); |
dev | 529 | drivers/net/3c501.c | dev->name, rxsr); |
dev | 530 | drivers/net/3c501.c | el_reset(dev); |
dev | 543 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 551 | drivers/net/3c501.c | el_receive(struct device *dev) |
dev | 553 | drivers/net/3c501.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 554 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 565 | drivers/net/3c501.c | printk("%s: bogus packet, length=%d\n", dev->name, pkt_len); |
dev | 582 | drivers/net/3c501.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 587 | drivers/net/3c501.c | skb->dev = dev; |
dev | 596 | drivers/net/3c501.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 604 | drivers/net/3c501.c | el_reset(struct device *dev) |
dev | 606 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 615 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
dev | 624 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 625 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 630 | drivers/net/3c501.c | el1_close(struct device *dev) |
dev | 632 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 635 | drivers/net/3c501.c | printk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr); |
dev | 637 | drivers/net/3c501.c | dev->tbusy = 1; |
dev | 638 | drivers/net/3c501.c | dev->start = 0; |
dev | 641 | drivers/net/3c501.c | free_irq(dev->irq); |
dev | 643 | drivers/net/3c501.c | irq2dev_map[dev->irq] = 0; |
dev | 650 | drivers/net/3c501.c | el1_get_stats(struct device *dev) |
dev | 652 | drivers/net/3c501.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 663 | drivers/net/3c501.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 665 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 49 | drivers/net/3c503.c | int el2_probe(struct device *dev); |
dev | 50 | drivers/net/3c503.c | int el2_pio_probe(struct device *dev); |
dev | 51 | drivers/net/3c503.c | int el2_probe1(struct device *dev, int ioaddr); |
dev | 68 | drivers/net/3c503.c | static int el2_open(struct device *dev); |
dev | 69 | drivers/net/3c503.c | static int el2_close(struct device *dev); |
dev | 70 | drivers/net/3c503.c | static void el2_reset_8390(struct device *dev); |
dev | 71 | drivers/net/3c503.c | static void el2_init_card(struct device *dev); |
dev | 72 | drivers/net/3c503.c | static void el2_block_output(struct device *dev, int count, |
dev | 74 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
dev | 86 | drivers/net/3c503.c | el2_probe(struct device *dev) |
dev | 89 | drivers/net/3c503.c | int base_addr = dev->base_addr; |
dev | 92 | drivers/net/3c503.c | return el2_probe1(dev, base_addr); |
dev | 107 | drivers/net/3c503.c | if (el2_probe1(dev, netcard_portlist[i]) == 0) |
dev | 111 | drivers/net/3c503.c | return el2_pio_probe(dev); |
dev | 121 | drivers/net/3c503.c | el2_pio_probe(struct device *dev) |
dev | 124 | drivers/net/3c503.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 127 | drivers/net/3c503.c | return el2_probe1(dev, base_addr); |
dev | 135 | drivers/net/3c503.c | if (el2_probe1(dev, ioaddr) == 0) |
dev | 147 | drivers/net/3c503.c | el2_probe1(struct device *dev, int ioaddr) |
dev | 182 | drivers/net/3c503.c | if (dev == NULL) |
dev | 183 | drivers/net/3c503.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 188 | drivers/net/3c503.c | dev->base_addr = ioaddr; |
dev | 189 | drivers/net/3c503.c | ethdev_init(dev); |
dev | 191 | drivers/net/3c503.c | printk("%s: 3c503 at %#3x,", dev->name, ioaddr); |
dev | 195 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 211 | drivers/net/3c503.c | ei_status.interface_num = dev->mem_end & 0xf; |
dev | 215 | drivers/net/3c503.c | dev->mem_start = 0; |
dev | 217 | drivers/net/3c503.c | dev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) + |
dev | 224 | drivers/net/3c503.c | unsigned long mem_base = dev->mem_start; |
dev | 232 | drivers/net/3c503.c | dev->mem_start = 0; |
dev | 243 | drivers/net/3c503.c | dev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE; |
dev | 244 | drivers/net/3c503.c | dev->rmem_start = TX_PAGES*256 + dev->mem_start; |
dev | 256 | drivers/net/3c503.c | if (dev->irq == 2) |
dev | 257 | drivers/net/3c503.c | dev->irq = 9; |
dev | 258 | drivers/net/3c503.c | else if (dev->irq > 5 && dev->irq != 9) { |
dev | 260 | drivers/net/3c503.c | dev->irq); |
dev | 261 | drivers/net/3c503.c | dev->irq = 0; |
dev | 264 | drivers/net/3c503.c | ei_status.saved_irq = dev->irq; |
dev | 266 | drivers/net/3c503.c | dev->start = 0; |
dev | 267 | drivers/net/3c503.c | dev->open = &el2_open; |
dev | 268 | drivers/net/3c503.c | dev->stop = &el2_close; |
dev | 270 | drivers/net/3c503.c | if (dev->mem_start) |
dev | 272 | drivers/net/3c503.c | dev->name, ei_status.name, dev->mem_start, dev->mem_end-1); |
dev | 275 | drivers/net/3c503.c | dev->name, ei_status.name); |
dev | 284 | drivers/net/3c503.c | el2_open(struct device *dev) |
dev | 287 | drivers/net/3c503.c | if (dev->irq < 2) { |
dev | 299 | drivers/net/3c503.c | && request_irq (dev->irq = *irqp, &ei_interrupt, 0, "3c503") == 0) |
dev | 308 | drivers/net/3c503.c | if (request_irq(dev->irq, &ei_interrupt, 0, "3c503")) { |
dev | 312 | drivers/net/3c503.c | el2_init_card(dev); |
dev | 313 | drivers/net/3c503.c | return ei_open(dev); |
dev | 317 | drivers/net/3c503.c | el2_close(struct device *dev) |
dev | 319 | drivers/net/3c503.c | free_irq(dev->irq); |
dev | 320 | drivers/net/3c503.c | dev->irq = ei_status.saved_irq; |
dev | 321 | drivers/net/3c503.c | irq2dev_map[dev->irq] = NULL; |
dev | 324 | drivers/net/3c503.c | NS8390_init(dev, 0); |
dev | 325 | drivers/net/3c503.c | dev->start = 0; |
dev | 335 | drivers/net/3c503.c | el2_reset_8390(struct device *dev) |
dev | 338 | drivers/net/3c503.c | printk("%s: Resetting the 3c503 board...", dev->name); |
dev | 345 | drivers/net/3c503.c | el2_init_card(dev); |
dev | 351 | drivers/net/3c503.c | el2_init_card(struct device *dev) |
dev | 366 | drivers/net/3c503.c | outb_p(0x00, dev->base_addr + EN0_IMR); |
dev | 371 | drivers/net/3c503.c | outb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR); |
dev | 381 | drivers/net/3c503.c | el2_block_output(struct device *dev, int count, |
dev | 390 | drivers/net/3c503.c | if (dev->mem_start) { /* Shared memory transfer */ |
dev | 391 | drivers/net/3c503.c | void *dest_addr = (void *)(dev->mem_start + |
dev | 396 | drivers/net/3c503.c | dev->name, (int) dest_addr); |
dev | 414 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
dev | 425 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 428 | drivers/net/3c503.c | int end_of_ring = dev->rmem_end; |
dev | 432 | drivers/net/3c503.c | if (dev->mem_start) { /* Use the shared memory. */ |
dev | 434 | drivers/net/3c503.c | if (dev->mem_start + ring_offset + count > end_of_ring) { |
dev | 436 | drivers/net/3c503.c | int semi_count = end_of_ring - (dev->mem_start + ring_offset); |
dev | 437 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
dev | 439 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 440 | drivers/net/3c503.c | return dev->rmem_start + count; |
dev | 442 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
dev | 458 | 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 | 268 | drivers/net/3c505.c | adapter_reset (struct device * dev) |
dev | 271 | drivers/net/3c505.c | unsigned char orig_hcr=inb_control(dev->base_addr); |
dev | 273 | drivers/net/3c505.c | elp_device * adapter=dev->priv; |
dev | 275 | drivers/net/3c505.c | outb_control(0,dev->base_addr); |
dev | 277 | drivers/net/3c505.c | if (inb_status(dev->base_addr)&ACRF) { |
dev | 279 | drivers/net/3c505.c | inb_command(dev->base_addr); |
dev | 281 | drivers/net/3c505.c | while ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF)) |
dev | 283 | drivers/net/3c505.c | } while (inb_status(dev->base_addr)&ACRF); |
dev | 284 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_NAK); |
dev | 287 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr); |
dev | 291 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr); |
dev | 295 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr); |
dev | 299 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr); |
dev | 304 | drivers/net/3c505.c | outb_control(orig_hcr, dev->base_addr); |
dev | 305 | drivers/net/3c505.c | if (!start_receive(dev, &adapter->tx_pcb)) |
dev | 306 | drivers/net/3c505.c | printk("%s: start receive command failed \n", dev->name); |
dev | 325 | drivers/net/3c505.c | send_pcb (struct device * dev, pcb_struct * pcb) |
dev | 336 | drivers/net/3c505.c | set_hsf(dev->base_addr,0); |
dev | 337 | drivers/net/3c505.c | if ((cont = WAIT_HCRE(dev->base_addr,5))) { |
dev | 340 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr); |
dev | 341 | drivers/net/3c505.c | outb_command(pcb->command, dev->base_addr); |
dev | 343 | drivers/net/3c505.c | cont = WAIT_HCRE(dev->base_addr,5); |
dev | 347 | drivers/net/3c505.c | outb_command(pcb->length, dev->base_addr); |
dev | 348 | drivers/net/3c505.c | cont = WAIT_HCRE(dev->base_addr,5); |
dev | 353 | drivers/net/3c505.c | outb_command(pcb->data.raw[i], dev->base_addr); |
dev | 354 | drivers/net/3c505.c | cont = wait_fast_hcre(dev->base_addr,20000,__LINE__); |
dev | 361 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_END); |
dev | 362 | drivers/net/3c505.c | outb_command(2+pcb->length, dev->base_addr); |
dev | 366 | drivers/net/3c505.c | i = GET_ASF(dev->base_addr); |
dev | 376 | drivers/net/3c505.c | printk("%s: PCB send was NAKed\n", dev->name); |
dev | 378 | drivers/net/3c505.c | printk("%s: timeout after sending PCB\n", dev->name); |
dev | 382 | drivers/net/3c505.c | printk("%s: timeout in middle of sending PCB\n", dev->name); |
dev | 385 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 403 | drivers/net/3c505.c | receive_pcb (struct device * dev, pcb_struct * pcb) |
dev | 411 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 413 | drivers/net/3c505.c | set_hsf(dev->base_addr,0); |
dev | 417 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout) |
dev | 424 | drivers/net/3c505.c | pcb->command = inb_command(dev->base_addr); |
dev | 428 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout) |
dev | 434 | drivers/net/3c505.c | pcb->length = inb_command(dev->base_addr); |
dev | 438 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 447 | drivers/net/3c505.c | while (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000) |
dev | 449 | drivers/net/3c505.c | pcb->data.raw[i++] = inb_command(dev->base_addr); |
dev | 465 | drivers/net/3c505.c | printk("%s: mangled PCB received\n", dev->name); |
dev | 466 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_NAK); |
dev | 470 | drivers/net/3c505.c | set_hsf(dev->base_addr,HSF_PCB_ACK); |
dev | 476 | drivers/net/3c505.c | adapter_hard_reset (struct device * dev) |
dev | 480 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 484 | drivers/net/3c505.c | dev->name); |
dev | 488 | drivers/net/3c505.c | outb_control(ATTN|FLSH, dev->base_addr); |
dev | 499 | drivers/net/3c505.c | outb_control(0, dev->base_addr); |
dev | 511 | drivers/net/3c505.c | if (GET_ASF(dev->base_addr) != ASF_PCB_END) |
dev | 523 | drivers/net/3c505.c | start_receive (struct device * dev, pcb_struct * tx_pcb) |
dev | 525 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 529 | drivers/net/3c505.c | printk("%s: restarting receiver\n", dev->name); |
dev | 536 | drivers/net/3c505.c | return send_pcb(dev, tx_pcb); |
dev | 549 | drivers/net/3c505.c | receive_packet (struct device * dev, int len) |
dev | 558 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 559 | drivers/net/3c505.c | adapter=dev->priv; |
dev | 576 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|DIR, dev->base_addr); |
dev | 584 | drivers/net/3c505.c | while ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) |
dev | 592 | drivers/net/3c505.c | inw_data(dev->base_addr); |
dev | 598 | drivers/net/3c505.c | skb->dev = dev; |
dev | 606 | drivers/net/3c505.c | while ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) |
dev | 616 | drivers/net/3c505.c | *ptr = inw_data(dev->base_addr); |
dev | 621 | drivers/net/3c505.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 625 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr); |
dev | 640 | drivers/net/3c505.c | struct device *dev; |
dev | 649 | drivers/net/3c505.c | dev = irq2dev_map[irq]; |
dev | 651 | drivers/net/3c505.c | if (dev == NULL) { |
dev | 656 | drivers/net/3c505.c | adapter = (elp_device *) dev->priv; |
dev | 660 | drivers/net/3c505.c | if (dev->interrupt) |
dev | 662 | drivers/net/3c505.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 663 | drivers/net/3c505.c | dev->interrupt = 1; |
dev | 674 | drivers/net/3c505.c | while ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) { |
dev | 676 | drivers/net/3c505.c | if (receive_pcb(dev, &adapter->irx_pcb)) { |
dev | 685 | drivers/net/3c505.c | if (dev->start == 0) |
dev | 689 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr)|DIR, |
dev | 690 | drivers/net/3c505.c | dev->base_addr); |
dev | 694 | drivers/net/3c505.c | printk("%s: interrupt - packet not received correctly\n", dev->name); |
dev | 699 | drivers/net/3c505.c | printk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen); |
dev | 702 | drivers/net/3c505.c | receive_packet(dev, dlen); |
dev | 705 | drivers/net/3c505.c | printk("%s: packet received\n", dev->name); |
dev | 707 | drivers/net/3c505.c | if (dev->start && !start_receive(dev, &adapter->itx_pcb)) |
dev | 709 | drivers/net/3c505.c | printk("%s: interrupt - failed to send receive start PCB\n", dev->name); |
dev | 711 | drivers/net/3c505.c | printk("%s: receive procedure complete\n", dev->name); |
dev | 721 | drivers/net/3c505.c | printk("%s: interrupt - configure response received\n", dev->name); |
dev | 730 | drivers/net/3c505.c | printk("%s: Adapter memory configuration %s.\n",dev->name, |
dev | 740 | drivers/net/3c505.c | printk("%s: Multicast address list loading %s.\n",dev->name, |
dev | 750 | drivers/net/3c505.c | printk("%s: Ethernet address setting %s.\n",dev->name, |
dev | 766 | drivers/net/3c505.c | printk("%s: interrupt - statistics response received\n", dev->name); |
dev | 774 | drivers/net/3c505.c | printk("%s: interrupt - packet sent\n", dev->name); |
dev | 775 | drivers/net/3c505.c | if (dev->start == 0) |
dev | 780 | drivers/net/3c505.c | dev->name, adapter->irx_pcb.data.xmit_resp.c_stat); |
dev | 781 | drivers/net/3c505.c | dev->tbusy = 0; |
dev | 789 | drivers/net/3c505.c | printk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command); |
dev | 793 | drivers/net/3c505.c | printk("%s: failed to read PCB on interrupt\n", dev->name); |
dev | 794 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 801 | drivers/net/3c505.c | dev->interrupt = 0; |
dev | 812 | drivers/net/3c505.c | elp_open (struct device *dev) |
dev | 816 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 818 | drivers/net/3c505.c | adapter = dev->priv; |
dev | 821 | drivers/net/3c505.c | printk("%s: request to open device\n", dev->name); |
dev | 827 | drivers/net/3c505.c | printk("%s: Opening a non-existent physical device\n", dev->name); |
dev | 834 | drivers/net/3c505.c | outb_control(0x00, dev->base_addr); |
dev | 839 | drivers/net/3c505.c | inb_command(dev->base_addr); |
dev | 840 | drivers/net/3c505.c | adapter_reset(dev); |
dev | 845 | drivers/net/3c505.c | dev->interrupt = 0; |
dev | 850 | drivers/net/3c505.c | dev->tbusy = 0; |
dev | 855 | drivers/net/3c505.c | irq2dev_map[dev->irq] = dev; |
dev | 860 | drivers/net/3c505.c | if (request_irq(dev->irq, &elp_interrupt, 0, "3c505")) { |
dev | 861 | drivers/net/3c505.c | irq2dev_map[dev->irq] = NULL; |
dev | 868 | drivers/net/3c505.c | outb_control(CMDE, dev->base_addr); |
dev | 873 | drivers/net/3c505.c | dev->start = 1; |
dev | 879 | drivers/net/3c505.c | printk("%s: sending 3c505 memory configuration command\n", dev->name); |
dev | 889 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 890 | drivers/net/3c505.c | printk("%s: couldn't send memory configuration command\n", dev->name); |
dev | 904 | drivers/net/3c505.c | printk("%s: sending 82586 configure command\n", dev->name); |
dev | 909 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 910 | drivers/net/3c505.c | printk("%s: couldn't send 82586 configure command\n", dev->name); |
dev | 922 | drivers/net/3c505.c | if (!start_receive(dev, &adapter->tx_pcb)) |
dev | 923 | drivers/net/3c505.c | printk("%s: start receive command failed \n", dev->name); |
dev | 925 | drivers/net/3c505.c | printk("%s: start receive command sent\n", dev->name); |
dev | 942 | drivers/net/3c505.c | send_packet (struct device * dev, unsigned char * ptr, int len) |
dev | 953 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 956 | drivers/net/3c505.c | adapter = dev->priv; |
dev | 970 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) { |
dev | 979 | drivers/net/3c505.c | while (((inb_status(dev->base_addr)&HRDY) == 0) |
dev | 985 | drivers/net/3c505.c | dev->name,filename,__LINE__, i, nlen/2); |
dev | 989 | drivers/net/3c505.c | outw_data(*(short *)ptr, dev->base_addr); |
dev | 1005 | drivers/net/3c505.c | elp_start_xmit (struct sk_buff *skb, struct device *dev) |
dev | 1007 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1013 | drivers/net/3c505.c | dev_tint(dev); |
dev | 1024 | drivers/net/3c505.c | printk("%s: request to send packet of length %d\n", dev->name, (int)skb->len); |
dev | 1029 | drivers/net/3c505.c | if (dev->tbusy) { |
dev | 1030 | drivers/net/3c505.c | int tickssofar = jiffies - dev->trans_start; |
dev | 1034 | drivers/net/3c505.c | printk("%s: transmit timed out, not resetting adapter\n", dev->name); |
dev | 1035 | drivers/net/3c505.c | if (((stat=inb_status(dev->base_addr))&ACRF) != 0) |
dev | 1036 | drivers/net/3c505.c | printk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name); |
dev | 1037 | drivers/net/3c505.c | printk("%s: status %#02x\n", dev->name, stat); |
dev | 1038 | drivers/net/3c505.c | dev->trans_start = jiffies; |
dev | 1039 | drivers/net/3c505.c | dev->tbusy = 0; |
dev | 1045 | drivers/net/3c505.c | if (!send_packet(dev, skb->data, skb->len)) { |
dev | 1046 | drivers/net/3c505.c | printk("%s: send packet PCB failed\n", dev->name); |
dev | 1051 | drivers/net/3c505.c | printk("%s: packet of length %d sent\n", dev->name, (int)skb->len); |
dev | 1057 | drivers/net/3c505.c | dev->trans_start = jiffies; |
dev | 1062 | drivers/net/3c505.c | dev->tbusy = 1; |
dev | 1079 | drivers/net/3c505.c | elp_get_stats (struct device *dev) |
dev | 1081 | drivers/net/3c505.c | elp_device *adapter = (elp_device *) dev->priv; |
dev | 1084 | drivers/net/3c505.c | printk("%s: request for stats\n", dev->name); |
dev | 1088 | drivers/net/3c505.c | if (!dev->start) |
dev | 1095 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 1096 | drivers/net/3c505.c | printk("%s: couldn't send get statistics command\n", dev->name); |
dev | 1118 | drivers/net/3c505.c | elp_close (struct device *dev) |
dev | 1122 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1123 | drivers/net/3c505.c | adapter = dev->priv; |
dev | 1127 | drivers/net/3c505.c | printk("%s: request to close device\n", dev->name); |
dev | 1133 | drivers/net/3c505.c | (void) elp_get_stats(dev); |
dev | 1138 | drivers/net/3c505.c | outb_control(0x00, dev->base_addr); |
dev | 1143 | drivers/net/3c505.c | dev->tbusy = 1; |
dev | 1148 | drivers/net/3c505.c | dev->start = 0; |
dev | 1153 | drivers/net/3c505.c | free_irq(dev->irq); |
dev | 1158 | drivers/net/3c505.c | irq2dev_map[dev->irq] = 0; |
dev | 1178 | drivers/net/3c505.c | elp_set_mc_list (struct device *dev, int num_addrs, void *addrs) |
dev | 1180 | drivers/net/3c505.c | elp_device *adapter = (elp_device *) dev->priv; |
dev | 1184 | drivers/net/3c505.c | printk("%s: request to set multicast list\n", dev->name); |
dev | 1194 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 1195 | drivers/net/3c505.c | printk("%s: couldn't send set_multicast command\n", dev->name); |
dev | 1215 | drivers/net/3c505.c | printk("%s: sending 82586 configure command\n", dev->name); |
dev | 1219 | drivers/net/3c505.c | if (!send_pcb(dev, &adapter->tx_pcb)) |
dev | 1220 | drivers/net/3c505.c | printk("%s: couldn't send 82586 configure command\n", dev->name); |
dev | 1237 | drivers/net/3c505.c | elp_init (struct device *dev) |
dev | 1241 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1246 | drivers/net/3c505.c | dev->open = elp_open; /* local */ |
dev | 1247 | drivers/net/3c505.c | dev->stop = elp_close; /* local */ |
dev | 1248 | drivers/net/3c505.c | dev->get_stats = elp_get_stats; /* local */ |
dev | 1249 | drivers/net/3c505.c | dev->hard_start_xmit = elp_start_xmit; /* local */ |
dev | 1250 | drivers/net/3c505.c | dev->set_multicast_list = elp_set_mc_list; /* local */ |
dev | 1253 | drivers/net/3c505.c | ether_setup(dev); |
dev | 1258 | drivers/net/3c505.c | adapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL)); |
dev | 1267 | drivers/net/3c505.c | dev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0; |
dev | 1277 | drivers/net/3c505.c | elp_sense (struct device * dev) |
dev | 1280 | drivers/net/3c505.c | int addr=dev->base_addr; |
dev | 1281 | drivers/net/3c505.c | const char *name=dev->name; |
dev | 1336 | drivers/net/3c505.c | adapter_hard_reset(dev); |
dev | 1347 | drivers/net/3c505.c | elp_autodetect (struct device * dev) |
dev | 1353 | drivers/net/3c505.c | if (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */ |
dev | 1354 | drivers/net/3c505.c | if (elp_sense(dev) == 0) |
dev | 1355 | drivers/net/3c505.c | return dev->base_addr; |
dev | 1356 | drivers/net/3c505.c | } else while ( (dev->base_addr=addr_list[idx++]) ) { |
dev | 1357 | drivers/net/3c505.c | if (elp_sense(dev) == 0) |
dev | 1358 | drivers/net/3c505.c | return dev->base_addr; |
dev | 1363 | drivers/net/3c505.c | printk(couldnot_msg, dev->name); |
dev | 1375 | drivers/net/3c505.c | elplus_probe (struct device *dev) |
dev | 1380 | drivers/net/3c505.c | CHECK_NULL(dev); |
dev | 1386 | drivers/net/3c505.c | dev->base_addr = elp_autodetect(dev); |
dev | 1387 | drivers/net/3c505.c | if ( !(dev->base_addr) ) |
dev | 1394 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr); |
dev | 1403 | drivers/net/3c505.c | if (!send_pcb (dev, &adapter.tx_pcb) || |
dev | 1404 | drivers/net/3c505.c | !receive_pcb(dev, &adapter.rx_pcb) || |
dev | 1407 | drivers/net/3c505.c | printk("%s: not responding to first PCB\n", dev->name); |
dev | 1411 | drivers/net/3c505.c | if (dev->irq) { /* Is there a preset IRQ? */ |
dev | 1412 | drivers/net/3c505.c | if (dev->irq != autoirq_report(0)) { |
dev | 1413 | drivers/net/3c505.c | printk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name); |
dev | 1418 | drivers/net/3c505.c | dev->irq=autoirq_report(0); |
dev | 1419 | drivers/net/3c505.c | switch (dev->irq) { /* Legal, sane? */ |
dev | 1421 | drivers/net/3c505.c | printk("%s: No IRQ reported by autoirq_report().\n",dev->name); |
dev | 1422 | drivers/net/3c505.c | printk("%s: Check the jumpers of your 3c505 board.\n",dev->name); |
dev | 1429 | drivers/net/3c505.c | dev->name, dev->irq); |
dev | 1436 | drivers/net/3c505.c | outb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr); |
dev | 1442 | drivers/net/3c505.c | dev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i]; |
dev | 1449 | drivers/net/3c505.c | dev->name, dev->base_addr, dev->irq, |
dev | 1450 | drivers/net/3c505.c | dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], |
dev | 1451 | drivers/net/3c505.c | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); |
dev | 1456 | drivers/net/3c505.c | request_region(dev->base_addr, ELP_IO_EXTENT, "3c505"); |
dev | 1461 | drivers/net/3c505.c | elp_init(dev); |
dev | 167 | drivers/net/3c507.c | #define SCB_BASE ((unsigned)64*1024 - (dev->mem_end - dev->mem_start)) |
dev | 202 | drivers/net/3c507.c | #define RX_BUF_END (dev->mem_end - dev->mem_start) |
dev | 283 | drivers/net/3c507.c | extern int el16_probe(struct device *dev); /* Called from Space.c */ |
dev | 285 | drivers/net/3c507.c | static int el16_probe1(struct device *dev, int ioaddr); |
dev | 286 | drivers/net/3c507.c | static int el16_open(struct device *dev); |
dev | 287 | drivers/net/3c507.c | static int el16_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 289 | drivers/net/3c507.c | static void el16_rx(struct device *dev); |
dev | 290 | drivers/net/3c507.c | static int el16_close(struct device *dev); |
dev | 291 | drivers/net/3c507.c | static struct enet_statistics *el16_get_stats(struct device *dev); |
dev | 293 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 294 | drivers/net/3c507.c | void init_82586_mem(struct device *dev); |
dev | 309 | drivers/net/3c507.c | el16_probe(struct device *dev) |
dev | 311 | drivers/net/3c507.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 315 | drivers/net/3c507.c | return el16_probe1(dev, base_addr); |
dev | 323 | drivers/net/3c507.c | if (el16_probe1(dev, ioaddr) == 0) |
dev | 330 | drivers/net/3c507.c | int el16_probe1(struct device *dev, int ioaddr) |
dev | 356 | drivers/net/3c507.c | if (dev == NULL) |
dev | 357 | drivers/net/3c507.c | dev = init_etherdev(0, sizeof(struct net_local), 0); |
dev | 362 | drivers/net/3c507.c | printk("%s: 3c507 at %#x,", dev->name, ioaddr); |
dev | 377 | drivers/net/3c507.c | dev->base_addr = ioaddr; |
dev | 381 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
dev | 382 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
dev | 385 | drivers/net/3c507.c | if ((dev->mem_start & 0xf) > 0) |
dev | 386 | drivers/net/3c507.c | net_debug = dev->mem_start & 7; |
dev | 389 | drivers/net/3c507.c | dev->mem_start = MEM_BASE; |
dev | 390 | drivers/net/3c507.c | dev->mem_end = dev->mem_start + 0x10000; |
dev | 404 | drivers/net/3c507.c | dev->mem_start = base; |
dev | 405 | drivers/net/3c507.c | dev->mem_end = base + size; |
dev | 409 | drivers/net/3c507.c | dev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0; |
dev | 410 | drivers/net/3c507.c | dev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
dev | 412 | drivers/net/3c507.c | printk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq, |
dev | 413 | drivers/net/3c507.c | dev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1); |
dev | 419 | drivers/net/3c507.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 420 | drivers/net/3c507.c | if (dev->priv == NULL) |
dev | 422 | drivers/net/3c507.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 424 | drivers/net/3c507.c | dev->open = el16_open; |
dev | 425 | drivers/net/3c507.c | dev->stop = el16_close; |
dev | 426 | drivers/net/3c507.c | dev->hard_start_xmit = el16_send_packet; |
dev | 427 | drivers/net/3c507.c | dev->get_stats = el16_get_stats; |
dev | 429 | drivers/net/3c507.c | ether_setup(dev); /* Generic ethernet behaviour */ |
dev | 437 | drivers/net/3c507.c | el16_open(struct device *dev) |
dev | 439 | drivers/net/3c507.c | irq2dev_map[dev->irq] = dev; |
dev | 442 | drivers/net/3c507.c | init_82586_mem(dev); |
dev | 444 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 445 | drivers/net/3c507.c | dev->interrupt = 0; |
dev | 446 | drivers/net/3c507.c | dev->start = 1; |
dev | 456 | drivers/net/3c507.c | el16_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 458 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 459 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
dev | 460 | drivers/net/3c507.c | short *shmem = (short*)dev->mem_start; |
dev | 462 | drivers/net/3c507.c | if (dev->tbusy) { |
dev | 465 | drivers/net/3c507.c | int tickssofar = jiffies - dev->trans_start; |
dev | 469 | drivers/net/3c507.c | printk("%s: transmit timed out, %s? ", dev->name, |
dev | 476 | drivers/net/3c507.c | init_82586_mem(dev); |
dev | 484 | drivers/net/3c507.c | dev->tbusy=0; |
dev | 485 | drivers/net/3c507.c | dev->trans_start = jiffies; |
dev | 492 | drivers/net/3c507.c | dev_tint(dev); |
dev | 497 | drivers/net/3c507.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 498 | drivers/net/3c507.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 505 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
dev | 506 | drivers/net/3c507.c | dev->trans_start = jiffies; |
dev | 523 | drivers/net/3c507.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 529 | drivers/net/3c507.c | if (dev == NULL) { |
dev | 533 | drivers/net/3c507.c | dev->interrupt = 1; |
dev | 535 | drivers/net/3c507.c | ioaddr = dev->base_addr; |
dev | 536 | drivers/net/3c507.c | lp = (struct net_local *)dev->priv; |
dev | 537 | drivers/net/3c507.c | shmem = ((ushort*)dev->mem_start); |
dev | 542 | drivers/net/3c507.c | printk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status); |
dev | 559 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 580 | drivers/net/3c507.c | el16_rx(dev); |
dev | 586 | drivers/net/3c507.c | if ((status & 0x0700) != 0x0200 && dev->start) { |
dev | 589 | drivers/net/3c507.c | dev->name, status); |
dev | 596 | drivers/net/3c507.c | if ((status & 0x0070) != 0x0040 && dev->start) { |
dev | 602 | drivers/net/3c507.c | dev->name, status); |
dev | 603 | drivers/net/3c507.c | init_rx_bufs(dev); |
dev | 621 | drivers/net/3c507.c | el16_close(struct device *dev) |
dev | 623 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
dev | 624 | drivers/net/3c507.c | ushort *shmem = (short*)dev->mem_start; |
dev | 626 | drivers/net/3c507.c | dev->tbusy = 1; |
dev | 627 | drivers/net/3c507.c | dev->start = 0; |
dev | 639 | drivers/net/3c507.c | irq2dev_map[dev->irq] = 0; |
dev | 653 | drivers/net/3c507.c | el16_get_stats(struct device *dev) |
dev | 655 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 664 | drivers/net/3c507.c | init_rx_bufs(struct device *dev) |
dev | 666 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 675 | drivers/net/3c507.c | write_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf); |
dev | 703 | drivers/net/3c507.c | (dev->mem_start + lp->rx_tail + 2); |
dev | 710 | drivers/net/3c507.c | init_82586_mem(struct device *dev) |
dev | 712 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 713 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
dev | 714 | drivers/net/3c507.c | ushort *shmem = (short*)dev->mem_start; |
dev | 725 | drivers/net/3c507.c | memcpy((void*)dev->mem_end-10, init_words, 10); |
dev | 728 | drivers/net/3c507.c | memcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10); |
dev | 731 | drivers/net/3c507.c | memcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr, |
dev | 732 | drivers/net/3c507.c | sizeof(dev->dev_addr)); |
dev | 738 | drivers/net/3c507.c | init_rx_bufs(dev); |
dev | 752 | drivers/net/3c507.c | "cmd %04x.\n", dev->name, |
dev | 763 | drivers/net/3c507.c | printk("%s: Initialized 82586, status %04x.\n", dev->name, |
dev | 769 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 771 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 772 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
dev | 774 | drivers/net/3c507.c | ushort *write_ptr = (ushort *)(dev->mem_start + tx_block); |
dev | 797 | drivers/net/3c507.c | *(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block; |
dev | 807 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
dev | 811 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 815 | drivers/net/3c507.c | el16_rx(struct device *dev) |
dev | 817 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 818 | drivers/net/3c507.c | short *shmem = (short*)dev->mem_start; |
dev | 825 | drivers/net/3c507.c | ushort *read_frame = (short *)(dev->mem_start + rx_head); |
dev | 829 | drivers/net/3c507.c | ushort *data_frame = (short *)(dev->mem_start + data_buffer_addr); |
dev | 835 | drivers/net/3c507.c | "next %04x data-buf @%04x %04x.\n", dev->name, rx_head, |
dev | 853 | drivers/net/3c507.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 859 | drivers/net/3c507.c | skb->dev = dev; |
dev | 864 | drivers/net/3c507.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 873 | drivers/net/3c507.c | *(short*)(dev->mem_start + rx_tail + 2) = 0x0000; |
dev | 105 | drivers/net/3c509.c | static int el3_open(struct device *dev); |
dev | 106 | drivers/net/3c509.c | static int el3_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 108 | drivers/net/3c509.c | static void update_stats(int addr, struct device *dev); |
dev | 109 | drivers/net/3c509.c | static struct enet_statistics *el3_get_stats(struct device *dev); |
dev | 110 | drivers/net/3c509.c | static int el3_rx(struct device *dev); |
dev | 111 | drivers/net/3c509.c | static int el3_close(struct device *dev); |
dev | 113 | drivers/net/3c509.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 118 | drivers/net/3c509.c | int el3_probe(struct device *dev) |
dev | 122 | drivers/net/3c509.c | short *phys_addr = (short *)dev->dev_addr; |
dev | 216 | drivers/net/3c509.c | if (dev->base_addr != 0 |
dev | 217 | drivers/net/3c509.c | && dev->base_addr != (unsigned short)ioaddr) { |
dev | 234 | drivers/net/3c509.c | dev->base_addr = ioaddr; |
dev | 235 | drivers/net/3c509.c | dev->irq = irq; |
dev | 236 | drivers/net/3c509.c | dev->if_port = if_port; |
dev | 237 | drivers/net/3c509.c | request_region(dev->base_addr, EL3_IO_EXTENT, "3c509"); |
dev | 242 | drivers/net/3c509.c | dev->name, dev->base_addr, current_tag, if_names[dev->if_port]); |
dev | 247 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
dev | 248 | drivers/net/3c509.c | printk(", IRQ %d.\n", dev->irq); |
dev | 251 | drivers/net/3c509.c | dev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL); |
dev | 252 | drivers/net/3c509.c | if (dev->priv == NULL) |
dev | 254 | drivers/net/3c509.c | memset(dev->priv, 0, sizeof(struct el3_private)); |
dev | 260 | drivers/net/3c509.c | dev->open = &el3_open; |
dev | 261 | drivers/net/3c509.c | dev->hard_start_xmit = &el3_start_xmit; |
dev | 262 | drivers/net/3c509.c | dev->stop = &el3_close; |
dev | 263 | drivers/net/3c509.c | dev->get_stats = &el3_get_stats; |
dev | 265 | drivers/net/3c509.c | dev->set_multicast_list = &set_multicast_list; |
dev | 269 | drivers/net/3c509.c | ether_setup(dev); |
dev | 312 | drivers/net/3c509.c | el3_open(struct device *dev) |
dev | 314 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 321 | drivers/net/3c509.c | if (request_irq(dev->irq, &el3_interrupt, 0, "3c509")) { |
dev | 327 | drivers/net/3c509.c | printk("%s: Opening, IRQ %d status@%x %4.4x.\n", dev->name, |
dev | 328 | drivers/net/3c509.c | dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); |
dev | 333 | drivers/net/3c509.c | irq2dev_map[dev->irq] = dev; |
dev | 336 | drivers/net/3c509.c | outw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ); |
dev | 342 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
dev | 344 | drivers/net/3c509.c | if (dev->if_port == 3) |
dev | 347 | drivers/net/3c509.c | else if (dev->if_port == 0) { |
dev | 368 | drivers/net/3c509.c | dev->interrupt = 0; |
dev | 369 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 370 | drivers/net/3c509.c | dev->start = 1; |
dev | 381 | drivers/net/3c509.c | dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); |
dev | 390 | drivers/net/3c509.c | el3_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 392 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 393 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 396 | drivers/net/3c509.c | if (dev->tbusy) { |
dev | 397 | drivers/net/3c509.c | int tickssofar = jiffies - dev->trans_start; |
dev | 401 | drivers/net/3c509.c | dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS)); |
dev | 402 | drivers/net/3c509.c | dev->trans_start = jiffies; |
dev | 406 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 410 | drivers/net/3c509.c | dev_tint(dev); |
dev | 419 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
dev | 427 | drivers/net/3c509.c | " Tx %2.2x Rx %4.4x.\n", dev->name, status, |
dev | 439 | drivers/net/3c509.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 440 | drivers/net/3c509.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 448 | drivers/net/3c509.c | dev->trans_start = jiffies; |
dev | 450 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 477 | drivers/net/3c509.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 481 | drivers/net/3c509.c | if (dev == NULL) { |
dev | 486 | drivers/net/3c509.c | if (dev->interrupt) |
dev | 487 | drivers/net/3c509.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 488 | drivers/net/3c509.c | dev->interrupt = 1; |
dev | 490 | drivers/net/3c509.c | ioaddr = dev->base_addr; |
dev | 494 | drivers/net/3c509.c | printk("%s: interrupt, status %4.4x.\n", dev->name, status); |
dev | 499 | drivers/net/3c509.c | el3_rx(dev); |
dev | 506 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 510 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
dev | 514 | drivers/net/3c509.c | dev->name, status); |
dev | 525 | drivers/net/3c509.c | printk("%s: exiting interrupt, status %4.4x.\n", dev->name, |
dev | 529 | drivers/net/3c509.c | dev->interrupt = 0; |
dev | 535 | drivers/net/3c509.c | el3_get_stats(struct device *dev) |
dev | 537 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 542 | drivers/net/3c509.c | update_stats(dev->base_addr, dev); |
dev | 552 | drivers/net/3c509.c | static void update_stats(int ioaddr, struct device *dev) |
dev | 554 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 581 | drivers/net/3c509.c | el3_rx(struct device *dev) |
dev | 583 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 584 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 611 | drivers/net/3c509.c | skb->dev = dev; |
dev | 618 | drivers/net/3c509.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 625 | drivers/net/3c509.c | dev->name, pkt_len); |
dev | 645 | drivers/net/3c509.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 647 | drivers/net/3c509.c | short ioaddr = dev->base_addr; |
dev | 652 | drivers/net/3c509.c | printk("%s: Setting Rx mode to %d addresses.\n", dev->name, num_addrs); |
dev | 666 | drivers/net/3c509.c | el3_close(struct device *dev) |
dev | 668 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 671 | drivers/net/3c509.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 673 | drivers/net/3c509.c | dev->tbusy = 1; |
dev | 674 | drivers/net/3c509.c | dev->start = 0; |
dev | 683 | drivers/net/3c509.c | if (dev->if_port == 3) |
dev | 686 | drivers/net/3c509.c | else if (dev->if_port == 0) { |
dev | 692 | drivers/net/3c509.c | free_irq(dev->irq); |
dev | 699 | drivers/net/3c509.c | irq2dev_map[dev->irq] = 0; |
dev | 701 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
dev | 100 | drivers/net/8390.c | static void ei_tx_intr(struct device *dev); |
dev | 101 | drivers/net/8390.c | static void ei_receive(struct device *dev); |
dev | 102 | drivers/net/8390.c | static void ei_rx_overrun(struct device *dev); |
dev | 105 | drivers/net/8390.c | static void NS8390_trigger_send(struct device *dev, unsigned int length, |
dev | 108 | drivers/net/8390.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 116 | drivers/net/8390.c | int ei_open(struct device *dev) |
dev | 118 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 121 | drivers/net/8390.c | printk("%s: Opening a non-existent physical device\n", dev->name); |
dev | 125 | drivers/net/8390.c | irq2dev_map[dev->irq] = dev; |
dev | 126 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 127 | drivers/net/8390.c | dev->start = 1; |
dev | 132 | drivers/net/8390.c | static int ei_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 134 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 135 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 144 | drivers/net/8390.c | if (dev->tbusy) { /* Do timeouts, just like the 8003 driver. */ |
dev | 146 | drivers/net/8390.c | int tickssofar = jiffies - dev->trans_start; |
dev | 151 | drivers/net/8390.c | if (dev->start == 0) { |
dev | 152 | drivers/net/8390.c | printk("%s: xmit on stopped card\n", dev->name); |
dev | 156 | drivers/net/8390.c | dev->name, txsr, isr); |
dev | 159 | drivers/net/8390.c | printk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq); |
dev | 162 | drivers/net/8390.c | printk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name); |
dev | 167 | drivers/net/8390.c | ei_reset_8390(dev); |
dev | 168 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 169 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 176 | drivers/net/8390.c | dev_tint(dev); |
dev | 186 | drivers/net/8390.c | if (dev->interrupt) { |
dev | 187 | drivers/net/8390.c | printk("%s: Tx request while isr active.\n",dev->name); |
dev | 202 | drivers/net/8390.c | dev->name, ei_local->tx2, ei_local->lasttx, |
dev | 209 | drivers/net/8390.c | dev->name, ei_local->tx1, ei_local->lasttx, |
dev | 214 | drivers/net/8390.c | dev->name, dev->interrupt, ei_local->tx1, |
dev | 217 | drivers/net/8390.c | dev->tbusy = 1; |
dev | 221 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, output_page); |
dev | 224 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, output_page); |
dev | 225 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 233 | drivers/net/8390.c | dev->tbusy = (ei_local->tx1 && ei_local->tx2); |
dev | 235 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, ei_local->tx_start_page); |
dev | 237 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, ei_local->tx_start_page); |
dev | 238 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 239 | drivers/net/8390.c | dev->tbusy = 1; |
dev | 255 | drivers/net/8390.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 260 | drivers/net/8390.c | if (dev == NULL) { |
dev | 264 | drivers/net/8390.c | e8390_base = dev->base_addr; |
dev | 265 | drivers/net/8390.c | ei_local = (struct ei_device *) dev->priv; |
dev | 266 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
dev | 271 | drivers/net/8390.c | dev->name, inb_p(e8390_base + EN0_ISR), |
dev | 276 | drivers/net/8390.c | dev->interrupt = 1; |
dev | 281 | drivers/net/8390.c | printk("%s: interrupt(isr=%#2.2x).\n", dev->name, |
dev | 287 | drivers/net/8390.c | if (dev->start == 0) { |
dev | 288 | drivers/net/8390.c | printk("%s: interrupt from stopped card\n", dev->name); |
dev | 293 | drivers/net/8390.c | ei_rx_overrun(dev); |
dev | 296 | drivers/net/8390.c | ei_receive(dev); |
dev | 300 | drivers/net/8390.c | ei_tx_intr(dev); |
dev | 325 | drivers/net/8390.c | dev->name, interrupts); |
dev | 328 | drivers/net/8390.c | printk("%s: unknown interrupt %#2x\n", dev->name, interrupts); |
dev | 332 | drivers/net/8390.c | dev->interrupt = 0; |
dev | 338 | drivers/net/8390.c | static void ei_tx_intr(struct device *dev) |
dev | 340 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 342 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 353 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 356 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); |
dev | 357 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 367 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 370 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); |
dev | 371 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 378 | drivers/net/8390.c | dev->name, ei_local->lasttx); |
dev | 381 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 402 | drivers/net/8390.c | static void ei_receive(struct device *dev) |
dev | 404 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 405 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 428 | drivers/net/8390.c | dev->name, this_frame, ei_local->current_page); |
dev | 434 | drivers/net/8390.c | ei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame, |
dev | 457 | drivers/net/8390.c | dev->name, rx_frame.count, rx_frame.status, |
dev | 467 | drivers/net/8390.c | dev->name, pkt_len); |
dev | 472 | drivers/net/8390.c | skb->dev = dev; |
dev | 474 | drivers/net/8390.c | ei_block_input(dev, pkt_len, skb_put(skb,pkt_len), |
dev | 476 | drivers/net/8390.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 484 | drivers/net/8390.c | dev->name, rx_frame.status, rx_frame.next, |
dev | 493 | drivers/net/8390.c | printk("%s: next frame inconsistency, %#2x\n", dev->name, |
dev | 515 | drivers/net/8390.c | static void ei_rx_overrun(struct device *dev) |
dev | 517 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 519 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 525 | drivers/net/8390.c | printk("%s: Receiver overrun.\n", dev->name); |
dev | 538 | drivers/net/8390.c | dev->name); |
dev | 539 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 544 | drivers/net/8390.c | ei_receive(dev); |
dev | 552 | drivers/net/8390.c | static struct enet_statistics *get_stats(struct device *dev) |
dev | 554 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
dev | 555 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 558 | drivers/net/8390.c | if (dev->start == 0) return &ei_local->stat; |
dev | 575 | drivers/net/8390.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 577 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
dev | 591 | drivers/net/8390.c | int ethdev_init(struct device *dev) |
dev | 596 | drivers/net/8390.c | if (dev->priv == NULL) { |
dev | 599 | drivers/net/8390.c | dev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL); |
dev | 600 | drivers/net/8390.c | if (dev->priv == NULL) |
dev | 602 | drivers/net/8390.c | memset(dev->priv, 0, sizeof(struct ei_device)); |
dev | 603 | drivers/net/8390.c | ei_local = (struct ei_device *)dev->priv; |
dev | 608 | drivers/net/8390.c | if (dev->open == NULL) |
dev | 609 | drivers/net/8390.c | dev->open = &ei_open; |
dev | 611 | drivers/net/8390.c | dev->hard_start_xmit = &ei_start_xmit; |
dev | 612 | drivers/net/8390.c | dev->get_stats = get_stats; |
dev | 614 | drivers/net/8390.c | dev->set_multicast_list = &set_multicast_list; |
dev | 617 | drivers/net/8390.c | ether_setup(dev); |
dev | 625 | drivers/net/8390.c | void NS8390_init(struct device *dev, int startp) |
dev | 627 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 628 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 659 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
dev | 669 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 670 | drivers/net/8390.c | dev->interrupt = 0; |
dev | 685 | drivers/net/8390.c | static void NS8390_trigger_send(struct device *dev, unsigned int length, |
dev | 688 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 694 | 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 hp100_probe(struct device *dev); |
dev | 42 | drivers/net/Space.c | extern int ultra_probe(struct device *dev); |
dev | 43 | drivers/net/Space.c | extern int wd_probe(struct device *dev); |
dev | 44 | drivers/net/Space.c | extern int el2_probe(struct device *dev); |
dev | 45 | drivers/net/Space.c | extern int ne_probe(struct device *dev); |
dev | 46 | drivers/net/Space.c | extern int hp_probe(struct device *dev); |
dev | 47 | drivers/net/Space.c | extern int hp_plus_probe(struct device *dev); |
dev | 77 | drivers/net/Space.c | ethif_probe(struct device *dev) |
dev | 79 | drivers/net/Space.c | u_long base_addr = dev->base_addr; |
dev | 86 | drivers/net/Space.c | && seeq8005_probe(dev) |
dev | 89 | drivers/net/Space.c | && hp100_probe(dev) |
dev | 92 | drivers/net/Space.c | && ultra_probe(dev) |
dev | 95 | drivers/net/Space.c | && wd_probe(dev) |
dev | 98 | drivers/net/Space.c | && el2_probe(dev) |
dev | 101 | drivers/net/Space.c | && ne_probe(dev) |
dev | 104 | drivers/net/Space.c | && hp_probe(dev) |
dev | 107 | drivers/net/Space.c | && hp_plus_probe(dev) |
dev | 110 | drivers/net/Space.c | && at1500_probe(dev) |
dev | 113 | drivers/net/Space.c | && at1700_probe(dev) |
dev | 116 | drivers/net/Space.c | && el3_probe(dev) |
dev | 119 | drivers/net/Space.c | && znet_probe(dev) |
dev | 122 | drivers/net/Space.c | && express_probe(dev) |
dev | 125 | drivers/net/Space.c | && eepro_probe(dev) |
dev | 128 | drivers/net/Space.c | && depca_probe(dev) |
dev | 131 | drivers/net/Space.c | && ewrk3_probe(dev) |
dev | 134 | drivers/net/Space.c | && de4x5_probe(dev) |
dev | 137 | drivers/net/Space.c | && apricot_probe(dev) |
dev | 140 | drivers/net/Space.c | && el1_probe(dev) |
dev | 143 | drivers/net/Space.c | && wavelan_probe(dev) |
dev | 146 | drivers/net/Space.c | && el16_probe(dev) |
dev | 149 | drivers/net/Space.c | && elplus_probe(dev) |
dev | 152 | drivers/net/Space.c | && ac3200_probe(dev) |
dev | 155 | drivers/net/Space.c | && e2100_probe(dev) |
dev | 158 | drivers/net/Space.c | && de600_probe(dev) |
dev | 161 | drivers/net/Space.c | && de620_probe(dev) |
dev | 164 | drivers/net/Space.c | && SK_init(dev) |
dev | 167 | drivers/net/Space.c | && ni52_probe(dev) |
dev | 170 | drivers/net/Space.c | && ni65_probe(dev) |
dev | 200 | drivers/net/Space.c | extern int arcnet_probe(struct device *dev); |
dev | 286 | drivers/net/Space.c | extern int dummy_init(struct device *dev); |
dev | 294 | drivers/net/Space.c | extern int eql_init(struct device *dev); |
dev | 311 | drivers/net/Space.c | extern int tok_probe(struct device *dev); |
dev | 381 | drivers/net/Space.c | extern int loopback_init(struct device *dev); |
dev | 70 | drivers/net/ac3200.c | int ac3200_probe(struct device *dev); |
dev | 71 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev); |
dev | 73 | drivers/net/ac3200.c | static int ac_open(struct device *dev); |
dev | 74 | drivers/net/ac3200.c | static void ac_reset_8390(struct device *dev); |
dev | 75 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, |
dev | 77 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, const int count, |
dev | 79 | drivers/net/ac3200.c | static int ac_close_card(struct device *dev); |
dev | 88 | drivers/net/ac3200.c | int ac3200_probe(struct device *dev) |
dev | 90 | drivers/net/ac3200.c | unsigned short ioaddr = dev->base_addr; |
dev | 93 | drivers/net/ac3200.c | return ac_probe1(ioaddr, dev); |
dev | 102 | drivers/net/ac3200.c | if (ac_probe1(ioaddr, dev) == 0) |
dev | 108 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev) |
dev | 139 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
dev | 149 | drivers/net/ac3200.c | if (dev->irq == 0) |
dev | 150 | drivers/net/ac3200.c | dev->irq = config2irq(inb(ioaddr + AC_CONFIG)); |
dev | 151 | drivers/net/ac3200.c | else if (dev->irq == 2) |
dev | 152 | drivers/net/ac3200.c | dev->irq = 9; |
dev | 154 | drivers/net/ac3200.c | if (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) { |
dev | 155 | drivers/net/ac3200.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 161 | drivers/net/ac3200.c | dev->base_addr = ioaddr; |
dev | 164 | drivers/net/ac3200.c | if (dev->mem_start) { /* Override the value from the board. */ |
dev | 166 | drivers/net/ac3200.c | if (addrmap[i] == dev->mem_start) |
dev | 174 | drivers/net/ac3200.c | dev->if_port = inb(ioaddr + AC_CONFIG) >> 6; |
dev | 175 | drivers/net/ac3200.c | dev->mem_start = config2mem(inb(ioaddr + AC_CONFIG)); |
dev | 176 | drivers/net/ac3200.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 177 | drivers/net/ac3200.c | dev->mem_end = dev->rmem_end = dev->mem_start |
dev | 180 | drivers/net/ac3200.c | ethdev_init(dev); |
dev | 189 | drivers/net/ac3200.c | dev->name, ioaddr, dev->irq, port_name[dev->if_port], |
dev | 190 | drivers/net/ac3200.c | dev->mem_start, dev->mem_end-1); |
dev | 199 | drivers/net/ac3200.c | dev->open = &ac_open; |
dev | 200 | drivers/net/ac3200.c | dev->stop = &ac_close_card; |
dev | 201 | drivers/net/ac3200.c | NS8390_init(dev, 0); |
dev | 205 | drivers/net/ac3200.c | static int ac_open(struct device *dev) |
dev | 210 | drivers/net/ac3200.c | int ioaddr = dev->base_addr; |
dev | 212 | drivers/net/ac3200.c | if (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) |
dev | 216 | drivers/net/ac3200.c | rc = ei_open(dev); |
dev | 226 | drivers/net/ac3200.c | static void ac_reset_8390(struct device *dev) |
dev | 228 | drivers/net/ac3200.c | ushort ioaddr = dev->base_addr; |
dev | 243 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
dev | 246 | drivers/net/ac3200.c | long xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8); |
dev | 248 | drivers/net/ac3200.c | if (xfer_start + count > dev->rmem_end) { |
dev | 250 | drivers/net/ac3200.c | int semi_count = dev->rmem_end - xfer_start; |
dev | 253 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 254 | drivers/net/ac3200.c | return dev->rmem_start + count; |
dev | 261 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, int count, |
dev | 264 | drivers/net/ac3200.c | long shmem = dev->mem_start + ((start_page - AC_START_PG)<<8); |
dev | 269 | drivers/net/ac3200.c | static int ac_close_card(struct device *dev) |
dev | 271 | drivers/net/ac3200.c | dev->start = 0; |
dev | 272 | drivers/net/ac3200.c | dev->tbusy = 1; |
dev | 275 | drivers/net/ac3200.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 280 | drivers/net/ac3200.c | free_irq(dev->irq); |
dev | 281 | drivers/net/ac3200.c | irq2dev_map[dev->irq] = 0; |
dev | 284 | 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 | 356 | drivers/net/apricot.c | skb->dev = dev; |
dev | 359 | drivers/net/apricot.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 447 | drivers/net/apricot.c | i596_reset(struct device *dev, struct i596_private *lp, int ioaddr) |
dev | 461 | drivers/net/apricot.c | dev->start = 0; |
dev | 462 | drivers/net/apricot.c | dev->tbusy = 1; |
dev | 479 | drivers/net/apricot.c | i596_rx(dev); |
dev | 481 | drivers/net/apricot.c | dev->start = 1; |
dev | 482 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 483 | drivers/net/apricot.c | dev->interrupt = 0; |
dev | 484 | drivers/net/apricot.c | init_i596_mem(dev); |
dev | 487 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd) |
dev | 489 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 490 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
dev | 531 | drivers/net/apricot.c | printk("%s: command unit timed out, status resetting.\n", dev->name); |
dev | 533 | drivers/net/apricot.c | i596_reset(dev, lp, ioaddr); |
dev | 538 | drivers/net/apricot.c | i596_open(struct device *dev) |
dev | 543 | drivers/net/apricot.c | printk("%s: i596_open() irq %d.\n", dev->name, dev->irq); |
dev | 545 | drivers/net/apricot.c | if (request_irq(dev->irq, &i596_interrupt, 0, "apricot")) |
dev | 548 | drivers/net/apricot.c | irq2dev_map[dev->irq] = dev; |
dev | 550 | drivers/net/apricot.c | i = init_rx_bufs(dev, RX_RING_SIZE); |
dev | 552 | drivers/net/apricot.c | if ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE) |
dev | 553 | drivers/net/apricot.c | printk("%s: only able to allocate %d receive buffers\n", dev->name, i); |
dev | 557 | drivers/net/apricot.c | free_irq(dev->irq); |
dev | 558 | drivers/net/apricot.c | irq2dev_map[dev->irq] = 0; |
dev | 562 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 563 | drivers/net/apricot.c | dev->interrupt = 0; |
dev | 564 | drivers/net/apricot.c | dev->start = 1; |
dev | 570 | drivers/net/apricot.c | init_i596_mem(dev); |
dev | 576 | drivers/net/apricot.c | i596_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 578 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 579 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
dev | 582 | drivers/net/apricot.c | if (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name); |
dev | 585 | drivers/net/apricot.c | if (dev->tbusy) { |
dev | 586 | drivers/net/apricot.c | int tickssofar = jiffies - dev->trans_start; |
dev | 590 | drivers/net/apricot.c | dev->name); |
dev | 597 | drivers/net/apricot.c | i596_reset(dev,lp, ioaddr); |
dev | 607 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 608 | drivers/net/apricot.c | dev->trans_start = jiffies; |
dev | 615 | drivers/net/apricot.c | dev_tint(dev); |
dev | 622 | drivers/net/apricot.c | if (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name); |
dev | 626 | drivers/net/apricot.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 627 | drivers/net/apricot.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 631 | drivers/net/apricot.c | dev->trans_start = jiffies; |
dev | 636 | drivers/net/apricot.c | printk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name); |
dev | 657 | drivers/net/apricot.c | i596_add_cmd(dev, (struct i596_cmd *)tx_cmd); |
dev | 663 | drivers/net/apricot.c | dev->tbusy = 0; |
dev | 685 | drivers/net/apricot.c | int apricot_probe(struct device *dev) |
dev | 719 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
dev | 720 | drivers/net/apricot.c | ether_setup(dev); |
dev | 721 | drivers/net/apricot.c | printk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr); |
dev | 724 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = eth_addr[i]); |
dev | 726 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
dev | 727 | drivers/net/apricot.c | dev->irq = 10; |
dev | 728 | drivers/net/apricot.c | printk(" IRQ %d.\n", dev->irq); |
dev | 733 | drivers/net/apricot.c | dev->open = &i596_open; |
dev | 734 | drivers/net/apricot.c | dev->stop = &i596_close; |
dev | 735 | drivers/net/apricot.c | dev->hard_start_xmit = &i596_start_xmit; |
dev | 736 | drivers/net/apricot.c | dev->get_stats = &i596_get_stats; |
dev | 738 | drivers/net/apricot.c | dev->set_multicast_list = &set_multicast_list; |
dev | 741 | drivers/net/apricot.c | dev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL); |
dev | 743 | drivers/net/apricot.c | dev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0); |
dev | 745 | drivers/net/apricot.c | lp = (struct i596_private *)dev->priv; |
dev | 757 | drivers/net/apricot.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 763 | drivers/net/apricot.c | if (dev == NULL) { |
dev | 768 | drivers/net/apricot.c | if (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq); |
dev | 770 | drivers/net/apricot.c | if (dev->interrupt) |
dev | 771 | drivers/net/apricot.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 773 | drivers/net/apricot.c | dev->interrupt = 1; |
dev | 775 | drivers/net/apricot.c | ioaddr = dev->base_addr; |
dev | 777 | drivers/net/apricot.c | lp = (struct i596_private *)dev->priv; |
dev | 782 | 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 | 788 | drivers/net/apricot.c | printk("%s: i596 interrupt, status %4.4x.\n", dev->name, status); |
dev | 797 | drivers/net/apricot.c | printk("%s: i596 interrupt completed command.\n", dev->name); |
dev | 799 | drivers/net/apricot.c | printk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700); |
dev | 851 | drivers/net/apricot.c | printk("%s: link ok.\n", dev->name); |
dev | 856 | drivers/net/apricot.c | printk("%s: Transceiver problem.\n", dev->name); |
dev | 858 | drivers/net/apricot.c | printk("%s: Termination problem.\n", dev->name); |
dev | 860 | drivers/net/apricot.c | printk("%s: Short circuit.\n", dev->name); |
dev | 862 | drivers/net/apricot.c | printk("%s: Time %ld.\n", dev->name, status & 0x07ff); |
dev | 879 | drivers/net/apricot.c | if ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START; |
dev | 886 | drivers/net/apricot.c | printk("%s: i596 interrupt received a frame.\n", dev->name); |
dev | 888 | drivers/net/apricot.c | printk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070); |
dev | 890 | drivers/net/apricot.c | i596_rx(dev); |
dev | 892 | drivers/net/apricot.c | if (dev->start) ack_cmd |= RX_START; |
dev | 904 | 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 | 914 | drivers/net/apricot.c | printk("%s: exiting interrupt.\n", dev->name); |
dev | 916 | drivers/net/apricot.c | dev->interrupt = 0; |
dev | 921 | drivers/net/apricot.c | i596_close(struct device *dev) |
dev | 923 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
dev | 924 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 927 | drivers/net/apricot.c | dev->start = 0; |
dev | 928 | drivers/net/apricot.c | dev->tbusy = 1; |
dev | 932 | drivers/net/apricot.c | dev->name, lp->scb.status); |
dev | 943 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
dev | 946 | drivers/net/apricot.c | free_irq(dev->irq); |
dev | 947 | drivers/net/apricot.c | irq2dev_map[dev->irq] = 0; |
dev | 948 | drivers/net/apricot.c | remove_rx_bufs(dev); |
dev | 958 | drivers/net/apricot.c | i596_get_stats(struct device *dev) |
dev | 960 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 973 | drivers/net/apricot.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 975 | drivers/net/apricot.c | struct i596_private *lp = (struct i596_private *)dev->priv; |
dev | 979 | drivers/net/apricot.c | printk ("%s: set multicast list %d\n", dev->name, num_addrs); |
dev | 985 | drivers/net/apricot.c | printk ("%s: set_multicast Memory squeeze.\n", dev->name); |
dev | 994 | drivers/net/apricot.c | i596_add_cmd(dev, cmd); |
dev | 1003 | drivers/net/apricot.c | i596_add_cmd(dev, &lp->set_conf); |
dev | 412 | drivers/net/arcnet.c | extern int arcnet_probe(struct device *dev); |
dev | 414 | drivers/net/arcnet.c | static int arcnet_memprobe(struct device *dev,u_char *addr); |
dev | 415 | drivers/net/arcnet.c | static int arcnet_ioprobe(struct device *dev, short ioaddr); |
dev | 417 | drivers/net/arcnet.c | static int arcnetE_init(struct device *dev); |
dev | 419 | drivers/net/arcnet.c | static int arcnet_open(struct device *dev); |
dev | 420 | drivers/net/arcnet.c | static int arcnet_close(struct device *dev); |
dev | 421 | drivers/net/arcnet.c | static int arcnet_reset(struct device *dev); |
dev | 423 | drivers/net/arcnet.c | static int arcnetA_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 424 | drivers/net/arcnet.c | static void arcnetA_continue_tx(struct device *dev); |
dev | 425 | drivers/net/arcnet.c | static void arcnetA_prepare_tx(struct device *dev,struct ClientData *hdr, |
dev | 427 | drivers/net/arcnet.c | static void arcnetA_go_tx(struct device *dev); |
dev | 429 | drivers/net/arcnet.c | static int arcnetE_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 432 | drivers/net/arcnet.c | static void arcnet_inthandler(struct device *dev); |
dev | 434 | drivers/net/arcnet.c | static void arcnet_rx(struct device *dev,int recbuf); |
dev | 435 | drivers/net/arcnet.c | static void arcnetA_rx(struct device *dev,struct ClientData *arcsoft, |
dev | 437 | drivers/net/arcnet.c | static void arcnetE_rx(struct device *dev,u_char *arcsoft, |
dev | 440 | drivers/net/arcnet.c | static struct enet_statistics *arcnet_get_stats(struct device *dev); |
dev | 441 | drivers/net/arcnet.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 445 | drivers/net/arcnet.c | int arcnetA_header(unsigned char *buff,struct device *dev, |
dev | 449 | drivers/net/arcnet.c | int arcnetA_header(struct sk_buff *skb,struct device *dev, |
dev | 452 | drivers/net/arcnet.c | int arcnetA_rebuild_header(void *eth,struct device *dev,unsigned long raddr, |
dev | 454 | drivers/net/arcnet.c | unsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev); |
dev | 461 | drivers/net/arcnet.c | #define tx_done(dev) 1 |
dev | 481 | drivers/net/arcnet.c | arcnet_probe(struct device *dev) |
dev | 508 | drivers/net/arcnet.c | int base_addr=dev->base_addr, status=0; |
dev | 539 | drivers/net/arcnet.c | dev->base_addr,dev->irq,dev->mem_start); |
dev | 543 | drivers/net/arcnet.c | status=arcnet_ioprobe(dev, base_addr); |
dev | 557 | drivers/net/arcnet.c | status=arcnet_ioprobe(dev, ioaddr); |
dev | 573 | drivers/net/arcnet.c | dev->mem_start); |
dev | 574 | drivers/net/arcnet.c | if (dev->mem_start) /* value given - probe just that one */ |
dev | 576 | drivers/net/arcnet.c | status=arcnet_memprobe(dev,(u_char *)dev->mem_start); |
dev | 582 | drivers/net/arcnet.c | status=arcnet_memprobe(dev,(u_char *)(*addr)); |
dev | 589 | drivers/net/arcnet.c | if (!dev->base_addr || !dev->irq || !dev->mem_start |
dev | 590 | drivers/net/arcnet.c | || !dev->rmem_start) |
dev | 600 | drivers/net/arcnet.c | int irqval = request_irq(dev->irq, &arcnet_interrupt, 0, |
dev | 604 | drivers/net/arcnet.c | dev->name,dev->irq, irqval); |
dev | 610 | drivers/net/arcnet.c | request_region(dev->base_addr, ARCNET_TOTAL_SIZE,"arcnet"); |
dev | 613 | drivers/net/arcnet.c | dev->name, dev->base_addr, dev->irq, dev->mem_start); |
dev | 616 | drivers/net/arcnet.c | dev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL); |
dev | 617 | drivers/net/arcnet.c | if (dev->priv == NULL) |
dev | 619 | drivers/net/arcnet.c | memset(dev->priv, 0, sizeof(struct arcnet_local)); |
dev | 620 | drivers/net/arcnet.c | lp=(struct arcnet_local *)(dev->priv); |
dev | 622 | drivers/net/arcnet.c | dev->open=arcnet_open; |
dev | 623 | drivers/net/arcnet.c | dev->stop=arcnet_close; |
dev | 624 | drivers/net/arcnet.c | dev->hard_start_xmit=arcnetA_send_packet; |
dev | 625 | drivers/net/arcnet.c | dev->get_stats=arcnet_get_stats; |
dev | 627 | drivers/net/arcnet.c | dev->set_multicast_list = &set_multicast_list; |
dev | 633 | drivers/net/arcnet.c | ether_setup(dev); |
dev | 636 | drivers/net/arcnet.c | dev->type=ARPHRD_ARCNET; |
dev | 637 | drivers/net/arcnet.c | dev->hard_header_len=sizeof(struct ClientData); |
dev | 645 | drivers/net/arcnet.c | dev->addr_len=1; |
dev | 646 | drivers/net/arcnet.c | dev->broadcast[0]=0x00; |
dev | 649 | drivers/net/arcnet.c | arcnet_reset(dev); |
dev | 658 | drivers/net/arcnet.c | dev->dev_addr[0]=lp->arcnum; |
dev | 662 | drivers/net/arcnet.c | dev->hard_header=arcnetA_header; |
dev | 663 | drivers/net/arcnet.c | dev->rebuild_header=arcnetA_rebuild_header; |
dev | 666 | drivers/net/arcnet.c | dev->type_trans=arcnetA_type_trans; |
dev | 674 | drivers/net/arcnet.c | int arcnet_ioprobe(struct device *dev, short ioaddr) |
dev | 763 | drivers/net/arcnet.c | if (!airq && !(dev->base_addr && dev->irq)) |
dev | 787 | drivers/net/arcnet.c | if (!dev->base_addr) dev->base_addr=ioaddr; |
dev | 789 | drivers/net/arcnet.c | if (dev->irq < 2) /* "Auto-IRQ" */ |
dev | 792 | drivers/net/arcnet.c | dev->irq=airq; |
dev | 794 | drivers/net/arcnet.c | else if (dev->irq == 2) |
dev | 798 | drivers/net/arcnet.c | dev->irq = 9; |
dev | 803 | drivers/net/arcnet.c | dev->base_addr,dev->irq); |
dev | 812 | drivers/net/arcnet.c | int arcnet_memprobe(struct device *dev,u_char *addr) |
dev | 817 | drivers/net/arcnet.c | dev->mem_start=0; |
dev | 839 | drivers/net/arcnet.c | dev->mem_start=(unsigned long)addr; |
dev | 840 | drivers/net/arcnet.c | dev->mem_end=dev->mem_start+512*4-1; |
dev | 841 | drivers/net/arcnet.c | dev->rmem_start=dev->mem_start+512*0; |
dev | 842 | drivers/net/arcnet.c | dev->rmem_end=dev->mem_start+512*2-1; |
dev | 850 | drivers/net/arcnet.c | int arcnet_reset(struct device *dev) |
dev | 852 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)dev->priv; |
dev | 853 | drivers/net/arcnet.c | short ioaddr=dev->base_addr; |
dev | 861 | drivers/net/arcnet.c | dev->name,inb(STATUS)); |
dev | 872 | drivers/net/arcnet.c | cardmem = (u_char *) dev->mem_start; |
dev | 890 | drivers/net/arcnet.c | memset((void *)dev->mem_start,0x42,2048); |
dev | 902 | drivers/net/arcnet.c | static int arcnetE_init(struct device *dev) |
dev | 904 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 907 | drivers/net/arcnet.c | dev->dev_addr[0]=0; |
dev | 908 | drivers/net/arcnet.c | dev->dev_addr[5]=lp->arcnum; |
dev | 909 | drivers/net/arcnet.c | dev->mtu=493; /* MTU is small because of missing packet splitting */ |
dev | 937 | drivers/net/arcnet.c | arcnet_open(struct device *dev) |
dev | 939 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 941 | drivers/net/arcnet.c | if (dev->metric>=1000) |
dev | 943 | drivers/net/arcnet.c | arcnet_debug=dev->metric-1000; |
dev | 945 | drivers/net/arcnet.c | dev->metric=1; |
dev | 950 | drivers/net/arcnet.c | irq2dev_map[dev->irq] = dev; |
dev | 955 | drivers/net/arcnet.c | if (arcnet_reset(dev) && arcnet_reset(dev)) |
dev | 958 | drivers/net/arcnet.c | dev->tbusy=0; |
dev | 959 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 964 | drivers/net/arcnet.c | lp->adev=dev; |
dev | 973 | drivers/net/arcnet.c | memcpy(lp->edev,dev,sizeof(struct device)); |
dev | 980 | drivers/net/arcnet.c | sprintf(lp->edev->name,"%se",dev->name); |
dev | 998 | drivers/net/arcnet.c | arcnet_close(struct device *dev) |
dev | 1000 | drivers/net/arcnet.c | int ioaddr = dev->base_addr; |
dev | 1001 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1045 | drivers/net/arcnet.c | arcnetA_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 1047 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1048 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
dev | 1067 | drivers/net/arcnet.c | int tickssofar = jiffies - dev->trans_start; |
dev | 1094 | drivers/net/arcnet.c | dev->trans_start = jiffies; |
dev | 1122 | drivers/net/arcnet.c | inb(STATUS),lp->intx,jiffies-dev->trans_start); |
dev | 1123 | drivers/net/arcnet.c | dev_tint(dev); |
dev | 1135 | drivers/net/arcnet.c | arcnet_inthandler(dev); /* fake an interrupt */ |
dev | 1145 | drivers/net/arcnet.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 1148 | drivers/net/arcnet.c | inb(STATUS),lp->intx,jiffies-dev->trans_start); |
dev | 1175 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1188 | drivers/net/arcnet.c | arcnetA_prepare_tx(dev,out->hdr, |
dev | 1198 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1221 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1228 | drivers/net/arcnet.c | arcnetA_continue_tx(dev); |
dev | 1231 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1232 | drivers/net/arcnet.c | arcnetA_continue_tx(dev); |
dev | 1234 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1254 | drivers/net/arcnet.c | dev->trans_start=jiffies; |
dev | 1263 | drivers/net/arcnet.c | static void arcnetA_continue_tx(struct device *dev) |
dev | 1265 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1293 | drivers/net/arcnet.c | arcnetA_prepare_tx(dev,out->hdr,out->seglen,out->data); |
dev | 1305 | drivers/net/arcnet.c | arcnetA_prepare_tx(struct device *dev,struct ClientData *hdr,short length, |
dev | 1308 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1311 | drivers/net/arcnet.c | (union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1)); |
dev | 1326 | drivers/net/arcnet.c | memset((void *)dev->mem_start+lp->txbuf*512,0x42,512); |
dev | 1406 | drivers/net/arcnet.c | arcnetA_go_tx(struct device *dev) |
dev | 1408 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)dev->priv; |
dev | 1409 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
dev | 1422 | drivers/net/arcnet.c | dev->trans_start = jiffies; |
dev | 1435 | drivers/net/arcnet.c | arcnetE_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 1437 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1440 | drivers/net/arcnet.c | printk("%s: in arcnetE_send_packet (skb=%p)\n",dev->name,skb); |
dev | 1446 | drivers/net/arcnet.c | int tickssofar = jiffies - dev->trans_start; |
dev | 1449 | drivers/net/arcnet.c | printk("%s: transmit timed out\n",dev->name); |
dev | 1453 | drivers/net/arcnet.c | dev->trans_start = jiffies; |
dev | 1462 | drivers/net/arcnet.c | dev_tint(dev); |
dev | 1468 | drivers/net/arcnet.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 1469 | drivers/net/arcnet.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1473 | drivers/net/arcnet.c | (union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1)); |
dev | 1496 | drivers/net/arcnet.c | memset((void *)dev->mem_start+lp->txbuf*512,0x42,512); |
dev | 1560 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1561 | drivers/net/arcnet.c | dev->trans_start = jiffies; |
dev | 1585 | drivers/net/arcnet.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 1587 | drivers/net/arcnet.c | if (dev==NULL || !dev->start) |
dev | 1594 | drivers/net/arcnet.c | arcnet_inthandler(dev); |
dev | 1602 | drivers/net/arcnet.c | arcnet_inthandler(struct device *dev) |
dev | 1607 | drivers/net/arcnet.c | if (dev->interrupt) |
dev | 1610 | drivers/net/arcnet.c | dev->interrupt = 1; |
dev | 1612 | drivers/net/arcnet.c | ioaddr = dev->base_addr; |
dev | 1613 | drivers/net/arcnet.c | lp = (struct arcnet_local *)dev->priv; |
dev | 1626 | drivers/net/arcnet.c | if (!dev->start) |
dev | 1634 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 1672 | drivers/net/arcnet.c | arcnet_rx(dev,!recbuf); |
dev | 1713 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1745 | drivers/net/arcnet.c | arcnetA_continue_tx(dev); |
dev | 1747 | drivers/net/arcnet.c | arcnetA_go_tx(dev); |
dev | 1778 | drivers/net/arcnet.c | if (dev->start && lp->sending ) |
dev | 1783 | drivers/net/arcnet.c | dev->interrupt=0; |
dev | 1799 | drivers/net/arcnet.c | arcnet_rx(struct device *dev,int recbuf) |
dev | 1801 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1802 | drivers/net/arcnet.c | int ioaddr = dev->base_addr; |
dev | 1804 | drivers/net/arcnet.c | (union ArcPacket *)(dev->mem_start+recbuf*512); |
dev | 1847 | drivers/net/arcnet.c | arcnetA_rx(dev,(struct ClientData*)arcsoft, |
dev | 1851 | drivers/net/arcnet.c | arcnetE_rx(dev,arcsoft,length,saddr,daddr); |
dev | 1892 | drivers/net/arcnet.c | arcnetA_rx(struct device *dev,struct ClientData *arcsoft, |
dev | 1895 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 1946 | drivers/net/arcnet.c | skb->dev = dev; |
dev | 2002 | drivers/net/arcnet.c | skb->protocol=arcnetA_type_trans(skb,dev); |
dev | 2075 | drivers/net/arcnet.c | dev->name); |
dev | 2088 | drivers/net/arcnet.c | skb->dev=dev; |
dev | 2169 | drivers/net/arcnet.c | skb->protocol=arcnetA_type_trans(skb,dev); |
dev | 2182 | drivers/net/arcnet.c | arcnetE_rx(struct device *dev,u_char *arcsoft, |
dev | 2185 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 2200 | drivers/net/arcnet.c | skb->dev = lp->edev; |
dev | 2219 | drivers/net/arcnet.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 2239 | drivers/net/arcnet.c | arcnet_get_stats(struct device *dev) |
dev | 2241 | drivers/net/arcnet.c | struct arcnet_local *lp = (struct arcnet_local *)dev->priv; |
dev | 2253 | drivers/net/arcnet.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 2256 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *)(dev->priv); |
dev | 2258 | drivers/net/arcnet.c | short ioaddr = dev->base_addr; |
dev | 2272 | drivers/net/arcnet.c | int arcnetA_header(unsigned char *buff,struct device *dev, |
dev | 2276 | drivers/net/arcnet.c | int arcnetA_header(struct sk_buff *skb,struct device *dev, |
dev | 2284 | drivers/net/arcnet.c | skb_push(skb,dev->hard_header_len); |
dev | 2323 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
dev | 2332 | drivers/net/arcnet.c | if (dev->flags & IFF_LOOPBACK) |
dev | 2335 | drivers/net/arcnet.c | return(dev->hard_header_len); |
dev | 2346 | drivers/net/arcnet.c | return dev->hard_header_len; |
dev | 2351 | drivers/net/arcnet.c | return -dev->hard_header_len; |
dev | 2359 | drivers/net/arcnet.c | int arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst, |
dev | 2381 | drivers/net/arcnet.c | return arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0; |
dev | 2391 | drivers/net/arcnet.c | unsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev) |
dev | 2394 | drivers/net/arcnet.c | struct arcnet_local *lp=(struct arcnet_local *) (dev->priv); |
dev | 2399 | drivers/net/arcnet.c | skb_pull(skb,dev->hard_header_len); |
dev | 2404 | drivers/net/arcnet.c | else if (dev->flags&IFF_PROMISC) |
dev | 2407 | drivers/net/arcnet.c | if (head->daddr != dev->dev_addr[0]) |
dev | 119 | drivers/net/at1700.c | extern int at1700_probe(struct device *dev); |
dev | 121 | drivers/net/at1700.c | static int at1700_probe1(struct device *dev, short ioaddr); |
dev | 123 | drivers/net/at1700.c | static int net_open(struct device *dev); |
dev | 124 | drivers/net/at1700.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 126 | drivers/net/at1700.c | static void net_rx(struct device *dev); |
dev | 127 | drivers/net/at1700.c | static int net_close(struct device *dev); |
dev | 128 | drivers/net/at1700.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 129 | drivers/net/at1700.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 145 | drivers/net/at1700.c | at1700_probe(struct device *dev) |
dev | 148 | drivers/net/at1700.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 151 | drivers/net/at1700.c | return at1700_probe1(dev, base_addr); |
dev | 159 | drivers/net/at1700.c | if (at1700_probe1(dev, ioaddr) == 0) |
dev | 175 | drivers/net/at1700.c | int at1700_probe1(struct device *dev, short ioaddr) |
dev | 207 | drivers/net/at1700.c | if (dev == NULL) |
dev | 208 | drivers/net/at1700.c | dev = init_etherdev(0, sizeof(struct net_local), 0); |
dev | 214 | drivers/net/at1700.c | printk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name, |
dev | 217 | drivers/net/at1700.c | dev->base_addr = ioaddr; |
dev | 218 | drivers/net/at1700.c | dev->irq = irq; |
dev | 219 | drivers/net/at1700.c | irq2dev_map[irq] = dev; |
dev | 224 | drivers/net/at1700.c | ((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val); |
dev | 237 | drivers/net/at1700.c | dev->if_port = setup_value >> 8; |
dev | 238 | drivers/net/at1700.c | printk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]); |
dev | 244 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
dev | 257 | drivers/net/at1700.c | outb(dev->if_port, MODE13); |
dev | 266 | drivers/net/at1700.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 267 | drivers/net/at1700.c | if (dev->priv == NULL) |
dev | 269 | drivers/net/at1700.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 271 | drivers/net/at1700.c | dev->open = net_open; |
dev | 272 | drivers/net/at1700.c | dev->stop = net_close; |
dev | 273 | drivers/net/at1700.c | dev->hard_start_xmit = net_send_packet; |
dev | 274 | drivers/net/at1700.c | dev->get_stats = net_get_stats; |
dev | 275 | drivers/net/at1700.c | dev->set_multicast_list = &set_multicast_list; |
dev | 279 | drivers/net/at1700.c | ether_setup(dev); |
dev | 324 | drivers/net/at1700.c | static int net_open(struct device *dev) |
dev | 326 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 327 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 335 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
dev | 359 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 360 | drivers/net/at1700.c | dev->interrupt = 0; |
dev | 361 | drivers/net/at1700.c | dev->start = 1; |
dev | 371 | drivers/net/at1700.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 373 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 374 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 376 | drivers/net/at1700.c | if (dev->tbusy) { |
dev | 379 | drivers/net/at1700.c | int tickssofar = jiffies - dev->trans_start; |
dev | 382 | drivers/net/at1700.c | printk("%s: transmit timed out with status %04x, %s?\n", dev->name, |
dev | 386 | drivers/net/at1700.c | dev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4), |
dev | 395 | drivers/net/at1700.c | dev->tbusy=0; |
dev | 396 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 406 | drivers/net/at1700.c | dev_tint(dev); |
dev | 412 | drivers/net/at1700.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 413 | drivers/net/at1700.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 432 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 434 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 437 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 452 | drivers/net/at1700.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 456 | drivers/net/at1700.c | if (dev == NULL) { |
dev | 460 | drivers/net/at1700.c | dev->interrupt = 1; |
dev | 462 | drivers/net/at1700.c | ioaddr = dev->base_addr; |
dev | 463 | drivers/net/at1700.c | lp = (struct net_local *)dev->priv; |
dev | 468 | drivers/net/at1700.c | printk("%s: Interrupt with status %04x.\n", dev->name, status); |
dev | 471 | drivers/net/at1700.c | net_rx(dev); |
dev | 480 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 481 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 487 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 493 | drivers/net/at1700.c | dev->interrupt = 0; |
dev | 499 | drivers/net/at1700.c | net_rx(struct device *dev) |
dev | 501 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 502 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 511 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), status); |
dev | 531 | drivers/net/at1700.c | dev->name, pkt_len); |
dev | 541 | drivers/net/at1700.c | dev->name, pkt_len); |
dev | 548 | drivers/net/at1700.c | skb->dev = dev; |
dev | 552 | drivers/net/at1700.c | skb->protocol=eth_type_trans(skb, dev); |
dev | 574 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
dev | 580 | drivers/net/at1700.c | static int net_close(struct device *dev) |
dev | 582 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 584 | drivers/net/at1700.c | dev->tbusy = 1; |
dev | 585 | drivers/net/at1700.c | dev->start = 0; |
dev | 605 | drivers/net/at1700.c | net_get_stats(struct device *dev) |
dev | 607 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 623 | drivers/net/at1700.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 625 | 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 | if (dev->priv == NULL) |
dev | 232 | drivers/net/atp.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 236 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 241 | drivers/net/atp.c | dev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4; |
dev | 242 | drivers/net/atp.c | if (dev->mem_end & 0xf) |
dev | 243 | drivers/net/atp.c | net_debug = dev->mem_end & 7; |
dev | 245 | drivers/net/atp.c | dev->open = net_open; |
dev | 246 | drivers/net/atp.c | dev->stop = net_close; |
dev | 247 | drivers/net/atp.c | dev->hard_start_xmit = net_send_packet; |
dev | 248 | drivers/net/atp.c | dev->get_stats = net_get_stats; |
dev | 249 | drivers/net/atp.c | dev->set_multicast_list = &set_multicast_list; |
dev | 254 | drivers/net/atp.c | atp_timed_dev = dev; |
dev | 261 | drivers/net/atp.c | static void get_node_ID(struct device *dev) |
dev | 263 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
dev | 275 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
dev | 323 | drivers/net/atp.c | static int net_open(struct device *dev) |
dev | 329 | drivers/net/atp.c | if (irq2dev_map[dev->irq] != 0 |
dev | 330 | drivers/net/atp.c | || (irq2dev_map[dev->irq] = dev) == 0 |
dev | 331 | drivers/net/atp.c | || request_irq(dev->irq, &net_interrupt, 0, "ATP")) { |
dev | 335 | drivers/net/atp.c | hardware_init(dev); |
dev | 336 | drivers/net/atp.c | dev->start = 1; |
dev | 342 | drivers/net/atp.c | static void hardware_init(struct device *dev) |
dev | 344 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 345 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 351 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
dev | 356 | drivers/net/atp.c | printk("%s: Reset: current Rx mode %d.\n", dev->name, |
dev | 374 | drivers/net/atp.c | dev->tbusy = 0; |
dev | 375 | drivers/net/atp.c | dev->interrupt = 0; |
dev | 416 | drivers/net/atp.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 418 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 419 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 421 | drivers/net/atp.c | if (dev->tbusy) { |
dev | 424 | drivers/net/atp.c | int tickssofar = jiffies - dev->trans_start; |
dev | 427 | drivers/net/atp.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 432 | drivers/net/atp.c | hardware_init(dev); |
dev | 433 | drivers/net/atp.c | dev->tbusy=0; |
dev | 434 | drivers/net/atp.c | dev->trans_start = jiffies; |
dev | 441 | drivers/net/atp.c | dev_tint(dev); |
dev | 447 | drivers/net/atp.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 448 | drivers/net/atp.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 462 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
dev | 473 | drivers/net/atp.c | dev->trans_start = jiffies; |
dev | 489 | drivers/net/atp.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 494 | drivers/net/atp.c | if (dev == NULL) { |
dev | 498 | drivers/net/atp.c | dev->interrupt = 1; |
dev | 500 | drivers/net/atp.c | ioaddr = dev->base_addr; |
dev | 501 | drivers/net/atp.c | lp = (struct net_local *)dev->priv; |
dev | 510 | drivers/net/atp.c | if (net_debug > 5) printk("%s: In interrupt ", dev->name); |
dev | 527 | drivers/net/atp.c | net_rx(dev); |
dev | 532 | drivers/net/atp.c | net_rx(dev); |
dev | 533 | drivers/net/atp.c | dev->last_rx = jiffies; |
dev | 547 | drivers/net/atp.c | hardware_init(dev); |
dev | 563 | drivers/net/atp.c | dev->tbusy = 0; |
dev | 568 | drivers/net/atp.c | && jiffies > dev->last_rx + 100) { |
dev | 571 | drivers/net/atp.c | " status %02x CMR1 %02x.\n", dev->name, |
dev | 572 | drivers/net/atp.c | num_tx_since_rx, jiffies - dev->last_rx, status, |
dev | 575 | drivers/net/atp.c | hardware_init(dev); |
dev | 587 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
dev | 605 | drivers/net/atp.c | dev->interrupt = 0; |
dev | 646 | drivers/net/atp.c | static void net_rx(struct device *dev) |
dev | 648 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 649 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 658 | drivers/net/atp.c | read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); |
dev | 667 | drivers/net/atp.c | dev->name, rx_head.rx_status); |
dev | 668 | drivers/net/atp.c | hardware_init(dev); |
dev | 677 | drivers/net/atp.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 681 | drivers/net/atp.c | skb->dev = dev; |
dev | 683 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port); |
dev | 694 | drivers/net/atp.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 725 | drivers/net/atp.c | net_close(struct device *dev) |
dev | 727 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 728 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 730 | drivers/net/atp.c | dev->tbusy = 1; |
dev | 731 | drivers/net/atp.c | dev->start = 0; |
dev | 739 | drivers/net/atp.c | free_irq(dev->irq); |
dev | 740 | drivers/net/atp.c | irq2dev_map[dev->irq] = 0; |
dev | 751 | drivers/net/atp.c | net_get_stats(struct device *dev) |
dev | 753 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 764 | drivers/net/atp.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 766 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 767 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
dev | 404 | drivers/net/de4x5.c | static int de4x5_open(struct device *dev); |
dev | 405 | drivers/net/de4x5.c | static int de4x5_queue_pkt(struct sk_buff *skb, struct device *dev); |
dev | 407 | drivers/net/de4x5.c | static int de4x5_close(struct device *dev); |
dev | 408 | drivers/net/de4x5.c | static struct enet_statistics *de4x5_get_stats(struct device *dev); |
dev | 409 | drivers/net/de4x5.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 410 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
dev | 415 | drivers/net/de4x5.c | static int de4x5_hw_init(struct device *dev, u_long iobase); |
dev | 416 | drivers/net/de4x5.c | static int de4x5_init(struct device *dev); |
dev | 417 | drivers/net/de4x5.c | static int de4x5_rx(struct device *dev); |
dev | 418 | drivers/net/de4x5.c | static int de4x5_tx(struct device *dev); |
dev | 419 | drivers/net/de4x5.c | static int de4x5_ast(struct device *dev); |
dev | 421 | drivers/net/de4x5.c | static int autoconf_media(struct device *dev); |
dev | 422 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len); |
dev | 425 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb); |
dev | 426 | drivers/net/de4x5.c | static void dc21040_autoconf(struct device *dev); |
dev | 427 | drivers/net/de4x5.c | static void dc21041_autoconf(struct device *dev); |
dev | 428 | drivers/net/de4x5.c | static void dc21140_autoconf(struct device *dev); |
dev | 429 | drivers/net/de4x5.c | static int test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec); |
dev | 431 | drivers/net/de4x5.c | static int ping_media(struct device *dev); |
dev | 432 | drivers/net/de4x5.c | static void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr); |
dev | 433 | drivers/net/de4x5.c | static int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec); |
dev | 434 | drivers/net/de4x5.c | static void load_ms_timer(struct device *dev, u32 msec); |
dev | 445 | drivers/net/de4x5.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs); |
dev | 446 | drivers/net/de4x5.c | static int get_hw_addr(struct device *dev); |
dev | 448 | drivers/net/de4x5.c | static void eisa_probe(struct device *dev, u_long iobase); |
dev | 449 | drivers/net/de4x5.c | static void pci_probe(struct device *dev, u_long iobase); |
dev | 450 | drivers/net/de4x5.c | static struct device *alloc_device(struct device *dev, u_long iobase); |
dev | 451 | drivers/net/de4x5.c | static char *build_setup_frame(struct device *dev, int mode); |
dev | 452 | drivers/net/de4x5.c | static void disable_ast(struct device *dev); |
dev | 453 | drivers/net/de4x5.c | static void enable_ast(struct device *dev, u32 time_out); |
dev | 454 | drivers/net/de4x5.c | static void kick_tx(struct device *dev); |
dev | 499 | drivers/net/de4x5.c | int de4x5_probe(struct device *dev) |
dev | 502 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 508 | drivers/net/de4x5.c | eisa_probe(dev, iobase); |
dev | 509 | drivers/net/de4x5.c | pci_probe(dev, iobase); |
dev | 512 | drivers/net/de4x5.c | printk("%s: de4x5_probe() cannot find device at 0x%04lx.\n", dev->name, |
dev | 520 | drivers/net/de4x5.c | for (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next); |
dev | 522 | drivers/net/de4x5.c | if (dev->priv) status = 0; |
dev | 530 | drivers/net/de4x5.c | de4x5_hw_init(struct device *dev, u_long iobase) |
dev | 563 | drivers/net/de4x5.c | dev->base_addr = iobase; |
dev | 566 | drivers/net/de4x5.c | dev->name, name, iobase, ((iobase>>12)&0x0f)); |
dev | 568 | drivers/net/de4x5.c | printk("%s: %s at %04lx (PCI bus %d, device %d)", dev->name, name, |
dev | 573 | drivers/net/de4x5.c | status = get_hw_addr(dev); |
dev | 575 | drivers/net/de4x5.c | printk("%2.2x:", dev->dev_addr[i]); |
dev | 577 | drivers/net/de4x5.c | printk("%2.2x,\n", dev->dev_addr[i]); |
dev | 589 | drivers/net/de4x5.c | dev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, |
dev | 591 | drivers/net/de4x5.c | if (dev->priv == NULL) |
dev | 596 | drivers/net/de4x5.c | dev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN); |
dev | 597 | drivers/net/de4x5.c | lp = (struct de4x5_private *)dev->priv; |
dev | 598 | drivers/net/de4x5.c | memset(dev->priv, 0, sizeof(struct de4x5_private)); |
dev | 621 | drivers/net/de4x5.c | sprintf(lp->adapter_name,"%s (%s)", name, dev->name); |
dev | 663 | drivers/net/de4x5.c | if (dev->irq < 2) { |
dev | 678 | drivers/net/de4x5.c | for (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) { |
dev | 680 | drivers/net/de4x5.c | dev->irq = irqnum; |
dev | 681 | drivers/net/de4x5.c | printk(" and uses IRQ%d.\n", dev->irq); |
dev | 685 | drivers/net/de4x5.c | if (!dev->irq) { |
dev | 695 | drivers/net/de4x5.c | printk(" and requires IRQ%d (not probed).\n", dev->irq); |
dev | 699 | drivers/net/de4x5.c | dev->name); |
dev | 722 | drivers/net/de4x5.c | dev->open = &de4x5_open; |
dev | 723 | drivers/net/de4x5.c | dev->hard_start_xmit = &de4x5_queue_pkt; |
dev | 724 | drivers/net/de4x5.c | dev->stop = &de4x5_close; |
dev | 725 | drivers/net/de4x5.c | dev->get_stats = &de4x5_get_stats; |
dev | 727 | drivers/net/de4x5.c | dev->set_multicast_list = &set_multicast_list; |
dev | 729 | drivers/net/de4x5.c | dev->do_ioctl = &de4x5_ioctl; |
dev | 731 | drivers/net/de4x5.c | dev->mem_start = 0; |
dev | 734 | drivers/net/de4x5.c | ether_setup(dev); |
dev | 742 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 747 | drivers/net/de4x5.c | if (dev->priv) { |
dev | 748 | drivers/net/de4x5.c | kfree_s(dev->priv, sizeof(struct de4x5_private) + ALIGN); |
dev | 749 | drivers/net/de4x5.c | dev->priv = NULL; |
dev | 758 | drivers/net/de4x5.c | de4x5_open(struct device *dev) |
dev | 760 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 761 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 773 | drivers/net/de4x5.c | if (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) { |
dev | 774 | drivers/net/de4x5.c | printk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 778 | drivers/net/de4x5.c | irq2dev_map[dev->irq] = dev; |
dev | 782 | drivers/net/de4x5.c | status = de4x5_init(dev); |
dev | 785 | drivers/net/de4x5.c | printk("%s: de4x5 open with irq %d\n",dev->name,dev->irq); |
dev | 788 | drivers/net/de4x5.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
dev | 828 | drivers/net/de4x5.c | dev->tbusy = 0; |
dev | 829 | drivers/net/de4x5.c | dev->start = 1; |
dev | 830 | drivers/net/de4x5.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 831 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 871 | drivers/net/de4x5.c | de4x5_init(struct device *dev) |
dev | 873 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 874 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 879 | drivers/net/de4x5.c | set_bit(0, (void *)&dev->tbusy); |
dev | 911 | drivers/net/de4x5.c | SetMulticastFilter(dev, 0, NULL); |
dev | 914 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL); |
dev | 916 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL); |
dev | 927 | drivers/net/de4x5.c | printk("%s: Setup frame timed out, status %08x\n", dev->name, |
dev | 936 | drivers/net/de4x5.c | if (autoconf_media(dev) == 0) { |
dev | 947 | drivers/net/de4x5.c | de4x5_queue_pkt(struct sk_buff *skb, struct device *dev) |
dev | 949 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 950 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 959 | drivers/net/de4x5.c | if (set_bit(0, (void*)&dev->tbusy) == 0) { |
dev | 961 | drivers/net/de4x5.c | de4x5_tx(dev); |
dev | 962 | drivers/net/de4x5.c | dev->tbusy = 0; |
dev | 971 | drivers/net/de4x5.c | if (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) { |
dev | 972 | drivers/net/de4x5.c | u_long tickssofar = jiffies - dev->trans_start; |
dev | 978 | drivers/net/de4x5.c | printk("%s: transmit timed out, status %08x, tbusy:%ld, lostMedia:%d tickssofar:%ld, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar); |
dev | 989 | drivers/net/de4x5.c | dev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL); |
dev | 1000 | drivers/net/de4x5.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 1006 | drivers/net/de4x5.c | status = de4x5_init(dev); |
dev | 1011 | drivers/net/de4x5.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 1012 | drivers/net/de4x5.c | dev->start = 1; |
dev | 1013 | drivers/net/de4x5.c | dev->tbusy = 0; |
dev | 1014 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 1029 | drivers/net/de4x5.c | dev->name, inl(DE4X5_STS)); |
dev | 1033 | drivers/net/de4x5.c | dev_tint(dev); |
dev | 1038 | drivers/net/de4x5.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 1039 | drivers/net/de4x5.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1044 | drivers/net/de4x5.c | load_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb); |
dev | 1050 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 1053 | drivers/net/de4x5.c | dev->tbusy = 0; /* Another pkt may be queued */ |
dev | 1079 | drivers/net/de4x5.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 1084 | drivers/net/de4x5.c | if (dev == NULL) { |
dev | 1087 | drivers/net/de4x5.c | lp = (struct de4x5_private *)dev->priv; |
dev | 1088 | drivers/net/de4x5.c | iobase = dev->base_addr; |
dev | 1090 | drivers/net/de4x5.c | if (dev->interrupt) |
dev | 1091 | drivers/net/de4x5.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 1094 | drivers/net/de4x5.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 1100 | drivers/net/de4x5.c | de4x5_rx(dev); |
dev | 1103 | drivers/net/de4x5.c | de4x5_tx(dev); |
dev | 1106 | drivers/net/de4x5.c | de4x5_ast(dev); |
dev | 1111 | drivers/net/de4x5.c | kick_tx(dev); |
dev | 1117 | drivers/net/de4x5.c | dev->name, sts); |
dev | 1121 | drivers/net/de4x5.c | if (TX_BUFFS_AVAIL && dev->tbusy) {/* Any resources available? */ |
dev | 1122 | drivers/net/de4x5.c | dev->tbusy = 0; /* Clear TX busy flag */ |
dev | 1126 | drivers/net/de4x5.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 1134 | drivers/net/de4x5.c | de4x5_rx(struct device *dev) |
dev | 1136 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1159 | drivers/net/de4x5.c | skb->dev = dev; |
dev | 1171 | drivers/net/de4x5.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1189 | drivers/net/de4x5.c | } else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) && |
dev | 1190 | drivers/net/de4x5.c | (*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) { |
dev | 1199 | drivers/net/de4x5.c | printk("%s: Insufficient memory; nuking packet.\n", dev->name); |
dev | 1227 | drivers/net/de4x5.c | de4x5_tx(struct device *dev) |
dev | 1229 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1230 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1251 | drivers/net/de4x5.c | kick_tx(dev); |
dev | 1274 | drivers/net/de4x5.c | de4x5_ast(struct device *dev) |
dev | 1276 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1277 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1280 | drivers/net/de4x5.c | disable_ast(dev); |
dev | 1291 | drivers/net/de4x5.c | kick_tx(dev); |
dev | 1296 | drivers/net/de4x5.c | enable_ast(dev, DE4X5_AUTOSENSE_MS); |
dev | 1301 | drivers/net/de4x5.c | enable_ast(dev, 1500); |
dev | 1306 | drivers/net/de4x5.c | enable_ast(dev, 4000); |
dev | 1312 | drivers/net/de4x5.c | enable_ast(dev, DE4X5_AUTOSENSE_MS); |
dev | 1320 | drivers/net/de4x5.c | de4x5_close(struct device *dev) |
dev | 1322 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1323 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1326 | drivers/net/de4x5.c | dev->start = 0; |
dev | 1327 | drivers/net/de4x5.c | dev->tbusy = 1; |
dev | 1331 | drivers/net/de4x5.c | dev->name, inl(DE4X5_STS)); |
dev | 1344 | drivers/net/de4x5.c | free_irq(dev->irq); |
dev | 1345 | drivers/net/de4x5.c | irq2dev_map[dev->irq] = 0; |
dev | 1359 | drivers/net/de4x5.c | de4x5_get_stats(struct device *dev) |
dev | 1361 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1362 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1369 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb) |
dev | 1371 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1394 | drivers/net/de4x5.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1396 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1397 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1400 | drivers/net/de4x5.c | if (irq2dev_map[dev->irq] != NULL) { |
dev | 1402 | drivers/net/de4x5.c | SetMulticastFilter(dev, num_addrs, (char *)addrs); |
dev | 1404 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | |
dev | 1407 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | |
dev | 1413 | drivers/net/de4x5.c | dev->trans_start = jiffies; |
dev | 1430 | drivers/net/de4x5.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs) |
dev | 1432 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1433 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1440 | drivers/net/de4x5.c | pa = build_setup_frame(dev, ALL); /* Build the basic frame */ |
dev | 1494 | drivers/net/de4x5.c | static void eisa_probe(struct device *dev, u_long ioaddr) |
dev | 1518 | drivers/net/de4x5.c | for (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
dev | 1533 | drivers/net/de4x5.c | if ((dev = alloc_device(dev, iobase)) != NULL) { |
dev | 1534 | drivers/net/de4x5.c | if ((status = de4x5_hw_init(dev, iobase)) == 0) { |
dev | 1540 | drivers/net/de4x5.c | printk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase); |
dev | 1564 | drivers/net/de4x5.c | static void pci_probe(struct device *dev, u_long ioaddr) |
dev | 1620 | drivers/net/de4x5.c | if ((dev = alloc_device(dev, iobase)) != NULL) { |
dev | 1621 | drivers/net/de4x5.c | dev->irq = irq; |
dev | 1622 | drivers/net/de4x5.c | if ((status = de4x5_hw_init(dev, iobase)) == 0) { |
dev | 1628 | drivers/net/de4x5.c | printk("%s: region already allocated at 0x%04x.\n", dev->name, (u_short)iobase); |
dev | 1645 | drivers/net/de4x5.c | static struct device *alloc_device(struct device *dev, u_long iobase) |
dev | 1655 | drivers/net/de4x5.c | while (dev->next != NULL) { |
dev | 1656 | drivers/net/de4x5.c | if ((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0)) break; |
dev | 1657 | drivers/net/de4x5.c | dev = dev->next; /* walk through eth device list */ |
dev | 1665 | drivers/net/de4x5.c | if ((dev->base_addr == 0) && (num_de4x5s > 0)) { |
dev | 1667 | drivers/net/de4x5.c | tmp = dev->next; /* point to the next device */ |
dev | 1668 | drivers/net/de4x5.c | init = dev->init; /* remember the probe function */ |
dev | 1675 | drivers/net/de4x5.c | if ((dev->next == NULL) && |
dev | 1676 | drivers/net/de4x5.c | !((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0))){ |
dev | 1677 | drivers/net/de4x5.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 1680 | drivers/net/de4x5.c | dev = dev->next; /* point to the new device */ |
dev | 1681 | drivers/net/de4x5.c | if (dev == NULL) { |
dev | 1690 | drivers/net/de4x5.c | dev->name = (char *)(dev + sizeof(struct device)); |
dev | 1692 | drivers/net/de4x5.c | sprintf(dev->name,"eth????"); /* New device name */ |
dev | 1694 | drivers/net/de4x5.c | sprintf(dev->name,"eth%d", num_eth);/* New device name */ |
dev | 1696 | drivers/net/de4x5.c | dev->base_addr = iobase; /* assign the io address */ |
dev | 1697 | drivers/net/de4x5.c | dev->next = NULL; /* mark the end of list */ |
dev | 1698 | drivers/net/de4x5.c | dev->init = &de4x5_probe; /* initialisation routine */ |
dev | 1702 | drivers/net/de4x5.c | ret = dev; /* return current struct, or NULL */ |
dev | 1722 | drivers/net/de4x5.c | dev->name); |
dev | 1745 | drivers/net/de4x5.c | ret = dev; |
dev | 1757 | drivers/net/de4x5.c | static int autoconf_media(struct device *dev) |
dev | 1759 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1760 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1765 | drivers/net/de4x5.c | printk("%s: Searching for media... ",dev->name); |
dev | 1767 | drivers/net/de4x5.c | printk("%s: Searching for mode... ",dev->name); |
dev | 1773 | drivers/net/de4x5.c | dc21040_autoconf(dev); |
dev | 1776 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1778 | drivers/net/de4x5.c | disable_ast(dev); |
dev | 1780 | drivers/net/de4x5.c | dc21140_autoconf(dev); |
dev | 1813 | drivers/net/de4x5.c | static void dc21040_autoconf(struct device *dev) |
dev | 1815 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1816 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1822 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f01, 0xffff, 0x0000); |
dev | 1829 | drivers/net/de4x5.c | dc21040_autoconf(dev); |
dev | 1836 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f09, 0x0705, 0x0006); |
dev | 1838 | drivers/net/de4x5.c | linkBad = ping_media(dev); |
dev | 1841 | drivers/net/de4x5.c | dc21040_autoconf(dev); |
dev | 1847 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f01, 0xffff, 0x0000); |
dev | 1851 | drivers/net/de4x5.c | reset_init_sia(dev, 0x8f09, 0x0705, 0x0006); |
dev | 1864 | drivers/net/de4x5.c | static void dc21041_autoconf(struct device *dev) |
dev | 1866 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1867 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1876 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400); |
dev | 1882 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1888 | drivers/net/de4x5.c | sts = test_ans(dev, irqs, irq_mask, 3000); |
dev | 1891 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1900 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400); |
dev | 1907 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1916 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000); |
dev | 1919 | drivers/net/de4x5.c | dc21041_autoconf(dev); |
dev | 1928 | drivers/net/de4x5.c | sts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000); |
dev | 1932 | drivers/net/de4x5.c | if (ping_media(dev)) lp->media = NC; |
dev | 1939 | drivers/net/de4x5.c | reset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */ |
dev | 1949 | drivers/net/de4x5.c | static void dc21140_autoconf(struct device *dev) |
dev | 1951 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1952 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1975 | drivers/net/de4x5.c | test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec) |
dev | 1977 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 1978 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 1981 | drivers/net/de4x5.c | reset_init_sia(dev, csr13, csr14, csr15); |
dev | 1984 | drivers/net/de4x5.c | load_ms_timer(dev, msec); |
dev | 2027 | drivers/net/de4x5.c | static int ping_media(struct device *dev) |
dev | 2029 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2030 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2035 | drivers/net/de4x5.c | create_packet(dev, frame, sizeof(frame)); |
dev | 2038 | drivers/net/de4x5.c | load_packet(dev, frame, TD_LS | TD_FS | sizeof(frame),NULL); |
dev | 2061 | drivers/net/de4x5.c | static int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec) |
dev | 2063 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2064 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2070 | drivers/net/de4x5.c | load_ms_timer(dev, msec); |
dev | 2088 | drivers/net/de4x5.c | static void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr) |
dev | 2090 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2091 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2104 | drivers/net/de4x5.c | static void load_ms_timer(struct device *dev, u32 msec) |
dev | 2106 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2107 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2127 | drivers/net/de4x5.c | static void create_packet(struct device *dev, char *frame, int len) |
dev | 2133 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
dev | 2136 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
dev | 2224 | drivers/net/de4x5.c | } dev; |
dev | 2230 | drivers/net/de4x5.c | dev.llsig.a = ETH_PROM_SIG; |
dev | 2231 | drivers/net/de4x5.c | dev.llsig.b = ETH_PROM_SIG; |
dev | 2242 | drivers/net/de4x5.c | if (dev.Sig[j] == data) { /* track signature */ |
dev | 2245 | drivers/net/de4x5.c | if (data == dev.Sig[0]) { |
dev | 2267 | drivers/net/de4x5.c | static int get_hw_addr(struct device *dev) |
dev | 2269 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2282 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2285 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2287 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
dev | 2288 | drivers/net/de4x5.c | dev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++; |
dev | 2292 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2294 | drivers/net/de4x5.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 2423 | drivers/net/de4x5.c | static char *build_setup_frame(struct device *dev, int mode) |
dev | 2425 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2436 | drivers/net/de4x5.c | *(pa + i) = dev->dev_addr[i]; /* Host address */ |
dev | 2442 | drivers/net/de4x5.c | *(pa + (i&1)) = dev->dev_addr[i]; |
dev | 2454 | drivers/net/de4x5.c | static void enable_ast(struct device *dev, u32 time_out) |
dev | 2456 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2457 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2461 | drivers/net/de4x5.c | load_ms_timer(dev, time_out); |
dev | 2466 | drivers/net/de4x5.c | static void disable_ast(struct device *dev) |
dev | 2468 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2469 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2473 | drivers/net/de4x5.c | load_ms_timer(dev, 0); |
dev | 2478 | drivers/net/de4x5.c | static void kick_tx(struct device *dev) |
dev | 2485 | drivers/net/de4x5.c | skb->dev=dev; |
dev | 2486 | drivers/net/de4x5.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 2496 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 2498 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)dev->priv; |
dev | 2500 | drivers/net/de4x5.c | u_long iobase = dev->base_addr; |
dev | 2516 | drivers/net/de4x5.c | tmp.addr[i] = dev->dev_addr[i]; |
dev | 2531 | drivers/net/de4x5.c | dev->dev_addr[i] = tmp.addr[i]; |
dev | 2533 | drivers/net/de4x5.c | build_setup_frame(dev, PHYS_ADDR_ONLY); |
dev | 2535 | drivers/net/de4x5.c | while (set_bit(0, (void *)&dev->tbusy) != 0);/* Wait for lock to free*/ |
dev | 2537 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | |
dev | 2540 | drivers/net/de4x5.c | load_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | |
dev | 2545 | drivers/net/de4x5.c | dev->tbusy = 0; /* Unlock the TX ring */ |
dev | 2569 | drivers/net/de4x5.c | printk("%s: Boo!\n", dev->name); |
dev | 2585 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, tmp.addr); |
dev | 2588 | drivers/net/de4x5.c | set_multicast_list(dev, ioc->len, NULL); |
dev | 2597 | drivers/net/de4x5.c | set_multicast_list(dev, 0, NULL); |
dev | 2672 | drivers/net/de4x5.c | tmp.addr[j++] = dev->irq; |
dev | 2674 | drivers/net/de4x5.c | tmp.addr[j++] = dev->dev_addr[i]; |
dev | 2723 | 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 | 621 | drivers/net/de600.c | skb->dev = dev; |
dev | 630 | drivers/net/de600.c | *buffer = de600_read_byte(READ_DATA, dev); |
dev | 632 | drivers/net/de600.c | ((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */ |
dev | 634 | drivers/net/de600.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 645 | drivers/net/de600.c | de600_probe(struct device *dev) |
dev | 651 | drivers/net/de600.c | printk("%s: D-Link DE-600 pocket adapter", dev->name); |
dev | 659 | drivers/net/de600.c | (void)de600_read_status(dev); |
dev | 662 | drivers/net/de600.c | if (de600_read_status(dev) & 0xf0) { |
dev | 675 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
dev | 676 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
dev | 680 | drivers/net/de600.c | if ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) { |
dev | 682 | drivers/net/de600.c | dev->dev_addr[0] = 0x00; |
dev | 683 | drivers/net/de600.c | dev->dev_addr[1] = 0x80; |
dev | 684 | drivers/net/de600.c | dev->dev_addr[2] = 0xc8; |
dev | 685 | drivers/net/de600.c | dev->dev_addr[3] &= 0x0f; |
dev | 686 | drivers/net/de600.c | dev->dev_addr[3] |= 0x70; |
dev | 700 | drivers/net/de600.c | printk(", Ethernet Address: %02X", dev->dev_addr[0]); |
dev | 702 | drivers/net/de600.c | printk(":%02X",dev->dev_addr[i]); |
dev | 707 | drivers/net/de600.c | dev->priv = &de600_netstats; |
dev | 709 | drivers/net/de600.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 710 | drivers/net/de600.c | dev->get_stats = get_stats; |
dev | 712 | drivers/net/de600.c | dev->open = de600_open; |
dev | 713 | drivers/net/de600.c | dev->stop = de600_close; |
dev | 714 | drivers/net/de600.c | dev->hard_start_xmit = &de600_start_xmit; |
dev | 716 | drivers/net/de600.c | ether_setup(dev); |
dev | 723 | drivers/net/de600.c | adapter_init(struct device *dev) |
dev | 739 | drivers/net/de600.c | de600_read_byte(READ_DATA, dev); |
dev | 740 | drivers/net/de600.c | if ((de600_read_byte(READ_DATA, dev) != 0xde) || |
dev | 741 | drivers/net/de600.c | (de600_read_byte(READ_DATA, dev) != 0x15)) { |
dev | 750 | drivers/net/de600.c | dev->flags &= ~IFF_UP; |
dev | 751 | drivers/net/de600.c | de600_close(dev); |
dev | 754 | drivers/net/de600.c | dev->tbusy = 1; /* Transmit busy... */ |
dev | 764 | drivers/net/de600.c | dev->tbusy = 0; /* Transmit busy... */ |
dev | 765 | drivers/net/de600.c | dev->interrupt = 0; |
dev | 773 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
dev | 154 | drivers/net/de620.c | #define DATA_PORT (dev->base_addr) |
dev | 155 | drivers/net/de620.c | #define STATUS_PORT (dev->base_addr + 1) |
dev | 156 | drivers/net/de620.c | #define COMMAND_PORT (dev->base_addr + 2) |
dev | 232 | drivers/net/de620.c | de620_ready(struct device *dev) |
dev | 247 | drivers/net/de620.c | de620_send_command(struct device *dev, byte cmd) |
dev | 249 | drivers/net/de620.c | de620_ready(dev); |
dev | 256 | drivers/net/de620.c | de620_ready(dev); |
dev | 261 | drivers/net/de620.c | de620_put_byte(struct device *dev, byte value) |
dev | 264 | drivers/net/de620.c | de620_ready(dev); |
dev | 266 | drivers/net/de620.c | de620_flip_ds(dev); |
dev | 270 | drivers/net/de620.c | de620_read_byte(struct device *dev) |
dev | 275 | drivers/net/de620.c | value = de620_ready(dev); /* High nibble */ |
dev | 276 | drivers/net/de620.c | de620_flip_ds(dev); |
dev | 277 | drivers/net/de620.c | value |= de620_ready(dev) >> 4; /* Low nibble */ |
dev | 282 | drivers/net/de620.c | de620_write_block(struct device *dev, byte *buffer, int count) |
dev | 299 | drivers/net/de620.c | de620_put_byte(dev,*buffer); |
dev | 301 | drivers/net/de620.c | de620_send_command(dev,W_DUMMY); |
dev | 313 | drivers/net/de620.c | de620_send_command(dev,W_DUMMY); |
dev | 318 | drivers/net/de620.c | de620_read_block(struct device *dev, byte *data, int count) |
dev | 335 | drivers/net/de620.c | *data++ = de620_read_byte(dev); |
dev | 336 | drivers/net/de620.c | de620_flip_ds(dev); |
dev | 353 | drivers/net/de620.c | de620_set_delay(struct device *dev) |
dev | 355 | drivers/net/de620.c | de620_ready(dev); |
dev | 359 | drivers/net/de620.c | de620_ready(dev); |
dev | 365 | drivers/net/de620.c | de620_flip_ds(dev); |
dev | 367 | drivers/net/de620.c | de620_ready(dev); |
dev | 373 | drivers/net/de620.c | de620_flip_ds(dev); |
dev | 377 | drivers/net/de620.c | de620_set_register(struct device *dev, byte reg, byte value) |
dev | 379 | drivers/net/de620.c | de620_ready(dev); |
dev | 383 | drivers/net/de620.c | de620_put_byte(dev, value); |
dev | 387 | drivers/net/de620.c | de620_get_register(struct device *dev, byte reg) |
dev | 391 | drivers/net/de620.c | de620_send_command(dev,reg); |
dev | 392 | drivers/net/de620.c | value = de620_read_byte(dev); |
dev | 393 | drivers/net/de620.c | de620_send_command(dev,W_DUMMY); |
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 | 435 | drivers/net/de620.c | de620_set_register(dev, W_TCR, RXOFF); |
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 | 472 | drivers/net/de620.c | de620_set_register(dev, W_TCR, (TCR_DEF & ~RXPBM) | RXALL); |
dev | 475 | drivers/net/de620.c | de620_set_register(dev, W_TCR, TCR_DEF); |
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 | 504 | drivers/net/de620.c | using_txbuf = de620_tx_buffs(dev); /* Peek at the adapter */ |
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 | 540 | drivers/net/de620.c | de620_send_command(dev,W_CR | RW0); |
dev | 545 | drivers/net/de620.c | de620_send_command(dev,W_CR | RW1); |
dev | 555 | drivers/net/de620.c | de620_write_block(dev, buffer, len); |
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 | 592 | drivers/net/de620.c | irq_status = de620_get_register(dev, R_STS); |
dev | 598 | drivers/net/de620.c | again = de620_rx_intr(dev); |
dev | 604 | drivers/net/de620.c | dev->tbusy = (de620_tx_buffs(dev) == (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 | 635 | drivers/net/de620.c | de620_send_command(dev, W_CR | RRN); |
dev | 636 | drivers/net/de620.c | de620_set_register(dev, W_RSA1, next_rx_page); |
dev | 637 | drivers/net/de620.c | de620_set_register(dev, W_RSA0, 0); |
dev | 640 | drivers/net/de620.c | de620_read_block(dev, (byte *)&header_buf, sizeof(struct header_buf)); |
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 | 669 | drivers/net/de620.c | de620_send_command(dev, W_DUMMY); |
dev | 670 | drivers/net/de620.c | de620_set_register(dev, W_NPRF, next_rx_page); |
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 | 689 | drivers/net/de620.c | skb->dev = dev; |
dev | 694 | drivers/net/de620.c | de620_read_block(dev, buffer, size); |
dev | 696 | drivers/net/de620.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 699 | drivers/net/de620.c | ((struct netstats *)(dev->priv))->rx_packets++; |
dev | 705 | drivers/net/de620.c | curr_page = de620_get_register(dev, R_CPR); |
dev | 706 | drivers/net/de620.c | de620_set_register(dev, W_NPRF, next_rx_page); |
dev | 718 | drivers/net/de620.c | adapter_init(struct device *dev) |
dev | 737 | drivers/net/de620.c | de620_send_command(dev, W_CR | RNOP | CLEAR); |
dev | 738 | drivers/net/de620.c | de620_send_command(dev, W_CR | RNOP); |
dev | 740 | drivers/net/de620.c | de620_set_register(dev, W_SCR, SCR_DEF); |
dev | 742 | drivers/net/de620.c | de620_set_register(dev, W_TCR, RXOFF); |
dev | 746 | drivers/net/de620.c | de620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]); |
dev | 749 | drivers/net/de620.c | de620_set_register(dev, W_EIP, EIPRegister); |
dev | 757 | drivers/net/de620.c | de620_set_register(dev, W_SPR, first_rx_page); /* Start Page Register*/ |
dev | 758 | drivers/net/de620.c | de620_set_register(dev, W_EPR, last_rx_page); /* End Page Register */ |
dev | 759 | drivers/net/de620.c | de620_set_register(dev, W_CPR, first_rx_page);/*Current Page Register*/ |
dev | 760 | drivers/net/de620.c | de620_send_command(dev, W_NPR | first_rx_page); /* Next Page Register*/ |
dev | 761 | drivers/net/de620.c | de620_send_command(dev, W_DUMMY); |
dev | 762 | drivers/net/de620.c | de620_set_delay(dev); |
dev | 771 | drivers/net/de620.c | if (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) { |
dev | 779 | drivers/net/de620.c | dev->flags &= ~IFF_UP; |
dev | 780 | drivers/net/de620.c | de620_close(dev); |
dev | 791 | drivers/net/de620.c | de620_set_register(dev, W_TCR, TCR_DEF); |
dev | 806 | drivers/net/de620.c | de620_probe(struct device *dev) |
dev | 819 | drivers/net/de620.c | de620_set_register(dev, W_EIP, EIPRegister); |
dev | 822 | drivers/net/de620.c | de620_set_register(dev, W_CPR, checkbyte); |
dev | 823 | drivers/net/de620.c | checkbyte = de620_get_register(dev, R_CPR); |
dev | 825 | drivers/net/de620.c | if ((checkbyte != 0xa5) || (read_eeprom(dev) != 0)) { |
dev | 840 | drivers/net/de620.c | dev->dev_addr[0] = nic_data.NodeID[0]); |
dev | 842 | drivers/net/de620.c | printk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]); |
dev | 843 | drivers/net/de620.c | dev->broadcast[i] = 0xff; |
dev | 856 | drivers/net/de620.c | dev->priv = &de620_netstats; |
dev | 858 | drivers/net/de620.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 859 | drivers/net/de620.c | dev->get_stats = get_stats; |
dev | 860 | drivers/net/de620.c | dev->open = de620_open; |
dev | 861 | drivers/net/de620.c | dev->stop = de620_close; |
dev | 862 | drivers/net/de620.c | dev->hard_start_xmit = &de620_start_xmit; |
dev | 863 | drivers/net/de620.c | dev->set_multicast_list = &de620_set_multicast_list; |
dev | 864 | drivers/net/de620.c | dev->base_addr = DE620_IO; |
dev | 865 | drivers/net/de620.c | dev->irq = DE620_IRQ; |
dev | 867 | drivers/net/de620.c | ether_setup(dev); |
dev | 891 | drivers/net/de620.c | #define sendit(dev,data) de620_set_register(dev, W_EIP, data | EIPRegister); |
dev | 894 | drivers/net/de620.c | ReadAWord(struct device *dev, int from) |
dev | 902 | drivers/net/de620.c | sendit(dev, 0); sendit(dev, 1); sendit(dev, 5); sendit(dev, 4); |
dev | 910 | drivers/net/de620.c | sendit(dev, 6); sendit(dev, 7); sendit(dev, 7); sendit(dev, 6); |
dev | 916 | drivers/net/de620.c | sendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4); |
dev | 925 | drivers/net/de620.c | sendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4); |
dev | 926 | drivers/net/de620.c | data = (data << 1) | ((de620_get_register(dev, R_STS) & EEDI) >> 7); |
dev | 931 | drivers/net/de620.c | sendit(dev, 0); sendit(dev, 1); sendit(dev, 1); sendit(dev, 0); |
dev | 937 | drivers/net/de620.c | read_eeprom(struct device *dev) |
dev | 942 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1aa); /* bytes 0 + 1 of NodeID */ |
dev | 948 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1ab); /* bytes 2 + 3 of NodeID */ |
dev | 954 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1ac); /* bytes 4 + 5 of NodeID */ |
dev | 958 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1ad); /* RAM size in pages (256 bytes). 0 = 64k */ |
dev | 961 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1ae); /* hardware model (CT = 3) */ |
dev | 964 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */ |
dev | 967 | drivers/net/de620.c | wrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */ |
dev | 367 | drivers/net/depca.c | static int depca_open(struct device *dev); |
dev | 368 | drivers/net/depca.c | static int depca_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 370 | drivers/net/depca.c | static int depca_close(struct device *dev); |
dev | 371 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
dev | 372 | drivers/net/depca.c | static struct enet_statistics *depca_get_stats(struct device *dev); |
dev | 373 | drivers/net/depca.c | static void set_multicast_list(struct device *dev,int num_addrs,void *addrs); |
dev | 378 | drivers/net/depca.c | static int depca_hw_init(struct device *dev, u_long ioaddr); |
dev | 379 | drivers/net/depca.c | static void depca_init_ring(struct device *dev); |
dev | 380 | drivers/net/depca.c | static int depca_rx(struct device *dev); |
dev | 381 | drivers/net/depca.c | static int depca_tx(struct device *dev); |
dev | 383 | drivers/net/depca.c | static void LoadCSRs(struct device *dev); |
dev | 384 | drivers/net/depca.c | static int InitRestartDepca(struct device *dev); |
dev | 387 | drivers/net/depca.c | static int get_hw_addr(struct device *dev); |
dev | 389 | drivers/net/depca.c | static void SetMulticastFilter(struct device *dev,int num_addrs,char *addrs); |
dev | 390 | drivers/net/depca.c | static void isa_probe(struct device *dev, u_long iobase); |
dev | 391 | drivers/net/depca.c | static void eisa_probe(struct device *dev, u_long iobase); |
dev | 392 | drivers/net/depca.c | static struct device *alloc_device(struct device *dev, u_long iobase); |
dev | 393 | drivers/net/depca.c | static int load_packet(struct device *dev, struct sk_buff *skb); |
dev | 419 | drivers/net/depca.c | int depca_probe(struct device *dev) |
dev | 422 | drivers/net/depca.c | u_long iobase = dev->base_addr; |
dev | 428 | drivers/net/depca.c | isa_probe(dev, iobase); |
dev | 429 | drivers/net/depca.c | eisa_probe(dev, iobase); |
dev | 432 | drivers/net/depca.c | printk("%s: depca_probe() cannot find device at 0x%04lx.\n", dev->name, |
dev | 440 | drivers/net/depca.c | for (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next); |
dev | 442 | drivers/net/depca.c | if (dev->priv) status = 0; |
dev | 450 | drivers/net/depca.c | depca_hw_init(struct device *dev, u_long ioaddr) |
dev | 471 | drivers/net/depca.c | dev->base_addr = ioaddr; |
dev | 475 | drivers/net/depca.c | dev->name, name, ioaddr, (int)((ioaddr>>12)&0x0f)); |
dev | 477 | drivers/net/depca.c | printk("%s: %s at 0x%04lx", dev->name, name, ioaddr); |
dev | 481 | drivers/net/depca.c | status = get_hw_addr(dev); |
dev | 483 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i]); |
dev | 485 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i]); |
dev | 513 | drivers/net/depca.c | dev->priv = (void *) kmalloc(sizeof(struct depca_private), GFP_KERNEL); |
dev | 514 | drivers/net/depca.c | if (dev->priv == NULL) |
dev | 516 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
dev | 517 | drivers/net/depca.c | memset((char *)dev->priv, 0, sizeof(struct depca_private)); |
dev | 519 | drivers/net/depca.c | sprintf(lp->adapter_name,"%s (%s)", name, dev->name); |
dev | 554 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 557 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 565 | drivers/net/depca.c | if (dev->irq < 2) { |
dev | 596 | drivers/net/depca.c | for (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) { |
dev | 598 | drivers/net/depca.c | dev->irq = irqnum; |
dev | 599 | drivers/net/depca.c | printk(" and uses IRQ%d.\n", dev->irq); |
dev | 603 | drivers/net/depca.c | if (!dev->irq) { |
dev | 610 | drivers/net/depca.c | printk(" and assigned IRQ%d.\n", dev->irq); |
dev | 629 | drivers/net/depca.c | dev->open = &depca_open; |
dev | 630 | drivers/net/depca.c | dev->hard_start_xmit = &depca_start_xmit; |
dev | 631 | drivers/net/depca.c | dev->stop = &depca_close; |
dev | 632 | drivers/net/depca.c | dev->get_stats = &depca_get_stats; |
dev | 633 | drivers/net/depca.c | dev->set_multicast_list = &set_multicast_list; |
dev | 634 | drivers/net/depca.c | dev->do_ioctl = &depca_ioctl; |
dev | 636 | drivers/net/depca.c | dev->mem_start = 0; |
dev | 639 | drivers/net/depca.c | ether_setup(dev); |
dev | 641 | drivers/net/depca.c | if (dev->priv) { |
dev | 642 | drivers/net/depca.c | kfree_s(dev->priv, sizeof(struct depca_private)); |
dev | 643 | drivers/net/depca.c | dev->priv = NULL; |
dev | 655 | drivers/net/depca.c | depca_open(struct device *dev) |
dev | 657 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 659 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 663 | drivers/net/depca.c | if (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name)) { |
dev | 664 | drivers/net/depca.c | printk("depca_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 668 | drivers/net/depca.c | irq2dev_map[dev->irq] = dev; |
dev | 679 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 680 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 686 | drivers/net/depca.c | printk("%s: depca open with irq %d\n",dev->name,dev->irq); |
dev | 752 | drivers/net/depca.c | dev->tbusy = 0; |
dev | 753 | drivers/net/depca.c | dev->interrupt = 0; |
dev | 754 | drivers/net/depca.c | dev->start = 1; |
dev | 756 | drivers/net/depca.c | status = InitRestartDepca(dev); |
dev | 770 | drivers/net/depca.c | depca_init_ring(struct device *dev) |
dev | 772 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 777 | drivers/net/depca.c | set_bit(0, (void *)&dev->tbusy); |
dev | 798 | drivers/net/depca.c | SetMulticastFilter(dev, 0, NULL); |
dev | 801 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 813 | drivers/net/depca.c | depca_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 815 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 816 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 820 | drivers/net/depca.c | if (dev->tbusy) { |
dev | 821 | drivers/net/depca.c | int tickssofar = jiffies - dev->trans_start; |
dev | 826 | drivers/net/depca.c | dev->name, inw(DEPCA_DATA)); |
dev | 829 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 830 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 831 | drivers/net/depca.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 832 | drivers/net/depca.c | dev->start = 1; |
dev | 833 | drivers/net/depca.c | dev->tbusy=0; |
dev | 834 | drivers/net/depca.c | dev->trans_start = jiffies; |
dev | 835 | drivers/net/depca.c | InitRestartDepca(dev); |
dev | 839 | drivers/net/depca.c | dev_tint(dev); |
dev | 842 | drivers/net/depca.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 843 | drivers/net/depca.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 847 | drivers/net/depca.c | status = load_packet(dev, skb); |
dev | 854 | drivers/net/depca.c | dev->trans_start = jiffies; |
dev | 858 | drivers/net/depca.c | dev->tbusy=0; |
dev | 875 | drivers/net/depca.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 880 | drivers/net/depca.c | if (dev == NULL) { |
dev | 883 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
dev | 884 | drivers/net/depca.c | ioaddr = dev->base_addr; |
dev | 886 | drivers/net/depca.c | if (dev->interrupt) |
dev | 887 | drivers/net/depca.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 889 | drivers/net/depca.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 903 | drivers/net/depca.c | depca_rx(dev); |
dev | 906 | drivers/net/depca.c | depca_tx(dev); |
dev | 908 | drivers/net/depca.c | if ((TX_BUFFS_AVAIL >= 0) && dev->tbusy) { /* any resources available? */ |
dev | 909 | drivers/net/depca.c | dev->tbusy = 0; /* clear TX busy flag */ |
dev | 917 | drivers/net/depca.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 924 | drivers/net/depca.c | depca_rx(struct device *dev) |
dev | 926 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 953 | drivers/net/depca.c | skb->dev = dev; |
dev | 966 | drivers/net/depca.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 985 | drivers/net/depca.c | } else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) && |
dev | 986 | drivers/net/depca.c | (*(s32 *)&buf[2] == *(s32 *)&dev->dev_addr[2])) { |
dev | 995 | drivers/net/depca.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 1021 | drivers/net/depca.c | depca_tx(struct device *dev) |
dev | 1023 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1026 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1059 | drivers/net/depca.c | depca_close(struct device *dev) |
dev | 1061 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1063 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1065 | drivers/net/depca.c | dev->start = 0; |
dev | 1066 | drivers/net/depca.c | dev->tbusy = 1; |
dev | 1072 | drivers/net/depca.c | dev->name, inw(DEPCA_DATA)); |
dev | 1093 | drivers/net/depca.c | free_irq(dev->irq); |
dev | 1094 | drivers/net/depca.c | irq2dev_map[dev->irq] = NULL; |
dev | 1101 | drivers/net/depca.c | static void LoadCSRs(struct device *dev) |
dev | 1103 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1104 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1118 | drivers/net/depca.c | static int InitRestartDepca(struct device *dev) |
dev | 1120 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1121 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1138 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
dev | 1142 | drivers/net/depca.c | dev->name, i, lp->sh_mem, inw(DEPCA_DATA)); |
dev | 1150 | drivers/net/depca.c | depca_get_stats(struct device *dev) |
dev | 1152 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1167 | drivers/net/depca.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1169 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1170 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1172 | drivers/net/depca.c | if (irq2dev_map[dev->irq] != NULL) { |
dev | 1173 | drivers/net/depca.c | while(dev->tbusy); /* Stop ring access */ |
dev | 1174 | drivers/net/depca.c | set_bit(0, (void*)&dev->tbusy); |
dev | 1178 | drivers/net/depca.c | depca_init_ring(dev); /* Initialize the descriptor rings */ |
dev | 1181 | drivers/net/depca.c | SetMulticastFilter(dev, num_addrs, (char *)addrs); |
dev | 1187 | drivers/net/depca.c | LoadCSRs(dev); /* Reload CSR3 */ |
dev | 1188 | drivers/net/depca.c | InitRestartDepca(dev); /* Resume normal operation. */ |
dev | 1189 | drivers/net/depca.c | dev->tbusy = 0; /* Unlock the TX ring */ |
dev | 1199 | drivers/net/depca.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs) |
dev | 1201 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1247 | drivers/net/depca.c | static void isa_probe(struct device *dev, u_long ioaddr) |
dev | 1263 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) { |
dev | 1266 | drivers/net/depca.c | if ((dev = alloc_device(dev, ports[i])) != NULL) { |
dev | 1267 | drivers/net/depca.c | if (depca_hw_init(dev, ports[i]) == 0) { |
dev | 1273 | drivers/net/depca.c | printk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]); |
dev | 1285 | drivers/net/depca.c | static void eisa_probe(struct device *dev, u_long ioaddr) |
dev | 1305 | drivers/net/depca.c | for (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) { |
dev | 1309 | drivers/net/depca.c | if ((dev = alloc_device(dev, iobase)) != NULL) { |
dev | 1310 | drivers/net/depca.c | if (depca_hw_init(dev, iobase) == 0) { |
dev | 1316 | drivers/net/depca.c | printk("%s: region already allocated at 0x%04lx.\n",dev->name,iobase); |
dev | 1329 | drivers/net/depca.c | static struct device *alloc_device(struct device *dev, u_long iobase) |
dev | 1339 | drivers/net/depca.c | while (dev->next != NULL) { |
dev | 1340 | drivers/net/depca.c | if ((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0)) break; |
dev | 1341 | drivers/net/depca.c | dev = dev->next; /* walk through eth device list */ |
dev | 1349 | drivers/net/depca.c | if ((dev->base_addr == 0) && (num_depcas > 0)) { |
dev | 1351 | drivers/net/depca.c | tmp = dev->next; /* point to the next device */ |
dev | 1352 | drivers/net/depca.c | init = dev->init; /* remember the probe function */ |
dev | 1359 | drivers/net/depca.c | if ((dev->next == NULL) && |
dev | 1360 | drivers/net/depca.c | !((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0))){ |
dev | 1361 | drivers/net/depca.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 1364 | drivers/net/depca.c | dev = dev->next; /* point to the new device */ |
dev | 1365 | drivers/net/depca.c | if (dev == NULL) { |
dev | 1374 | drivers/net/depca.c | dev->name = (char *)(dev + sizeof(struct device)); |
dev | 1376 | drivers/net/depca.c | sprintf(dev->name,"eth????"); /* New device name */ |
dev | 1378 | drivers/net/depca.c | sprintf(dev->name,"eth%d", num_eth);/* New device name */ |
dev | 1380 | drivers/net/depca.c | dev->base_addr = iobase; /* assign the io address */ |
dev | 1381 | drivers/net/depca.c | dev->next = NULL; /* mark the end of list */ |
dev | 1382 | drivers/net/depca.c | dev->init = &depca_probe; /* initialisation routine */ |
dev | 1386 | drivers/net/depca.c | ret = dev; /* return current struct, or NULL */ |
dev | 1406 | drivers/net/depca.c | dev->name); |
dev | 1429 | drivers/net/depca.c | ret = dev; |
dev | 1492 | drivers/net/depca.c | } dev; |
dev | 1507 | drivers/net/depca.c | dev.llsig.a = ETH_PROM_SIG; |
dev | 1508 | drivers/net/depca.c | dev.llsig.b = ETH_PROM_SIG; |
dev | 1513 | drivers/net/depca.c | if (dev.Sig[j] == data) { /* track signature */ |
dev | 1516 | drivers/net/depca.c | if (data == dev.Sig[0]) { /* rare case.... */ |
dev | 1536 | drivers/net/depca.c | static int get_hw_addr(struct device *dev) |
dev | 1538 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1549 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 1551 | drivers/net/depca.c | dev->dev_addr[i++] = (u_char) tmp; |
dev | 1567 | drivers/net/depca.c | static int load_packet(struct device *dev, struct sk_buff *skb) |
dev | 1569 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1659 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 1661 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1664 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
dev | 1674 | drivers/net/depca.c | tmp.addr[i] = dev->dev_addr[i]; |
dev | 1687 | drivers/net/depca.c | dev->dev_addr[i] = tmp.addr[i]; |
dev | 1689 | drivers/net/depca.c | while(dev->tbusy); /* Stop ring access */ |
dev | 1690 | drivers/net/depca.c | set_bit(0, (void*)&dev->tbusy); |
dev | 1694 | drivers/net/depca.c | depca_init_ring(dev); /* Initialize the descriptor rings */ |
dev | 1695 | drivers/net/depca.c | LoadCSRs(dev); /* Reload CSR3 */ |
dev | 1696 | drivers/net/depca.c | InitRestartDepca(dev); /* Resume normal operation. */ |
dev | 1697 | drivers/net/depca.c | dev->tbusy = 0; /* Unlock the TX ring */ |
dev | 1706 | drivers/net/depca.c | while(dev->tbusy); /* Stop ring access */ |
dev | 1707 | drivers/net/depca.c | set_bit(0, (void*)&dev->tbusy); |
dev | 1711 | drivers/net/depca.c | depca_init_ring(dev); /* Initialize the descriptor rings */ |
dev | 1714 | drivers/net/depca.c | LoadCSRs(dev); /* Reload CSR3 */ |
dev | 1715 | drivers/net/depca.c | InitRestartDepca(dev); /* Resume normal operation. */ |
dev | 1716 | drivers/net/depca.c | dev->tbusy = 0; /* Unlock the TX ring */ |
dev | 1724 | drivers/net/depca.c | while(dev->tbusy); /* Stop ring access */ |
dev | 1725 | drivers/net/depca.c | set_bit(0, (void*)&dev->tbusy); |
dev | 1729 | drivers/net/depca.c | depca_init_ring(dev); /* Initialize the descriptor rings */ |
dev | 1732 | drivers/net/depca.c | LoadCSRs(dev); /* Reload CSR3 */ |
dev | 1733 | drivers/net/depca.c | InitRestartDepca(dev); /* Resume normal operation. */ |
dev | 1734 | drivers/net/depca.c | dev->tbusy = 0; /* Unlock the TX ring */ |
dev | 1741 | drivers/net/depca.c | printk("%s: Boo!\n", dev->name); |
dev | 1756 | drivers/net/depca.c | set_multicast_list(dev, ioc->len, tmp.addr); |
dev | 1759 | drivers/net/depca.c | set_multicast_list(dev, ioc->len, NULL); |
dev | 1768 | drivers/net/depca.c | set_multicast_list(dev, 0, NULL); |
dev | 1776 | drivers/net/depca.c | set_multicast_list(dev, HASH_TABLE_LEN, NULL); |
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 | if (dev->priv == NULL) |
dev | 93 | drivers/net/dummy.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 94 | drivers/net/dummy.c | dev->get_stats = dummy_get_stats; |
dev | 97 | drivers/net/dummy.c | dev->open = &dummy_open; |
dev | 98 | drivers/net/dummy.c | dev->stop = &dummy_close; |
dev | 102 | drivers/net/dummy.c | ether_setup(dev); |
dev | 103 | drivers/net/dummy.c | dev->flags |= IFF_NOARP; |
dev | 109 | drivers/net/dummy.c | dummy_xmit(struct sk_buff *skb, struct device *dev) |
dev | 115 | drivers/net/dummy.c | if (skb == NULL || dev == NULL) |
dev | 121 | drivers/net/dummy.c | stats = (struct enet_statistics *)dev->priv; |
dev | 130 | drivers/net/dummy.c | dummy_get_stats(struct device *dev) |
dev | 132 | drivers/net/dummy.c | struct enet_statistics *stats = (struct enet_statistics*) dev->priv; |
dev | 140 | drivers/net/dummy.c | static int dummy_probe(struct device *dev) |
dev | 142 | drivers/net/dummy.c | dummy_init(dev); |
dev | 97 | drivers/net/e2100.c | int e2100_probe(struct device *dev); |
dev | 98 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr); |
dev | 100 | drivers/net/e2100.c | static int e21_open(struct device *dev); |
dev | 101 | drivers/net/e2100.c | static void e21_reset_8390(struct device *dev); |
dev | 102 | drivers/net/e2100.c | static int e21_block_input(struct device *dev, int count, |
dev | 104 | drivers/net/e2100.c | static void e21_block_output(struct device *dev, int count, |
dev | 106 | drivers/net/e2100.c | static int e21_close(struct device *dev); |
dev | 116 | drivers/net/e2100.c | int e2100_probe(struct device *dev) |
dev | 119 | drivers/net/e2100.c | int base_addr = dev->base_addr; |
dev | 122 | drivers/net/e2100.c | return e21_probe1(dev, base_addr); |
dev | 129 | drivers/net/e2100.c | if (e21_probe1(dev, *port) == 0) |
dev | 136 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr) |
dev | 139 | drivers/net/e2100.c | unsigned char *station_addr = dev->dev_addr; |
dev | 161 | drivers/net/e2100.c | printk("%s: E21** at %#3x,", dev->name, ioaddr); |
dev | 165 | drivers/net/e2100.c | if (dev->irq < 2) { |
dev | 169 | drivers/net/e2100.c | dev->irq = irqlist[i]; |
dev | 173 | drivers/net/e2100.c | printk(" unable to get IRQ %d.\n", dev->irq); |
dev | 176 | drivers/net/e2100.c | } else if (dev->irq == 2) /* Fixup luser bogosity: IRQ2 is really IRQ9 */ |
dev | 177 | drivers/net/e2100.c | dev->irq = 9; |
dev | 183 | drivers/net/e2100.c | dev->base_addr = ioaddr; |
dev | 185 | drivers/net/e2100.c | ethdev_init(dev); |
dev | 192 | drivers/net/e2100.c | ei_status.saved_irq = dev->irq; |
dev | 196 | drivers/net/e2100.c | if (dev->mem_end & 15) |
dev | 197 | drivers/net/e2100.c | dev->if_port = dev->mem_end & 7; |
dev | 199 | drivers/net/e2100.c | dev->if_port = 0; |
dev | 203 | drivers/net/e2100.c | dev->if_port = 1; |
dev | 211 | drivers/net/e2100.c | if (dev->mem_start == 0) |
dev | 212 | drivers/net/e2100.c | dev->mem_start = 0xd0000; |
dev | 217 | drivers/net/e2100.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 218 | drivers/net/e2100.c | dev->mem_end = dev->rmem_end = dev->mem_start + 2*1024; |
dev | 221 | drivers/net/e2100.c | printk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq, |
dev | 222 | drivers/net/e2100.c | dev->if_port ? "secondary" : "primary", dev->mem_start); |
dev | 230 | drivers/net/e2100.c | dev->open = &e21_open; |
dev | 231 | drivers/net/e2100.c | dev->stop = &e21_close; |
dev | 232 | drivers/net/e2100.c | NS8390_init(dev, 0); |
dev | 238 | drivers/net/e2100.c | e21_open(struct device *dev) |
dev | 240 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 243 | drivers/net/e2100.c | if (request_irq(dev->irq, ei_interrupt, 0, "e2100")) { |
dev | 246 | drivers/net/e2100.c | irq2dev_map[dev->irq] = dev; |
dev | 250 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq & 7)); |
dev | 252 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0) |
dev | 253 | drivers/net/e2100.c | + (dev->if_port ? E21_ALT_IFPORT : 0)); |
dev | 255 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7)); |
dev | 257 | drivers/net/e2100.c | rc = ei_open(dev); |
dev | 266 | drivers/net/e2100.c | e21_reset_8390(struct device *dev) |
dev | 268 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 284 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 286 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 287 | drivers/net/e2100.c | char *shared_mem = (char *)dev->mem_start; |
dev | 305 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 308 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 309 | drivers/net/e2100.c | volatile char *shared_mem = (char *)dev->mem_start; |
dev | 321 | drivers/net/e2100.c | e21_close(struct device *dev) |
dev | 323 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
dev | 326 | drivers/net/e2100.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 328 | drivers/net/e2100.c | free_irq(dev->irq); |
dev | 329 | drivers/net/e2100.c | dev->irq = ei_status.saved_irq; |
dev | 337 | drivers/net/e2100.c | irq2dev_map[dev->irq] = NULL; |
dev | 339 | drivers/net/e2100.c | NS8390_init(dev, 0); |
dev | 140 | drivers/net/eepro.c | extern int eepro_probe(struct device *dev); |
dev | 142 | drivers/net/eepro.c | static int eepro_probe1(struct device *dev, short ioaddr); |
dev | 143 | drivers/net/eepro.c | static int eepro_open(struct device *dev); |
dev | 144 | drivers/net/eepro.c | static int eepro_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 146 | drivers/net/eepro.c | static void eepro_rx(struct device *dev); |
dev | 147 | drivers/net/eepro.c | static void eepro_transmit_interrupt(struct device *dev); |
dev | 148 | drivers/net/eepro.c | static int eepro_close(struct device *dev); |
dev | 149 | drivers/net/eepro.c | static struct enet_statistics *eepro_get_stats(struct device *dev); |
dev | 150 | drivers/net/eepro.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 153 | drivers/net/eepro.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 154 | drivers/net/eepro.c | static int eepro_grab_irq(struct device *dev); |
dev | 283 | drivers/net/eepro.c | eepro_probe(struct device *dev) |
dev | 286 | drivers/net/eepro.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 289 | drivers/net/eepro.c | return eepro_probe1(dev, base_addr); |
dev | 297 | drivers/net/eepro.c | if (eepro_probe1(dev, ioaddr) == 0) |
dev | 309 | drivers/net/eepro.c | int eepro_probe1(struct device *dev, short ioaddr) |
dev | 345 | drivers/net/eepro.c | dev->name, ioaddr); |
dev | 350 | drivers/net/eepro.c | dev->name, ioaddr); |
dev | 354 | drivers/net/eepro.c | dev->base_addr = ioaddr; |
dev | 357 | drivers/net/eepro.c | dev->dev_addr[i] = ((unsigned char *) station_addr)[5-i]; |
dev | 358 | drivers/net/eepro.c | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); |
dev | 364 | drivers/net/eepro.c | dev->if_port = TPE; |
dev | 365 | drivers/net/eepro.c | else dev->if_port = BNC; |
dev | 367 | drivers/net/eepro.c | if (dev->irq < 2 && eepro) { |
dev | 370 | drivers/net/eepro.c | case 0: dev->irq = 9; break; |
dev | 371 | drivers/net/eepro.c | case 1: dev->irq = 3; break; |
dev | 372 | drivers/net/eepro.c | case 2: dev->irq = 5; break; |
dev | 373 | drivers/net/eepro.c | case 3: dev->irq = 10; break; |
dev | 374 | drivers/net/eepro.c | case 4: dev->irq = 11; break; |
dev | 380 | drivers/net/eepro.c | else if (dev->irq == 2) |
dev | 381 | drivers/net/eepro.c | dev->irq = 9; |
dev | 383 | drivers/net/eepro.c | if (dev->irq > 2) { |
dev | 384 | drivers/net/eepro.c | printk(", IRQ %d, %s.\n", dev->irq, |
dev | 385 | drivers/net/eepro.c | ifmap[dev->if_port]); |
dev | 386 | drivers/net/eepro.c | if (request_irq(dev->irq, &eepro_interrupt, 0, "eepro")) { |
dev | 387 | drivers/net/eepro.c | printk("%s: unable to get IRQ %d.\n", dev->name, dev->irq); |
dev | 391 | drivers/net/eepro.c | else printk(", %s.\n", ifmap[dev->if_port]); |
dev | 393 | drivers/net/eepro.c | if ((dev->mem_start & 0xf) > 0) |
dev | 394 | drivers/net/eepro.c | net_debug = dev->mem_start & 7; |
dev | 400 | drivers/net/eepro.c | dev->name); |
dev | 410 | drivers/net/eepro.c | dev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL); |
dev | 411 | drivers/net/eepro.c | if (dev->priv == NULL) |
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 | 775 | drivers/net/eepro.c | eepro_get_stats(struct device *dev) |
dev | 777 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 789 | drivers/net/eepro.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 791 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 792 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 802 | drivers/net/eepro.c | printk("%s: promiscuous mode enabled.\n", dev->name); |
dev | 837 | drivers/net/eepro.c | eaddrs = (unsigned short *) dev->dev_addr; |
dev | 866 | drivers/net/eepro.c | dev->name); |
dev | 870 | drivers/net/eepro.c | dev->name, num_addrs); |
dev | 931 | drivers/net/eepro.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 933 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 934 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 1006 | drivers/net/eepro.c | if (dev->tbusy) { |
dev | 1007 | drivers/net/eepro.c | dev->tbusy = 0; |
dev | 1015 | drivers/net/eepro.c | dev->tbusy = 1; |
dev | 1021 | drivers/net/eepro.c | eepro_rx(struct device *dev) |
dev | 1023 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 1024 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 1048 | drivers/net/eepro.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 1052 | drivers/net/eepro.c | skb->dev = dev; |
dev | 1057 | drivers/net/eepro.c | skb->protocol = eth_type_trans(skb,dev); |
dev | 1071 | drivers/net/eepro.c | dev->name, rcv_event, rcv_status, rcv_next_frame, rcv_size); |
dev | 1093 | drivers/net/eepro.c | eepro_transmit_interrupt(struct device *dev) |
dev | 1095 | drivers/net/eepro.c | struct eepro_local *lp = (struct eepro_local *)dev->priv; |
dev | 1096 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
dev | 1108 | drivers/net/eepro.c | if (dev->tbusy) { |
dev | 1109 | drivers/net/eepro.c | dev->tbusy = 0; |
dev | 1120 | drivers/net/eepro.c | dev->name, xmt_status); |
dev | 289 | drivers/net/eexpress.c | extern int express_probe(struct device *dev); /* Called from Space.c */ |
dev | 291 | drivers/net/eexpress.c | static int eexp_probe1(struct device *dev, short ioaddr); |
dev | 292 | drivers/net/eexpress.c | static int eexp_open(struct device *dev); |
dev | 293 | drivers/net/eexpress.c | static int eexp_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 295 | drivers/net/eexpress.c | static void eexp_rx(struct device *dev); |
dev | 296 | drivers/net/eexpress.c | static int eexp_close(struct device *dev); |
dev | 297 | drivers/net/eexpress.c | static struct enet_statistics *eexp_get_stats(struct device *dev); |
dev | 298 | drivers/net/eexpress.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 301 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 302 | drivers/net/eexpress.c | static void init_82586_mem(struct device *dev); |
dev | 303 | drivers/net/eexpress.c | static void init_rx_bufs(struct device *dev); |
dev | 313 | drivers/net/eexpress.c | express_probe(struct device *dev) |
dev | 317 | drivers/net/eexpress.c | int base_addr = dev->base_addr; |
dev | 320 | drivers/net/eexpress.c | return eexp_probe1(dev, base_addr); |
dev | 339 | drivers/net/eexpress.c | && eexp_probe1(dev, *port) == 0) |
dev | 346 | drivers/net/eexpress.c | int eexp_probe1(struct device *dev, short ioaddr) |
dev | 351 | drivers/net/eexpress.c | printk("%s: EtherExpress at %#x,", dev->name, ioaddr); |
dev | 368 | drivers/net/eexpress.c | dev->base_addr = ioaddr; |
dev | 371 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
dev | 372 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
dev | 383 | drivers/net/eexpress.c | dev->irq = irqmap[setupval >> 13]; |
dev | 384 | drivers/net/eexpress.c | dev->if_port = (setupval & 0x1000) == 0 ? AUI : |
dev | 386 | drivers/net/eexpress.c | printk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]); |
dev | 395 | drivers/net/eexpress.c | if ((dev->mem_start & 0xf) > 0) |
dev | 396 | drivers/net/eexpress.c | net_debug = dev->mem_start & 7; |
dev | 402 | drivers/net/eexpress.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 403 | drivers/net/eexpress.c | if (dev->priv == NULL) |
dev | 405 | drivers/net/eexpress.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 407 | drivers/net/eexpress.c | dev->open = eexp_open; |
dev | 408 | drivers/net/eexpress.c | dev->stop = eexp_close; |
dev | 409 | drivers/net/eexpress.c | dev->hard_start_xmit = eexp_send_packet; |
dev | 410 | drivers/net/eexpress.c | dev->get_stats = eexp_get_stats; |
dev | 411 | drivers/net/eexpress.c | dev->set_multicast_list = &set_multicast_list; |
dev | 415 | drivers/net/eexpress.c | ether_setup(dev); |
dev | 425 | drivers/net/eexpress.c | eexp_open(struct device *dev) |
dev | 427 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 429 | drivers/net/eexpress.c | if (dev->irq == 0 || irqrmap[dev->irq] == 0) |
dev | 432 | drivers/net/eexpress.c | if (irq2dev_map[dev->irq] != 0 |
dev | 434 | drivers/net/eexpress.c | || (irq2dev_map[dev->irq] = dev) == 0 |
dev | 435 | drivers/net/eexpress.c | || request_irq(dev->irq, &eexp_interrupt, 0, "EExpress")) { |
dev | 440 | drivers/net/eexpress.c | init_82586_mem(dev); |
dev | 443 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
dev | 445 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 446 | drivers/net/eexpress.c | dev->interrupt = 0; |
dev | 447 | drivers/net/eexpress.c | dev->start = 1; |
dev | 455 | drivers/net/eexpress.c | eexp_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 457 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 458 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 460 | drivers/net/eexpress.c | if (dev->tbusy) { |
dev | 463 | drivers/net/eexpress.c | int tickssofar = jiffies - dev->trans_start; |
dev | 467 | drivers/net/eexpress.c | printk("%s: transmit timed out, %s? ", dev->name, |
dev | 475 | drivers/net/eexpress.c | init_82586_mem(dev); |
dev | 483 | drivers/net/eexpress.c | dev->tbusy=0; |
dev | 484 | drivers/net/eexpress.c | dev->trans_start = jiffies; |
dev | 491 | drivers/net/eexpress.c | dev_tint(dev); |
dev | 496 | drivers/net/eexpress.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 497 | drivers/net/eexpress.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 503 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 504 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
dev | 505 | drivers/net/eexpress.c | dev->trans_start = jiffies; |
dev | 507 | drivers/net/eexpress.c | outb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 523 | drivers/net/eexpress.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 528 | drivers/net/eexpress.c | if (dev == NULL) { |
dev | 532 | drivers/net/eexpress.c | dev->interrupt = 1; |
dev | 534 | drivers/net/eexpress.c | ioaddr = dev->base_addr; |
dev | 535 | drivers/net/eexpress.c | lp = (struct net_local *)dev->priv; |
dev | 540 | drivers/net/eexpress.c | printk("%s: EExp interrupt, status %4.4x.\n", dev->name, status); |
dev | 544 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 558 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 579 | drivers/net/eexpress.c | eexp_rx(dev); |
dev | 585 | drivers/net/eexpress.c | if ((status & 0x0700) != 0x0200 && dev->start) { |
dev | 589 | drivers/net/eexpress.c | dev->name, status); |
dev | 604 | drivers/net/eexpress.c | if ((status & 0x0070) != 0x0040 && dev->start) { |
dev | 612 | drivers/net/eexpress.c | dev->name, status, lp->rx_head, lp->rx_tail); |
dev | 623 | drivers/net/eexpress.c | init_rx_bufs(dev); |
dev | 633 | drivers/net/eexpress.c | printk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name, |
dev | 637 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
dev | 642 | drivers/net/eexpress.c | eexp_close(struct device *dev) |
dev | 644 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 646 | drivers/net/eexpress.c | dev->tbusy = 1; |
dev | 647 | drivers/net/eexpress.c | dev->start = 0; |
dev | 656 | drivers/net/eexpress.c | free_irq(dev->irq); |
dev | 658 | 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 | 950 | 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 | 145 | drivers/net/eql.c | int eql_init(struct device *dev); /* */ |
dev | 146 | drivers/net/eql.c | static int eql_open(struct device *dev); /* */ |
dev | 147 | drivers/net/eql.c | static int eql_close(struct device *dev); /* */ |
dev | 148 | drivers/net/eql.c | static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /* */ |
dev | 149 | drivers/net/eql.c | static int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /* */ |
dev | 151 | drivers/net/eql.c | static struct enet_statistics *eql_get_stats(struct device *dev); /* */ |
dev | 152 | drivers/net/eql.c | static int eql_header(struct sk_buff *skb, struct device *dev, |
dev | 155 | drivers/net/eql.c | static int eql_rebuild_header(void *buff, struct device *dev, |
dev | 160 | drivers/net/eql.c | static int eql_enslave(struct device *dev, slaving_request_t *srq); /* */ |
dev | 161 | drivers/net/eql.c | static int eql_emancipate(struct device *dev, slaving_request_t *srq); /* */ |
dev | 163 | drivers/net/eql.c | static int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /* */ |
dev | 164 | drivers/net/eql.c | static int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /* */ |
dev | 166 | drivers/net/eql.c | static int eql_g_master_cfg(struct device *dev, master_config_t *mc); /* */ |
dev | 167 | drivers/net/eql.c | static int eql_s_master_cfg(struct device *dev, master_config_t *mc); /* */ |
dev | 169 | drivers/net/eql.c | static inline int eql_is_slave(struct device *dev); /* */ |
dev | 170 | drivers/net/eql.c | static inline int eql_is_master(struct device *dev); /* */ |
dev | 181 | drivers/net/eql.c | static slave_queue_t *eql_new_slave_queue(struct device *dev); /* */ |
dev | 188 | drivers/net/eql.c | static int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
dev | 198 | drivers/net/eql.c | static slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
dev | 210 | drivers/net/eql.c | eql_init(struct device *dev) |
dev | 221 | drivers/net/eql.c | dev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL); |
dev | 222 | drivers/net/eql.c | if (dev->priv == NULL) |
dev | 224 | drivers/net/eql.c | memset (dev->priv, 0, sizeof (equalizer_t)); |
dev | 225 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 229 | drivers/net/eql.c | kfree(dev->priv); |
dev | 230 | drivers/net/eql.c | dev->priv = NULL; |
dev | 236 | drivers/net/eql.c | eql->timer.data = (unsigned long) dev->priv; |
dev | 241 | drivers/net/eql.c | dev->open = eql_open; |
dev | 242 | drivers/net/eql.c | dev->stop = eql_close; |
dev | 243 | drivers/net/eql.c | dev->do_ioctl = eql_ioctl; |
dev | 244 | drivers/net/eql.c | dev->hard_start_xmit = eql_slave_xmit; |
dev | 245 | drivers/net/eql.c | dev->get_stats = eql_get_stats; |
dev | 251 | drivers/net/eql.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 253 | drivers/net/eql.c | dev->hard_header = eql_header; |
dev | 254 | drivers/net/eql.c | dev->rebuild_header = eql_rebuild_header; |
dev | 257 | drivers/net/eql.c | dev->mtu = EQL_DEFAULT_MTU; /* set to 576 in eql.h */ |
dev | 258 | drivers/net/eql.c | dev->flags = IFF_MASTER; |
dev | 260 | drivers/net/eql.c | dev->family = AF_INET; |
dev | 261 | drivers/net/eql.c | dev->pa_addr = 0; |
dev | 262 | drivers/net/eql.c | dev->pa_brdaddr = 0; |
dev | 263 | drivers/net/eql.c | dev->pa_mask = 0; |
dev | 264 | drivers/net/eql.c | dev->pa_alen = 4; |
dev | 266 | drivers/net/eql.c | dev->type = ARPHRD_SLIP; |
dev | 274 | drivers/net/eql.c | eql_open(struct device *dev) |
dev | 276 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 281 | drivers/net/eql.c | printk ("%s: open\n", dev->name); |
dev | 284 | drivers/net/eql.c | new_queue = eql_new_slave_queue (dev); |
dev | 288 | drivers/net/eql.c | new_queue->master_dev = dev; |
dev | 294 | drivers/net/eql.c | printk ("%s: adding timer\n", dev->name); |
dev | 309 | drivers/net/eql.c | eql_close(struct device *dev) |
dev | 311 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 315 | drivers/net/eql.c | printk ("%s: close\n", dev->name); |
dev | 319 | drivers/net/eql.c | printk ("%s: stopping timer\n", dev->name); |
dev | 335 | drivers/net/eql.c | eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
dev | 342 | drivers/net/eql.c | return eql_enslave (dev, (slaving_request_t *) ifr->ifr_data); |
dev | 344 | drivers/net/eql.c | return eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data); |
dev | 347 | drivers/net/eql.c | return eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data); |
dev | 349 | drivers/net/eql.c | return eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data); |
dev | 352 | drivers/net/eql.c | return eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data); |
dev | 354 | drivers/net/eql.c | return eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data); |
dev | 364 | drivers/net/eql.c | eql_slave_xmit(struct sk_buff *skb, struct device *dev) |
dev | 366 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 385 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
dev | 407 | drivers/net/eql.c | eql_get_stats(struct device *dev) |
dev | 409 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) dev->priv; |
dev | 417 | drivers/net/eql.c | eql_header(struct sk_buff *skb, struct device *dev, |
dev | 427 | drivers/net/eql.c | eql_rebuild_header(void *buff, struct device *dev, |
dev | 441 | drivers/net/eql.c | eql_enslave(struct device *dev, slaving_request_t *srqp) |
dev | 455 | drivers/net/eql.c | printk ("%s: enslave '%s' %ld bps\n", dev->name, |
dev | 459 | drivers/net/eql.c | master_dev = dev; /* for "clarity" */ |
dev | 470 | drivers/net/eql.c | s->dev = slave_dev; |
dev | 490 | drivers/net/eql.c | eql_emancipate(struct device *dev, slaving_request_t *srqp) |
dev | 504 | drivers/net/eql.c | printk ("%s: emancipate `%s`\n", dev->name, srq.slave_name); |
dev | 508 | drivers/net/eql.c | master_dev = dev; /* for "clarity" */ |
dev | 526 | drivers/net/eql.c | eql_g_slave_cfg(struct device *dev, slave_config_t *scp) |
dev | 541 | drivers/net/eql.c | printk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name); |
dev | 544 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 567 | drivers/net/eql.c | eql_s_slave_cfg(struct device *dev, slave_config_t *scp) |
dev | 580 | drivers/net/eql.c | printk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name); |
dev | 585 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 605 | drivers/net/eql.c | eql_g_master_cfg(struct device *dev, master_config_t *mcp) |
dev | 612 | drivers/net/eql.c | printk ("%s: get master config\n", dev->name); |
dev | 615 | drivers/net/eql.c | if ( eql_is_master (dev) ) |
dev | 622 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 634 | drivers/net/eql.c | eql_s_master_cfg(struct device *dev, master_config_t *mcp) |
dev | 645 | drivers/net/eql.c | printk ("%s: set master config\n", dev->name); |
dev | 650 | drivers/net/eql.c | if ( eql_is_master (dev) ) |
dev | 652 | drivers/net/eql.c | eql = (equalizer_t *) dev->priv; |
dev | 666 | drivers/net/eql.c | eql_is_slave(struct device *dev) |
dev | 668 | drivers/net/eql.c | if (dev) |
dev | 670 | drivers/net/eql.c | if ((dev->flags & IFF_SLAVE) == IFF_SLAVE) |
dev | 679 | drivers/net/eql.c | eql_is_master(struct device *dev) |
dev | 681 | drivers/net/eql.c | if (dev) |
dev | 683 | drivers/net/eql.c | if ((dev->flags & IFF_MASTER) == IFF_MASTER) |
dev | 764 | drivers/net/eql.c | eql_new_slave_queue(struct device *dev) |
dev | 785 | drivers/net/eql.c | queue->master_dev = dev; |
dev | 830 | drivers/net/eql.c | duplicate_slave = eql_find_slave_dev (queue, slave->dev); |
dev | 864 | drivers/net/eql.c | current->dev != 0 ) |
dev | 888 | drivers/net/eql.c | eql_insert_slave_dev(slave_queue_t *queue, struct device *dev) |
dev | 897 | drivers/net/eql.c | slave->dev = dev; |
dev | 914 | drivers/net/eql.c | eql_remove_slave_dev(slave_queue_t *queue, struct device *dev) |
dev | 920 | drivers/net/eql.c | target = eql_find_slave_dev (queue, dev); |
dev | 951 | drivers/net/eql.c | if (queue->best_slave->dev != 0) |
dev | 952 | drivers/net/eql.c | return queue->best_slave->dev; |
dev | 1014 | drivers/net/eql.c | if ( slave->dev != 0) |
dev | 1016 | drivers/net/eql.c | if ((slave->dev->flags & IFF_UP) == IFF_UP ) |
dev | 1056 | drivers/net/eql.c | eql_find_slave_dev(slave_queue_t *queue, struct device *dev) |
dev | 1062 | drivers/net/eql.c | while (slave != 0 && slave->dev != dev && slave != 0) |
dev | 1065 | drivers/net/eql.c | if (slave->dev != 0) |
dev | 1066 | drivers/net/eql.c | printk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name); |
dev | 1163 | 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 | if (dev->priv == NULL) |
dev | 553 | drivers/net/ewrk3.c | lp = (struct ewrk3_private *)dev->priv; |
dev | 554 | drivers/net/ewrk3.c | memset(dev->priv, 0, sizeof(struct ewrk3_private)); |
dev | 571 | drivers/net/ewrk3.c | dev->dma = 0; |
dev | 575 | drivers/net/ewrk3.c | if (dev->irq < 2) { |
dev | 590 | drivers/net/ewrk3.c | dev->irq = autoirq_report(1); |
dev | 591 | drivers/net/ewrk3.c | if ((dev->irq) && (irqnum == dev->irq)) { |
dev | 592 | drivers/net/ewrk3.c | printk(" and uses IRQ%d.\n", dev->irq); |
dev | 594 | drivers/net/ewrk3.c | if (!dev->irq) { |
dev | 608 | drivers/net/ewrk3.c | printk(" and requires IRQ%d.\n", dev->irq); |
dev | 627 | drivers/net/ewrk3.c | dev->open = &ewrk3_open; |
dev | 628 | drivers/net/ewrk3.c | dev->hard_start_xmit = &ewrk3_queue_pkt; |
dev | 629 | drivers/net/ewrk3.c | dev->stop = &ewrk3_close; |
dev | 630 | drivers/net/ewrk3.c | dev->get_stats = &ewrk3_get_stats; |
dev | 632 | drivers/net/ewrk3.c | dev->set_multicast_list = &set_multicast_list; |
dev | 634 | drivers/net/ewrk3.c | dev->do_ioctl = &ewrk3_ioctl; |
dev | 636 | drivers/net/ewrk3.c | dev->mem_start = 0; |
dev | 639 | drivers/net/ewrk3.c | ether_setup(dev); |
dev | 650 | drivers/net/ewrk3.c | ewrk3_open(struct device *dev) |
dev | 652 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 653 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
dev | 663 | drivers/net/ewrk3.c | if (request_irq(dev->irq, &ewrk3_interrupt, 0, "ewrk3")) { |
dev | 664 | drivers/net/ewrk3.c | printk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 668 | drivers/net/ewrk3.c | irq2dev_map[dev->irq] = dev; |
dev | 673 | drivers/net/ewrk3.c | ewrk3_init(dev); |
dev | 676 | drivers/net/ewrk3.c | printk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq); |
dev | 679 | drivers/net/ewrk3.c | printk("%2.2x:",(short)dev->dev_addr[i]); |
dev | 697 | drivers/net/ewrk3.c | dev->tbusy = 0; |
dev | 698 | drivers/net/ewrk3.c | dev->start = 1; |
dev | 699 | drivers/net/ewrk3.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 709 | drivers/net/ewrk3.c | dev->start = 0; |
dev | 710 | drivers/net/ewrk3.c | dev->tbusy = 1; |
dev | 711 | drivers/net/ewrk3.c | printk("%s: ewrk3 available for hard strapped set up only.\n", dev->name); |
dev | 727 | drivers/net/ewrk3.c | ewrk3_init(struct device *dev) |
dev | 729 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 731 | drivers/net/ewrk3.c | short iobase = dev->base_addr; |
dev | 736 | drivers/net/ewrk3.c | set_multicast_list(dev, HASH_TABLE_LEN, NULL); |
dev | 762 | drivers/net/ewrk3.c | ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev) |
dev | 764 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 765 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 770 | drivers/net/ewrk3.c | if (dev->tbusy || lp->lock) { |
dev | 771 | drivers/net/ewrk3.c | int tickssofar = jiffies - dev->trans_start; |
dev | 776 | drivers/net/ewrk3.c | dev->name, inb(EWRK3_CSR)); |
dev | 788 | drivers/net/ewrk3.c | ewrk3_init(dev); |
dev | 795 | drivers/net/ewrk3.c | dev->tbusy=0; |
dev | 796 | drivers/net/ewrk3.c | dev->trans_start = jiffies; |
dev | 799 | drivers/net/ewrk3.c | dev_tint(dev); |
dev | 806 | drivers/net/ewrk3.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 807 | drivers/net/ewrk3.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 838 | drivers/net/ewrk3.c | printk("%s: Oops - your private data area is hosed!\n",dev->name); |
dev | 879 | drivers/net/ewrk3.c | dev->trans_start = jiffies; |
dev | 898 | drivers/net/ewrk3.c | dev->tbusy = 0; |
dev | 913 | drivers/net/ewrk3.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 918 | drivers/net/ewrk3.c | if (dev == NULL) { |
dev | 921 | drivers/net/ewrk3.c | lp = (struct ewrk3_private *)dev->priv; |
dev | 922 | drivers/net/ewrk3.c | iobase = dev->base_addr; |
dev | 924 | drivers/net/ewrk3.c | if (dev->interrupt) |
dev | 925 | drivers/net/ewrk3.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 927 | drivers/net/ewrk3.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 942 | drivers/net/ewrk3.c | ewrk3_rx(dev); |
dev | 945 | drivers/net/ewrk3.c | ewrk3_tx(dev); |
dev | 957 | drivers/net/ewrk3.c | dev->tbusy = 0; /* clear TX busy flag */ |
dev | 967 | drivers/net/ewrk3.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 976 | drivers/net/ewrk3.c | ewrk3_rx(struct device *dev) |
dev | 978 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 979 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
dev | 1015 | drivers/net/ewrk3.c | printk("%s: Oops - your private data area is hosed!\n",dev->name); |
dev | 1042 | drivers/net/ewrk3.c | skb->dev = dev; |
dev | 1060 | drivers/net/ewrk3.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1080 | drivers/net/ewrk3.c | } else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) && |
dev | 1081 | drivers/net/ewrk3.c | (*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) { |
dev | 1090 | drivers/net/ewrk3.c | printk("%s: Insufficient memory; nuking packet.\n", dev->name); |
dev | 1121 | drivers/net/ewrk3.c | ewrk3_tx(struct device *dev) |
dev | 1123 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1124 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1156 | drivers/net/ewrk3.c | ewrk3_close(struct device *dev) |
dev | 1158 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1159 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1162 | drivers/net/ewrk3.c | dev->start = 0; |
dev | 1163 | drivers/net/ewrk3.c | dev->tbusy = 1; |
dev | 1167 | drivers/net/ewrk3.c | dev->name, inb(EWRK3_CSR)); |
dev | 1188 | drivers/net/ewrk3.c | free_irq(dev->irq); |
dev | 1190 | drivers/net/ewrk3.c | irq2dev_map[dev->irq] = 0; |
dev | 1201 | drivers/net/ewrk3.c | ewrk3_get_stats(struct device *dev) |
dev | 1203 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1218 | drivers/net/ewrk3.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1220 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1221 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1234 | drivers/net/ewrk3.c | SetMulticastFilter(dev, num_addrs, (char *)addrs, multicast_table); |
dev | 1253 | drivers/net/ewrk3.c | static void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table) |
dev | 1255 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1256 | drivers/net/ewrk3.c | int i, iobase = dev->base_addr; |
dev | 1336 | drivers/net/ewrk3.c | static struct device *isa_probe(struct device *dev) |
dev | 1354 | drivers/net/ewrk3.c | dev = alloc_device(dev, iobase); |
dev | 1356 | drivers/net/ewrk3.c | if ((status = ewrk3_hw_init(dev, iobase)) == 0) { |
dev | 1365 | drivers/net/ewrk3.c | printk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, iobase); |
dev | 1372 | drivers/net/ewrk3.c | return dev; |
dev | 1379 | drivers/net/ewrk3.c | static struct device *eisa_probe(struct device *dev) |
dev | 1397 | drivers/net/ewrk3.c | dev = alloc_device(dev, iobase); |
dev | 1399 | drivers/net/ewrk3.c | if ((status = ewrk3_hw_init(dev, iobase)) == 0) { |
dev | 1407 | drivers/net/ewrk3.c | return dev; |
dev | 1414 | drivers/net/ewrk3.c | static struct device *alloc_device(struct device *dev, int iobase) |
dev | 1419 | drivers/net/ewrk3.c | while (dev->next != NULL) { |
dev | 1420 | drivers/net/ewrk3.c | if (dev->next->base_addr == 0xffe0) break; |
dev | 1421 | drivers/net/ewrk3.c | dev = dev->next; /* walk through eth device list */ |
dev | 1429 | drivers/net/ewrk3.c | if (dev->next == NULL) { |
dev | 1430 | drivers/net/ewrk3.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 1432 | drivers/net/ewrk3.c | if (dev->next == NULL) { |
dev | 1443 | drivers/net/ewrk3.c | if ((dev->next != NULL) && |
dev | 1445 | drivers/net/ewrk3.c | dev = dev->next; /* point to the new device */ |
dev | 1446 | drivers/net/ewrk3.c | dev->name = (char *)(dev + sizeof(struct device)); |
dev | 1447 | drivers/net/ewrk3.c | sprintf(dev->name,"eth%d", num_eth);/* New device name */ |
dev | 1448 | drivers/net/ewrk3.c | dev->base_addr = iobase; /* assign the io address */ |
dev | 1449 | drivers/net/ewrk3.c | dev->next = NULL; /* mark the end of list */ |
dev | 1450 | drivers/net/ewrk3.c | dev->init = &ewrk3_probe; /* initialisation routine */ |
dev | 1454 | drivers/net/ewrk3.c | return dev; |
dev | 1578 | drivers/net/ewrk3.c | static unsigned char aprom_crc(struct device *dev, unsigned char *eeprom_image, char chipType) |
dev | 1583 | drivers/net/ewrk3.c | int iobase = dev->base_addr; |
dev | 1613 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 1615 | drivers/net/ewrk3.c | struct ewrk3_private *lp = (struct ewrk3_private *)dev->priv; |
dev | 1617 | drivers/net/ewrk3.c | int i, j, iobase = dev->base_addr, status = 0; |
dev | 1628 | drivers/net/ewrk3.c | tmp.addr[i] = dev->dev_addr[i]; |
dev | 1647 | drivers/net/ewrk3.c | dev->dev_addr[i] = tmp.addr[i]; |
dev | 1680 | drivers/net/ewrk3.c | printk("%s: Boo!\n", dev->name); |
dev | 1711 | drivers/net/ewrk3.c | set_multicast_list(dev, ioc->len, tmp.addr); |
dev | 1719 | drivers/net/ewrk3.c | set_multicast_list(dev, 0, NULL); |
dev | 98 | drivers/net/hp-plus.c | int hp_plus_probe(struct device *dev); |
dev | 99 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr); |
dev | 101 | drivers/net/hp-plus.c | static void hpp_reset_8390(struct device *dev); |
dev | 102 | drivers/net/hp-plus.c | static int hpp_open(struct device *dev); |
dev | 103 | drivers/net/hp-plus.c | static int hpp_close(struct device *dev); |
dev | 104 | drivers/net/hp-plus.c | static int hpp_mem_block_input(struct device *dev, int count, |
dev | 106 | drivers/net/hp-plus.c | static void hpp_mem_block_output(struct device *dev, int count, |
dev | 108 | drivers/net/hp-plus.c | static int hpp_io_block_input(struct device *dev, int count, |
dev | 110 | drivers/net/hp-plus.c | static void hpp_io_block_output(struct device *dev, int count, |
dev | 123 | drivers/net/hp-plus.c | int hp_plus_probe(struct device *dev) |
dev | 126 | drivers/net/hp-plus.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 129 | drivers/net/hp-plus.c | return hpp_probe1(dev, base_addr); |
dev | 137 | drivers/net/hp-plus.c | if (hpp_probe1(dev, ioaddr) == 0) |
dev | 146 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr) |
dev | 158 | drivers/net/hp-plus.c | if (dev == NULL) |
dev | 159 | drivers/net/hp-plus.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 161 | drivers/net/hp-plus.c | printk("%s: %s at %#3x,", dev->name, name, ioaddr); |
dev | 168 | drivers/net/hp-plus.c | dev->dev_addr[i] = inval; |
dev | 192 | drivers/net/hp-plus.c | dev->irq = irq; |
dev | 208 | drivers/net/hp-plus.c | dev->base_addr = ioaddr + NIC_OFFSET; |
dev | 210 | drivers/net/hp-plus.c | ethdev_init(dev); |
dev | 212 | drivers/net/hp-plus.c | dev->open = &hpp_open; |
dev | 213 | drivers/net/hp-plus.c | dev->stop = &hpp_close; |
dev | 229 | drivers/net/hp-plus.c | dev->mem_start = mem_start; |
dev | 230 | drivers/net/hp-plus.c | dev->rmem_start = dev->mem_start + TX_2X_PAGES*256; |
dev | 231 | drivers/net/hp-plus.c | dev->mem_end = dev->rmem_end |
dev | 232 | drivers/net/hp-plus.c | = dev->mem_start + (HP_STOP_PG - HP_START_PG)*256; |
dev | 236 | drivers/net/hp-plus.c | NS8390_init(dev, 0); |
dev | 244 | drivers/net/hp-plus.c | hpp_open(struct device *dev) |
dev | 246 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 249 | drivers/net/hp-plus.c | if (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus")) { |
dev | 267 | drivers/net/hp-plus.c | return ei_open(dev); |
dev | 271 | drivers/net/hp-plus.c | hpp_close(struct device *dev) |
dev | 273 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 276 | drivers/net/hp-plus.c | free_irq(dev->irq); |
dev | 277 | drivers/net/hp-plus.c | irq2dev_map[dev->irq] = NULL; |
dev | 278 | drivers/net/hp-plus.c | NS8390_init(dev, 0); |
dev | 286 | drivers/net/hp-plus.c | hpp_reset_8390(struct device *dev) |
dev | 288 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 304 | drivers/net/hp-plus.c | printk("%s: hp_reset_8390() did not complete.\n", dev->name); |
dev | 314 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 316 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 326 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 328 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 335 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
dev | 344 | drivers/net/hp-plus.c | hpp_io_block_output(struct device *dev, int count, |
dev | 347 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 354 | drivers/net/hp-plus.c | hpp_mem_block_output(struct device *dev, int count, |
dev | 357 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
dev | 362 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
dev | 59 | drivers/net/hp.c | int hp_probe(struct device *dev); |
dev | 60 | drivers/net/hp.c | int hp_probe1(struct device *dev, int ioaddr); |
dev | 62 | drivers/net/hp.c | static void hp_reset_8390(struct device *dev); |
dev | 63 | drivers/net/hp.c | static int hp_block_input(struct device *dev, int count, |
dev | 65 | drivers/net/hp.c | static void hp_block_output(struct device *dev, int count, |
dev | 67 | drivers/net/hp.c | static void hp_init_card(struct device *dev); |
dev | 82 | drivers/net/hp.c | int hp_probe(struct device *dev) |
dev | 85 | drivers/net/hp.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 88 | drivers/net/hp.c | return hp_probe1(dev, base_addr); |
dev | 96 | drivers/net/hp.c | if (hp_probe1(dev, ioaddr) == 0) |
dev | 104 | drivers/net/hp.c | int hp_probe1(struct device *dev, int ioaddr) |
dev | 128 | drivers/net/hp.c | if (dev == NULL) |
dev | 129 | drivers/net/hp.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 131 | drivers/net/hp.c | printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); |
dev | 134 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 137 | drivers/net/hp.c | if (dev->irq < 2) { |
dev | 151 | drivers/net/hp.c | dev->irq = *irqp; |
dev | 161 | drivers/net/hp.c | if (dev->irq == 2) |
dev | 162 | drivers/net/hp.c | dev->irq = 9; |
dev | 163 | drivers/net/hp.c | if (request_irq(dev->irq, ei_interrupt, 0, "hp")) { |
dev | 164 | drivers/net/hp.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 176 | drivers/net/hp.c | dev->base_addr = ioaddr + NIC_OFFSET; |
dev | 178 | drivers/net/hp.c | ethdev_init(dev); |
dev | 189 | drivers/net/hp.c | hp_init_card(dev); |
dev | 195 | drivers/net/hp.c | hp_reset_8390(struct device *dev) |
dev | 197 | drivers/net/hp.c | int hp_base = dev->base_addr - NIC_OFFSET; |
dev | 211 | drivers/net/hp.c | printk("%s: hp_reset_8390() did not complete.\n", dev->name); |
dev | 223 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 225 | drivers/net/hp.c | int nic_base = dev->base_addr; |
dev | 251 | drivers/net/hp.c | dev->name, ring_offset + xfer_count, addr); |
dev | 258 | drivers/net/hp.c | hp_block_output(struct device *dev, int count, |
dev | 261 | drivers/net/hp.c | int nic_base = dev->base_addr; |
dev | 309 | drivers/net/hp.c | dev->name, (start_page << 8) + count, addr); |
dev | 317 | drivers/net/hp.c | hp_init_card(struct device *dev) |
dev | 319 | drivers/net/hp.c | int irq = dev->irq; |
dev | 320 | drivers/net/hp.c | NS8390_init(dev, 0); |
dev | 322 | drivers/net/hp.c | dev->base_addr - NIC_OFFSET + HP_CONFIGURE); |
dev | 192 | drivers/net/hp100.c | static int hp100_probe1( struct device *dev, int ioaddr, int bus ); |
dev | 193 | drivers/net/hp100.c | static int hp100_open( struct device *dev ); |
dev | 194 | drivers/net/hp100.c | static int hp100_close( struct device *dev ); |
dev | 195 | drivers/net/hp100.c | static int hp100_start_xmit( struct sk_buff *skb, struct device *dev ); |
dev | 196 | drivers/net/hp100.c | static void hp100_rx( struct device *dev ); |
dev | 197 | drivers/net/hp100.c | static struct enet_statistics *hp100_get_stats( struct device *dev ); |
dev | 198 | drivers/net/hp100.c | static void hp100_update_stats( struct device *dev ); |
dev | 201 | drivers/net/hp100.c | static void hp100_set_multicast_list( struct device *dev, int num_addrs, void *addrs ); |
dev | 205 | drivers/net/hp100.c | static void hp100_start_interface( struct device *dev ); |
dev | 206 | drivers/net/hp100.c | static void hp100_stop_interface( struct device *dev ); |
dev | 207 | drivers/net/hp100.c | static void hp100_load_eeprom( struct device *dev ); |
dev | 208 | drivers/net/hp100.c | static int hp100_sense_lan( struct device *dev ); |
dev | 209 | drivers/net/hp100.c | static int hp100_login_to_vg_hub( struct device *dev ); |
dev | 210 | drivers/net/hp100.c | static int hp100_down_vg_link( struct device *dev ); |
dev | 216 | drivers/net/hp100.c | int hp100_probe( struct device *dev ) |
dev | 218 | drivers/net/hp100.c | int base_addr = dev ? dev -> base_addr : 0; |
dev | 228 | drivers/net/hp100.c | return hp100_probe1( dev, base_addr, HP100_BUS_ISA ); |
dev | 230 | drivers/net/hp100.c | return hp100_probe1( dev, base_addr, HP100_BUS_EISA ); |
dev | 279 | drivers/net/hp100.c | if ( hp100_probe1( dev, ioaddr, HP100_BUS_PCI ) == 0 ) return 0; |
dev | 290 | drivers/net/hp100.c | if ( hp100_probe1( dev, ioaddr, HP100_BUS_EISA ) == 0 ) return 0; |
dev | 298 | drivers/net/hp100.c | if ( hp100_probe1( dev, ioaddr, HP100_BUS_ISA ) == 0 ) return 0; |
dev | 304 | drivers/net/hp100.c | static int hp100_probe1( struct device *dev, int ioaddr, int bus ) |
dev | 314 | drivers/net/hp100.c | if ( dev == NULL ) |
dev | 329 | drivers/net/hp100.c | dev -> base_addr = ioaddr; |
dev | 410 | drivers/net/hp100.c | if ( ( dev -> priv = kmalloc( sizeof( struct hp100_private ), GFP_KERNEL ) ) == NULL ) |
dev | 412 | drivers/net/hp100.c | memset( dev -> priv, 0, sizeof( struct hp100_private ) ); |
dev | 414 | drivers/net/hp100.c | lp = (struct hp100_private *)dev -> priv; |
dev | 424 | drivers/net/hp100.c | dev -> base_addr = ioaddr; |
dev | 426 | drivers/net/hp100.c | dev -> irq = hp100_inb( IRQ_CHANNEL ) & HP100_IRQ_MASK; |
dev | 427 | drivers/net/hp100.c | if ( dev -> irq == 2 ) dev -> irq = 9; |
dev | 431 | drivers/net/hp100.c | dev -> open = hp100_open; |
dev | 432 | drivers/net/hp100.c | dev -> stop = hp100_close; |
dev | 433 | drivers/net/hp100.c | dev -> hard_start_xmit = hp100_start_xmit; |
dev | 434 | drivers/net/hp100.c | dev -> get_stats = hp100_get_stats; |
dev | 436 | drivers/net/hp100.c | dev -> set_multicast_list = &hp100_set_multicast_list; |
dev | 439 | drivers/net/hp100.c | request_region( dev -> base_addr, HP100_REGION_SIZE, eid -> name ); |
dev | 443 | drivers/net/hp100.c | dev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i ); |
dev | 447 | drivers/net/hp100.c | ether_setup( dev ); |
dev | 449 | drivers/net/hp100.c | lp -> lan_type = hp100_sense_lan( dev ); |
dev | 452 | drivers/net/hp100.c | dev -> name, lp -> id -> name, ioaddr, dev -> irq ); |
dev | 463 | drivers/net/hp100.c | dev -> name, (u_long)mem_ptr_phys, (u_long)mem_ptr_phys + 0x1fff ); |
dev | 468 | drivers/net/hp100.c | printk( "%s: ", dev -> name ); |
dev | 482 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 491 | drivers/net/hp100.c | static int hp100_open( struct device *dev ) |
dev | 494 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 495 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 497 | drivers/net/hp100.c | if ( request_irq( dev -> irq, hp100_interrupt, SA_INTERRUPT, lp -> id -> name ) ) |
dev | 499 | drivers/net/hp100.c | printk( "%s: unable to get IRQ %d\n", dev -> name, dev -> irq ); |
dev | 502 | drivers/net/hp100.c | irq2dev_map[ dev -> irq ] = dev; |
dev | 508 | drivers/net/hp100.c | dev -> tbusy = 0; |
dev | 509 | drivers/net/hp100.c | dev -> trans_start = jiffies; |
dev | 510 | drivers/net/hp100.c | dev -> interrupt = 0; |
dev | 511 | drivers/net/hp100.c | dev -> start = 1; |
dev | 513 | drivers/net/hp100.c | lp -> lan_type = hp100_sense_lan( dev ); |
dev | 520 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 521 | drivers/net/hp100.c | hp100_load_eeprom( dev ); |
dev | 533 | drivers/net/hp100.c | hp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i ); |
dev | 549 | drivers/net/hp100.c | lp -> hub_status = hp100_login_to_vg_hub( dev ); |
dev | 551 | drivers/net/hp100.c | hp100_start_interface( dev ); |
dev | 556 | drivers/net/hp100.c | static int hp100_close( struct device *dev ) |
dev | 558 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 559 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 564 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 567 | drivers/net/hp100.c | hp100_login_to_vg_hub( dev ); |
dev | 569 | drivers/net/hp100.c | dev -> tbusy = 1; |
dev | 570 | drivers/net/hp100.c | dev -> start = 0; |
dev | 572 | drivers/net/hp100.c | free_irq( dev -> irq ); |
dev | 573 | drivers/net/hp100.c | irq2dev_map[ dev -> irq ] = NULL; |
dev | 584 | drivers/net/hp100.c | static int hp100_start_xmit( struct sk_buff *skb, struct device *dev ) |
dev | 587 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 589 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 593 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 594 | drivers/net/hp100.c | if ( ( lp -> lan_type = hp100_sense_lan( dev ) ) < 0 ) |
dev | 596 | drivers/net/hp100.c | printk( "%s: no connection found - check wire\n", dev -> name ); |
dev | 597 | drivers/net/hp100.c | hp100_start_interface( dev ); /* 10Mb/s RX packets maybe handled */ |
dev | 601 | drivers/net/hp100.c | lp -> hub_status = hp100_login_to_vg_hub( dev ); |
dev | 602 | drivers/net/hp100.c | hp100_start_interface( dev ); |
dev | 610 | drivers/net/hp100.c | if ( jiffies - dev -> trans_start < 2 * HZ ) return -EAGAIN; |
dev | 614 | drivers/net/hp100.c | printk( "%s: login to 100Mb/s hub retry\n", dev -> name ); |
dev | 615 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 616 | drivers/net/hp100.c | lp -> hub_status = hp100_login_to_vg_hub( dev ); |
dev | 617 | drivers/net/hp100.c | hp100_start_interface( dev ); |
dev | 622 | drivers/net/hp100.c | i = hp100_sense_lan( dev ); |
dev | 626 | drivers/net/hp100.c | printk( "%s: link down detected\n", dev -> name ); |
dev | 631 | drivers/net/hp100.c | printk( "%s: cable change 10Mb/s <-> 100Mb/s detected\n", dev -> name ); |
dev | 633 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 635 | drivers/net/hp100.c | lp -> hub_status = hp100_login_to_vg_hub( dev ); |
dev | 636 | drivers/net/hp100.c | hp100_start_interface( dev ); |
dev | 640 | drivers/net/hp100.c | printk( "%s: interface reset\n", dev -> name ); |
dev | 641 | drivers/net/hp100.c | hp100_stop_interface( dev ); |
dev | 642 | drivers/net/hp100.c | hp100_start_interface( dev ); |
dev | 645 | drivers/net/hp100.c | dev -> trans_start = jiffies; |
dev | 651 | drivers/net/hp100.c | dev_tint( dev ); |
dev | 698 | drivers/net/hp100.c | dev -> trans_start = jiffies; |
dev | 714 | drivers/net/hp100.c | static void hp100_rx( struct device *dev ) |
dev | 717 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 718 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 725 | drivers/net/hp100.c | if ( ( lp -> lan_type = hp100_sense_lan( dev ) ) == HP100_LAN_100 ) |
dev | 726 | drivers/net/hp100.c | lp -> hub_status = hp100_login_to_vg_hub( dev ); |
dev | 775 | drivers/net/hp100.c | skb -> dev = dev; |
dev | 786 | drivers/net/hp100.c | skb -> protocol = eth_type_trans( skb, dev ); |
dev | 811 | drivers/net/hp100.c | static struct enet_statistics *hp100_get_stats( struct device *dev ) |
dev | 813 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 816 | drivers/net/hp100.c | hp100_update_stats( dev ); |
dev | 818 | drivers/net/hp100.c | return &((struct hp100_private *)dev -> priv) -> stats; |
dev | 821 | drivers/net/hp100.c | static void hp100_update_stats( struct device *dev ) |
dev | 823 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 825 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 866 | drivers/net/hp100.c | static void hp100_set_multicast_list( struct device *dev, int num_addrs, void *addrs ) |
dev | 868 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 869 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 914 | drivers/net/hp100.c | struct device *dev = (struct device *)irq2dev_map[ irq ]; |
dev | 919 | drivers/net/hp100.c | if ( dev == NULL ) return; |
dev | 920 | drivers/net/hp100.c | ioaddr = dev -> base_addr; |
dev | 921 | drivers/net/hp100.c | if ( dev -> interrupt ) |
dev | 922 | drivers/net/hp100.c | printk( "%s: re-entering the interrupt handler\n", dev -> name ); |
dev | 924 | drivers/net/hp100.c | dev -> interrupt = 1; |
dev | 932 | drivers/net/hp100.c | hp100_rx( dev ); |
dev | 941 | drivers/net/hp100.c | lp = (struct hp100_private *)dev -> priv; |
dev | 942 | drivers/net/hp100.c | hp100_update_stats( dev ); |
dev | 948 | drivers/net/hp100.c | dev -> interrupt = 0; |
dev | 956 | drivers/net/hp100.c | static void hp100_start_interface( struct device *dev ) |
dev | 958 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 959 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 980 | drivers/net/hp100.c | static void hp100_stop_interface( struct device *dev ) |
dev | 982 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 997 | drivers/net/hp100.c | printk( "%s: hp100_stop_interface - timeout\n", dev -> name ); |
dev | 1000 | drivers/net/hp100.c | static void hp100_load_eeprom( struct device *dev ) |
dev | 1003 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 1010 | drivers/net/hp100.c | printk( "%s: hp100_load_eeprom - timeout\n", dev -> name ); |
dev | 1015 | drivers/net/hp100.c | static int hp100_sense_lan( struct device *dev ) |
dev | 1018 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 1020 | drivers/net/hp100.c | struct hp100_private *lp = (struct hp100_private *)dev -> priv; |
dev | 1040 | drivers/net/hp100.c | static int hp100_down_vg_link( struct device *dev ) |
dev | 1042 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 1064 | drivers/net/hp100.c | static int hp100_login_to_vg_hub( struct device *dev ) |
dev | 1067 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
dev | 1085 | drivers/net/hp100.c | if ( hp100_down_vg_link( dev ) < 0 ) /* if fail, try reset VG link */ |
dev | 1110 | drivers/net/hp100.c | printk( "%s: 100Mb cable training failed, check cable.\n", dev -> name ); |
dev | 1112 | drivers/net/hp100.c | printk( "%s: 100Mb node not accepted by hub, check frame type or security.\n", dev -> name ); |
dev | 1115 | drivers/net/hp100.c | hp100_down_vg_link( dev ); |
dev | 99 | drivers/net/ibmtr.c | #define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args) |
dev | 100 | drivers/net/ibmtr.c | #define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args) |
dev | 125 | drivers/net/ibmtr.c | void (*do_tok_int)(struct device *dev)=NULL; |
dev | 141 | drivers/net/ibmtr.c | int tok_probe(struct device *dev); |
dev | 147 | drivers/net/ibmtr.c | static void initial_tok_int(struct device *dev); |
dev | 149 | drivers/net/ibmtr.c | static void open_sap(unsigned char type,struct device *dev); |
dev | 151 | drivers/net/ibmtr.c | static void tr_rx(struct device *dev); |
dev | 152 | drivers/net/ibmtr.c | static void tr_tx(struct device *dev); |
dev | 154 | drivers/net/ibmtr.c | static int tok_open(struct device *dev); |
dev | 155 | drivers/net/ibmtr.c | static int tok_close(struct device *dev); |
dev | 156 | drivers/net/ibmtr.c | static int tok_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 157 | drivers/net/ibmtr.c | static struct enet_statistics * tok_get_stats(struct device *dev); |
dev | 185 | drivers/net/ibmtr.c | int tok_probe(struct device *dev) |
dev | 303 | drivers/net/ibmtr.c | dev->priv = ti; /* this seems like the logical use of the |
dev | 364 | drivers/net/ibmtr.c | dev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4); |
dev | 492 | drivers/net/ibmtr.c | if (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR") != 0) { |
dev | 497 | drivers/net/ibmtr.c | irq2dev_map[irq]=dev; |
dev | 511 | drivers/net/ibmtr.c | dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], |
dev | 512 | drivers/net/ibmtr.c | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); |
dev | 515 | drivers/net/ibmtr.c | dev->base_addr=PIOaddr; /* set the value for device */ |
dev | 517 | drivers/net/ibmtr.c | dev->open=tok_open; |
dev | 518 | drivers/net/ibmtr.c | dev->stop=tok_close; |
dev | 519 | drivers/net/ibmtr.c | dev->hard_start_xmit=tok_send_packet; |
dev | 520 | drivers/net/ibmtr.c | dev->get_stats = NULL; |
dev | 521 | drivers/net/ibmtr.c | dev->get_stats = tok_get_stats; |
dev | 522 | drivers/net/ibmtr.c | dev->set_multicast_list = NULL; |
dev | 523 | drivers/net/ibmtr.c | tr_setup(dev); |
dev | 524 | drivers/net/ibmtr.c | tok_init_card((unsigned long)dev); |
dev | 552 | drivers/net/ibmtr.c | static int tok_open(struct device *dev) { |
dev | 554 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *)dev->priv; |
dev | 557 | drivers/net/ibmtr.c | tok_init_card((unsigned long)dev); |
dev | 565 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 566 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 567 | drivers/net/ibmtr.c | dev->start=1; |
dev | 582 | drivers/net/ibmtr.c | static int tok_close(struct device *dev) { |
dev | 584 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 611 | drivers/net/ibmtr.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 613 | drivers/net/ibmtr.c | DPRINTK("Int from tok_driver, dev : %p\n",dev); |
dev | 615 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 625 | drivers/net/ibmtr.c | dev->interrupt=1; |
dev | 649 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 659 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 674 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 687 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 722 | drivers/net/ibmtr.c | open_sap(EXTENDED_SAP,dev); |
dev | 731 | drivers/net/ibmtr.c | tr_timer.data=(unsigned long)dev; |
dev | 746 | drivers/net/ibmtr.c | tr_timer.data=(unsigned long)dev; |
dev | 782 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 817 | drivers/net/ibmtr.c | tr_rx(dev); |
dev | 828 | drivers/net/ibmtr.c | tr_timer.data=(unsigned long)dev; |
dev | 839 | drivers/net/ibmtr.c | dev->tbusy=1; /* really srb busy... */ |
dev | 845 | drivers/net/ibmtr.c | tr_tx(dev); |
dev | 877 | drivers/net/ibmtr.c | dev->interrupt=0; |
dev | 884 | drivers/net/ibmtr.c | initial_tok_int(dev); |
dev | 892 | drivers/net/ibmtr.c | static void initial_tok_int(struct device *dev) { |
dev | 900 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 948 | drivers/net/ibmtr.c | printk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" ); |
dev | 952 | drivers/net/ibmtr.c | tok_open_adapter((unsigned long)dev); |
dev | 961 | drivers/net/ibmtr.c | struct device *dev=(struct device *)dev_addr; |
dev | 962 | drivers/net/ibmtr.c | PIOaddr = dev->base_addr; |
dev | 963 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 970 | drivers/net/ibmtr.c | dev->tbusy=1; /* nothing can be done before reset and open completed */ |
dev | 995 | drivers/net/ibmtr.c | static void open_sap(unsigned char type,struct device *dev) { |
dev | 997 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1015 | drivers/net/ibmtr.c | struct device *dev=(struct device *)dev_addr; |
dev | 1018 | drivers/net/ibmtr.c | ti=(struct tok_info *) dev->priv; |
dev | 1044 | drivers/net/ibmtr.c | static void tr_tx(struct device *dev) { |
dev | 1046 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1133 | drivers/net/ibmtr.c | dev->tbusy=0; |
dev | 1139 | drivers/net/ibmtr.c | static void tr_rx(struct device *dev) { |
dev | 1141 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1202 | drivers/net/ibmtr.c | skb->dev=dev; |
dev | 1239 | drivers/net/ibmtr.c | skb->protocol=tr_type_trans(skb,dev); |
dev | 1245 | drivers/net/ibmtr.c | static int tok_send_packet(struct sk_buff *skb, struct device *dev) { |
dev | 1247 | drivers/net/ibmtr.c | struct tok_info *ti=(struct tok_info *) dev->priv; |
dev | 1253 | drivers/net/ibmtr.c | if (dev->tbusy) { |
dev | 1254 | drivers/net/ibmtr.c | int ticks_waited=jiffies - dev->trans_start; |
dev | 1260 | drivers/net/ibmtr.c | dev->trans_start+=5; /* we fake the transmission start time... */ |
dev | 1267 | drivers/net/ibmtr.c | dev_tint(dev); |
dev | 1271 | drivers/net/ibmtr.c | if(set_bit(0,(void *)&dev->tbusy)!=0) |
dev | 1281 | drivers/net/ibmtr.c | dev->trans_start=jiffies; |
dev | 1292 | drivers/net/ibmtr.c | static struct enet_statistics * tok_get_stats(struct device *dev) { |
dev | 1295 | drivers/net/ibmtr.c | toki=(struct tok_info *) dev->priv; |
dev | 254 | drivers/net/lance.c | static int lance_open(struct device *dev); |
dev | 255 | drivers/net/lance.c | static void lance_init_ring(struct device *dev); |
dev | 256 | drivers/net/lance.c | static int lance_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 257 | drivers/net/lance.c | static int lance_rx(struct device *dev); |
dev | 259 | drivers/net/lance.c | static int lance_close(struct device *dev); |
dev | 260 | drivers/net/lance.c | static struct enet_statistics *lance_get_stats(struct device *dev); |
dev | 262 | drivers/net/lance.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 338 | drivers/net/lance.c | struct device *dev; |
dev | 396 | drivers/net/lance.c | dev = init_etherdev(0, 7 |
dev | 405 | drivers/net/lance.c | printk("%s: %s at %#3x,", dev->name, chipname, ioaddr); |
dev | 410 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 412 | drivers/net/lance.c | dev->base_addr = ioaddr; |
dev | 416 | drivers/net/lance.c | dev->priv = (void *)(((int)dev->priv + 7) & ~7); |
dev | 417 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
dev | 427 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 443 | drivers/net/lance.c | dev->dma = 4; /* Native bus-master, no DMA channel needed. */ |
dev | 444 | drivers/net/lance.c | dev->irq = pci_irq_line; |
dev | 449 | drivers/net/lance.c | dev->dma = dma_tbl[(port_val >> 4) & 3]; |
dev | 450 | drivers/net/lance.c | dev->irq = irq_tbl[(port_val >> 2) & 3]; |
dev | 451 | drivers/net/lance.c | printk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma); |
dev | 456 | drivers/net/lance.c | dev->dma = dma_tbl[(reset_val >> 2) & 3]; |
dev | 457 | drivers/net/lance.c | dev->irq = irq_tbl[(reset_val >> 4) & 7]; |
dev | 458 | drivers/net/lance.c | printk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma); |
dev | 463 | drivers/net/lance.c | dev->dma = bus_info & 0x07; |
dev | 464 | drivers/net/lance.c | dev->irq = (bus_info >> 4) & 0x0F; |
dev | 467 | drivers/net/lance.c | if (dev->mem_start & 0x07) |
dev | 468 | drivers/net/lance.c | dev->dma = dev->mem_start & 0x07; |
dev | 471 | drivers/net/lance.c | if (dev->dma == 0) { |
dev | 477 | drivers/net/lance.c | if (dev->irq >= 2) |
dev | 478 | drivers/net/lance.c | printk(" assigned IRQ %d", dev->irq); |
dev | 488 | drivers/net/lance.c | dev->irq = autoirq_report(1); |
dev | 489 | drivers/net/lance.c | if (dev->irq) |
dev | 490 | drivers/net/lance.c | printk(", probed IRQ %d", dev->irq); |
dev | 499 | drivers/net/lance.c | dev->dma = 4; |
dev | 502 | drivers/net/lance.c | if (dev->dma == 4) { |
dev | 504 | drivers/net/lance.c | } else if (dev->dma) { |
dev | 505 | drivers/net/lance.c | if (request_dma(dev->dma, chipname)) { |
dev | 506 | drivers/net/lance.c | printk("DMA %d allocation failed.\n", dev->dma); |
dev | 509 | drivers/net/lance.c | printk(", assigned DMA %d.\n", dev->dma); |
dev | 532 | drivers/net/lance.c | dev->dma = dma; |
dev | 533 | drivers/net/lance.c | printk(", DMA %d.\n", dev->dma); |
dev | 557 | drivers/net/lance.c | dev->open = &lance_open; |
dev | 558 | drivers/net/lance.c | dev->hard_start_xmit = &lance_start_xmit; |
dev | 559 | drivers/net/lance.c | dev->stop = &lance_close; |
dev | 560 | drivers/net/lance.c | dev->get_stats = &lance_get_stats; |
dev | 561 | drivers/net/lance.c | dev->set_multicast_list = &set_multicast_list; |
dev | 568 | drivers/net/lance.c | lance_open(struct device *dev) |
dev | 570 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 571 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 574 | drivers/net/lance.c | if (dev->irq == 0 || |
dev | 575 | drivers/net/lance.c | request_irq(dev->irq, &lance_interrupt, 0, lp->name)) { |
dev | 582 | drivers/net/lance.c | irq2dev_map[dev->irq] = dev; |
dev | 588 | drivers/net/lance.c | if (dev->dma != 4) { |
dev | 589 | drivers/net/lance.c | enable_dma(dev->dma); |
dev | 590 | drivers/net/lance.c | set_dma_mode(dev->dma, DMA_MODE_CASCADE); |
dev | 605 | drivers/net/lance.c | dev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring, |
dev | 608 | drivers/net/lance.c | lance_init_ring(dev); |
dev | 621 | drivers/net/lance.c | dev->tbusy = 0; |
dev | 622 | drivers/net/lance.c | dev->interrupt = 0; |
dev | 623 | drivers/net/lance.c | dev->start = 1; |
dev | 636 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
dev | 654 | drivers/net/lance.c | lance_purge_tx_ring(struct device *dev) |
dev | 656 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 670 | drivers/net/lance.c | lance_init_ring(struct device *dev) |
dev | 672 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 691 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 699 | drivers/net/lance.c | lance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit) |
dev | 701 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 705 | drivers/net/lance.c | lance_purge_tx_ring(dev); |
dev | 706 | drivers/net/lance.c | lance_init_ring(dev); |
dev | 708 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 709 | drivers/net/lance.c | outw(csr0_bits, dev->base_addr + LANCE_DATA); |
dev | 713 | drivers/net/lance.c | lance_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 715 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 716 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 721 | drivers/net/lance.c | if (dev->tbusy) { |
dev | 722 | drivers/net/lance.c | int tickssofar = jiffies - dev->trans_start; |
dev | 727 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
dev | 747 | drivers/net/lance.c | lance_restart(dev, 0x0043, 1); |
dev | 749 | drivers/net/lance.c | dev->tbusy=0; |
dev | 750 | drivers/net/lance.c | dev->trans_start = jiffies; |
dev | 756 | drivers/net/lance.c | dev_tint(dev); |
dev | 765 | drivers/net/lance.c | printk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name, |
dev | 772 | drivers/net/lance.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 773 | drivers/net/lance.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 779 | drivers/net/lance.c | printk("%s: tx queue lock!.\n", dev->name); |
dev | 806 | drivers/net/lance.c | dev->name, (int)(skb->data)); |
dev | 821 | drivers/net/lance.c | dev->trans_start = jiffies; |
dev | 827 | drivers/net/lance.c | dev->tbusy=0; |
dev | 839 | drivers/net/lance.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 844 | drivers/net/lance.c | if (dev == NULL) { |
dev | 849 | drivers/net/lance.c | ioaddr = dev->base_addr; |
dev | 850 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
dev | 851 | drivers/net/lance.c | if (dev->interrupt) |
dev | 852 | drivers/net/lance.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 854 | drivers/net/lance.c | dev->interrupt = 1; |
dev | 856 | drivers/net/lance.c | outw(0x00, dev->base_addr + LANCE_ADDR); |
dev | 857 | drivers/net/lance.c | while ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600 |
dev | 860 | drivers/net/lance.c | outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); |
dev | 866 | drivers/net/lance.c | dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); |
dev | 869 | drivers/net/lance.c | lance_rx(dev); |
dev | 895 | drivers/net/lance.c | dev->name, csr0); |
dev | 922 | drivers/net/lance.c | if (lp->tx_full && dev->tbusy |
dev | 926 | drivers/net/lance.c | dev->tbusy = 0; |
dev | 938 | drivers/net/lance.c | dev->name, csr0); |
dev | 945 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 946 | drivers/net/lance.c | outw(0x0004, dev->base_addr + LANCE_DATA); |
dev | 947 | drivers/net/lance.c | lance_restart(dev, 0x0002, 0); |
dev | 952 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 953 | drivers/net/lance.c | outw(0x7940, dev->base_addr + LANCE_DATA); |
dev | 957 | drivers/net/lance.c | dev->name, inw(ioaddr + LANCE_ADDR), |
dev | 958 | drivers/net/lance.c | inw(dev->base_addr + LANCE_DATA)); |
dev | 960 | drivers/net/lance.c | dev->interrupt = 0; |
dev | 965 | drivers/net/lance.c | lance_rx(struct device *dev) |
dev | 967 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 994 | drivers/net/lance.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 1006 | drivers/net/lance.c | skb->dev = dev; |
dev | 1012 | drivers/net/lance.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1031 | drivers/net/lance.c | lance_close(struct device *dev) |
dev | 1033 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 1034 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 1036 | drivers/net/lance.c | dev->start = 0; |
dev | 1037 | drivers/net/lance.c | dev->tbusy = 1; |
dev | 1047 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
dev | 1053 | drivers/net/lance.c | if (dev->dma != 4) |
dev | 1054 | drivers/net/lance.c | disable_dma(dev->dma); |
dev | 1056 | drivers/net/lance.c | free_irq(dev->irq); |
dev | 1058 | drivers/net/lance.c | irq2dev_map[dev->irq] = 0; |
dev | 1064 | drivers/net/lance.c | lance_get_stats(struct device *dev) |
dev | 1066 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 1067 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
dev | 1091 | drivers/net/lance.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1093 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
dev | 1111 | drivers/net/lance.c | printk("%s: Promiscuous mode enabled.\n", dev->name); |
dev | 1116 | drivers/net/lance.c | lance_restart(dev, 0x0142, 0); /* Resume normal operation */ |
dev | 48 | drivers/net/loopback.c | static int loopback_xmit(struct sk_buff *skb, struct device *dev) |
dev | 50 | drivers/net/loopback.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 54 | drivers/net/loopback.c | if (skb == NULL || dev == NULL) |
dev | 59 | drivers/net/loopback.c | if (dev->tbusy != 0) |
dev | 65 | drivers/net/loopback.c | dev->tbusy = 1; |
dev | 95 | drivers/net/loopback.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 96 | drivers/net/loopback.c | skb->dev=dev; |
dev | 107 | drivers/net/loopback.c | dev->tbusy = 0; |
dev | 112 | drivers/net/loopback.c | static struct enet_statistics *get_stats(struct device *dev) |
dev | 114 | drivers/net/loopback.c | return (struct enet_statistics *)dev->priv; |
dev | 117 | drivers/net/loopback.c | static int loopback_open(struct device *dev) |
dev | 119 | drivers/net/loopback.c | dev->flags|=IFF_LOOPBACK; |
dev | 124 | drivers/net/loopback.c | int loopback_init(struct device *dev) |
dev | 128 | drivers/net/loopback.c | dev->mtu = 2000; /* MTU */ |
dev | 129 | drivers/net/loopback.c | dev->tbusy = 0; |
dev | 130 | drivers/net/loopback.c | dev->hard_start_xmit = loopback_xmit; |
dev | 131 | drivers/net/loopback.c | dev->open = NULL; |
dev | 132 | drivers/net/loopback.c | dev->hard_header = eth_header; |
dev | 133 | drivers/net/loopback.c | dev->hard_header_len = ETH_HLEN; /* 14 */ |
dev | 134 | drivers/net/loopback.c | dev->addr_len = ETH_ALEN; /* 6 */ |
dev | 135 | drivers/net/loopback.c | dev->type = ARPHRD_ETHER; /* 0x0001 */ |
dev | 136 | drivers/net/loopback.c | dev->rebuild_header = eth_rebuild_header; |
dev | 137 | drivers/net/loopback.c | dev->open = loopback_open; |
dev | 138 | drivers/net/loopback.c | dev->flags = IFF_LOOPBACK|IFF_BROADCAST; |
dev | 139 | drivers/net/loopback.c | dev->family = AF_INET; |
dev | 141 | drivers/net/loopback.c | dev->pa_addr = in_aton("127.0.0.1"); |
dev | 142 | drivers/net/loopback.c | dev->pa_brdaddr = in_aton("127.255.255.255"); |
dev | 143 | drivers/net/loopback.c | dev->pa_mask = in_aton("255.0.0.0"); |
dev | 144 | drivers/net/loopback.c | dev->pa_alen = 4; |
dev | 146 | drivers/net/loopback.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 147 | drivers/net/loopback.c | if (dev->priv == NULL) |
dev | 149 | drivers/net/loopback.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 150 | drivers/net/loopback.c | dev->get_stats = get_stats; |
dev | 157 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 80 | drivers/net/ne.c | #define NE_BASE (dev->base_addr) |
dev | 91 | drivers/net/ne.c | int ne_probe(struct device *dev); |
dev | 92 | drivers/net/ne.c | static int ne_probe1(struct device *dev, int ioaddr); |
dev | 94 | drivers/net/ne.c | static void ne_reset_8390(struct device *dev); |
dev | 95 | drivers/net/ne.c | static int ne_block_input(struct device *dev, int count, |
dev | 97 | drivers/net/ne.c | static void ne_block_output(struct device *dev, const int count, |
dev | 127 | drivers/net/ne.c | int ne_probe(struct device *dev) |
dev | 130 | drivers/net/ne.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 133 | drivers/net/ne.c | return ne_probe1(dev, base_addr); |
dev | 141 | drivers/net/ne.c | if (ne_probe1(dev, ioaddr) == 0) |
dev | 149 | drivers/net/ne.c | static int ne_probe1(struct device *dev, int ioaddr) |
dev | 242 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
dev | 285 | drivers/net/ne.c | if (dev == NULL) |
dev | 286 | drivers/net/ne.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 288 | drivers/net/ne.c | if (dev->irq < 2) { |
dev | 295 | drivers/net/ne.c | dev->irq = autoirq_report(0); |
dev | 297 | drivers/net/ne.c | printk(" autoirq is %d\n", dev->irq); |
dev | 298 | drivers/net/ne.c | } else if (dev->irq == 2) |
dev | 301 | drivers/net/ne.c | dev->irq = 9; |
dev | 306 | drivers/net/ne.c | int irqval = request_irq (dev->irq, ei_interrupt, 0, wordlength==2 ? "ne2000":"ne1000"); |
dev | 308 | drivers/net/ne.c | printk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval); |
dev | 313 | drivers/net/ne.c | dev->base_addr = ioaddr; |
dev | 318 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
dev | 320 | drivers/net/ne.c | ethdev_init(dev); |
dev | 322 | drivers/net/ne.c | dev->name, name, ioaddr, dev->irq); |
dev | 341 | drivers/net/ne.c | NS8390_init(dev, 0); |
dev | 348 | drivers/net/ne.c | ne_reset_8390(struct device *dev) |
dev | 363 | drivers/net/ne.c | printk("%s: ne_reset_8390() did not complete.\n", dev->name); |
dev | 375 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 377 | drivers/net/ne.c | int nic_base = dev->base_addr; |
dev | 387 | drivers/net/ne.c | dev->name, ei_status.dmaing, ei_status.irqlock, |
dev | 388 | drivers/net/ne.c | dev->interrupt); |
dev | 429 | drivers/net/ne.c | dev->name, ring_offset + xfer_count, addr); |
dev | 438 | drivers/net/ne.c | ne_block_output(struct device *dev, int count, |
dev | 458 | drivers/net/ne.c | dev->name, ei_status.dmaing, ei_status.irqlock, |
dev | 459 | drivers/net/ne.c | dev->interrupt); |
dev | 518 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
dev | 527 | drivers/net/ne.c | printk("%s: timeout waiting for Tx RDC.\n", dev->name); |
dev | 528 | drivers/net/ne.c | ne_reset_8390(dev); |
dev | 529 | drivers/net/ne.c | NS8390_init(dev,1); |
dev | 97 | drivers/net/net_init.c | init_etherdev(struct device *dev, int sizeof_priv, unsigned long *mem_startp) |
dev | 103 | drivers/net/net_init.c | if (dev == NULL) { |
dev | 114 | drivers/net/net_init.c | dev = cur_dev; |
dev | 115 | drivers/net/net_init.c | dev->init = NULL; |
dev | 118 | drivers/net/net_init.c | dev->priv = (void*) *mem_startp; |
dev | 121 | drivers/net/net_init.c | dev->priv = sizeof_priv |
dev | 124 | drivers/net/net_init.c | if (dev->priv) memset(dev->priv, 0, sizeof_priv); |
dev | 132 | drivers/net/net_init.c | dev = (struct device *)*mem_startp; |
dev | 135 | drivers/net/net_init.c | dev = (struct device *)kmalloc(alloc_size, GFP_KERNEL); |
dev | 136 | drivers/net/net_init.c | memset(dev, 0, alloc_size); |
dev | 138 | drivers/net/net_init.c | dev->priv = (void *) (dev + 1); |
dev | 139 | drivers/net/net_init.c | dev->name = sizeof_priv + (char *)(dev + 1); |
dev | 145 | drivers/net/net_init.c | if (dev->name && |
dev | 146 | drivers/net/net_init.c | ((dev->name[0] == '\0') || (dev->name[0] == ' '))) { |
dev | 149 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
dev | 150 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 155 | drivers/net/net_init.c | ether_setup(dev); /* Hmmm, should this be called here? */ |
dev | 162 | drivers/net/net_init.c | (*old_devp)->next = dev; |
dev | 163 | drivers/net/net_init.c | dev->next = 0; |
dev | 165 | drivers/net/net_init.c | return dev; |
dev | 169 | drivers/net/net_init.c | static int eth_mac_addr(struct device *dev, void * addr) |
dev | 173 | drivers/net/net_init.c | if(dev->start) |
dev | 175 | drivers/net/net_init.c | memcpy(dev->dev_addr, ifr->ifr_hwaddr.sa_data,dev->hard_header_len); |
dev | 179 | drivers/net/net_init.c | void ether_setup(struct device *dev) |
dev | 185 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 188 | drivers/net/net_init.c | if (dev->name && (strncmp(dev->name, "eth", 3) == 0)) { |
dev | 189 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
dev | 191 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 193 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
dev | 196 | drivers/net/net_init.c | dev->name); |
dev | 200 | drivers/net/net_init.c | dev->hard_header = eth_header; |
dev | 201 | drivers/net/net_init.c | dev->rebuild_header = eth_rebuild_header; |
dev | 202 | drivers/net/net_init.c | dev->set_mac_address = eth_mac_addr; |
dev | 203 | drivers/net/net_init.c | dev->header_cache = eth_header_cache; |
dev | 205 | drivers/net/net_init.c | dev->type = ARPHRD_ETHER; |
dev | 206 | drivers/net/net_init.c | dev->hard_header_len = ETH_HLEN; |
dev | 207 | drivers/net/net_init.c | dev->mtu = 1500; /* eth_mtu */ |
dev | 208 | drivers/net/net_init.c | dev->addr_len = ETH_ALEN; |
dev | 210 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
dev | 214 | drivers/net/net_init.c | dev->flags = IFF_BROADCAST|IFF_MULTICAST; |
dev | 215 | drivers/net/net_init.c | dev->family = AF_INET; |
dev | 216 | drivers/net/net_init.c | dev->pa_addr = 0; |
dev | 217 | drivers/net/net_init.c | dev->pa_brdaddr = 0; |
dev | 218 | drivers/net/net_init.c | dev->pa_mask = 0; |
dev | 219 | drivers/net/net_init.c | dev->pa_alen = 4; |
dev | 224 | drivers/net/net_init.c | void tr_setup(struct device *dev) |
dev | 230 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 232 | drivers/net/net_init.c | dev->hard_header = tr_header; |
dev | 233 | drivers/net/net_init.c | dev->rebuild_header = tr_rebuild_header; |
dev | 235 | drivers/net/net_init.c | dev->type = ARPHRD_IEEE802; |
dev | 236 | drivers/net/net_init.c | dev->hard_header_len = TR_HLEN; |
dev | 237 | drivers/net/net_init.c | dev->mtu = 2000; /* bug in fragmenter...*/ |
dev | 238 | drivers/net/net_init.c | dev->addr_len = TR_ALEN; |
dev | 240 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
dev | 244 | drivers/net/net_init.c | dev->flags = IFF_BROADCAST; |
dev | 245 | drivers/net/net_init.c | dev->family = AF_INET; |
dev | 246 | drivers/net/net_init.c | dev->pa_addr = 0; |
dev | 247 | drivers/net/net_init.c | dev->pa_brdaddr = 0; |
dev | 248 | drivers/net/net_init.c | dev->pa_mask = 0; |
dev | 249 | drivers/net/net_init.c | dev->pa_alen = 4; |
dev | 254 | drivers/net/net_init.c | int ether_config(struct device *dev, struct ifmap *map) |
dev | 257 | drivers/net/net_init.c | dev->mem_start = map->mem_start; |
dev | 259 | drivers/net/net_init.c | dev->mem_end = map->mem_end; |
dev | 261 | drivers/net/net_init.c | dev->base_addr = map->base_addr; |
dev | 263 | drivers/net/net_init.c | dev->irq = map->irq; |
dev | 265 | drivers/net/net_init.c | dev->dma = map->dma; |
dev | 267 | drivers/net/net_init.c | dev->if_port = map->port; |
dev | 271 | drivers/net/net_init.c | int register_netdev(struct device *dev) |
dev | 280 | drivers/net/net_init.c | if (dev && dev->init) { |
dev | 281 | drivers/net/net_init.c | if (dev->name && |
dev | 282 | drivers/net/net_init.c | ((dev->name[0] == '\0') || (dev->name[0] == ' '))) { |
dev | 285 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
dev | 286 | drivers/net/net_init.c | printk("loading device '%s'...\n", dev->name); |
dev | 287 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 292 | drivers/net/net_init.c | if (dev->init(dev) != 0) { |
dev | 302 | drivers/net/net_init.c | d->next = dev; |
dev | 305 | drivers/net/net_init.c | dev_base = dev; |
dev | 306 | drivers/net/net_init.c | dev->next = NULL; |
dev | 312 | drivers/net/net_init.c | void unregister_netdev(struct device *dev) |
dev | 321 | drivers/net/net_init.c | if (dev == NULL) |
dev | 328 | drivers/net/net_init.c | if (dev->start) |
dev | 329 | drivers/net/net_init.c | printk("ERROR '%s' busy and not MOD_IN_USE.\n", dev->name); |
dev | 330 | drivers/net/net_init.c | if (dev_base == dev) |
dev | 331 | drivers/net/net_init.c | dev_base = dev->next; |
dev | 334 | drivers/net/net_init.c | while (d && (d->next != dev)) |
dev | 337 | drivers/net/net_init.c | if (d && (d->next == dev)) |
dev | 339 | drivers/net/net_init.c | d->next = dev->next; |
dev | 343 | drivers/net/net_init.c | printk("unregister_netdev: '%s' not found\n", dev->name); |
dev | 350 | drivers/net/net_init.c | if (ethdev_index[i] == dev) |
dev | 363 | drivers/net/net_init.c | dev_close(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 | 160 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr); |
dev | 162 | drivers/net/ni52.c | static int ni52_open(struct device *dev); |
dev | 163 | drivers/net/ni52.c | static int ni52_close(struct device *dev); |
dev | 165 | drivers/net/ni52.c | static struct enet_statistics *ni52_get_stats(struct device *dev); |
dev | 166 | drivers/net/ni52.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 169 | drivers/net/ni52.c | static int init586(struct device *dev,int num_addrs,void *addrs); |
dev | 170 | drivers/net/ni52.c | static int check586(struct device *dev,char *where,unsigned size); |
dev | 171 | drivers/net/ni52.c | static void alloc586(struct device *dev); |
dev | 172 | drivers/net/ni52.c | static void startrecv586(struct device *dev); |
dev | 173 | drivers/net/ni52.c | static void *alloc_rfa(struct device *dev,void *ptr); |
dev | 174 | drivers/net/ni52.c | static void ni52_rcv_int(struct device *dev); |
dev | 175 | drivers/net/ni52.c | static void ni52_xmt_int(struct device *dev); |
dev | 176 | drivers/net/ni52.c | static void ni52_rnr_int(struct device *dev); |
dev | 204 | drivers/net/ni52.c | static int ni52_close(struct device *dev) |
dev | 206 | drivers/net/ni52.c | free_irq(dev->irq); |
dev | 207 | drivers/net/ni52.c | irq2dev_map[dev->irq] = 0; |
dev | 211 | drivers/net/ni52.c | dev->start = 0; |
dev | 212 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 221 | drivers/net/ni52.c | static int ni52_open(struct device *dev) |
dev | 223 | drivers/net/ni52.c | alloc586(dev); |
dev | 224 | drivers/net/ni52.c | init586(dev,0,NULL); |
dev | 225 | drivers/net/ni52.c | startrecv586(dev); |
dev | 227 | drivers/net/ni52.c | if(request_irq(dev->irq, &ni52_interrupt,0,"ni52")) |
dev | 232 | drivers/net/ni52.c | irq2dev_map[dev->irq] = dev; |
dev | 234 | drivers/net/ni52.c | dev->interrupt = 0; |
dev | 235 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 236 | drivers/net/ni52.c | dev->start = 1; |
dev | 245 | drivers/net/ni52.c | static int check586(struct device *dev,char *where,unsigned size) |
dev | 247 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 282 | drivers/net/ni52.c | void alloc586(struct device *dev) |
dev | 284 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 290 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
dev | 307 | drivers/net/ni52.c | printk("%s: Init-Problems (alloc).\n",dev->name); |
dev | 316 | drivers/net/ni52.c | int ni52_probe(struct device *dev) |
dev | 319 | drivers/net/ni52.c | int base_addr = dev->base_addr; |
dev | 324 | drivers/net/ni52.c | return ni52_probe1(dev, base_addr); |
dev | 336 | drivers/net/ni52.c | dev->base_addr = ioaddr; |
dev | 337 | drivers/net/ni52.c | if (ni52_probe1(dev, ioaddr) == 0) |
dev | 341 | drivers/net/ni52.c | dev->base_addr = base_addr; |
dev | 345 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr) |
dev | 351 | drivers/net/ni52.c | dev->dev_addr[i] = inb(dev->base_addr+i); |
dev | 353 | drivers/net/ni52.c | if(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1 |
dev | 354 | drivers/net/ni52.c | || dev->dev_addr[2] != NI52_ADDR2) |
dev | 357 | drivers/net/ni52.c | printk("%s: Ni52 found at %#3lx, ",dev->name,dev->base_addr); |
dev | 361 | drivers/net/ni52.c | dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); |
dev | 363 | drivers/net/ni52.c | if (dev->priv == NULL) |
dev | 365 | drivers/net/ni52.c | memset((char *) dev->priv,0,sizeof(struct priv)); |
dev | 370 | drivers/net/ni52.c | if(dev->mem_start != 0) /* no auto-mem-probe */ |
dev | 373 | drivers/net/ni52.c | if(!check586(dev,(char *) dev->mem_start,size)) { |
dev | 375 | drivers/net/ni52.c | if(!check586(dev,(char *) dev->mem_start,size)) { |
dev | 376 | drivers/net/ni52.c | printk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start); |
dev | 389 | drivers/net/ni52.c | dev->mem_start = memaddrs[i]; |
dev | 391 | drivers/net/ni52.c | if(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */ |
dev | 394 | drivers/net/ni52.c | if(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */ |
dev | 398 | drivers/net/ni52.c | dev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */ |
dev | 400 | drivers/net/ni52.c | ((struct priv *) (dev->priv))->base = dev->mem_start + size - 0x01000000; |
dev | 401 | drivers/net/ni52.c | alloc586(dev); |
dev | 405 | drivers/net/ni52.c | ((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8; |
dev | 407 | drivers/net/ni52.c | ((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16; |
dev | 409 | drivers/net/ni52.c | printk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size); |
dev | 411 | drivers/net/ni52.c | if(dev->irq < 2) |
dev | 416 | drivers/net/ni52.c | if(!(dev->irq = autoirq_report(2))) |
dev | 422 | drivers/net/ni52.c | else if(dev->irq == 2) |
dev | 423 | drivers/net/ni52.c | dev->irq = 9; |
dev | 425 | drivers/net/ni52.c | printk("IRQ %d.\n",dev->irq); |
dev | 427 | drivers/net/ni52.c | dev->open = &ni52_open; |
dev | 428 | drivers/net/ni52.c | dev->stop = &ni52_close; |
dev | 429 | drivers/net/ni52.c | dev->get_stats = &ni52_get_stats; |
dev | 430 | drivers/net/ni52.c | dev->hard_start_xmit = &ni52_send_packet; |
dev | 431 | drivers/net/ni52.c | dev->set_multicast_list = &set_multicast_list; |
dev | 433 | drivers/net/ni52.c | dev->if_port = 0; |
dev | 435 | drivers/net/ni52.c | ether_setup(dev); |
dev | 437 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 438 | drivers/net/ni52.c | dev->interrupt = 0; |
dev | 439 | drivers/net/ni52.c | dev->start = 0; |
dev | 449 | drivers/net/ni52.c | static int init586(struct device *dev,int num_addrs,void *addrs) |
dev | 454 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 489 | drivers/net/ni52.c | printk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status); |
dev | 502 | drivers/net/ni52.c | memcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN); |
dev | 514 | drivers/net/ni52.c | printk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status); |
dev | 536 | drivers/net/ni52.c | printk("%s: Problems while running the TDR.\n",dev->name); |
dev | 550 | drivers/net/ni52.c | printk("%s: TDR: Transceiver problem!\n",dev->name); |
dev | 552 | drivers/net/ni52.c | printk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK); |
dev | 556 | drivers/net/ni52.c | printk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK); |
dev | 559 | drivers/net/ni52.c | printk("%s: TDR: Unknown status %04x\n",dev->name,result); |
dev | 595 | drivers/net/ni52.c | ptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ |
dev | 606 | drivers/net/ni52.c | printk("%s: Ooooops, no memory for MC-Setup!\n",dev->name); |
dev | 613 | drivers/net/ni52.c | printk("%s: Sorry, can only apply %d MC-Address(es).\n",dev->name,num_addrs); |
dev | 630 | drivers/net/ni52.c | printk("%s: Can't apply multicast-address-list.\n",dev->name); |
dev | 645 | drivers/net/ni52.c | printk("%s: not enough shared-mem for your configuration!\n",dev->name); |
dev | 684 | drivers/net/ni52.c | static void *alloc_rfa(struct device *dev,void *ptr) |
dev | 689 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 730 | drivers/net/ni52.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 734 | drivers/net/ni52.c | if (dev == NULL) { |
dev | 738 | drivers/net/ni52.c | p = (struct priv *) dev->priv; |
dev | 740 | drivers/net/ni52.c | dev->interrupt = 1; |
dev | 748 | drivers/net/ni52.c | ni52_xmt_int(dev); |
dev | 751 | drivers/net/ni52.c | ni52_rcv_int(dev); |
dev | 756 | drivers/net/ni52.c | if(dev->start) |
dev | 757 | 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 | 771 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
dev | 772 | drivers/net/ni52.c | ni52_rnr_int(dev); |
dev | 780 | drivers/net/ni52.c | dev->interrupt = 0; |
dev | 787 | drivers/net/ni52.c | static void ni52_rcv_int(struct device *dev) |
dev | 793 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 808 | drivers/net/ni52.c | skb->dev = dev; |
dev | 811 | drivers/net/ni52.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 820 | drivers/net/ni52.c | printk("%s: received oversized frame.\n",dev->name); |
dev | 826 | drivers/net/ni52.c | printk("%s: oops! rfd-error-status: %04x\n",dev->name,status); |
dev | 841 | drivers/net/ni52.c | static void ni52_rnr_int(struct device *dev) |
dev | 843 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 852 | drivers/net/ni52.c | alloc_rfa(dev,(char *)p->rfd_first); |
dev | 853 | drivers/net/ni52.c | startrecv586(dev); /* restart RU */ |
dev | 855 | drivers/net/ni52.c | printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status); |
dev | 863 | drivers/net/ni52.c | static void ni52_xmt_int(struct device *dev) |
dev | 866 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 870 | drivers/net/ni52.c | printk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name); |
dev | 881 | drivers/net/ni52.c | printk("%s: late collision detected.\n",dev->name); |
dev | 886 | drivers/net/ni52.c | printk("%s: no carrier detected.\n",dev->name); |
dev | 889 | drivers/net/ni52.c | printk("%s: loss of CTS detected.\n",dev->name); |
dev | 892 | drivers/net/ni52.c | printk("%s: DMA underrun detected.\n",dev->name); |
dev | 895 | drivers/net/ni52.c | printk("%s: Max. collisions exceeded.\n",dev->name); |
dev | 905 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 913 | drivers/net/ni52.c | static void startrecv586(struct device *dev) |
dev | 915 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 927 | drivers/net/ni52.c | static int ni52_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 933 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 935 | drivers/net/ni52.c | if(dev->tbusy) |
dev | 937 | drivers/net/ni52.c | int tickssofar = jiffies - dev->trans_start; |
dev | 943 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 945 | drivers/net/ni52.c | printk("%s: strange ... timeout with CU active?!?\n",dev->name); |
dev | 946 | 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 | 955 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 961 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status); |
dev | 962 | 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 | 964 | drivers/net/ni52.c | ni52_close(dev); |
dev | 965 | drivers/net/ni52.c | ni52_open(dev); |
dev | 967 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 973 | drivers/net/ni52.c | dev_tint(dev); |
dev | 981 | 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 | 985 | drivers/net/ni52.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 986 | drivers/net/ni52.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1002 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 1011 | drivers/net/ni52.c | printk("%s: Can't start transmit-command.\n",dev->name); |
dev | 1022 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 1037 | drivers/net/ni52.c | dev->trans_start = jiffies; |
dev | 1042 | drivers/net/ni52.c | dev->tbusy = 0; |
dev | 1054 | drivers/net/ni52.c | static struct enet_statistics *ni52_get_stats(struct device *dev) |
dev | 1056 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1080 | drivers/net/ni52.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1082 | drivers/net/ni52.c | if(!dev->start && !num_addrs) |
dev | 1084 | drivers/net/ni52.c | printk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name); |
dev | 1088 | drivers/net/ni52.c | dev->start = 0; |
dev | 1089 | drivers/net/ni52.c | alloc586(dev); |
dev | 1090 | drivers/net/ni52.c | init586(dev,num_addrs,addrs); |
dev | 1091 | drivers/net/ni52.c | startrecv586(dev); |
dev | 1092 | 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 | 147 | drivers/net/ni65.c | static int ni65_open(struct device *dev) |
dev | 149 | drivers/net/ni65.c | if(am7990_reinit(dev)) |
dev | 151 | drivers/net/ni65.c | dev->tbusy = 0; |
dev | 152 | drivers/net/ni65.c | dev->interrupt = 0; |
dev | 153 | drivers/net/ni65.c | dev->start = 1; |
dev | 158 | drivers/net/ni65.c | dev->start = 0; |
dev | 163 | drivers/net/ni65.c | static int ni65_close(struct device *dev) |
dev | 166 | drivers/net/ni65.c | dev->tbusy = 1; |
dev | 167 | drivers/net/ni65.c | dev->start = 0; |
dev | 176 | drivers/net/ni65.c | int ni65_probe(struct device *dev) |
dev | 179 | drivers/net/ni65.c | int base_addr = dev->base_addr; |
dev | 182 | drivers/net/ni65.c | return ni65_probe1(dev, base_addr); |
dev | 194 | drivers/net/ni65.c | dev->base_addr = ioaddr; |
dev | 195 | drivers/net/ni65.c | if (ni65_probe1(dev, ioaddr) == 0) |
dev | 199 | drivers/net/ni65.c | dev->base_addr = base_addr; |
dev | 204 | drivers/net/ni65.c | static int ni65_probe1(struct device *dev,int ioaddr) |
dev | 211 | drivers/net/ni65.c | station_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i); |
dev | 215 | drivers/net/ni65.c | printk("%s: wrong Hardaddress \n",dev->name); |
dev | 219 | drivers/net/ni65.c | if(dev->irq == 0) |
dev | 220 | drivers/net/ni65.c | dev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3]; |
dev | 221 | drivers/net/ni65.c | if(dev->dma == 0) |
dev | 222 | drivers/net/ni65.c | dev->dma = dmatab[inw(PORT+L_CONFIG)&3]; |
dev | 224 | drivers/net/ni65.c | printk("%s: %s found at %#3lx, IRQ %d DMA %d.\n", dev->name, |
dev | 225 | drivers/net/ni65.c | "network card", dev->base_addr, dev->irq,dev->dma); |
dev | 228 | drivers/net/ni65.c | int irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni65"); |
dev | 231 | drivers/net/ni65.c | dev->name,dev->irq, irqval); |
dev | 234 | drivers/net/ni65.c | if(request_dma(dev->dma, "ni65") != 0) |
dev | 236 | drivers/net/ni65.c | printk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma); |
dev | 237 | drivers/net/ni65.c | free_irq(dev->irq); |
dev | 241 | drivers/net/ni65.c | irq2dev_map[dev->irq] = dev; |
dev | 246 | 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 | 543 | drivers/net/ni65.c | skb1->dev = dev; |
dev | 545 | drivers/net/ni65.c | skb1->protocol=eth_type_trans(skb1,dev); |
dev | 551 | drivers/net/ni65.c | printk("%s: can't alloc new sk_buff\n",dev->name); |
dev | 564 | drivers/net/ni65.c | static int ni65_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 566 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
dev | 569 | drivers/net/ni65.c | if(dev->tbusy) |
dev | 571 | drivers/net/ni65.c | int tickssofar = jiffies - dev->trans_start; |
dev | 575 | drivers/net/ni65.c | printk("%s: xmitter timed out, try to restart!\n",dev->name); |
dev | 576 | drivers/net/ni65.c | am7990_reinit(dev); |
dev | 577 | drivers/net/ni65.c | dev->tbusy=0; |
dev | 578 | drivers/net/ni65.c | dev->trans_start = jiffies; |
dev | 583 | drivers/net/ni65.c | dev_tint(dev); |
dev | 590 | drivers/net/ni65.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 592 | drivers/net/ni65.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 597 | drivers/net/ni65.c | printk("%s: Queue was locked!\n",dev->name); |
dev | 622 | drivers/net/ni65.c | dev->tbusy = 0; |
dev | 626 | drivers/net/ni65.c | dev->trans_start = jiffies; |
dev | 633 | drivers/net/ni65.c | static struct enet_statistics *ni65_get_stats(struct device *dev) |
dev | 635 | drivers/net/ni65.c | return &((struct priv *) dev->priv)->stats; |
dev | 638 | drivers/net/ni65.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 82 | drivers/net/pi2.c | struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 140 | drivers/net/pi2.c | static int pi0_preprobe(struct device *dev){return 0;} /* Dummy probe function */ |
dev | 151 | drivers/net/pi2.c | static int pi_probe(struct device *dev, int card_type); |
dev | 152 | drivers/net/pi2.c | static int pi_open(struct device *dev); |
dev | 153 | drivers/net/pi2.c | static int pi_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 155 | drivers/net/pi2.c | static int pi_close(struct device *dev); |
dev | 156 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 157 | drivers/net/pi2.c | static struct enet_statistics *pi_get_stats(struct device *dev); |
dev | 159 | drivers/net/pi2.c | static void b_rxint(struct device *dev, struct pi_local *lp); |
dev | 162 | drivers/net/pi2.c | static void a_rxint(struct device *dev, struct pi_local *lp); |
dev | 506 | drivers/net/pi2.c | static void a_rxint(struct device *dev, struct pi_local *lp) |
dev | 558 | drivers/net/pi2.c | printk("PI: %s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 563 | drivers/net/pi2.c | skb->dev = dev; |
dev | 582 | drivers/net/pi2.c | static void b_rxint(struct device *dev, struct pi_local *lp) |
dev | 647 | drivers/net/pi2.c | printk("PI: %s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 652 | drivers/net/pi2.c | skb->dev = dev; |
dev | 1078 | drivers/net/pi2.c | static int pi_header(struct sk_buff *skb, struct device *dev, unsigned short type, |
dev | 1081 | drivers/net/pi2.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
dev | 1085 | drivers/net/pi2.c | static int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 1088 | drivers/net/pi2.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
dev | 1091 | drivers/net/pi2.c | static void scc_init(struct device *dev) |
dev | 1094 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1193 | drivers/net/pi2.c | static void chipset_init(struct device *dev) |
dev | 1198 | drivers/net/pi2.c | cardbase = dev->base_addr & 0x3f0; |
dev | 1202 | drivers/net/pi2.c | wrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES); /* Hardware reset */ |
dev | 1204 | drivers/net/pi2.c | wrtscc(cardbase, dev->base_addr + CTL, R9, 0); |
dev | 1283 | drivers/net/pi2.c | static int pi_set_mac_address(struct device *dev, void *addr) |
dev | 1285 | drivers/net/pi2.c | memcpy(dev->dev_addr, addr, 7); /* addr is an AX.25 shifted ASCII */ |
dev | 1305 | drivers/net/pi2.c | static int pi_probe(struct device *dev, int card_type) |
dev | 1313 | drivers/net/pi2.c | ioaddr = dev->base_addr; |
dev | 1318 | drivers/net/pi2.c | dev->priv = (void *) (((int) dev->priv + 7) & ~7); |
dev | 1319 | drivers/net/pi2.c | lp = (struct pi_local *) dev->priv; |
dev | 1321 | drivers/net/pi2.c | memset(dev->priv, 0, sizeof(struct pi_local)); |
dev | 1324 | drivers/net/pi2.c | mem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local); |
dev | 1342 | drivers/net/pi2.c | lp->base = dev->base_addr; |
dev | 1343 | drivers/net/pi2.c | lp->cardbase = dev->base_addr & 0x3f0; |
dev | 1344 | drivers/net/pi2.c | if (dev->base_addr & CHANA) { |
dev | 1365 | drivers/net/pi2.c | chipset_init(dev); |
dev | 1367 | drivers/net/pi2.c | if (dev->base_addr & CHANA) { /* Do these things only for the A port */ |
dev | 1370 | drivers/net/pi2.c | lp->dmachan = dev->dma; |
dev | 1376 | drivers/net/pi2.c | if (dev->irq < 2) { |
dev | 1387 | drivers/net/pi2.c | dev->irq = autoirq_report(20); |
dev | 1388 | drivers/net/pi2.c | if (!dev->irq) { |
dev | 1393 | drivers/net/pi2.c | wrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES); /* Hardware reset */ |
dev | 1395 | drivers/net/pi2.c | wrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0); |
dev | 1400 | drivers/net/pi2.c | dev->irq, dev->dma); |
dev | 1406 | drivers/net/pi2.c | int irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2"); |
dev | 1409 | drivers/net/pi2.c | dev->irq, irqval); |
dev | 1419 | drivers/net/pi2.c | dev->open = pi_open; |
dev | 1420 | drivers/net/pi2.c | dev->stop = pi_close; |
dev | 1421 | drivers/net/pi2.c | dev->do_ioctl = pi_ioctl; |
dev | 1422 | drivers/net/pi2.c | dev->hard_start_xmit = pi_send_packet; |
dev | 1423 | drivers/net/pi2.c | dev->get_stats = pi_get_stats; |
dev | 1427 | drivers/net/pi2.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 1430 | drivers/net/pi2.c | dev->hard_header = pi_header; |
dev | 1431 | drivers/net/pi2.c | dev->rebuild_header = pi_rebuild_header; |
dev | 1432 | drivers/net/pi2.c | dev->set_mac_address = pi_set_mac_address; |
dev | 1434 | drivers/net/pi2.c | dev->type = ARPHRD_AX25; /* AF_AX25 device */ |
dev | 1435 | drivers/net/pi2.c | dev->hard_header_len = 73; /* We do digipeaters now */ |
dev | 1436 | drivers/net/pi2.c | dev->mtu = 1500; /* eth_mtu is the default */ |
dev | 1437 | drivers/net/pi2.c | dev->addr_len = 7; /* sizeof an ax.25 address */ |
dev | 1438 | drivers/net/pi2.c | memcpy(dev->broadcast, ax25_bcast, 7); |
dev | 1439 | drivers/net/pi2.c | memcpy(dev->dev_addr, ax25_test, 7); |
dev | 1442 | drivers/net/pi2.c | dev->flags = 0; |
dev | 1443 | drivers/net/pi2.c | dev->family = AF_INET; |
dev | 1444 | drivers/net/pi2.c | dev->pa_addr = 0; |
dev | 1445 | drivers/net/pi2.c | dev->pa_brdaddr = 0; |
dev | 1446 | drivers/net/pi2.c | dev->pa_mask = 0; |
dev | 1447 | drivers/net/pi2.c | dev->pa_alen = 4; |
dev | 1459 | drivers/net/pi2.c | static int pi_open(struct device *dev) |
dev | 1464 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1466 | drivers/net/pi2.c | if (dev->base_addr & 2) { /* if A channel */ |
dev | 1468 | drivers/net/pi2.c | if (request_dma(dev->dma,"pi2")) { |
dev | 1469 | drivers/net/pi2.c | free_irq(dev->irq); |
dev | 1472 | drivers/net/pi2.c | irq2dev_map[dev->irq] = dev; |
dev | 1475 | drivers/net/pi2.c | chipset_init(dev); |
dev | 1479 | drivers/net/pi2.c | if (dev->base_addr & 2) { /* if A channel */ |
dev | 1480 | drivers/net/pi2.c | scc_init(dev); /* Called once for each channel */ |
dev | 1481 | drivers/net/pi2.c | scc_init(dev->next); |
dev | 1491 | drivers/net/pi2.c | dev->tbusy = 0; |
dev | 1492 | drivers/net/pi2.c | dev->interrupt = 0; |
dev | 1493 | drivers/net/pi2.c | dev->start = 1; |
dev | 1498 | drivers/net/pi2.c | static int pi_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 1500 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1506 | drivers/net/pi2.c | dev_tint(dev); |
dev | 1510 | drivers/net/pi2.c | dev->trans_start = jiffies; |
dev | 1572 | drivers/net/pi2.c | static int pi_close(struct device *dev) |
dev | 1581 | drivers/net/pi2.c | lp = (struct pi_local *) dev->priv; |
dev | 1584 | drivers/net/pi2.c | chipset_init(dev); /* reset the scc */ |
dev | 1589 | drivers/net/pi2.c | dev->tbusy = 1; |
dev | 1590 | drivers/net/pi2.c | dev->start = 0; |
dev | 1600 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
dev | 1604 | drivers/net/pi2.c | struct pi_local *lp = (struct pi_local *) dev->priv; |
dev | 1638 | drivers/net/pi2.c | if (dev->base_addr & 2) { /* if A channel */ |
dev | 1643 | drivers/net/pi2.c | pi_close(dev); |
dev | 1645 | drivers/net/pi2.c | dev->dma = lp->dmachan = rq.dmachan; |
dev | 1648 | drivers/net/pi2.c | pi_open(dev); |
dev | 1668 | drivers/net/pi2.c | rq.irq = dev->irq; |
dev | 1682 | drivers/net/pi2.c | pi_get_stats(struct device *dev) |
dev | 1684 | 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), (PAR_DATA(dev) == 0x3bc)? 4 : 8) < 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), (PAR_DATA(dev) == 0x3bc)? 4 : 8, 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 | 480 | drivers/net/plip.c | plip_receive_packet(struct device *dev, struct net_local *nl, |
dev | 483 | drivers/net/plip.c | unsigned short status_addr = PAR_STATUS(dev); |
dev | 489 | drivers/net/plip.c | disable_irq(dev->irq); |
dev | 490 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 491 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 492 | drivers/net/plip.c | outb(0x01, PAR_DATA(dev)); /* send ACK */ |
dev | 494 | drivers/net/plip.c | printk("%s: receive start\n", dev->name); |
dev | 507 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 508 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 522 | drivers/net/plip.c | if (rcv->length.h > dev->mtu || rcv->length.h < 8) { |
dev | 523 | drivers/net/plip.c | printk("%s: bogus packet size %d.\n", dev->name, rcv->length.h); |
dev | 529 | drivers/net/plip.c | printk("%s: Memory squeeze.\n", dev->name); |
dev | 533 | drivers/net/plip.c | rcv->skb->dev = dev; |
dev | 557 | drivers/net/plip.c | printk("%s: checksum error\n", dev->name); |
dev | 564 | drivers/net/plip.c | rcv->skb->protocol=eth_type_trans(rcv->skb, dev); |
dev | 569 | drivers/net/plip.c | printk("%s: receive end\n", dev->name); |
dev | 572 | drivers/net/plip.c | outb (0x00, PAR_DATA(dev)); |
dev | 578 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 579 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 584 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 585 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 642 | drivers/net/plip.c | plip_send_packet(struct device *dev, struct net_local *nl, |
dev | 645 | drivers/net/plip.c | unsigned short data_addr = PAR_DATA(dev); |
dev | 652 | drivers/net/plip.c | printk("%s: send skb lost\n", dev->name); |
dev | 671 | drivers/net/plip.c | printk("%s: collision.\n", dev->name); |
dev | 674 | drivers/net/plip.c | c0 = inb(PAR_STATUS(dev)); |
dev | 676 | drivers/net/plip.c | disable_irq(dev->irq); |
dev | 677 | drivers/net/plip.c | outb(PAR_INTR_OFF, PAR_CONTROL(dev)); |
dev | 679 | drivers/net/plip.c | printk("%s: send start\n", dev->name); |
dev | 732 | drivers/net/plip.c | printk("%s: send end\n", dev->name); |
dev | 736 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 737 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 744 | drivers/net/plip.c | plip_connection_close(struct device *dev, struct net_local *nl, |
dev | 750 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 759 | drivers/net/plip.c | plip_error(struct device *dev, struct net_local *nl, |
dev | 764 | drivers/net/plip.c | status = inb(PAR_STATUS(dev)); |
dev | 767 | drivers/net/plip.c | printk("%s: reset interface.\n", dev->name); |
dev | 769 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 770 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 771 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 772 | drivers/net/plip.c | enable_irq(dev->irq); |
dev | 786 | drivers/net/plip.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 787 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 791 | drivers/net/plip.c | if (dev == NULL) { |
dev | 796 | drivers/net/plip.c | if (dev->interrupt) |
dev | 799 | drivers/net/plip.c | c0 = inb(PAR_STATUS(dev)); |
dev | 802 | drivers/net/plip.c | printk("%s: spurious interrupt\n", dev->name); |
dev | 805 | drivers/net/plip.c | dev->interrupt = 1; |
dev | 807 | drivers/net/plip.c | printk("%s: interrupt.\n", dev->name); |
dev | 812 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 815 | drivers/net/plip.c | dev->last_rx = jiffies; |
dev | 826 | drivers/net/plip.c | printk("%s: receive interrupt when receiving packet\n", dev->name); |
dev | 831 | drivers/net/plip.c | printk("%s: receive interrupt in error state\n", dev->name); |
dev | 838 | drivers/net/plip.c | plip_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
dev | 841 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 845 | drivers/net/plip.c | if ((dev->flags & IFF_NOARP)==0) |
dev | 846 | drivers/net/plip.c | return nl->orig_rebuild_header(buff, dev, dst, skb); |
dev | 850 | drivers/net/plip.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
dev | 861 | drivers/net/plip.c | plip_tx_packet(struct sk_buff *skb, struct device *dev) |
dev | 863 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 866 | drivers/net/plip.c | if (dev->tbusy) |
dev | 873 | drivers/net/plip.c | dev_tint(dev); |
dev | 877 | drivers/net/plip.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 878 | drivers/net/plip.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 882 | drivers/net/plip.c | if (skb->len > dev->mtu) { |
dev | 883 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, (int)skb->len); |
dev | 884 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 889 | drivers/net/plip.c | printk("%s: send request\n", dev->name); |
dev | 892 | drivers/net/plip.c | dev->trans_start = jiffies; |
dev | 914 | drivers/net/plip.c | plip_open(struct device *dev) |
dev | 916 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 919 | drivers/net/plip.c | if (dev->irq == 0) { |
dev | 920 | drivers/net/plip.c | printk("%s: IRQ is not set. Please set it by ifconfig.\n", dev->name); |
dev | 924 | drivers/net/plip.c | if (request_irq(dev->irq , plip_interrupt, 0, dev->name) != 0) { |
dev | 926 | drivers/net/plip.c | printk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq); |
dev | 929 | drivers/net/plip.c | irq2dev_map[dev->irq] = dev; |
dev | 933 | drivers/net/plip.c | outb (0x00, PAR_DATA(dev)); |
dev | 936 | drivers/net/plip.c | outb(PAR_INTR_ON, PAR_CONTROL(dev)); |
dev | 946 | drivers/net/plip.c | dev->dev_addr[i] = 0xfc; |
dev | 947 | drivers/net/plip.c | memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long)); |
dev | 949 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 950 | drivers/net/plip.c | dev->start = 1; |
dev | 951 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 958 | drivers/net/plip.c | plip_close(struct device *dev) |
dev | 960 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 964 | drivers/net/plip.c | dev->tbusy = 1; |
dev | 965 | drivers/net/plip.c | dev->start = 0; |
dev | 967 | drivers/net/plip.c | free_irq(dev->irq); |
dev | 968 | drivers/net/plip.c | irq2dev_map[dev->irq] = NULL; |
dev | 972 | drivers/net/plip.c | outb(0x00, PAR_DATA(dev)); |
dev | 987 | drivers/net/plip.c | outb(0x00, PAR_CONTROL(dev)); |
dev | 993 | drivers/net/plip.c | plip_get_stats(struct device *dev) |
dev | 995 | drivers/net/plip.c | struct net_local *nl = (struct net_local *)dev->priv; |
dev | 1002 | drivers/net/plip.c | plip_config(struct device *dev, struct ifmap *map) |
dev | 1004 | drivers/net/plip.c | if (dev->flags & IFF_UP) |
dev | 1008 | drivers/net/plip.c | && map->base_addr != dev->base_addr) |
dev | 1009 | drivers/net/plip.c | printk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name); |
dev | 1012 | drivers/net/plip.c | dev->irq = map->irq; |
dev | 1017 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
dev | 1019 | drivers/net/plip.c | struct net_local *nl = (struct net_local *) dev->priv; |
dev | 102 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 120 | drivers/net/ppp.c | static int ppp_header(unsigned char *buff, struct device *dev, |
dev | 123 | drivers/net/ppp.c | static int ppp_rebuild_header(void *buff, struct device *dev); |
dev | 125 | drivers/net/ppp.c | struct device *dev); |
dev | 211 | drivers/net/ppp.c | ppp_init(struct device *dev) |
dev | 216 | drivers/net/ppp.c | ppp = &ppp_ctrl[dev->base_addr]; |
dev | 263 | drivers/net/ppp.c | ppp->line = dev->base_addr; |
dev | 265 | drivers/net/ppp.c | ppp->dev = dev; |
dev | 271 | drivers/net/ppp.c | dev->mtu = PPP_MTU; |
dev | 272 | drivers/net/ppp.c | dev->hard_start_xmit = ppp_xmit; |
dev | 273 | drivers/net/ppp.c | dev->open = ppp_dev_open; |
dev | 274 | drivers/net/ppp.c | dev->stop = ppp_dev_close; |
dev | 275 | drivers/net/ppp.c | dev->get_stats = ppp_get_stats; |
dev | 276 | drivers/net/ppp.c | dev->hard_header = ppp_header; |
dev | 277 | drivers/net/ppp.c | dev->rebuild_header = ppp_rebuild_header; |
dev | 278 | drivers/net/ppp.c | dev->hard_header_len = 0; |
dev | 279 | drivers/net/ppp.c | dev->addr_len = 0; |
dev | 280 | drivers/net/ppp.c | dev->type = ARPHRD_PPP; |
dev | 283 | drivers/net/ppp.c | dev->add_arp = ppp_add_arp; |
dev | 284 | drivers/net/ppp.c | dev->queue_xmit = dev_queue_xmit; |
dev | 286 | drivers/net/ppp.c | dev->do_ioctl = ppp_dev_ioctl; |
dev | 290 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
dev | 293 | drivers/net/ppp.c | dev->flags = IFF_POINTOPOINT; |
dev | 294 | drivers/net/ppp.c | dev->family = AF_INET; |
dev | 295 | drivers/net/ppp.c | dev->pa_addr = 0; |
dev | 296 | drivers/net/ppp.c | dev->pa_brdaddr = 0; |
dev | 297 | drivers/net/ppp.c | dev->pa_mask = 0; |
dev | 298 | drivers/net/ppp.c | dev->pa_alen = 4; |
dev | 367 | drivers/net/ppp.c | struct device *dev; |
dev | 374 | drivers/net/ppp.c | dev = ppp->dev; |
dev | 386 | drivers/net/ppp.c | dev->name, new_mtu, new_mru)); |
dev | 423 | drivers/net/ppp.c | dev->mem_start = (unsigned long) new_xbuff; |
dev | 424 | drivers/net/ppp.c | dev->mem_end = (unsigned long) (dev->mem_start + mtu); |
dev | 426 | drivers/net/ppp.c | dev->rmem_start = (unsigned long) new_rbuff; |
dev | 428 | drivers/net/ppp.c | dev->rmem_end = (unsigned long) (dev->rmem_start + mru); |
dev | 442 | drivers/net/ppp.c | dev->mtu = new_mtu; |
dev | 469 | drivers/net/ppp.c | if (ppp->dev) { |
dev | 470 | drivers/net/ppp.c | dev_close (ppp->dev); |
dev | 471 | drivers/net/ppp.c | ppp->dev->flags = 0; |
dev | 504 | drivers/net/ppp.c | PRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name)); |
dev | 519 | drivers/net/ppp.c | ppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown")); |
dev | 552 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru); |
dev | 570 | drivers/net/ppp.c | PRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name)); |
dev | 582 | drivers/net/ppp.c | ppp_dev_open(struct device *dev) |
dev | 584 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 587 | drivers/net/ppp.c | dev->flags |= IFF_POINTOPOINT; |
dev | 591 | drivers/net/ppp.c | dev->name)); |
dev | 596 | drivers/net/ppp.c | dev->name)); |
dev | 603 | drivers/net/ppp.c | ppp_dev_close(struct device *dev) |
dev | 605 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 609 | drivers/net/ppp.c | dev->name)); |
dev | 614 | drivers/net/ppp.c | dev->name)); |
dev | 620 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
dev | 622 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 665 | drivers/net/ppp.c | if (((struct ppp *) ppp)->dev->flags & IFF_UP) |
dev | 669 | drivers/net/ppp.c | dev_tint (((struct ppp *) ppp)->dev); |
dev | 1051 | drivers/net/ppp.c | if ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) { |
dev | 1090 | drivers/net/ppp.c | PRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name, |
dev | 1147 | drivers/net/ppp.c | PRINTK ((KERN_INFO "%s <-- src %x dst %x len %d\n", ppp->dev->name, |
dev | 1159 | drivers/net/ppp.c | skb->dev=ppp->dev; |
dev | 1365 | drivers/net/ppp.c | if (ppp->mtu != ppp->dev->mtu) /* Someone has been ifconfigging */ |
dev | 1366 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru); |
dev | 1463 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, temp_i); |
dev | 1522 | drivers/net/ppp.c | put_user (ppp->dev->base_addr, (int *) l); |
dev | 1523 | drivers/net/ppp.c | PRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %ld", ppp->dev->base_addr)); |
dev | 1724 | drivers/net/ppp.c | ppp_xmit(struct sk_buff *skb, struct device *dev) |
dev | 1739 | drivers/net/ppp.c | ppp = &ppp_ctrl[dev->base_addr]; |
dev | 1745 | drivers/net/ppp.c | PRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, |
dev | 1751 | drivers/net/ppp.c | dev_close (dev); |
dev | 1756 | drivers/net/ppp.c | PRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name)); |
dev | 1760 | drivers/net/ppp.c | if (!(dev->flags & IFF_UP)) { |
dev | 1763 | drivers/net/ppp.c | dev->name)); |
dev | 1817 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
dev | 1868 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 1875 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev) |
dev | 1881 | drivers/net/ppp.c | ppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev) |
dev | 1888 | drivers/net/ppp.c | ppp_header(struct sk_buff *skb, struct device *dev, unsigned short type, |
dev | 1895 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 1903 | drivers/net/ppp.c | ppp_get_stats (struct device *dev) |
dev | 1905 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 1972 | drivers/net/ppp.c | if (ppp->dev->flags & IFF_UP) |
dev | 1973 | drivers/net/ppp.c | ppp->dev->tbusy = 1; |
dev | 1985 | drivers/net/ppp.c | if (ppp->dev->flags & IFF_UP) |
dev | 1986 | drivers/net/ppp.c | ppp->dev->tbusy = 0; |
dev | 57 | drivers/net/seeq8005.c | extern struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 85 | drivers/net/seeq8005.c | extern int seeq8005_probe(struct device *dev); |
dev | 87 | drivers/net/seeq8005.c | static int seeq8005_probe1(struct device *dev, int ioaddr); |
dev | 88 | drivers/net/seeq8005.c | static int seeq8005_open(struct device *dev); |
dev | 89 | drivers/net/seeq8005.c | static int seeq8005_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 91 | drivers/net/seeq8005.c | static void seeq8005_rx(struct device *dev); |
dev | 92 | drivers/net/seeq8005.c | static int seeq8005_close(struct device *dev); |
dev | 93 | drivers/net/seeq8005.c | static struct enet_statistics *seeq8005_get_stats(struct device *dev); |
dev | 94 | drivers/net/seeq8005.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 97 | drivers/net/seeq8005.c | #define tx_done(dev) (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON) |
dev | 98 | drivers/net/seeq8005.c | extern void hardware_send_packet(struct device *dev, char *buf, int length); |
dev | 99 | drivers/net/seeq8005.c | extern void seeq8005_init(struct device *dev, int startp); |
dev | 100 | drivers/net/seeq8005.c | inline void wait_for_buffer(struct device *dev); |
dev | 116 | drivers/net/seeq8005.c | seeq8005_probe(struct device *dev) |
dev | 119 | drivers/net/seeq8005.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 122 | drivers/net/seeq8005.c | return seeq8005_probe1(dev, base_addr); |
dev | 130 | drivers/net/seeq8005.c | if (seeq8005_probe1(dev, ioaddr) == 0) |
dev | 142 | drivers/net/seeq8005.c | static int seeq8005_probe1(struct device *dev, int ioaddr) |
dev | 279 | drivers/net/seeq8005.c | if (dev == NULL) |
dev | 280 | drivers/net/seeq8005.c | dev = init_etherdev(0, sizeof(struct net_local), 0); |
dev | 285 | drivers/net/seeq8005.c | printk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr); |
dev | 288 | drivers/net/seeq8005.c | dev->base_addr = ioaddr; |
dev | 292 | drivers/net/seeq8005.c | printk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]); |
dev | 294 | drivers/net/seeq8005.c | if (dev->irq == 0xff) |
dev | 296 | drivers/net/seeq8005.c | else if (dev->irq < 2) { /* "Auto-IRQ" */ |
dev | 301 | drivers/net/seeq8005.c | dev->irq = autoirq_report(0); |
dev | 304 | drivers/net/seeq8005.c | printk(" autoirq is %d\n", dev->irq); |
dev | 305 | drivers/net/seeq8005.c | } else if (dev->irq == 2) |
dev | 309 | drivers/net/seeq8005.c | dev->irq = 9; |
dev | 313 | drivers/net/seeq8005.c | int irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005"); |
dev | 315 | drivers/net/seeq8005.c | printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name, |
dev | 316 | drivers/net/seeq8005.c | dev->irq, irqval); |
dev | 326 | drivers/net/seeq8005.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 327 | drivers/net/seeq8005.c | if (dev->priv == NULL) |
dev | 329 | drivers/net/seeq8005.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 331 | drivers/net/seeq8005.c | dev->open = seeq8005_open; |
dev | 332 | drivers/net/seeq8005.c | dev->stop = seeq8005_close; |
dev | 333 | drivers/net/seeq8005.c | dev->hard_start_xmit = seeq8005_send_packet; |
dev | 334 | drivers/net/seeq8005.c | dev->get_stats = seeq8005_get_stats; |
dev | 335 | drivers/net/seeq8005.c | dev->set_multicast_list = &set_multicast_list; |
dev | 338 | drivers/net/seeq8005.c | ether_setup(dev); |
dev | 352 | drivers/net/seeq8005.c | seeq8005_open(struct device *dev) |
dev | 354 | drivers/net/seeq8005.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 357 | drivers/net/seeq8005.c | int irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005"); |
dev | 359 | drivers/net/seeq8005.c | printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name, |
dev | 360 | drivers/net/seeq8005.c | dev->irq, irqval); |
dev | 364 | drivers/net/seeq8005.c | irq2dev_map[dev->irq] = dev; |
dev | 367 | drivers/net/seeq8005.c | seeq8005_init(dev, 1); |
dev | 371 | drivers/net/seeq8005.c | dev->tbusy = 0; |
dev | 372 | drivers/net/seeq8005.c | dev->interrupt = 0; |
dev | 373 | drivers/net/seeq8005.c | dev->start = 1; |
dev | 378 | drivers/net/seeq8005.c | seeq8005_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 380 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
dev | 382 | drivers/net/seeq8005.c | if (dev->tbusy) { |
dev | 385 | drivers/net/seeq8005.c | int tickssofar = jiffies - dev->trans_start; |
dev | 388 | drivers/net/seeq8005.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 389 | drivers/net/seeq8005.c | tx_done(dev) ? "IRQ conflict" : "network cable problem"); |
dev | 391 | drivers/net/seeq8005.c | seeq8005_init(dev, 1); |
dev | 392 | drivers/net/seeq8005.c | dev->tbusy=0; |
dev | 393 | drivers/net/seeq8005.c | dev->trans_start = jiffies; |
dev | 400 | drivers/net/seeq8005.c | dev_tint(dev); |
dev | 406 | drivers/net/seeq8005.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 407 | drivers/net/seeq8005.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 412 | drivers/net/seeq8005.c | hardware_send_packet(dev, buf, length); |
dev | 413 | drivers/net/seeq8005.c | dev->trans_start = jiffies; |
dev | 427 | drivers/net/seeq8005.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 431 | drivers/net/seeq8005.c | if (dev == NULL) { |
dev | 436 | drivers/net/seeq8005.c | if (dev->interrupt) |
dev | 437 | drivers/net/seeq8005.c | printk ("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 438 | drivers/net/seeq8005.c | dev->interrupt = 1; |
dev | 440 | drivers/net/seeq8005.c | ioaddr = dev->base_addr; |
dev | 441 | drivers/net/seeq8005.c | lp = (struct net_local *)dev->priv; |
dev | 446 | drivers/net/seeq8005.c | printk("%s: int, status=0x%04x\n",dev->name,status); |
dev | 452 | drivers/net/seeq8005.c | printk("%s: window int!\n",dev->name); |
dev | 458 | drivers/net/seeq8005.c | dev->tbusy = 0; |
dev | 463 | drivers/net/seeq8005.c | seeq8005_rx(dev); |
dev | 469 | drivers/net/seeq8005.c | printk("%s: eoi\n",dev->name); |
dev | 471 | drivers/net/seeq8005.c | dev->interrupt = 0; |
dev | 477 | drivers/net/seeq8005.c | seeq8005_rx(struct device *dev) |
dev | 479 | drivers/net/seeq8005.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 482 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
dev | 493 | drivers/net/seeq8005.c | wait_for_buffer(dev); |
dev | 498 | drivers/net/seeq8005.c | printk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr); |
dev | 515 | drivers/net/seeq8005.c | printk("%s: recv packet ring corrupt, resetting board\n",dev->name); |
dev | 516 | drivers/net/seeq8005.c | seeq8005_init(dev,1); |
dev | 523 | drivers/net/seeq8005.c | printk("%s: recv len=0x%04x\n",dev->name,pkt_len); |
dev | 542 | drivers/net/seeq8005.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 546 | drivers/net/seeq8005.c | skb->dev = dev; |
dev | 554 | drivers/net/seeq8005.c | printk("%s: recv ",dev->name); |
dev | 561 | drivers/net/seeq8005.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 575 | drivers/net/seeq8005.c | seeq8005_close(struct device *dev) |
dev | 577 | drivers/net/seeq8005.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 578 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
dev | 582 | drivers/net/seeq8005.c | dev->tbusy = 1; |
dev | 583 | drivers/net/seeq8005.c | dev->start = 0; |
dev | 588 | drivers/net/seeq8005.c | free_irq(dev->irq); |
dev | 590 | drivers/net/seeq8005.c | irq2dev_map[dev->irq] = 0; |
dev | 601 | drivers/net/seeq8005.c | seeq8005_get_stats(struct device *dev) |
dev | 603 | drivers/net/seeq8005.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 615 | drivers/net/seeq8005.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 622 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
dev | 636 | drivers/net/seeq8005.c | void seeq8005_init(struct device *dev, int startp) |
dev | 638 | drivers/net/seeq8005.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 639 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
dev | 654 | drivers/net/seeq8005.c | outb(dev->dev_addr[i], SEEQ_BUFFER); |
dev | 667 | drivers/net/seeq8005.c | printk("%s: SA0 = ",dev->name); |
dev | 686 | drivers/net/seeq8005.c | printk("%s: stat = 0x%04x\n",dev->name,inw(SEEQ_STATUS)); |
dev | 687 | drivers/net/seeq8005.c | printk("%s: cfg1 = 0x%04x\n",dev->name,old_cfg1); |
dev | 688 | drivers/net/seeq8005.c | printk("%s: cfg2 = 0x%04x\n",dev->name,inw(SEEQ_CFG2)); |
dev | 689 | drivers/net/seeq8005.c | printk("%s: raer = 0x%04x\n",dev->name,inw(SEEQ_REA)); |
dev | 690 | drivers/net/seeq8005.c | printk("%s: dmaar= 0x%04x\n",dev->name,inw(SEEQ_DMAAR)); |
dev | 696 | drivers/net/seeq8005.c | void hardware_send_packet(struct device * dev, char *buf, int length) |
dev | 698 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
dev | 704 | drivers/net/seeq8005.c | printk("%s: send 0x%04x\n",dev->name,length); |
dev | 741 | drivers/net/seeq8005.c | inline void wait_for_buffer(struct device * dev) |
dev | 743 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
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 | 793 | drivers/net/sk_g16.c | memset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */ |
dev | 797 | drivers/net/sk_g16.c | dev->open = &SK_open; |
dev | 798 | drivers/net/sk_g16.c | dev->stop = &SK_close; |
dev | 799 | drivers/net/sk_g16.c | dev->hard_start_xmit = &SK_send_packet; |
dev | 800 | drivers/net/sk_g16.c | dev->get_stats = &SK_get_stats; |
dev | 803 | drivers/net/sk_g16.c | dev->set_multicast_list = &set_multicast_list; |
dev | 809 | drivers/net/sk_g16.c | ether_setup(dev); |
dev | 830 | drivers/net/sk_g16.c | SK_print_pos(dev, "End of SK_probe"); |
dev | 831 | drivers/net/sk_g16.c | SK_print_ram(dev); |
dev | 864 | drivers/net/sk_g16.c | static int SK_open(struct device *dev) |
dev | 868 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
dev | 872 | drivers/net/sk_g16.c | struct priv *p = (struct priv *)dev->priv; |
dev | 877 | drivers/net/sk_g16.c | if (dev->irq == 0) /* Autoirq */ |
dev | 898 | drivers/net/sk_g16.c | printk("%s: unable to get an IRQ\n", dev->name); |
dev | 902 | drivers/net/sk_g16.c | dev->irq = irqtab[--i]; |
dev | 907 | drivers/net/sk_g16.c | else if (dev->irq == 2) /* IRQ2 is always IRQ9 */ |
dev | 911 | drivers/net/sk_g16.c | printk("%s: unable to get IRQ 9\n", dev->name); |
dev | 914 | drivers/net/sk_g16.c | dev->irq = 9; |
dev | 930 | drivers/net/sk_g16.c | if (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16")) |
dev | 932 | drivers/net/sk_g16.c | printk("%s: unable to get selected IRQ\n", dev->name); |
dev | 936 | drivers/net/sk_g16.c | switch(dev->irq) |
dev | 948 | drivers/net/sk_g16.c | dev->name, |
dev | 949 | drivers/net/sk_g16.c | dev->irq, |
dev | 957 | drivers/net/sk_g16.c | irq2dev_map[dev->irq] = dev; /* Set IRQ as used by us */ |
dev | 960 | drivers/net/sk_g16.c | dev->name, (unsigned int)dev->base_addr, |
dev | 961 | drivers/net/sk_g16.c | (int) dev->irq, (unsigned int) p->ram); |
dev | 963 | drivers/net/sk_g16.c | if (!(i = SK_lance_init(dev, 0))) /* LANCE init OK? */ |
dev | 967 | drivers/net/sk_g16.c | dev->tbusy = 0; |
dev | 968 | drivers/net/sk_g16.c | dev->interrupt = 0; |
dev | 969 | drivers/net/sk_g16.c | dev->start = 1; |
dev | 984 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_DTX | MODE_DRX); |
dev | 990 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); |
dev | 993 | drivers/net/sk_g16.c | SK_print_pos(dev, "POS regs before returning OK"); |
dev | 1005 | drivers/net/sk_g16.c | dev->start = 0; /* Device not ready */ |
dev | 1029 | drivers/net/sk_g16.c | static int SK_lance_init(struct device *dev, unsigned short mode) |
dev | 1032 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1087 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
dev | 1150 | drivers/net/sk_g16.c | dev->name, (int) SK_read_reg(CSR0), |
dev | 1154 | drivers/net/sk_g16.c | SK_print_pos(dev, "LANCE INIT failed"); |
dev | 1155 | drivers/net/sk_g16.c | SK_print_dev(dev,"Device Structure:"); |
dev | 1195 | drivers/net/sk_g16.c | static int SK_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 1197 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1200 | drivers/net/sk_g16.c | if (dev->tbusy) |
dev | 1204 | drivers/net/sk_g16.c | int tickssofar = jiffies - dev->trans_start; |
dev | 1210 | drivers/net/sk_g16.c | printk("%s: xmitter timed out, try to restart!\n", dev->name); |
dev | 1212 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */ |
dev | 1214 | drivers/net/sk_g16.c | dev->tbusy = 0; /* Clear Transmitter flag */ |
dev | 1216 | drivers/net/sk_g16.c | dev->trans_start = jiffies; /* Mark Start of transmission */ |
dev | 1231 | drivers/net/sk_g16.c | dev_tint(dev); |
dev | 1245 | drivers/net/sk_g16.c | if (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ |
dev | 1247 | drivers/net/sk_g16.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1276 | drivers/net/sk_g16.c | dev->trans_start = jiffies; /* Mark start of transmission */ |
dev | 1289 | drivers/net/sk_g16.c | dev->tbusy = 0; |
dev | 1317 | drivers/net/sk_g16.c | struct device *dev = (struct device *) irq2dev_map[irq]; |
dev | 1318 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1324 | drivers/net/sk_g16.c | if (dev == NULL) |
dev | 1330 | drivers/net/sk_g16.c | if (dev->interrupt) |
dev | 1332 | drivers/net/sk_g16.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 1337 | drivers/net/sk_g16.c | dev->interrupt = 1; /* We are handling an interrupt */ |
dev | 1348 | drivers/net/sk_g16.c | printk("%s: error: %04x\n", dev->name, csr0); |
dev | 1358 | drivers/net/sk_g16.c | SK_rxintr(dev); |
dev | 1363 | drivers/net/sk_g16.c | SK_txintr(dev); |
dev | 1368 | drivers/net/sk_g16.c | dev->interrupt = 0; /* We are out */ |
dev | 1389 | drivers/net/sk_g16.c | static void SK_txintr(struct device *dev) |
dev | 1393 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1413 | drivers/net/sk_g16.c | printk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat, |
dev | 1418 | drivers/net/sk_g16.c | printk("%s: tdr-problems \n", dev->name); |
dev | 1436 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); |
dev | 1470 | drivers/net/sk_g16.c | dev->tbusy = 0; |
dev | 1508 | drivers/net/sk_g16.c | static void SK_rxintr(struct device *dev) |
dev | 1513 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1543 | drivers/net/sk_g16.c | printk("%s: packet too long\n", dev->name); |
dev | 1559 | drivers/net/sk_g16.c | printk("%s: RX error: %04x\n", dev->name, (int) rmdstat); |
dev | 1587 | drivers/net/sk_g16.c | dev->name); |
dev | 1595 | drivers/net/sk_g16.c | skb->dev = dev; |
dev | 1616 | drivers/net/sk_g16.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1657 | drivers/net/sk_g16.c | static int SK_close(struct device *dev) |
dev | 1663 | drivers/net/sk_g16.c | dev->tbusy = 1; /* Transmitter busy */ |
dev | 1664 | drivers/net/sk_g16.c | dev->start = 0; /* Card down */ |
dev | 1666 | drivers/net/sk_g16.c | printk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, |
dev | 1671 | drivers/net/sk_g16.c | free_irq(dev->irq); /* Free IRQ */ |
dev | 1672 | drivers/net/sk_g16.c | irq2dev_map[dev->irq] = 0; /* Mark IRQ as unused */ |
dev | 1695 | drivers/net/sk_g16.c | static struct enet_statistics *SK_get_stats(struct device *dev) |
dev | 1698 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 1742 | drivers/net/sk_g16.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1748 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_PROM); |
dev | 1753 | drivers/net/sk_g16.c | SK_lance_init(dev, MODE_NORMAL); |
dev | 2005 | drivers/net/sk_g16.c | void SK_print_pos(struct device *dev, char *text) |
dev | 2007 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
dev | 2040 | drivers/net/sk_g16.c | void SK_print_dev(struct device *dev, char *text) |
dev | 2042 | drivers/net/sk_g16.c | if (dev == NULL) |
dev | 2051 | drivers/net/sk_g16.c | dev->name, dev->base_addr, dev->irq); |
dev | 2054 | drivers/net/sk_g16.c | dev->start, dev->tbusy, dev->interrupt); |
dev | 2057 | drivers/net/sk_g16.c | (int) dev->next, (int) dev->init); |
dev | 2083 | drivers/net/sk_g16.c | void SK_print_ram(struct device *dev) |
dev | 2087 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
dev | 106 | drivers/net/skeleton.c | extern int netcard_probe(struct device *dev); |
dev | 108 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, int ioaddr); |
dev | 109 | drivers/net/skeleton.c | static int net_open(struct device *dev); |
dev | 110 | drivers/net/skeleton.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 112 | drivers/net/skeleton.c | static void net_rx(struct device *dev); |
dev | 113 | drivers/net/skeleton.c | static int net_close(struct device *dev); |
dev | 114 | drivers/net/skeleton.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 115 | drivers/net/skeleton.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 118 | drivers/net/skeleton.c | #define tx_done(dev) 1 |
dev | 120 | drivers/net/skeleton.c | extern void chipset_init(struct device *dev, int startp); |
dev | 136 | drivers/net/skeleton.c | netcard_probe(struct device *dev) |
dev | 139 | drivers/net/skeleton.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 142 | drivers/net/skeleton.c | return netcard_probe1(dev, base_addr); |
dev | 150 | drivers/net/skeleton.c | if (netcard_probe1(dev, ioaddr) == 0) |
dev | 162 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, int ioaddr) |
dev | 177 | drivers/net/skeleton.c | if (dev == NULL) { |
dev | 182 | drivers/net/skeleton.c | dev = init_etherdev(0, 0, 0); |
dev | 183 | drivers/net/skeleton.c | if (dev == NULL) |
dev | 190 | drivers/net/skeleton.c | printk(KERN_INFO "%s: %s found at %#3x, ", dev->name, cardname, ioaddr); |
dev | 193 | drivers/net/skeleton.c | dev->base_addr = ioaddr; |
dev | 197 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 206 | drivers/net/skeleton.c | if (dev->irq == -1) |
dev | 208 | drivers/net/skeleton.c | else if (dev->irq < 2) { /* "Auto-IRQ" */ |
dev | 212 | drivers/net/skeleton.c | dev->irq = autoirq_report(0); |
dev | 214 | drivers/net/skeleton.c | printk(" autoirq is %d", dev->irq); |
dev | 215 | drivers/net/skeleton.c | } else if (dev->irq == 2) |
dev | 219 | drivers/net/skeleton.c | dev->irq = 9; |
dev | 222 | drivers/net/skeleton.c | int irqval = request_irq(dev->irq, &net_interrupt, 0, cardname); |
dev | 225 | drivers/net/skeleton.c | dev->name, dev->irq, irqval); |
dev | 233 | drivers/net/skeleton.c | if (dev->dma == 0) { |
dev | 234 | drivers/net/skeleton.c | if (request_dma(dev->dma, cardname)) { |
dev | 235 | drivers/net/skeleton.c | printk("DMA %d allocation failed.\n", dev->dma); |
dev | 238 | drivers/net/skeleton.c | printk(", assigned DMA %d.\n", dev->dma); |
dev | 255 | drivers/net/skeleton.c | dev->dma = i; |
dev | 262 | drivers/net/skeleton.c | if (request_dma(dev->dma, cardname)) { |
dev | 263 | drivers/net/skeleton.c | printk("probed DMA %d allocation failed.\n", dev->dma); |
dev | 270 | drivers/net/skeleton.c | if (dev->priv == NULL) { |
dev | 271 | drivers/net/skeleton.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 272 | drivers/net/skeleton.c | if (dev->priv == NULL) |
dev | 276 | drivers/net/skeleton.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 281 | drivers/net/skeleton.c | dev->open = net_open; |
dev | 282 | drivers/net/skeleton.c | dev->stop = net_close; |
dev | 283 | drivers/net/skeleton.c | dev->hard_start_xmit = net_send_packet; |
dev | 284 | drivers/net/skeleton.c | dev->get_stats = net_get_stats; |
dev | 285 | drivers/net/skeleton.c | dev->set_multicast_list = &set_multicast_list; |
dev | 288 | drivers/net/skeleton.c | ether_setup(dev); |
dev | 302 | drivers/net/skeleton.c | net_open(struct device *dev) |
dev | 304 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 305 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 309 | drivers/net/skeleton.c | if (request_irq(dev->irq, &net_interrupt, 0, cardname)) { |
dev | 314 | drivers/net/skeleton.c | if (request_dma(dev->dma, cardname)) { |
dev | 315 | drivers/net/skeleton.c | free_irq(dev->irq); |
dev | 318 | drivers/net/skeleton.c | irq2dev_map[dev->irq] = dev; |
dev | 325 | drivers/net/skeleton.c | dev->tbusy = 0; |
dev | 326 | drivers/net/skeleton.c | dev->interrupt = 0; |
dev | 327 | drivers/net/skeleton.c | dev->start = 1; |
dev | 335 | drivers/net/skeleton.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 337 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 338 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 340 | drivers/net/skeleton.c | if (dev->tbusy) { |
dev | 343 | drivers/net/skeleton.c | int tickssofar = jiffies - dev->trans_start; |
dev | 346 | drivers/net/skeleton.c | printk(KERN_WARNING "%s: transmit timed out, %s?\n", dev->name, |
dev | 347 | drivers/net/skeleton.c | tx_done(dev) ? "IRQ conflict" : "network cable problem"); |
dev | 349 | drivers/net/skeleton.c | chipset_init(dev, 1); |
dev | 350 | drivers/net/skeleton.c | dev->tbusy=0; |
dev | 351 | drivers/net/skeleton.c | dev->trans_start = jiffies; |
dev | 358 | drivers/net/skeleton.c | dev_tint(dev); |
dev | 364 | drivers/net/skeleton.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 365 | drivers/net/skeleton.c | printk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name); |
dev | 371 | drivers/net/skeleton.c | dev->trans_start = jiffies; |
dev | 387 | drivers/net/skeleton.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 391 | drivers/net/skeleton.c | if (dev == NULL) { |
dev | 395 | drivers/net/skeleton.c | dev->interrupt = 1; |
dev | 397 | drivers/net/skeleton.c | ioaddr = dev->base_addr; |
dev | 398 | drivers/net/skeleton.c | lp = (struct net_local *)dev->priv; |
dev | 404 | drivers/net/skeleton.c | net_rx(dev); |
dev | 408 | drivers/net/skeleton.c | dev->tbusy = 0; |
dev | 417 | drivers/net/skeleton.c | dev->interrupt = 0; |
dev | 423 | drivers/net/skeleton.c | net_rx(struct device *dev) |
dev | 425 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 426 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 449 | drivers/net/skeleton.c | dev->name); |
dev | 453 | drivers/net/skeleton.c | skb->dev = dev; |
dev | 456 | drivers/net/skeleton.c | memcpy(skb_put(skb,pkt_len), (void*)dev->rmem_start, |
dev | 474 | drivers/net/skeleton.c | net_close(struct device *dev) |
dev | 476 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 477 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 481 | drivers/net/skeleton.c | dev->tbusy = 1; |
dev | 482 | drivers/net/skeleton.c | dev->start = 0; |
dev | 486 | drivers/net/skeleton.c | disable_dma(dev->dma); |
dev | 491 | drivers/net/skeleton.c | free_irq(dev->irq); |
dev | 492 | drivers/net/skeleton.c | free_dma(dev->dma); |
dev | 494 | drivers/net/skeleton.c | irq2dev_map[dev->irq] = 0; |
dev | 507 | drivers/net/skeleton.c | net_get_stats(struct device *dev) |
dev | 509 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 510 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
dev | 527 | drivers/net/skeleton.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 529 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
dev | 96 | drivers/net/slip.c | struct device dev; /* the device */ |
dev | 145 | drivers/net/slip.c | slp->dev.name = slp->if_name; |
dev | 146 | drivers/net/slip.c | slp->dev.base_addr = i; |
dev | 147 | drivers/net/slip.c | slp->dev.priv = (void*)&(slp->ctrl); |
dev | 148 | drivers/net/slip.c | slp->dev.next = NULL; |
dev | 149 | drivers/net/slip.c | slp->dev.init = slip_init; |
dev | 159 | drivers/net/slip.c | if (register_netdev(&(slp->dev)) == 0) { |
dev | 162 | drivers/net/slip.c | slp->ctrl.dev = &(slp->dev); |
dev | 163 | drivers/net/slip.c | slp->dev.priv = (void*)&(slp->ctrl); |
dev | 211 | drivers/net/slip.c | printk("%s: sl_free for already free unit.\n", sl->dev->name); |
dev | 221 | drivers/net/slip.c | struct device *dev = sl->dev; |
dev | 229 | drivers/net/slip.c | len = dev->mtu * 2; |
dev | 251 | drivers/net/slip.c | sl->dev->name); |
dev | 252 | drivers/net/slip.c | dev->mtu = sl->mtu; |
dev | 297 | drivers/net/slip.c | sl->mtu = dev->mtu + 73; |
dev | 299 | drivers/net/slip.c | sl->mtu = dev->mtu; |
dev | 323 | drivers/net/slip.c | if (set_bit(0, (void *) &sl->dev->tbusy)) { |
dev | 324 | drivers/net/slip.c | printk("%s: trying to lock already locked device!\n", sl->dev->name); |
dev | 333 | drivers/net/slip.c | if (!clear_bit(0, (void *)&sl->dev->tbusy)) { |
dev | 334 | drivers/net/slip.c | printk("%s: trying to unlock already unlocked device!\n", sl->dev->name); |
dev | 352 | drivers/net/slip.c | printk("%s: compressed packet ignored\n", sl->dev->name); |
dev | 369 | drivers/net/slip.c | printk("%s: header compression turned on\n", sl->dev->name); |
dev | 381 | drivers/net/slip.c | printk("%s: memory squeeze, dropping packet.\n", sl->dev->name); |
dev | 385 | drivers/net/slip.c | skb->dev = sl->dev; |
dev | 405 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu + 73) { /* Someone has been ifconfigging */ |
dev | 407 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu) { /* Someone has been ifconfigging */ |
dev | 414 | drivers/net/slip.c | printk ("%s: truncating oversized transmit packet!\n", sl->dev->name); |
dev | 444 | drivers/net/slip.c | sl->dev->trans_start = jiffies; |
dev | 460 | drivers/net/slip.c | if (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) { |
dev | 481 | drivers/net/slip.c | sl_xmit(struct sk_buff *skb, struct device *dev) |
dev | 483 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 485 | drivers/net/slip.c | if (!dev->start) { |
dev | 486 | drivers/net/slip.c | printk("%s: xmit call when iface is down\n", dev->name); |
dev | 499 | drivers/net/slip.c | if (dev->tbusy) { |
dev | 504 | drivers/net/slip.c | if (jiffies - dev->trans_start < 20 * HZ) { |
dev | 508 | drivers/net/slip.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 533 | drivers/net/slip.c | sl_header(struct sk_buff *skb, struct device *dev, unsigned short type, |
dev | 538 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 541 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
dev | 551 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 556 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 559 | drivers/net/slip.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
dev | 569 | drivers/net/slip.c | sl_open(struct device *dev) |
dev | 571 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 585 | drivers/net/slip.c | len = dev->mtu * 2; |
dev | 614 | drivers/net/slip.c | sl->mtu = dev->mtu + 73; |
dev | 616 | drivers/net/slip.c | sl->mtu = dev->mtu; |
dev | 628 | drivers/net/slip.c | if (dev->pa_addr == 0) { |
dev | 629 | drivers/net/slip.c | dev->pa_addr=ntohl(0xC0A80001); |
dev | 631 | drivers/net/slip.c | dev->tbusy = 0; |
dev | 633 | drivers/net/slip.c | dev->start = 1; |
dev | 653 | drivers/net/slip.c | sl_close(struct device *dev) |
dev | 655 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 661 | drivers/net/slip.c | dev->tbusy = 1; |
dev | 662 | drivers/net/slip.c | dev->start = 0; |
dev | 686 | drivers/net/slip.c | if (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) |
dev | 694 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu + 73) { |
dev | 696 | drivers/net/slip.c | if (sl->mtu != sl->dev->mtu) { |
dev | 753 | drivers/net/slip.c | sl->dev->type = ARPHRD_SLIP + sl->mode; |
dev | 755 | drivers/net/slip.c | if (sl->dev->type == 260) { /* KISS */ |
dev | 756 | drivers/net/slip.c | sl->dev->type = ARPHRD_AX25; |
dev | 760 | drivers/net/slip.c | if ((err = sl_open(sl->dev))) { |
dev | 769 | drivers/net/slip.c | return sl->dev->base_addr; |
dev | 789 | drivers/net/slip.c | (void) dev_close(sl->dev); |
dev | 794 | drivers/net/slip.c | unregister_netdev(sl->dev); |
dev | 802 | drivers/net/slip.c | sl_get_stats(struct device *dev) |
dev | 805 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 991 | drivers/net/slip.c | sl_set_mac_address(struct device *dev, void *addr) |
dev | 1000 | drivers/net/slip.c | memcpy_fromfs(dev->dev_addr, addr, AX25_ADDR_LEN); /* addr is an AX.25 shifted ASCII mac address */ |
dev | 1006 | drivers/net/slip.c | sl_set_dev_mac_address(struct device *dev, void *addr) |
dev | 1008 | drivers/net/slip.c | memcpy(dev->dev_addr, addr, AX25_ADDR_LEN); |
dev | 1029 | drivers/net/slip.c | err = verify_area(VERIFY_WRITE, arg, strlen(sl->dev->name) + 1); |
dev | 1033 | drivers/net/slip.c | memcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1); |
dev | 1072 | drivers/net/slip.c | sl->dev->addr_len=AX25_ADDR_LEN; /* sizeof an AX.25 addr */ |
dev | 1073 | drivers/net/slip.c | sl->dev->hard_header_len=AX25_KISS_HEADER_LEN + AX25_MAX_HEADER_LEN + 3; |
dev | 1075 | drivers/net/slip.c | sl->dev->addr_len=0; /* No mac addr in slip mode */ |
dev | 1076 | drivers/net/slip.c | sl->dev->hard_header_len=0; |
dev | 1080 | drivers/net/slip.c | sl->dev->type = ARPHRD_SLIP+sl->mode; |
dev | 1082 | drivers/net/slip.c | if (sl->dev->type == 260) { |
dev | 1083 | drivers/net/slip.c | sl->dev->type = ARPHRD_AX25; |
dev | 1090 | drivers/net/slip.c | return sl_set_mac_address(sl->dev, arg); |
dev | 1105 | drivers/net/slip.c | static int sl_open_dev(struct device *dev) |
dev | 1107 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 1180 | drivers/net/slip.c | slip_init(struct device *dev) |
dev | 1182 | drivers/net/slip.c | struct slip *sl = (struct slip*)(dev->priv); |
dev | 1198 | drivers/net/slip.c | sl->dev = dev; |
dev | 1201 | drivers/net/slip.c | dev->mtu = SL_MTU; |
dev | 1202 | drivers/net/slip.c | dev->hard_start_xmit = sl_xmit; |
dev | 1203 | drivers/net/slip.c | dev->open = sl_open_dev; |
dev | 1204 | drivers/net/slip.c | dev->stop = sl_close; |
dev | 1205 | drivers/net/slip.c | dev->hard_header = sl_header; |
dev | 1206 | drivers/net/slip.c | dev->get_stats = sl_get_stats; |
dev | 1209 | drivers/net/slip.c | dev->set_mac_address = sl_set_dev_mac_address; |
dev | 1212 | drivers/net/slip.c | dev->hard_header_len = 0; |
dev | 1213 | drivers/net/slip.c | dev->addr_len = 0; |
dev | 1214 | drivers/net/slip.c | dev->type = ARPHRD_SLIP + SL_MODE_DEFAULT; |
dev | 1216 | drivers/net/slip.c | if (sl->dev->type == 260) { |
dev | 1217 | drivers/net/slip.c | sl->dev->type = ARPHRD_AX25; |
dev | 1219 | drivers/net/slip.c | memcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN); /* Only activated in AX.25 mode */ |
dev | 1220 | drivers/net/slip.c | memcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN); /* "" "" "" "" */ |
dev | 1222 | drivers/net/slip.c | dev->rebuild_header = sl_rebuild_header; |
dev | 1225 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 1229 | drivers/net/slip.c | dev->flags = 0; |
dev | 1230 | drivers/net/slip.c | dev->family = AF_INET; |
dev | 1231 | drivers/net/slip.c | dev->pa_addr = 0; |
dev | 1232 | drivers/net/slip.c | dev->pa_brdaddr = 0; |
dev | 1233 | drivers/net/slip.c | dev->pa_mask = 0; |
dev | 1234 | drivers/net/slip.c | dev->pa_alen = 4; |
dev | 1259 | drivers/net/slip.c | unregister_netdev(&(slip_ctrls[i]->dev)); |
dev | 51 | drivers/net/slip.h | struct device *dev; /* easy for intr handling */ |
dev | 104 | drivers/net/slip.h | extern int slip_init(struct device *dev); |
dev | 64 | drivers/net/smc-ultra.c | int ultra_probe(struct device *dev); |
dev | 65 | drivers/net/smc-ultra.c | int ultra_probe1(struct device *dev, int ioaddr); |
dev | 67 | drivers/net/smc-ultra.c | static int ultra_open(struct device *dev); |
dev | 68 | drivers/net/smc-ultra.c | static void ultra_reset_8390(struct device *dev); |
dev | 69 | drivers/net/smc-ultra.c | static int ultra_block_input(struct device *dev, int count, |
dev | 71 | drivers/net/smc-ultra.c | static void ultra_block_output(struct device *dev, int count, |
dev | 73 | drivers/net/smc-ultra.c | static int ultra_close_card(struct device *dev); |
dev | 93 | drivers/net/smc-ultra.c | int ultra_probe(struct device *dev) |
dev | 96 | drivers/net/smc-ultra.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 99 | drivers/net/smc-ultra.c | return ultra_probe1(dev, base_addr); |
dev | 107 | drivers/net/smc-ultra.c | if (ultra_probe1(dev, ioaddr) == 0) |
dev | 115 | drivers/net/smc-ultra.c | int ultra_probe1(struct device *dev, int ioaddr) |
dev | 139 | drivers/net/smc-ultra.c | if (dev == NULL) |
dev | 140 | drivers/net/smc-ultra.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 141 | drivers/net/smc-ultra.c | if (dev == NULL) /* Still.. */ |
dev | 146 | drivers/net/smc-ultra.c | printk("%s: %s at %#3x,", dev->name, model_name, ioaddr); |
dev | 149 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
dev | 164 | drivers/net/smc-ultra.c | if (dev->irq < 2) { |
dev | 175 | drivers/net/smc-ultra.c | dev->irq = irq; |
dev | 184 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr+ULTRA_NIC_OFFSET; |
dev | 190 | drivers/net/smc-ultra.c | dev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ; |
dev | 194 | drivers/net/smc-ultra.c | ethdev_init(dev); |
dev | 202 | drivers/net/smc-ultra.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 203 | drivers/net/smc-ultra.c | dev->mem_end = dev->rmem_end |
dev | 204 | drivers/net/smc-ultra.c | = dev->mem_start + (ei_status.stop_page - START_PG)*256; |
dev | 207 | drivers/net/smc-ultra.c | dev->irq, dev->mem_start, dev->mem_end-1); |
dev | 214 | drivers/net/smc-ultra.c | dev->open = &ultra_open; |
dev | 215 | drivers/net/smc-ultra.c | dev->stop = &ultra_close_card; |
dev | 216 | drivers/net/smc-ultra.c | NS8390_init(dev, 0); |
dev | 222 | drivers/net/smc-ultra.c | ultra_open(struct device *dev) |
dev | 224 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */ |
dev | 227 | drivers/net/smc-ultra.c | if (request_irq(dev->irq, ei_interrupt, 0, ei_status.name)) |
dev | 233 | drivers/net/smc-ultra.c | rc = ei_open(dev); |
dev | 242 | drivers/net/smc-ultra.c | ultra_reset_8390(struct device *dev) |
dev | 244 | drivers/net/smc-ultra.c | int cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */ |
dev | 260 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 262 | drivers/net/smc-ultra.c | void *xfer_start = (void *)(dev->mem_start + ring_offset |
dev | 266 | drivers/net/smc-ultra.c | outb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET); |
dev | 268 | drivers/net/smc-ultra.c | if (xfer_start + count > (void*) dev->rmem_end) { |
dev | 270 | drivers/net/smc-ultra.c | int semi_count = (void*)dev->rmem_end - xfer_start; |
dev | 273 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 274 | drivers/net/smc-ultra.c | outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */ |
dev | 275 | drivers/net/smc-ultra.c | return dev->rmem_start + count; |
dev | 279 | drivers/net/smc-ultra.c | outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */ |
dev | 284 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 288 | drivers/net/smc-ultra.c | = (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8); |
dev | 291 | drivers/net/smc-ultra.c | outb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET); |
dev | 295 | drivers/net/smc-ultra.c | outb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */ |
dev | 299 | drivers/net/smc-ultra.c | ultra_close_card(struct device *dev) |
dev | 301 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */ |
dev | 303 | drivers/net/smc-ultra.c | dev->start = 0; |
dev | 304 | drivers/net/smc-ultra.c | dev->tbusy = 1; |
dev | 307 | drivers/net/smc-ultra.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 310 | drivers/net/smc-ultra.c | free_irq(dev->irq); |
dev | 311 | drivers/net/smc-ultra.c | irq2dev_map[dev->irq] = 0; |
dev | 313 | drivers/net/smc-ultra.c | NS8390_init(dev, 0); |
dev | 159 | drivers/net/tulip.c | static int tulip_open(struct device *dev); |
dev | 160 | drivers/net/tulip.c | static void tulip_init_ring(struct device *dev); |
dev | 161 | drivers/net/tulip.c | static int tulip_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 162 | drivers/net/tulip.c | static int tulip_rx(struct device *dev); |
dev | 164 | drivers/net/tulip.c | static int tulip_close(struct device *dev); |
dev | 165 | drivers/net/tulip.c | static struct enet_statistics *tulip_get_stats(struct device *dev); |
dev | 166 | drivers/net/tulip.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 167 | drivers/net/tulip.c | static int set_mac_address(struct device *dev, void *addr); |
dev | 206 | drivers/net/tulip.c | static int tulip_probe(struct device *dev) |
dev | 216 | drivers/net/tulip.c | struct device *dev; |
dev | 223 | drivers/net/tulip.c | dev = init_etherdev(0, sizeof(struct tulip_private) |
dev | 227 | drivers/net/tulip.c | printk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr); |
dev | 244 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = value); |
dev | 251 | drivers/net/tulip.c | dev->base_addr = ioaddr; |
dev | 252 | drivers/net/tulip.c | dev->irq = irq; |
dev | 255 | drivers/net/tulip.c | dev->priv = (void *)(((int)dev->priv + 7) & ~7); |
dev | 256 | drivers/net/tulip.c | tp = (struct tulip_private *)dev->priv; |
dev | 257 | drivers/net/tulip.c | tp->rx_buffs = (long)dev->priv + sizeof(struct tulip_private); |
dev | 260 | drivers/net/tulip.c | dev->open = &tulip_open; |
dev | 261 | drivers/net/tulip.c | dev->hard_start_xmit = &tulip_start_xmit; |
dev | 262 | drivers/net/tulip.c | dev->stop = &tulip_close; |
dev | 263 | drivers/net/tulip.c | dev->get_stats = &tulip_get_stats; |
dev | 265 | drivers/net/tulip.c | dev->set_multicast_list = &set_multicast_list; |
dev | 268 | drivers/net/tulip.c | dev->set_mac_address = &set_mac_address; |
dev | 276 | drivers/net/tulip.c | tulip_open(struct device *dev) |
dev | 278 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 279 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
dev | 294 | drivers/net/tulip.c | if (irq2dev_map[dev->irq] != NULL |
dev | 295 | drivers/net/tulip.c | || (irq2dev_map[dev->irq] = dev) == NULL |
dev | 296 | drivers/net/tulip.c | || dev->irq == 0 |
dev | 297 | drivers/net/tulip.c | || request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip")) { |
dev | 302 | drivers/net/tulip.c | printk("%s: tulip_open() irq %d.\n", dev->name, dev->irq); |
dev | 304 | drivers/net/tulip.c | tulip_init_ring(dev); |
dev | 308 | drivers/net/tulip.c | unsigned short *eaddrs = (unsigned short *)dev->dev_addr; |
dev | 343 | drivers/net/tulip.c | dev->tbusy = 0; |
dev | 344 | drivers/net/tulip.c | dev->interrupt = 0; |
dev | 345 | drivers/net/tulip.c | dev->start = 1; |
dev | 352 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13)); |
dev | 362 | drivers/net/tulip.c | tulip_init_ring(struct device *dev) |
dev | 364 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 389 | drivers/net/tulip.c | tulip_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 391 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 392 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
dev | 396 | drivers/net/tulip.c | if (dev->tbusy) { |
dev | 397 | drivers/net/tulip.c | int tickssofar = jiffies - dev->trans_start; |
dev | 402 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12), |
dev | 414 | drivers/net/tulip.c | dev->tbusy=0; |
dev | 415 | drivers/net/tulip.c | dev->trans_start = jiffies; |
dev | 421 | drivers/net/tulip.c | dev->name); |
dev | 422 | drivers/net/tulip.c | dev_tint(dev); |
dev | 429 | drivers/net/tulip.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 430 | drivers/net/tulip.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 453 | drivers/net/tulip.c | dev->trans_start = jiffies; |
dev | 462 | drivers/net/tulip.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 466 | drivers/net/tulip.c | if (dev == NULL) { |
dev | 471 | drivers/net/tulip.c | ioaddr = dev->base_addr; |
dev | 472 | drivers/net/tulip.c | lp = (struct tulip_private *)dev->priv; |
dev | 473 | drivers/net/tulip.c | if (dev->interrupt) |
dev | 474 | drivers/net/tulip.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 476 | drivers/net/tulip.c | dev->interrupt = 1; |
dev | 485 | drivers/net/tulip.c | dev->name, csr5, inl(dev->base_addr + CSR5)); |
dev | 491 | drivers/net/tulip.c | tulip_rx(dev); |
dev | 535 | drivers/net/tulip.c | if (lp->tx_full && dev->tbusy |
dev | 539 | drivers/net/tulip.c | dev->tbusy = 0; |
dev | 555 | drivers/net/tulip.c | dev->name, csr5); |
dev | 561 | drivers/net/tulip.c | dev->name, csr5); |
dev | 570 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5)); |
dev | 575 | drivers/net/tulip.c | if (dev->start == 0 && --stopit < 0) { |
dev | 577 | drivers/net/tulip.c | dev->name); |
dev | 582 | drivers/net/tulip.c | dev->interrupt = 0; |
dev | 587 | drivers/net/tulip.c | tulip_rx(struct device *dev) |
dev | 589 | drivers/net/tulip.c | struct tulip_private *lp = (struct tulip_private *)dev->priv; |
dev | 603 | drivers/net/tulip.c | dev->name, status); |
dev | 618 | drivers/net/tulip.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 632 | drivers/net/tulip.c | skb->dev = dev; |
dev | 635 | drivers/net/tulip.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 648 | drivers/net/tulip.c | tulip_close(struct device *dev) |
dev | 650 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
dev | 651 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 653 | drivers/net/tulip.c | dev->start = 0; |
dev | 654 | drivers/net/tulip.c | dev->tbusy = 1; |
dev | 658 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5)); |
dev | 667 | drivers/net/tulip.c | free_irq(dev->irq); |
dev | 668 | drivers/net/tulip.c | irq2dev_map[dev->irq] = 0; |
dev | 677 | drivers/net/tulip.c | tulip_get_stats(struct device *dev) |
dev | 679 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 680 | drivers/net/tulip.c | short ioaddr = dev->base_addr; |
dev | 694 | drivers/net/tulip.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 696 | drivers/net/tulip.c | short ioaddr = dev->base_addr; |
dev | 705 | drivers/net/tulip.c | printk("%s: Promiscuous mode enabled.\n", dev->name); |
dev | 707 | drivers/net/tulip.c | struct tulip_private *tp = (struct tulip_private *)dev->priv; |
dev | 722 | drivers/net/tulip.c | eaddrs = (unsigned short *)dev->dev_addr; |
dev | 734 | drivers/net/tulip.c | set_mac_address(struct device *dev, void *addr) |
dev | 737 | drivers/net/tulip.c | if (dev->start) |
dev | 739 | drivers/net/tulip.c | printk("%s: Setting MAC address to ", dev->name); |
dev | 741 | drivers/net/tulip.c | printk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]); |
dev | 47 | drivers/net/tunnel.c | static int tunnel_xmit(struct sk_buff *skb, struct device *dev); |
dev | 48 | drivers/net/tunnel.c | static struct enet_statistics *tunnel_get_stats(struct device *dev); |
dev | 51 | drivers/net/tunnel.c | static int tunnel_open(struct device *dev) |
dev | 57 | drivers/net/tunnel.c | static int tunnel_close(struct device *dev) |
dev | 66 | drivers/net/tunnel.c | int tunnel_init(struct device *dev) |
dev | 76 | drivers/net/tunnel.c | ether_setup(dev); |
dev | 79 | drivers/net/tunnel.c | dev->hard_start_xmit = tunnel_xmit; |
dev | 80 | drivers/net/tunnel.c | dev->get_stats = tunnel_get_stats; |
dev | 81 | drivers/net/tunnel.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 82 | drivers/net/tunnel.c | if (dev->priv == NULL) |
dev | 84 | drivers/net/tunnel.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 86 | drivers/net/tunnel.c | dev->open = &tunnel_open; |
dev | 87 | drivers/net/tunnel.c | dev->stop = &tunnel_close; |
dev | 90 | drivers/net/tunnel.c | dev->type = ARPHRD_TUNNEL; /* IP tunnel hardware type (Linux 1.1.89) */ |
dev | 91 | drivers/net/tunnel.c | dev->flags |= IFF_NOARP; |
dev | 92 | drivers/net/tunnel.c | dev->flags |= IFF_LOOPBACK; /* Why doesn't tunnel work without this? [ should do now - AC]*/ |
dev | 93 | drivers/net/tunnel.c | dev->addr_len=0; |
dev | 94 | drivers/net/tunnel.c | dev->hard_header_len=0; |
dev | 95 | drivers/net/tunnel.c | dev->hard_header=NULL; |
dev | 96 | drivers/net/tunnel.c | dev->header_cache=NULL; |
dev | 97 | drivers/net/tunnel.c | dev->rebuild_header=NULL; |
dev | 127 | drivers/net/tunnel.c | static int tunnel_xmit(struct sk_buff *skb, struct device *dev) |
dev | 138 | drivers/net/tunnel.c | if (skb == NULL || dev == NULL) |
dev | 145 | drivers/net/tunnel.c | stats = (struct enet_statistics *)dev->priv; |
dev | 147 | drivers/net/tunnel.c | if (dev->tbusy != 0) |
dev | 153 | drivers/net/tunnel.c | dev->tbusy = 1; |
dev | 160 | drivers/net/tunnel.c | if ( ! dev->pa_dstaddr ) |
dev | 162 | drivers/net/tunnel.c | printk("%s: packet sent through tunnel to never-never land!\n", dev->name); |
dev | 164 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 174 | drivers/net/tunnel.c | printk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version); |
dev | 176 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 185 | drivers/net/tunnel.c | if ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) |
dev | 190 | drivers/net/tunnel.c | printk("%s: Warning: IP routing loop!\n", dev->name); |
dev | 191 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 196 | drivers/net/tunnel.c | if ( iph->daddr == dev->pa_addr ) |
dev | 198 | drivers/net/tunnel.c | printk("%s: Received inbound packet -- not handled.\n",dev->name); |
dev | 200 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 216 | drivers/net/tunnel.c | printk("%s: No free memory.\n",dev->name); |
dev | 218 | drivers/net/tunnel.c | dev->tbusy = 0; |
dev | 235 | drivers/net/tunnel.c | iph->saddr = dev->pa_addr; |
dev | 236 | drivers/net/tunnel.c | iph->daddr = dev->pa_dstaddr; |
dev | 255 | drivers/net/tunnel.c | if(ip_forward(skb2, dev, 0, iph->daddr, 0)) |
dev | 268 | drivers/net/tunnel.c | dev->tbusy=0; |
dev | 273 | drivers/net/tunnel.c | tunnel_get_stats(struct device *dev) |
dev | 275 | drivers/net/tunnel.c | return((struct enet_statistics*) dev->priv); |
dev | 281 | drivers/net/tunnel.c | static int tunnel_probe(struct device *dev) |
dev | 283 | drivers/net/tunnel.c | tunnel_init(dev); |
dev | 70 | drivers/net/wavelan.c | device *dev; |
dev | 194 | drivers/net/wavelan.c | wavelan_ints_off(device *dev) |
dev | 200 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 201 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 213 | drivers/net/wavelan.c | wavelan_ints_on(device *dev) |
dev | 219 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 220 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 384 | drivers/net/wavelan.c | wavelan_mmc_init(device *dev, psa_t *psa) |
dev | 391 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 392 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 461 | drivers/net/wavelan.c | wavelan_ack(device *dev) |
dev | 468 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 469 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 491 | drivers/net/wavelan.c | printk("%s: wavelan_ack(): board not accepting command.\n", dev->name); |
dev | 500 | drivers/net/wavelan.c | wavelan_synchronous_cmd(device *dev, const char *str) |
dev | 508 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 509 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 527 | drivers/net/wavelan.c | printk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status); |
dev | 532 | drivers/net/wavelan.c | wavelan_ack(dev); |
dev | 539 | drivers/net/wavelan.c | wavelan_hardware_reset(device *dev) |
dev | 553 | drivers/net/wavelan.c | printk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev); |
dev | 555 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 556 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 577 | drivers/net/wavelan.c | wavelan_mmc_init(dev, &psa); |
dev | 613 | drivers/net/wavelan.c | printk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name); |
dev | 615 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 631 | 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 | 633 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 637 | drivers/net/wavelan.c | wavelan_ack(dev); |
dev | 644 | drivers/net/wavelan.c | if (wavelan_synchronous_cmd(dev, "diag()") == -1) |
dev | 647 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 654 | drivers/net/wavelan.c | printk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name); |
dev | 656 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 716 | drivers/net/wavelan.c | if (wavelan_synchronous_cmd(dev, "reset()-configure") == -1) |
dev | 719 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 727 | drivers/net/wavelan.c | memcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr)); |
dev | 730 | drivers/net/wavelan.c | if (wavelan_synchronous_cmd(dev, "reset()-address") == -1) |
dev | 733 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): -1\n", dev->name); |
dev | 738 | drivers/net/wavelan.c | wavelan_ints_on(dev); |
dev | 743 | drivers/net/wavelan.c | wavelan_ru_start(dev); |
dev | 744 | drivers/net/wavelan.c | wavelan_cu_start(dev); |
dev | 747 | drivers/net/wavelan.c | printk("%s: <-wavelan_hardware_reset(): 0\n", dev->name); |
dev | 778 | drivers/net/wavelan.c | wavelan_probe(device *dev) |
dev | 796 | 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 | 801 | drivers/net/wavelan.c | printk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check()); |
dev | 804 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): ENODEV\n", dev->name); |
dev | 810 | drivers/net/wavelan.c | base_addr = dev->base_addr; |
dev | 818 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): ENXIO\n", dev->name); |
dev | 827 | drivers/net/wavelan.c | r = wavelan_probe1(dev, base_addr); |
dev | 829 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): %d\n", dev->name, r); |
dev | 838 | drivers/net/wavelan.c | if (wavelan_probe1(dev, iobase[i]) == 0) |
dev | 841 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): 0\n", dev->name); |
dev | 854 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe(): ENODEV\n", dev->name); |
dev | 861 | drivers/net/wavelan.c | wavelan_probe1(device *dev, unsigned short ioaddr) |
dev | 870 | drivers/net/wavelan.c | printk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr); |
dev | 890 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe1(): ENODEV\n", dev->name); |
dev | 894 | drivers/net/wavelan.c | printk("%s: WaveLAN at %#x,", dev->name, ioaddr); |
dev | 896 | drivers/net/wavelan.c | if (dev->irq != 0) |
dev | 898 | drivers/net/wavelan.c | printk("[WARNING: explicit IRQ value %d ignored: using PSA value instead]", dev->irq); |
dev | 901 | drivers/net/wavelan.c | if (wavelan_unmap_irq(dev->irq, &psa.psa_int_req_no) == -1) |
dev | 903 | drivers/net/wavelan.c | printk(" could not wavelan_unmap_irq(%d, ..) -- ignored.\n", dev->irq); |
dev | 904 | drivers/net/wavelan.c | dev->irq = 0; |
dev | 918 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name); |
dev | 922 | drivers/net/wavelan.c | dev->irq = irq; |
dev | 925 | drivers/net/wavelan.c | dev->base_addr = ioaddr; |
dev | 938 | drivers/net/wavelan.c | enable_full_promiscuous = (dev->mem_start & ENABLE_FULL_PROMISCUOUS) == ENABLE_FULL_PROMISCUOUS; |
dev | 939 | drivers/net/wavelan.c | dev->mem_start &= ~ENABLE_FULL_PROMISCUOUS; |
dev | 941 | drivers/net/wavelan.c | if (dev->mem_start != 0) |
dev | 943 | drivers/net/wavelan.c | psa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF; |
dev | 944 | drivers/net/wavelan.c | psa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF; |
dev | 947 | drivers/net/wavelan.c | dev->mem_start = 0x0000; |
dev | 948 | drivers/net/wavelan.c | dev->mem_end = 0x0000; |
dev | 949 | drivers/net/wavelan.c | dev->if_port = 0; |
dev | 951 | drivers/net/wavelan.c | memcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE); |
dev | 954 | drivers/net/wavelan.c | printk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]); |
dev | 956 | drivers/net/wavelan.c | printk(", IRQ %d", dev->irq); |
dev | 1017 | drivers/net/wavelan.c | dev->priv = kmalloc(sizeof(net_local), GFP_KERNEL); |
dev | 1018 | drivers/net/wavelan.c | if (dev->priv == NULL) |
dev | 1020 | drivers/net/wavelan.c | memset(dev->priv, 0x00, sizeof(net_local)); |
dev | 1021 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1036 | drivers/net/wavelan.c | lp->dev = dev; |
dev | 1045 | drivers/net/wavelan.c | lp->watchdog.data = (unsigned long)dev; |
dev | 1047 | drivers/net/wavelan.c | dev->open = wavelan_open; |
dev | 1048 | drivers/net/wavelan.c | dev->stop = wavelan_close; |
dev | 1049 | drivers/net/wavelan.c | dev->hard_start_xmit = wavelan_send_packet; |
dev | 1050 | drivers/net/wavelan.c | dev->get_stats = wavelan_get_stats; |
dev | 1051 | drivers/net/wavelan.c | dev->set_multicast_list = &wavelan_set_multicast_list; |
dev | 1057 | drivers/net/wavelan.c | ether_setup(dev); |
dev | 1059 | drivers/net/wavelan.c | dev->mtu = WAVELAN_MTU; |
dev | 1062 | drivers/net/wavelan.c | printk("%s: <-wavelan_probe1(): 0\n", dev->name); |
dev | 1073 | drivers/net/wavelan.c | wavelan_ru_start(device *dev) |
dev | 1084 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1085 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1130 | drivers/net/wavelan.c | printk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name); |
dev | 1140 | drivers/net/wavelan.c | wavelan_cu_start(device *dev) |
dev | 1149 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1150 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1211 | drivers/net/wavelan.c | printk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name); |
dev | 1214 | drivers/net/wavelan.c | dev->tbusy = 0; |
dev | 1219 | drivers/net/wavelan.c | wavelan_open(device *dev) |
dev | 1227 | drivers/net/wavelan.c | printk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev); |
dev | 1229 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1230 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1232 | drivers/net/wavelan.c | if (dev->irq == 0) |
dev | 1235 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): -ENXIO\n", dev->name); |
dev | 1241 | drivers/net/wavelan.c | irq2dev_map[dev->irq] != (device *)0 |
dev | 1244 | drivers/net/wavelan.c | (irq2dev_map[dev->irq] = dev) == (device *)0 |
dev | 1246 | drivers/net/wavelan.c | request_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN") != 0 |
dev | 1249 | drivers/net/wavelan.c | irq2dev_map[dev->irq] = (device *)0; |
dev | 1251 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): -EAGAIN\n", dev->name); |
dev | 1256 | drivers/net/wavelan.c | if ((r = wavelan_hardware_reset(dev)) != -1) |
dev | 1258 | drivers/net/wavelan.c | dev->interrupt = 0; |
dev | 1259 | drivers/net/wavelan.c | dev->start = 1; |
dev | 1265 | drivers/net/wavelan.c | free_irq(dev->irq); |
dev | 1266 | drivers/net/wavelan.c | irq2dev_map[dev->irq] = (device *)0; |
dev | 1268 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name); |
dev | 1277 | drivers/net/wavelan.c | printk("%s: <-wavelan_open(): 0\n", dev->name); |
dev | 1284 | drivers/net/wavelan.c | hardware_send_packet(device *dev, void *buf, short length) |
dev | 1299 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1300 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1366 | drivers/net/wavelan.c | dev->tbusy = 0; |
dev | 1368 | drivers/net/wavelan.c | dev->trans_start = jiffies; |
dev | 1371 | drivers/net/wavelan.c | wavelan_watchdog((unsigned long)dev); |
dev | 1384 | drivers/net/wavelan.c | dev->name, |
dev | 1394 | drivers/net/wavelan.c | wavelan_send_packet(struct sk_buff *skb, device *dev) |
dev | 1398 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1400 | drivers/net/wavelan.c | if (dev->tbusy) |
dev | 1408 | drivers/net/wavelan.c | tickssofar = jiffies - dev->trans_start; |
dev | 1420 | drivers/net/wavelan.c | wavelan_ru_show(dev); |
dev | 1421 | drivers/net/wavelan.c | wavelan_cu_show(dev); |
dev | 1422 | drivers/net/wavelan.c | wavelan_dev_show(dev); |
dev | 1423 | drivers/net/wavelan.c | wavelan_local_show(dev); |
dev | 1425 | drivers/net/wavelan.c | printk("%s: transmit timed out -- resetting board.\n", dev->name); |
dev | 1427 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1437 | drivers/net/wavelan.c | dev_tint(dev); |
dev | 1444 | drivers/net/wavelan.c | if (set_bit(0, (void *)&dev->tbusy) == 0) |
dev | 1452 | drivers/net/wavelan.c | hardware_send_packet(dev, buf, length); |
dev | 1455 | drivers/net/wavelan.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 1486 | drivers/net/wavelan.c | wavelan_receive(device *dev) |
dev | 1492 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1493 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1526 | drivers/net/wavelan.c | printk("%s: frame not received successfully.\n", dev->name); |
dev | 1534 | drivers/net/wavelan.c | printk("%s: no EOF flag.\n", dev->name); |
dev | 1539 | drivers/net/wavelan.c | printk("%s: frame too short.\n", dev->name); |
dev | 1545 | drivers/net/wavelan.c | printk("%s: rx DMA overrun.\n", dev->name); |
dev | 1551 | drivers/net/wavelan.c | printk("%s: ran out of resources.\n", dev->name); |
dev | 1557 | drivers/net/wavelan.c | printk("%s: alignment error.\n", dev->name); |
dev | 1563 | drivers/net/wavelan.c | printk("%s: CRC error.\n", dev->name); |
dev | 1568 | drivers/net/wavelan.c | printk("%s: frame has no data.\n", dev->name); |
dev | 1574 | drivers/net/wavelan.c | printk("%s: missing EOF flag.\n", dev->name); |
dev | 1577 | drivers/net/wavelan.c | printk("%s: missing F flag.\n", dev->name); |
dev | 1600 | drivers/net/wavelan.c | printk("%s: foreign MAC source addr=", dev->name); |
dev | 1615 | drivers/net/wavelan.c | printk("%s: fd_dest=", dev->name); |
dev | 1620 | drivers/net/wavelan.c | printk("%s: fd_src=", dev->name); |
dev | 1624 | drivers/net/wavelan.c | printk("%s: fd_length=%d\n", dev->name, fd.fd_length); |
dev | 1628 | drivers/net/wavelan.c | printk("%s: dest=", dev->name); |
dev | 1634 | drivers/net/wavelan.c | printk("%s: src=", dev->name); |
dev | 1640 | drivers/net/wavelan.c | printk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype)); |
dev | 1647 | drivers/net/wavelan.c | printk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize); |
dev | 1652 | drivers/net/wavelan.c | skb->dev = dev; |
dev | 1661 | drivers/net/wavelan.c | printk("%s: pkt_len=%d, data=\"", dev->name, pkt_len); |
dev | 1683 | drivers/net/wavelan.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 1715 | drivers/net/wavelan.c | wavelan_complete(device *dev, unsigned short ioaddr, net_local *lp) |
dev | 1770 | drivers/net/wavelan.c | printk("%s: tx error: no CS.\n", dev->name); |
dev | 1775 | drivers/net/wavelan.c | printk("%s: tx error: lost CTS.\n", dev->name); |
dev | 1780 | drivers/net/wavelan.c | printk("%s: tx error: slow DMA.\n", dev->name); |
dev | 1786 | drivers/net/wavelan.c | printk("%s: tx error: heart beat.\n", dev->name); |
dev | 1792 | drivers/net/wavelan.c | printk("%s: tx error: too many collisions.\n", dev->name); |
dev | 1797 | drivers/net/wavelan.c | printk("%s: tx completed, tx_status 0x%04x.\n", dev->name, tx_status); |
dev | 1810 | drivers/net/wavelan.c | dev->tbusy = 0; |
dev | 1821 | drivers/net/wavelan.c | device *dev; |
dev | 1829 | drivers/net/wavelan.c | dev = (device *)a; |
dev | 1830 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1831 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1842 | drivers/net/wavelan.c | if (jiffies - dev->trans_start < WATCHDOG_JIFFIES) |
dev | 1848 | drivers/net/wavelan.c | nreaped = wavelan_complete(dev, ioaddr, lp); |
dev | 1850 | drivers/net/wavelan.c | printk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use); |
dev | 1866 | drivers/net/wavelan.c | device *dev; |
dev | 1873 | drivers/net/wavelan.c | if ((dev = (device *)(irq2dev_map[irq])) == (device *)0) |
dev | 1879 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1880 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1882 | drivers/net/wavelan.c | dev->interrupt = 1; |
dev | 1894 | drivers/net/wavelan.c | printk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status); |
dev | 1899 | drivers/net/wavelan.c | dev->interrupt = 0; |
dev | 1901 | drivers/net/wavelan.c | printk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name); |
dev | 1917 | drivers/net/wavelan.c | printk("%s: interrupt, status 0x%04x.\n", dev->name, status); |
dev | 1925 | drivers/net/wavelan.c | printk("%s: command completed.\n", dev->name); |
dev | 1926 | drivers/net/wavelan.c | (void)wavelan_complete(dev, ioaddr, lp); |
dev | 1935 | drivers/net/wavelan.c | printk("%s: received packet.\n", dev->name); |
dev | 1936 | drivers/net/wavelan.c | wavelan_receive(dev); |
dev | 1943 | drivers/net/wavelan.c | (((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start) |
dev | 1946 | drivers/net/wavelan.c | printk("%s: warning: CU inactive -- restarting.\n", dev->name); |
dev | 1948 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1955 | drivers/net/wavelan.c | (((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start) |
dev | 1958 | drivers/net/wavelan.c | printk("%s: warning: RU not ready -- restarting.\n", dev->name); |
dev | 1960 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 1963 | drivers/net/wavelan.c | dev->interrupt = 0; |
dev | 1968 | drivers/net/wavelan.c | wavelan_close(device *dev) |
dev | 1975 | drivers/net/wavelan.c | printk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev); |
dev | 1977 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 1978 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 1980 | drivers/net/wavelan.c | dev->tbusy = 1; |
dev | 1981 | drivers/net/wavelan.c | dev->start = 0; |
dev | 1990 | drivers/net/wavelan.c | wavelan_ints_off(dev); |
dev | 1992 | drivers/net/wavelan.c | free_irq(dev->irq); |
dev | 1993 | drivers/net/wavelan.c | irq2dev_map[dev->irq] = (device *)0; |
dev | 2005 | drivers/net/wavelan.c | printk("%s: <-wavelan_close(): 0\n", dev->name); |
dev | 2016 | drivers/net/wavelan.c | wavelan_get_stats(device *dev) |
dev | 2020 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2027 | drivers/net/wavelan.c | wavelan_set_multicast_list(device *dev, int num_addrs, void *addrs) |
dev | 2033 | 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 | 2035 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2045 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 2056 | drivers/net/wavelan.c | (void)wavelan_hardware_reset(dev); |
dev | 2069 | drivers/net/wavelan.c | printk("%s: <-wavelan_set_multicast_list()\n", dev->name); |
dev | 2078 | drivers/net/wavelan.c | sprintf_stats(char *buffer, device *dev) |
dev | 2084 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2087 | drivers/net/wavelan.c | return sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
dev | 2090 | drivers/net/wavelan.c | mmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v)); |
dev | 2092 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status)); |
dev | 2093 | 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 | 2094 | 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 | 2095 | 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 | 2096 | 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 | 2097 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl)); |
dev | 2098 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl)); |
dev | 2099 | drivers/net/wavelan.c | mmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual)); |
dev | 2102 | drivers/net/wavelan.c | mmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v)); |
dev | 2111 | drivers/net/wavelan.c | dev->name, |
dev | 2150 | drivers/net/wavelan.c | size = sprintf_stats(buffer + len, lp->dev); |
dev | 2219 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
dev | 2224 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
dev | 2430 | drivers/net/wavelan.c | wavelan_ru_show(device *dev) |
dev | 2434 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2445 | drivers/net/wavelan.c | wavelan_cu_show(device *dev) |
dev | 2451 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 2458 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
dev | 2468 | drivers/net/wavelan.c | wavelan_dev_show(device *dev) |
dev | 2471 | drivers/net/wavelan.c | printk(" start=%d,", dev->start); |
dev | 2472 | drivers/net/wavelan.c | printk(" tbusy=%ld,", dev->tbusy); |
dev | 2473 | drivers/net/wavelan.c | printk(" interrupt=%d,", dev->interrupt); |
dev | 2474 | drivers/net/wavelan.c | printk(" trans_start=%ld,", dev->trans_start); |
dev | 2475 | drivers/net/wavelan.c | printk(" flags=0x%x,", dev->flags); |
dev | 2481 | drivers/net/wavelan.c | wavelan_local_show(device *dev) |
dev | 2485 | drivers/net/wavelan.c | lp = (net_local *)dev->priv; |
dev | 43 | drivers/net/wd.c | int wd_probe(struct device *dev); |
dev | 44 | drivers/net/wd.c | int wd_probe1(struct device *dev, int ioaddr); |
dev | 46 | drivers/net/wd.c | static int wd_open(struct device *dev); |
dev | 47 | drivers/net/wd.c | static void wd_reset_8390(struct device *dev); |
dev | 48 | drivers/net/wd.c | static int wd_block_input(struct device *dev, int count, |
dev | 50 | drivers/net/wd.c | static void wd_block_output(struct device *dev, int count, |
dev | 52 | drivers/net/wd.c | static int wd_close_card(struct device *dev); |
dev | 82 | drivers/net/wd.c | int wd_probe(struct device *dev) |
dev | 85 | drivers/net/wd.c | int base_addr = dev ? dev->base_addr : 0; |
dev | 88 | drivers/net/wd.c | return wd_probe1(dev, base_addr); |
dev | 96 | drivers/net/wd.c | if (wd_probe1(dev, ioaddr) == 0) |
dev | 104 | drivers/net/wd.c | int wd_probe1(struct device *dev, int ioaddr) |
dev | 119 | drivers/net/wd.c | if (dev == NULL) |
dev | 120 | drivers/net/wd.c | dev = init_etherdev(0, sizeof(struct ei_device), 0); |
dev | 122 | drivers/net/wd.c | printk("%s: WD80x3 at %#3x, ", dev->name, ioaddr); |
dev | 124 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
dev | 141 | drivers/net/wd.c | dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; |
dev | 142 | drivers/net/wd.c | dev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1; |
dev | 183 | drivers/net/wd.c | dev->mem_start = WD_SHMEM; |
dev | 185 | drivers/net/wd.c | if (dev->mem_start == 0) { |
dev | 190 | drivers/net/wd.c | dev->mem_start = 0xd0000; |
dev | 191 | drivers/net/wd.c | printk(" assigning address %#lx", dev->mem_start); |
dev | 197 | drivers/net/wd.c | dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); |
dev | 203 | drivers/net/wd.c | dev->base_addr = ioaddr+WD_NIC_OFFSET; |
dev | 205 | drivers/net/wd.c | if (dev->irq < 2) { |
dev | 222 | drivers/net/wd.c | dev->irq = autoirq_report(2); |
dev | 226 | drivers/net/wd.c | printk(" autoirq is %d", dev->irq); |
dev | 227 | drivers/net/wd.c | if (dev->irq < 2) |
dev | 228 | drivers/net/wd.c | dev->irq = word16 ? 10 : 5; |
dev | 230 | drivers/net/wd.c | dev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)]; |
dev | 231 | drivers/net/wd.c | } else if (dev->irq == 2) /* Fixup bogosity: IRQ2 is really IRQ9 */ |
dev | 232 | drivers/net/wd.c | dev->irq = 9; |
dev | 236 | drivers/net/wd.c | if (request_irq(dev->irq, ei_interrupt, 0, "wd")) { |
dev | 237 | drivers/net/wd.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 243 | drivers/net/wd.c | ethdev_init(dev); |
dev | 252 | drivers/net/wd.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 253 | drivers/net/wd.c | dev->mem_end = dev->rmem_end |
dev | 254 | drivers/net/wd.c | = dev->mem_start + (ei_status.stop_page - WD_START_PG)*256; |
dev | 257 | drivers/net/wd.c | model_name, dev->irq, dev->mem_start, dev->mem_end-1); |
dev | 264 | drivers/net/wd.c | dev->open = &wd_open; |
dev | 265 | drivers/net/wd.c | dev->stop = &wd_close_card; |
dev | 266 | drivers/net/wd.c | NS8390_init(dev, 0); |
dev | 279 | drivers/net/wd.c | wd_open(struct device *dev) |
dev | 281 | drivers/net/wd.c | int ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 286 | drivers/net/wd.c | ei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB; |
dev | 287 | drivers/net/wd.c | ei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16; |
dev | 293 | drivers/net/wd.c | rc = ei_open(dev); |
dev | 302 | drivers/net/wd.c | wd_reset_8390(struct device *dev) |
dev | 304 | drivers/net/wd.c | int wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 311 | drivers/net/wd.c | outb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port); |
dev | 313 | drivers/net/wd.c | outb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5); |
dev | 325 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 327 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 328 | drivers/net/wd.c | long xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8); |
dev | 339 | drivers/net/wd.c | if (xfer_start + count > dev->rmem_end) { |
dev | 341 | drivers/net/wd.c | int semi_count = dev->rmem_end - xfer_start; |
dev | 344 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 356 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 359 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 360 | drivers/net/wd.c | long shmem = dev->mem_start + ((start_page - WD_START_PG)<<8); |
dev | 374 | drivers/net/wd.c | wd_close_card(struct device *dev) |
dev | 376 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 379 | drivers/net/wd.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 380 | drivers/net/wd.c | NS8390_init(dev, 0); |
dev | 381 | 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 %#3lx,", 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(%ld).\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 | 558 | drivers/net/znet.c | skb->dev = dev; |
dev | 573 | drivers/net/znet.c | skb->protocol=eth_type_trans(skb,dev); |
dev | 594 | drivers/net/znet.c | static int znet_close(struct device *dev) |
dev | 596 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
dev | 598 | drivers/net/znet.c | dev->tbusy = 1; |
dev | 599 | drivers/net/znet.c | dev->start = 0; |
dev | 606 | drivers/net/znet.c | free_irq(dev->irq); |
dev | 609 | drivers/net/znet.c | printk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name); |
dev | 619 | drivers/net/znet.c | static struct enet_statistics *net_get_stats(struct device *dev) |
dev | 621 | drivers/net/znet.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 639 | drivers/net/znet.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 641 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
dev | 681 | drivers/net/znet.c | static void hardware_init(struct device *dev) |
dev | 683 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
dev | 708 | drivers/net/znet.c | printk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name, |
dev | 722 | drivers/net/znet.c | memcpy(zn.tx_cur, dev->dev_addr, 6); |
dev | 731 | drivers/net/znet.c | dev->tbusy = 0; |
dev | 244 | drivers/pci/pci.c | struct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev) |
dev | 256 | drivers/pci/pci.c | order = dev_info[i].device - (long) dev; |
dev | 492 | drivers/pci/pci.c | static int sprint_dev_config(struct pci_dev *dev, char *buf, int size) |
dev | 501 | drivers/pci/pci.c | bus = dev->bus->number; |
dev | 502 | drivers/pci/pci.c | devfn = dev->devfn; |
dev | 560 | drivers/pci/pci.c | if (dev->irq) { |
dev | 564 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
dev | 567 | drivers/pci/pci.c | if (dev->master) { |
dev | 636 | drivers/pci/pci.c | struct pci_dev *dev; |
dev | 643 | drivers/pci/pci.c | for (dev = pci_devices; dev; dev = dev->next) { |
dev | 644 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
dev | 677 | drivers/pci/pci.c | struct pci_dev *dev; |
dev | 702 | drivers/pci/pci.c | dev = pci_malloc(sizeof(*dev), mem_startp); |
dev | 703 | drivers/pci/pci.c | dev->bus = bus; |
dev | 709 | drivers/pci/pci.c | dev->next = pci_devices; |
dev | 710 | drivers/pci/pci.c | pci_devices = dev; |
dev | 712 | drivers/pci/pci.c | dev->devfn = devfn; |
dev | 713 | drivers/pci/pci.c | dev->vendor = l & 0xffff; |
dev | 714 | drivers/pci/pci.c | dev->device = (l >> 16) & 0xffff; |
dev | 721 | drivers/pci/pci.c | info = pci_lookup_dev(dev->vendor, dev->device); |
dev | 724 | drivers/pci/pci.c | dev->vendor, dev->device); |
dev | 740 | drivers/pci/pci.c | dev->master = ((tmp & PCI_COMMAND_MASTER) != 0); |
dev | 746 | drivers/pci/pci.c | PCI_INTERRUPT_LINE, &dev->irq); |
dev | 752 | drivers/pci/pci.c | dev->class = l; |
dev | 757 | drivers/pci/pci.c | dev->sibling = bus->devices; |
dev | 758 | drivers/pci/pci.c | bus->devices = dev; |
dev | 760 | drivers/pci/pci.c | if (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) { |
dev | 770 | drivers/pci/pci.c | child->self = dev; |
dev | 2140 | drivers/scsi/53c7,8xx.c | int dev; |
dev | 2142 | drivers/scsi/53c7,8xx.c | for (dev = MINOR(inode->rdev), host = first_host; |
dev | 2143 | drivers/scsi/53c7,8xx.c | (host->hostt == the_template); --dev, host = host->next) |
dev | 2144 | drivers/scsi/53c7,8xx.c | if (!dev) return host; |
dev | 1111 | drivers/scsi/aha152x.c | int aha152x_biosparam(Scsi_Disk * disk, int dev, int *info_array ) |
dev | 1117 | drivers/scsi/aha152x.c | printk("aha152x_biosparam: dev=%x, size=%d, ", dev, size); |
dev | 1140 | drivers/scsi/aha1542.c | printk("Timed out command pending for %4.4x\n", SCpnt->request.dev); |
dev | 1146 | drivers/scsi/aha1542.c | printk("Other pending command %4.4x\n", SCpnt->request.dev); |
dev | 1262 | drivers/scsi/aha1542.c | int aha1542_biosparam(Scsi_Disk * disk, int dev, int * ip) |
dev | 500 | 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 | 385 | drivers/scsi/constants.c | int dev = SCpnt->request.dev; |
dev | 416 | drivers/scsi/constants.c | printk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]); |
dev | 418 | drivers/scsi/constants.c | printk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]); |
dev | 446 | drivers/scsi/constants.c | printk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]); |
dev | 449 | drivers/scsi/constants.c | printk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]); |
dev | 106 | drivers/scsi/eata_dma.c | scmd->request.dev = 0xfffe; |
dev | 184 | drivers/scsi/eata_dma_proc.c | scmd.request.dev = 0xffff; /* Mark busy */ |
dev | 193 | drivers/scsi/eata_dma_proc.c | while (scmd.request.dev != 0xfffe) |
dev | 195 | drivers/scsi/eata_dma_proc.c | } else if (scmd.request.dev != 0xfffe) { |
dev | 202 | drivers/scsi/eata_dma_proc.c | while (scmd.request.dev != 0xfffe) schedule(); |
dev | 323 | drivers/scsi/eata_dma_proc.c | scmd.request.dev = 0xffff; /* Mark busy */ |
dev | 332 | drivers/scsi/eata_dma_proc.c | while (scmd.request.dev != 0xfffe) |
dev | 334 | drivers/scsi/eata_dma_proc.c | else if (scmd.request.dev != 0xfffe) { |
dev | 341 | drivers/scsi/eata_dma_proc.c | while (scmd.request.dev != 0xfffe) schedule(); |
dev | 1752 | drivers/scsi/fdomain.c | int fdomain_16x0_biosparam( Scsi_Disk *disk, int dev, int *info_array ) |
dev | 1810 | drivers/scsi/fdomain.c | drive = MINOR(dev) / 16; |
dev | 687 | drivers/scsi/in2000.c | int in2000_biosparam(Disk * disk, int dev, int* iinfo) |
dev | 451 | drivers/scsi/pas16.c | int pas16_biosparam(Disk * disk, int dev, int * ip) |
dev | 627 | drivers/scsi/qlogic.c | int qlogic_biosparam(Disk * disk, int dev, int ip[]) |
dev | 336 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xfffe; |
dev | 366 | drivers/scsi/scsi.c | int dev, lun, type, channel; |
dev | 398 | drivers/scsi/scsi.c | dev = hid; |
dev | 405 | drivers/scsi/scsi.c | for (dev = 0; dev < shpnt->max_id; ++dev) { |
dev | 406 | drivers/scsi/scsi.c | if (shpnt->this_id != dev) { |
dev | 422 | drivers/scsi/scsi.c | SDpnt->id = dev; |
dev | 449 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Mark not busy */ |
dev | 461 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) |
dev | 463 | drivers/scsi/scsi.c | else if (SCpnt->request.dev != 0xfffe) { |
dev | 470 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 474 | drivers/scsi/scsi.c | printk("scsi: scan SCSIS id %d lun %d\n", dev, lun); |
dev | 506 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Mark not busy */ |
dev | 514 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) |
dev | 516 | drivers/scsi/scsi.c | else if (SCpnt->request.dev != 0xfffe) { |
dev | 523 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 677 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Mark not busy */ |
dev | 685 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe); |
dev | 686 | drivers/scsi/scsi.c | else if (SCpnt->request.dev != 0xfffe) { |
dev | 693 | drivers/scsi/scsi.c | while (SCpnt->request.dev != 0xfffe) |
dev | 842 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
dev | 858 | drivers/scsi/scsi.c | if(SCpnt->request.dev < 0) break; |
dev | 867 | drivers/scsi/scsi.c | && SCpnt->request.dev < 0) |
dev | 872 | drivers/scsi/scsi.c | if(SCpnt->request.dev >= 0) { |
dev | 919 | drivers/scsi/scsi.c | req->dev = -1; |
dev | 923 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Busy, but no request */ |
dev | 957 | drivers/scsi/scsi.c | int dev = -1; |
dev | 973 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
dev | 986 | drivers/scsi/scsi.c | if(SCpnt->request.dev < 0) break; |
dev | 996 | drivers/scsi/scsi.c | && SCpnt->request.dev < 0) |
dev | 1001 | drivers/scsi/scsi.c | if(SCpnt->request.dev >= 0) { |
dev | 1020 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
dev | 1024 | drivers/scsi/scsi.c | if (!SCpnt || SCpnt->request.dev >= 0) /* Might have changed */ |
dev | 1034 | drivers/scsi/scsi.c | (SCwait->request.dev > 0)); |
dev | 1066 | drivers/scsi/scsi.c | req->dev = -1; |
dev | 1071 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Busy */ |
dev | 1724 | drivers/scsi/scsi.c | if (MAJOR(SCpnt->request.dev) != SCSI_DISK_MAJOR && |
dev | 1725 | drivers/scsi/scsi.c | MAJOR(SCpnt->request.dev) != SCSI_CDROM_MAJOR) { |
dev | 1778 | drivers/scsi/scsi.c | if (SCpnt->request.dev == -1 || pid != SCpnt->pid) { |
dev | 1815 | drivers/scsi/scsi.c | if (SCpnt->request.dev == -1 || pid != SCpnt->pid) |
dev | 1901 | drivers/scsi/scsi.c | if( SCpnt->request.dev > 0 |
dev | 1937 | drivers/scsi/scsi.c | if (SCpnt1->request.dev > 0) { |
dev | 2010 | drivers/scsi/scsi.c | if( SCpnt->request.dev > 0 |
dev | 2320 | drivers/scsi/scsi.c | SCpnt->request.dev = -1; /* Mark not busy */ |
dev | 2797 | drivers/scsi/scsi.c | if(SCpnt->request.dev != -1) { |
dev | 2800 | drivers/scsi/scsi.c | if(SCpnt->request.dev == 0xffe0) SCpnt->request.dev = -1; |
dev | 2804 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffe0; /* Mark as busy */ |
dev | 3083 | drivers/scsi/scsi.c | SCpnt->request.dev, |
dev | 3109 | drivers/scsi/scsi.c | req->dev, |
dev | 463 | drivers/scsi/scsi.h | req->dev,req->sector); |
dev | 488 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
dev | 501 | drivers/scsi/scsi.h | req->dev = -1; |
dev | 518 | drivers/scsi/scsi.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 79 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1]; \ |
dev | 86 | drivers/scsi/scsi_debug.c | if (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\ |
dev | 92 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){ \ |
dev | 93 | drivers/scsi/scsi_debug.c | printk("Dev #s %x %x ",SCpnt->request.dev, target); \ |
dev | 102 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition"); \ |
dev | 103 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1]; \ |
dev | 113 | drivers/scsi/scsi_debug.c | if (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\ |
dev | 254 | drivers/scsi/scsi_debug.c | if(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f; |
dev | 590 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(Disk * disk, int dev, int* info){ |
dev | 103 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 110 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
dev | 115 | drivers/scsi/scsi_ioctl.c | SCpnt = allocate_device(NULL, dev, 1); |
dev | 120 | drivers/scsi/scsi_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 125 | drivers/scsi/scsi_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 131 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
dev | 135 | drivers/scsi/scsi_ioctl.c | if(dev->removable){ |
dev | 140 | drivers/scsi/scsi_ioctl.c | if (dev->removable){ |
dev | 141 | drivers/scsi/scsi_ioctl.c | dev->changed = 1; |
dev | 148 | drivers/scsi/scsi_ioctl.c | dev->host->host_no, |
dev | 149 | drivers/scsi/scsi_ioctl.c | dev->id, |
dev | 150 | drivers/scsi/scsi_ioctl.c | dev->lun, |
dev | 160 | drivers/scsi/scsi_ioctl.c | SCpnt->request.dev = -1; |
dev | 170 | drivers/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
dev | 245 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
dev | 249 | drivers/scsi/scsi_ioctl.c | SCpnt = allocate_device(NULL, dev, 1); |
dev | 254 | drivers/scsi/scsi_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 259 | drivers/scsi/scsi_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 280 | drivers/scsi/scsi_ioctl.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 291 | drivers/scsi/scsi_ioctl.c | printk("scsi_ioctl : device %d. command = ", dev->id); |
dev | 311 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
dev | 317 | drivers/scsi/scsi_ioctl.c | if (!dev) return -ENXIO; |
dev | 324 | drivers/scsi/scsi_ioctl.c | put_user(dev->id |
dev | 325 | drivers/scsi/scsi_ioctl.c | + (dev->lun << 8) |
dev | 326 | drivers/scsi/scsi_ioctl.c | + (dev->channel << 16) |
dev | 327 | drivers/scsi/scsi_ioctl.c | + ((dev->host->hostt->low_ino & 0xff) << 24), |
dev | 329 | drivers/scsi/scsi_ioctl.c | put_user( dev->host->unique_id, (unsigned long *) arg+1); |
dev | 333 | drivers/scsi/scsi_ioctl.c | if(!dev->tagged_supported) return -EINVAL; |
dev | 334 | drivers/scsi/scsi_ioctl.c | dev->tagged_queue = 1; |
dev | 335 | drivers/scsi/scsi_ioctl.c | dev->current_tag = 1; |
dev | 339 | drivers/scsi/scsi_ioctl.c | if(!dev->tagged_supported) return -EINVAL; |
dev | 340 | drivers/scsi/scsi_ioctl.c | dev->tagged_queue = 0; |
dev | 341 | drivers/scsi/scsi_ioctl.c | dev->current_tag = 0; |
dev | 344 | drivers/scsi/scsi_ioctl.c | return ioctl_probe(dev->host, arg); |
dev | 347 | drivers/scsi/scsi_ioctl.c | return ioctl_command((Scsi_Device *) dev, arg); |
dev | 349 | drivers/scsi/scsi_ioctl.c | if (!dev->removable || !dev->lockable) return 0; |
dev | 351 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 354 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 357 | drivers/scsi/scsi_ioctl.c | if (!dev->removable || !dev->lockable) return 0; |
dev | 359 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 362 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 365 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 368 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 381 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
dev | 386 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
dev | 16 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 17 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 52 | drivers/scsi/scsicam.c | int dev, /* Device major, minor */ |
dev | 58 | drivers/scsi/scsicam.c | if (!(bh = bread(dev & ~0xf,0,1024))) |
dev | 68 | drivers/scsi/sd.c | int revalidate_scsidisk(int dev, int maxusage); |
dev | 209 | drivers/scsi/sd.c | printk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), |
dev | 222 | drivers/scsi/sd.c | printk("sd%c : %d sectors remain.\n", 'a' + MINOR(SCpnt->request.dev), |
dev | 270 | drivers/scsi/sd.c | 'a' + MINOR(SCpnt->request.dev)); |
dev | 322 | drivers/scsi/sd.c | if rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap |
dev | 332 | drivers/scsi/sd.c | if(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) { |
dev | 336 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
dev | 363 | drivers/scsi/sd.c | if (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) { |
dev | 364 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
dev | 374 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
dev | 375 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->channel, |
dev | 376 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id, |
dev | 377 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result); |
dev | 404 | drivers/scsi/sd.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
dev | 410 | drivers/scsi/sd.c | SDev = rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device; |
dev | 447 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
dev | 472 | drivers/scsi/sd.c | SCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
dev | 477 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
dev | 495 | drivers/scsi/sd.c | int dev, block, this_count; |
dev | 504 | drivers/scsi/sd.c | if(!SCpnt || SCpnt->request.dev <= 0) { |
dev | 509 | drivers/scsi/sd.c | dev = MINOR(SCpnt->request.dev); |
dev | 514 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
dev | 517 | drivers/scsi/sd.c | if (dev >= (sd_template.dev_max << 4) || |
dev | 518 | drivers/scsi/sd.c | !rscsi_disks[DEVICE_NR(dev)].device || |
dev | 519 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
dev | 525 | drivers/scsi/sd.c | block += sd[dev].start_sect; |
dev | 526 | drivers/scsi/sd.c | dev = DEVICE_NR(dev); |
dev | 528 | drivers/scsi/sd.c | if (rscsi_disks[dev].device->changed) |
dev | 541 | drivers/scsi/sd.c | 'a' + MINOR(SCpnt->request.dev), dev, block); |
dev | 555 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024) |
dev | 565 | drivers/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
dev | 645 | drivers/scsi/sd.c | this_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff); |
dev | 822 | drivers/scsi/sd.c | 'a' + MINOR(SCpnt->request.dev), |
dev | 829 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024){ |
dev | 836 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 256){ |
dev | 841 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
dev | 873 | drivers/scsi/sd.c | SCpnt->transfersize = rscsi_disks[dev].sector_size; |
dev | 876 | drivers/scsi/sd.c | this_count * rscsi_disks[dev].sector_size, |
dev | 922 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 956 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 966 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe) barrier(); |
dev | 988 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; |
dev | 998 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe) |
dev | 1024 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 1035 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe) |
dev | 1038 | drivers/scsi/sd.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 1043 | drivers/scsi/sd.c | while (SCpnt->request.dev != 0xfffe) |
dev | 1052 | drivers/scsi/sd.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1291 | drivers/scsi/sd.c | int revalidate_scsidisk(int dev, int maxusage){ |
dev | 1299 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(dev)); |
dev | 1340 | drivers/scsi/sd.c | static int fop_revalidate_scsidisk(dev_t dev){ |
dev | 1341 | drivers/scsi/sd.c | return revalidate_scsidisk(dev, 0); |
dev | 26 | drivers/scsi/sd_ioctl.c | int dev = inode->i_rdev; |
dev | 38 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
dev | 43 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
dev | 44 | drivers/scsi/sd_ioctl.c | dev, |
dev | 73 | drivers/scsi/sd_ioctl.c | return revalidate_scsidisk(dev, 1); |
dev | 75 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
dev | 1603 | drivers/scsi/seagate.c | int seagate_st0x_biosparam(Disk * disk, int dev, int* ip) { |
dev | 74 | drivers/scsi/sg.c | int dev = MINOR(inode->i_rdev); |
dev | 75 | drivers/scsi/sg.c | if ((dev<0) || (dev>=sg_template.dev_max)) |
dev | 83 | drivers/scsi/sg.c | scsi_generics[dev].timeout=get_user((int *) arg); |
dev | 86 | drivers/scsi/sg.c | return scsi_generics[dev].timeout; |
dev | 88 | drivers/scsi/sg.c | return scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg); |
dev | 94 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 96 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
dev | 107 | drivers/scsi/sg.c | while(scsi_generics[dev].users) |
dev | 111 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
dev | 115 | drivers/scsi/sg.c | scsi_generics[dev].exclude=1; |
dev | 122 | drivers/scsi/sg.c | while(scsi_generics[dev].exclude) |
dev | 126 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
dev | 136 | drivers/scsi/sg.c | if (!scsi_generics[dev].users |
dev | 137 | drivers/scsi/sg.c | && scsi_generics[dev].pending |
dev | 138 | drivers/scsi/sg.c | && scsi_generics[dev].complete) |
dev | 140 | drivers/scsi/sg.c | if (scsi_generics[dev].buff != NULL) |
dev | 141 | drivers/scsi/sg.c | sg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
dev | 142 | drivers/scsi/sg.c | scsi_generics[dev].buff=NULL; |
dev | 143 | drivers/scsi/sg.c | scsi_generics[dev].pending=0; |
dev | 145 | drivers/scsi/sg.c | if (!scsi_generics[dev].users) |
dev | 146 | drivers/scsi/sg.c | scsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT; |
dev | 147 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
dev | 148 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)++; |
dev | 150 | drivers/scsi/sg.c | scsi_generics[dev].users++; |
dev | 156 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 157 | drivers/scsi/sg.c | scsi_generics[dev].users--; |
dev | 158 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
dev | 159 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)--; |
dev | 161 | drivers/scsi/sg.c | scsi_generics[dev].exclude=0; |
dev | 162 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].generic_wait); |
dev | 205 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 207 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 259 | drivers/scsi/sg.c | int dev=SCpnt->request.dev; |
dev | 260 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 263 | drivers/scsi/sg.c | printk("unexpected done for sg %d\n",dev); |
dev | 264 | drivers/scsi/sg.c | SCpnt->request.dev=-1; |
dev | 285 | drivers/scsi/sg.c | SCpnt->request.dev=-1; |
dev | 286 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].read_wait); |
dev | 296 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 297 | drivers/scsi/sg.c | struct scsi_generic * device=&scsi_generics[dev]; |
dev | 397 | drivers/scsi/sg.c | SCpnt->request.dev=dev; |
dev | 464 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 467 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 474 | drivers/scsi/sg.c | select_wait(&scsi_generics[dev].read_wait, wait); |
dev | 483 | drivers/scsi/sg.c | select_wait(&scsi_generics[dev].write_wait, wait); |
dev | 248 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
dev | 260 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
dev | 261 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
dev | 284 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
dev | 285 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
dev | 286 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun, |
dev | 562 | drivers/scsi/sr.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
dev | 569 | drivers/scsi/sr.c | SDev = scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device; |
dev | 593 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
dev | 612 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device); |
dev | 617 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
dev | 638 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
dev | 645 | drivers/scsi/sr.c | if(!SCpnt || SCpnt->request.dev <= 0) { |
dev | 650 | drivers/scsi/sr.c | dev = MINOR(SCpnt->request.dev); |
dev | 655 | drivers/scsi/sr.c | if (dev >= sr_template.nr_dev) |
dev | 663 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
dev | 671 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
dev | 725 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
dev | 853 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
dev | 860 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
dev | 862 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
dev | 867 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
dev | 884 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
dev | 915 | drivers/scsi/sr.c | SCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ? |
dev | 916 | drivers/scsi/sr.c | 1024 : scsi_CDs[dev].sector_size; |
dev | 920 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
dev | 966 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 987 | drivers/scsi/sr.c | SCpnt->request.dev = 0xffff; /* Mark as really busy */ |
dev | 998 | drivers/scsi/sr.c | while(SCpnt->request.dev != 0xfffe) |
dev | 1001 | drivers/scsi/sr.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 1006 | drivers/scsi/sr.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 1014 | drivers/scsi/sr.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 32 | drivers/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 54 | drivers/scsi/sr_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 59 | drivers/scsi/sr_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 91 | drivers/scsi/sr_ioctl.c | SCpnt->request.dev = -1; /* Deallocate */ |
dev | 101 | drivers/scsi/sr_ioctl.c | int dev = inode->i_rdev; |
dev | 104 | drivers/scsi/sr_ioctl.c | target = MINOR(dev); |
dev | 452 | drivers/scsi/sr_ioctl.c | RO_IOCTLS(dev,arg); |
dev | 102 | drivers/scsi/st.c | int dev = SCpnt->request.dev; |
dev | 111 | drivers/scsi/st.c | printk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result, |
dev | 127 | drivers/scsi/st.c | printk("st%d: Error %x. ", dev, result); |
dev | 141 | drivers/scsi/st.c | scsi_tapes[dev].recover_count++; |
dev | 142 | drivers/scsi/st.c | scsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT); |
dev | 149 | drivers/scsi/st.c | printk("st%d: Recovered %s error (%d).\n", dev, stp, |
dev | 150 | drivers/scsi/st.c | scsi_tapes[dev].recover_count); |
dev | 164 | drivers/scsi/st.c | if ((st_nbr = SCpnt->request.dev) < st_template.nr_dev && st_nbr >= 0) { |
dev | 186 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 188 | drivers/scsi/st.c | SCpnt->request.dev = 0xffff; |
dev | 202 | drivers/scsi/st.c | write_behind_check(int dev) |
dev | 208 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 246 | drivers/scsi/st.c | back_over_eof(int dev) |
dev | 249 | drivers/scsi/st.c | Scsi_Tape *STp = &(scsi_tapes[dev]); |
dev | 259 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 267 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 270 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 272 | drivers/scsi/st.c | printk("st%d: Backing over filemark failed.\n", dev); |
dev | 284 | drivers/scsi/st.c | flush_write_buffer(int dev) |
dev | 291 | drivers/scsi/st.c | Scsi_Tape *STp = &(scsi_tapes[dev]); |
dev | 294 | drivers/scsi/st.c | write_behind_check(dev); |
dev | 298 | drivers/scsi/st.c | printk("st%d: Async write error (flush) %x.\n", dev, |
dev | 319 | drivers/scsi/st.c | printk("st%d: Flushing %d bytes.\n", dev, transfer); |
dev | 330 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 338 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 342 | drivers/scsi/st.c | printk("st%d: Error on flush.\n", dev); |
dev | 360 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 371 | drivers/scsi/st.c | int dev; |
dev | 376 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 377 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 392 | drivers/scsi/st.c | return flush_write_buffer(dev); |
dev | 406 | drivers/scsi/st.c | result = back_over_eof(dev); /* Back over the EOF hit */ |
dev | 424 | drivers/scsi/st.c | int dev; |
dev | 432 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 433 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
dev | 435 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 437 | drivers/scsi/st.c | printk("st%d: Device already in use.\n", dev); |
dev | 446 | drivers/scsi/st.c | printk("st%d: No free buffers.\n", dev); |
dev | 471 | drivers/scsi/st.c | printk("st%d: Tape request not allocated", dev); |
dev | 478 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 487 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 496 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 505 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 516 | drivers/scsi/st.c | printk("st%d: No tape.\n", dev); |
dev | 522 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 529 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
dev | 530 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
dev | 538 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 546 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 556 | drivers/scsi/st.c | printk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block, |
dev | 564 | drivers/scsi/st.c | printk("st%d: Can't read block limits.\n", dev); |
dev | 572 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 580 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 586 | drivers/scsi/st.c | printk("st%d: No Mode Sense.\n", dev); |
dev | 595 | drivers/scsi/st.c | printk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev, |
dev | 608 | drivers/scsi/st.c | dev, STp->density, (STp->buffer)->b_data[5] * 65536 + |
dev | 615 | drivers/scsi/st.c | printk("st%d: Blocksize %d too large for buffer.\n", dev, |
dev | 622 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 637 | drivers/scsi/st.c | printk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev, |
dev | 647 | drivers/scsi/st.c | printk( "st%d: Write protected\n", dev); |
dev | 657 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
dev | 658 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
dev | 669 | drivers/scsi/st.c | int dev; |
dev | 677 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev); |
dev | 678 | drivers/scsi/st.c | rewind = (dev & 0x80) == 0; |
dev | 679 | drivers/scsi/st.c | dev = dev & 127; |
dev | 680 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 684 | drivers/scsi/st.c | result = flush_write_buffer(dev); |
dev | 688 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos)); |
dev | 689 | drivers/scsi/st.c | printk("st%d: Async write waits %d, finished %d.\n", dev, |
dev | 701 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 709 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 713 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 714 | drivers/scsi/st.c | printk("st%d: Error on write filemark.\n", dev); |
dev | 717 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 722 | drivers/scsi/st.c | back_over_eof(dev); |
dev | 729 | drivers/scsi/st.c | printk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]); |
dev | 737 | drivers/scsi/st.c | back_over_eof(dev); |
dev | 751 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
dev | 752 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)--; |
dev | 763 | drivers/scsi/st.c | int dev; |
dev | 773 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 774 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 787 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 813 | drivers/scsi/st.c | write_behind_check(dev); |
dev | 817 | drivers/scsi/st.c | printk("st%d: Async write error (write) %x.\n", dev, |
dev | 881 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 889 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 895 | drivers/scsi/st.c | printk("st%d: Error on write:\n", dev); |
dev | 924 | drivers/scsi/st.c | dev, transfer); |
dev | 933 | drivers/scsi/st.c | printk("st%d: EOM with lost data.\n", dev); |
dev | 942 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 972 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 995 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1003 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1014 | drivers/scsi/st.c | int dev; |
dev | 1022 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 1023 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1028 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 1055 | drivers/scsi/st.c | printk("st%d: EOF flag up. Bytes %d\n", dev, |
dev | 1093 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1101 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1111 | drivers/scsi/st.c | printk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev, |
dev | 1138 | drivers/scsi/st.c | printk("st%d: Incorrect block size.\n", dev); |
dev | 1139 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1152 | drivers/scsi/st.c | printk("st%d: EOM detected (%d bytes read).\n", dev, |
dev | 1167 | drivers/scsi/st.c | dev, (STp->buffer)->buffer_bytes, total); |
dev | 1174 | drivers/scsi/st.c | printk("st%d: Tape error while reading.\n", dev); |
dev | 1176 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 1185 | drivers/scsi/st.c | dev); |
dev | 1196 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1216 | drivers/scsi/st.c | printk("st%d: EOF up. Left %d, needed %d.\n", dev, |
dev | 1231 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1250 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1261 | drivers/scsi/st.c | int dev, value; |
dev | 1264 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 1265 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1277 | drivers/scsi/st.c | dev, STp->do_buffer_writes, STp->do_async_writes, |
dev | 1292 | drivers/scsi/st.c | printk("st%d: Write threshold set to %d bytes.\n", dev, |
dev | 1308 | drivers/scsi/st.c | int dev = MINOR(inode->i_rdev); |
dev | 1318 | drivers/scsi/st.c | dev = dev & 127; |
dev | 1319 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1338 | drivers/scsi/st.c | printk("st%d: Spacing tape forward over %d filemarks.\n", dev, |
dev | 1359 | drivers/scsi/st.c | printk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp)); |
dev | 1375 | drivers/scsi/st.c | printk("st%d: Spacing tape forward %d blocks.\n", dev, |
dev | 1394 | drivers/scsi/st.c | printk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp)); |
dev | 1409 | drivers/scsi/st.c | printk("st%d: Spacing tape forward %d setmarks.\n", dev, |
dev | 1429 | drivers/scsi/st.c | printk("st%d: Spacing tape backward %ld setmarks.\n", dev, (-ltmp)); |
dev | 1451 | drivers/scsi/st.c | printk("st%d: Writing %d filemarks.\n", dev, |
dev | 1454 | drivers/scsi/st.c | printk("st%d: Writing %d setmarks.\n", dev, |
dev | 1471 | drivers/scsi/st.c | printk("st%d: Rewinding tape.\n", dev); |
dev | 1483 | drivers/scsi/st.c | printk("st%d: Unloading tape.\n", dev); |
dev | 1490 | drivers/scsi/st.c | printk("st%d: No op on tape.\n", dev); |
dev | 1503 | drivers/scsi/st.c | printk("st%d: Retensioning tape.\n", dev); |
dev | 1525 | drivers/scsi/st.c | printk("st%d: Spacing to end of recorded medium.\n", dev); |
dev | 1543 | drivers/scsi/st.c | printk("st%d: Erasing tape.\n", dev); |
dev | 1552 | drivers/scsi/st.c | printk("st%d: Locking drive door.\n", dev); |
dev | 1560 | drivers/scsi/st.c | printk("st%d: Unlocking drive door.\n", dev); |
dev | 1597 | drivers/scsi/st.c | printk("st%d: Seeking tape to block %ld.\n", dev, arg); |
dev | 1611 | drivers/scsi/st.c | printk("st%d: Illegal block size.\n", dev); |
dev | 1639 | drivers/scsi/st.c | printk("st%d: Setting block size to %d bytes.\n", dev, |
dev | 1644 | drivers/scsi/st.c | printk("st%d: Setting density code to %x.\n", dev, |
dev | 1647 | drivers/scsi/st.c | printk("st%d: Setting drive buffer code to %d.\n", dev, |
dev | 1653 | drivers/scsi/st.c | printk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in); |
dev | 1659 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1667 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1672 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1792 | drivers/scsi/st.c | int dev = MINOR(inode->i_rdev); |
dev | 1801 | drivers/scsi/st.c | dev = dev & 127; |
dev | 1802 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1805 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 1925 | drivers/scsi/st.c | printk("st%d: get tape position.\n", dev); |
dev | 1949 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1958 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1965 | drivers/scsi/st.c | printk("st%d: Can't read tape position.\n", dev); |
dev | 1983 | 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 | 823 | drivers/scsi/u14-34f.c | int u14_34f_biosparam(Disk * disk, int dev, int * dkinfo) { |
dev | 1006 | drivers/scsi/ultrastor.c | int ultrastor_biosparam(Disk * disk, int dev, int * dkinfo) |
dev | 1213 | drivers/scsi/wd7000.c | int wd7000_biosparam(Disk * disk, int dev, int* ip) |
dev | 109 | drivers/sound/ad1848.c | static int ad1848_open (int dev, int mode); |
dev | 110 | drivers/sound/ad1848.c | static void ad1848_close (int dev); |
dev | 111 | drivers/sound/ad1848.c | static int ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 112 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 113 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 114 | drivers/sound/ad1848.c | static int ad1848_prepare_for_IO (int dev, int bsize, int bcount); |
dev | 115 | drivers/sound/ad1848.c | static void ad1848_reset (int dev); |
dev | 116 | drivers/sound/ad1848.c | static void ad1848_halt (int dev); |
dev | 325 | drivers/sound/ad1848.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
dev | 330 | drivers/sound/ad1848.c | if (mix_devices[dev][chn].polarity == 1) /* Reverse */ |
dev | 333 | drivers/sound/ad1848.c | mask = (1 << mix_devices[dev][chn].nbits) - 1; |
dev | 334 | drivers/sound/ad1848.c | shift = mix_devices[dev][chn].bitpos; |
dev | 342 | drivers/sound/ad1848.c | ad1848_mixer_get (ad1848_info * devc, int dev) |
dev | 344 | drivers/sound/ad1848.c | if (!((1 << dev) & devc->supported_devices)) |
dev | 347 | drivers/sound/ad1848.c | return devc->levels[dev]; |
dev | 351 | drivers/sound/ad1848.c | ad1848_mixer_set (ad1848_info * devc, int dev, int value) |
dev | 364 | drivers/sound/ad1848.c | if (dev > 31) |
dev | 367 | drivers/sound/ad1848.c | if (!(devc->supported_devices & (1 << dev))) |
dev | 370 | drivers/sound/ad1848.c | if (mix_devices[dev][LEFT_CHN].nbits == 0) |
dev | 377 | drivers/sound/ad1848.c | regoffs = mix_devices[dev][LEFT_CHN].regno; |
dev | 379 | drivers/sound/ad1848.c | change_bits (&val, dev, LEFT_CHN, left); |
dev | 380 | drivers/sound/ad1848.c | devc->levels[dev] = left | (left << 8); |
dev | 388 | drivers/sound/ad1848.c | if (mix_devices[dev][RIGHT_CHN].nbits == 0) |
dev | 391 | drivers/sound/ad1848.c | regoffs = mix_devices[dev][RIGHT_CHN].regno; |
dev | 393 | drivers/sound/ad1848.c | change_bits (&val, dev, RIGHT_CHN, right); |
dev | 397 | drivers/sound/ad1848.c | devc->levels[dev] = left | (right << 8); |
dev | 420 | drivers/sound/ad1848.c | ad1848_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 424 | drivers/sound/ad1848.c | int codec_dev = mixer2codec[dev]; |
dev | 507 | drivers/sound/ad1848.c | ad1848_open (int dev, int mode) |
dev | 515 | drivers/sound/ad1848.c | if (dev < 0 || dev >= num_audiodevs) |
dev | 518 | drivers/sound/ad1848.c | devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 530 | drivers/sound/ad1848.c | audio_devs[dev]->name)) < 0) |
dev | 542 | drivers/sound/ad1848.c | audio_devs[dev]->dmachan = devc->dma_playback; |
dev | 544 | drivers/sound/ad1848.c | audio_devs[dev]->dmachan = devc->dma_capture; |
dev | 546 | drivers/sound/ad1848.c | if (DMAbuf_open_dma (dev) < 0) |
dev | 566 | drivers/sound/ad1848.c | DMAbuf_close_dma (dev); |
dev | 583 | drivers/sound/ad1848.c | ad1848_close (int dev) |
dev | 586 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 595 | drivers/sound/ad1848.c | ad1848_reset (dev); |
dev | 596 | drivers/sound/ad1848.c | DMAbuf_close_dma (dev); |
dev | 600 | drivers/sound/ad1848.c | if (audio_devs[dev]->dmachan == devc->dma_playback) |
dev | 768 | drivers/sound/ad1848.c | ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 770 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 815 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 818 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 822 | drivers/sound/ad1848.c | audio_devs[dev]->dmachan = devc->dma_playback; |
dev | 837 | drivers/sound/ad1848.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 852 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 891 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 894 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 896 | drivers/sound/ad1848.c | audio_devs[dev]->dmachan = devc->dma_capture; |
dev | 912 | drivers/sound/ad1848.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
dev | 927 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 969 | drivers/sound/ad1848.c | ad1848_prepare_for_IO (int dev, int bsize, int bcount) |
dev | 974 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 1016 | drivers/sound/ad1848.c | ad1848_reset (int dev) |
dev | 1018 | drivers/sound/ad1848.c | ad1848_halt (dev); |
dev | 1022 | drivers/sound/ad1848.c | ad1848_halt (int dev) |
dev | 1024 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 1344 | drivers/sound/ad1848.c | int dev; |
dev | 1348 | drivers/sound/ad1848.c | dev = irq2dev[irq]; |
dev | 1349 | drivers/sound/ad1848.c | if (dev < 0 || dev >= num_audiodevs) |
dev | 1352 | drivers/sound/ad1848.c | devc = (ad1848_info *) audio_devs[dev]->devc; |
dev | 1362 | drivers/sound/ad1848.c | DMAbuf_outputintr (dev, 1); |
dev | 1366 | drivers/sound/ad1848.c | DMAbuf_inputintr (dev); |
dev | 61 | drivers/sound/audio.c | set_format (int dev, int fmt) |
dev | 66 | drivers/sound/audio.c | local_conversion[dev] = 0; |
dev | 68 | drivers/sound/audio.c | if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */ |
dev | 72 | drivers/sound/audio.c | local_conversion[dev] = AFMT_MU_LAW; |
dev | 77 | drivers/sound/audio.c | audio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, fmt, 1); |
dev | 80 | drivers/sound/audio.c | if (local_conversion[dev]) /* This shadows the HW format */ |
dev | 81 | drivers/sound/audio.c | return local_conversion[dev]; |
dev | 83 | drivers/sound/audio.c | return audio_format[dev]; |
dev | 87 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
dev | 91 | drivers/sound/audio.c | int dev_type = dev & 0x0f; |
dev | 94 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 101 | drivers/sound/audio.c | if ((ret = DMAbuf_open (dev, mode)) < 0) |
dev | 104 | drivers/sound/audio.c | if (audio_devs[dev]->coproc) |
dev | 105 | drivers/sound/audio.c | if ((ret = audio_devs[dev]->coproc-> |
dev | 106 | drivers/sound/audio.c | open (audio_devs[dev]->coproc->devc, COPR_PCM)) < 0) |
dev | 108 | drivers/sound/audio.c | audio_release (dev, file); |
dev | 114 | drivers/sound/audio.c | local_conversion[dev] = 0; |
dev | 116 | drivers/sound/audio.c | if (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, bits, 1) != bits) |
dev | 118 | drivers/sound/audio.c | audio_release (dev, file); |
dev | 124 | drivers/sound/audio.c | set_format (dev, AFMT_MU_LAW); |
dev | 127 | drivers/sound/audio.c | set_format (dev, bits); |
dev | 129 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 130 | drivers/sound/audio.c | audio_mode[dev] = AM_NONE; |
dev | 131 | drivers/sound/audio.c | wr_buff_size[dev] = wr_buff_ptr[dev] = 0; |
dev | 132 | drivers/sound/audio.c | dev_nblock[dev] = 0; |
dev | 138 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
dev | 142 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 145 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 147 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 149 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 152 | drivers/sound/audio.c | if (audio_devs[dev]->coproc) |
dev | 153 | drivers/sound/audio.c | audio_devs[dev]->coproc->close (audio_devs[dev]->coproc->devc, COPR_PCM); |
dev | 154 | drivers/sound/audio.c | DMAbuf_release (dev, mode); |
dev | 183 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 188 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 193 | drivers/sound/audio.c | if (audio_mode[dev] == AM_READ) /* |
dev | 197 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 200 | drivers/sound/audio.c | audio_mode[dev] = AM_WRITE; |
dev | 206 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 208 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 210 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 219 | drivers/sound/audio.c | if (wr_buff_no[dev] < 0) /* |
dev | 223 | drivers/sound/audio.c | if ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev], |
dev | 224 | drivers/sound/audio.c | &wr_buff_size[dev], |
dev | 225 | drivers/sound/audio.c | dev_nblock[dev])) < 0) |
dev | 228 | drivers/sound/audio.c | if (dev_nblock[dev] && wr_buff_no[dev] == RET_ERROR (EAGAIN)) |
dev | 230 | drivers/sound/audio.c | return wr_buff_no[dev]; |
dev | 232 | drivers/sound/audio.c | wr_buff_ptr[dev] = 0; |
dev | 236 | drivers/sound/audio.c | if (l > (wr_buff_size[dev] - wr_buff_ptr[dev])) |
dev | 237 | drivers/sound/audio.c | l = (wr_buff_size[dev] - wr_buff_ptr[dev]); |
dev | 239 | drivers/sound/audio.c | if (!audio_devs[dev]->copy_from_user) |
dev | 243 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
dev | 246 | drivers/sound/audio.c | audio_devs[dev]->copy_from_user (dev, |
dev | 247 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
dev | 254 | drivers/sound/audio.c | if (local_conversion[dev] == AFMT_MU_LAW) |
dev | 262 | drivers/sound/audio.c | translate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l); |
dev | 267 | drivers/sound/audio.c | wr_buff_ptr[dev] += l; |
dev | 269 | drivers/sound/audio.c | if (wr_buff_ptr[dev] >= wr_buff_size[dev]) |
dev | 271 | drivers/sound/audio.c | if ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0) |
dev | 276 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 285 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 291 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 295 | drivers/sound/audio.c | if (audio_mode[dev] == AM_WRITE) |
dev | 297 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 299 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 301 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 305 | drivers/sound/audio.c | audio_mode[dev] = AM_READ; |
dev | 309 | drivers/sound/audio.c | if ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l, |
dev | 310 | drivers/sound/audio.c | dev_nblock[dev])) < 0) |
dev | 314 | drivers/sound/audio.c | if (dev_nblock[dev] && buff_no == RET_ERROR (EAGAIN)) |
dev | 327 | drivers/sound/audio.c | if (local_conversion[dev] == AFMT_MU_LAW) |
dev | 341 | drivers/sound/audio.c | DMAbuf_rmchars (dev, buff_no, l); |
dev | 351 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
dev | 355 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 359 | drivers/sound/audio.c | if (audio_devs[dev]->coproc) /* Coprocessor ioctl */ |
dev | 360 | drivers/sound/audio.c | return audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0); |
dev | 362 | drivers/sound/audio.c | printk ("/dev/dsp%d: No coprocessor for this device\n", dev); |
dev | 370 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 372 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 374 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 376 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 380 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 382 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 384 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 390 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 391 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 395 | drivers/sound/audio.c | return IOCTL_OUT (arg, audio_devs[dev]->format_mask); |
dev | 399 | drivers/sound/audio.c | return IOCTL_OUT (arg, set_format (dev, IOCTL_IN (arg))); |
dev | 402 | drivers/sound/audio.c | if (audio_mode[dev] == AM_WRITE) |
dev | 408 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1); |
dev | 418 | drivers/sound/audio.c | if (audio_mode[dev] == AM_READ) |
dev | 424 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1); |
dev | 429 | drivers/sound/audio.c | if (wr_buff_no[dev] != -1) |
dev | 430 | drivers/sound/audio.c | info.bytes += wr_buff_size[dev] - wr_buff_ptr[dev]; |
dev | 437 | drivers/sound/audio.c | dev_nblock[dev] = 1; |
dev | 442 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 457 | drivers/sound/audio.c | audio_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 462 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 467 | drivers/sound/audio.c | if (audio_mode[dev] != AM_READ) /* Wrong direction */ |
dev | 470 | drivers/sound/audio.c | if (DMAbuf_getrdbuffer (dev, &dmabuf, &l, |
dev | 474 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
dev | 478 | drivers/sound/audio.c | if (audio_mode[dev] == AM_READ) /* Wrong direction */ |
dev | 481 | drivers/sound/audio.c | if (wr_buff_no[dev] != -1) |
dev | 484 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
dev | 502 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 508 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 514 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
dev | 520 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
dev | 524 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
dev | 531 | drivers/sound/audio.c | audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
dev | 132 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 133 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 134 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
dev | 136 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
dev | 138 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 139 | drivers/sound/dev_table.h | int (*prepare_for_input) (int dev, int bufsize, int nbufs); |
dev | 140 | drivers/sound/dev_table.h | int (*prepare_for_output) (int dev, int bufsize, int nbufs); |
dev | 141 | drivers/sound/dev_table.h | void (*reset) (int dev); |
dev | 142 | drivers/sound/dev_table.h | void (*halt_xfer) (int dev); |
dev | 143 | drivers/sound/dev_table.h | int (*local_qlen)(int dev); |
dev | 144 | drivers/sound/dev_table.h | void (*copy_from_user)(int dev, char *localbuf, int localoffs, |
dev | 156 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 165 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 166 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 167 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 168 | drivers/sound/dev_table.h | int (*kill_note) (int dev, int voice, int note, int velocity); |
dev | 169 | drivers/sound/dev_table.h | int (*start_note) (int dev, int voice, int note, int velocity); |
dev | 170 | drivers/sound/dev_table.h | int (*set_instr) (int dev, int voice, int instr); |
dev | 171 | drivers/sound/dev_table.h | void (*reset) (int dev); |
dev | 172 | drivers/sound/dev_table.h | void (*hw_control) (int dev, unsigned char *event); |
dev | 173 | drivers/sound/dev_table.h | int (*load_patch) (int dev, int format, snd_rw_buf *addr, |
dev | 175 | drivers/sound/dev_table.h | void (*aftertouch) (int dev, int voice, int pressure); |
dev | 176 | drivers/sound/dev_table.h | void (*controller) (int dev, int voice, int ctrl_num, int value); |
dev | 177 | drivers/sound/dev_table.h | void (*panning) (int dev, int voice, int value); |
dev | 178 | drivers/sound/dev_table.h | void (*volume_method) (int dev, int mode); |
dev | 179 | drivers/sound/dev_table.h | int (*pmgr_interface) (int dev, struct patmgr_info *info); |
dev | 180 | drivers/sound/dev_table.h | void (*bender) (int dev, int chn, int value); |
dev | 181 | drivers/sound/dev_table.h | int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); |
dev | 182 | drivers/sound/dev_table.h | void (*setup_voice) (int dev, int voice, int chn); |
dev | 205 | drivers/sound/dev_table.h | int (*open) (int dev, int mode, |
dev | 206 | drivers/sound/dev_table.h | void (*inputintr)(int dev, unsigned char data), |
dev | 207 | drivers/sound/dev_table.h | void (*outputintr)(int dev) |
dev | 209 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 210 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 211 | drivers/sound/dev_table.h | int (*putc) (int dev, unsigned char data); |
dev | 212 | drivers/sound/dev_table.h | int (*start_read) (int dev); |
dev | 213 | drivers/sound/dev_table.h | int (*end_read) (int dev); |
dev | 214 | drivers/sound/dev_table.h | void (*kick)(int dev); |
dev | 215 | drivers/sound/dev_table.h | int (*command) (int dev, unsigned char *data); |
dev | 216 | drivers/sound/dev_table.h | int (*buffer_status) (int dev); |
dev | 217 | drivers/sound/dev_table.h | int (*prefix_cmd) (int dev, unsigned char status); |
dev | 225 | drivers/sound/dev_table.h | int (*open)(int dev, int mode); |
dev | 226 | drivers/sound/dev_table.h | void (*close)(int dev); |
dev | 227 | drivers/sound/dev_table.h | int (*event)(int dev, unsigned char *ev); |
dev | 228 | drivers/sound/dev_table.h | unsigned long (*get_time)(int dev); |
dev | 229 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 230 | drivers/sound/dev_table.h | void (*arm_timer)(int dev, long time); |
dev | 50 | drivers/sound/dmabuf.c | reorganize_buffers (int dev) |
dev | 56 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 57 | drivers/sound/dmabuf.c | struct audio_operations *dsp_dev = audio_devs[dev]; |
dev | 65 | drivers/sound/dmabuf.c | sr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1); |
dev | 66 | drivers/sound/dmabuf.c | nc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1); |
dev | 67 | drivers/sound/dmabuf.c | sz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1); |
dev | 72 | drivers/sound/dmabuf.c | dev, sr, nc, sz); |
dev | 114 | drivers/sound/dmabuf.c | if (dmap->fragment_size > audio_devs[dev]->buffsize) |
dev | 115 | drivers/sound/dmabuf.c | dmap->fragment_size = audio_devs[dev]->buffsize; |
dev | 153 | drivers/sound/dmabuf.c | dma_init_buffers (int dev) |
dev | 155 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap = &dmaps[dev]; |
dev | 157 | drivers/sound/dmabuf.c | RESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 166 | drivers/sound/dmabuf.c | DMAbuf_open (int dev, int mode) |
dev | 171 | drivers/sound/dmabuf.c | if (dev >= num_audiodevs) |
dev | 173 | drivers/sound/dmabuf.c | printk ("PCM device %d not installed.\n", dev); |
dev | 177 | drivers/sound/dmabuf.c | if (!audio_devs[dev]) |
dev | 179 | drivers/sound/dmabuf.c | printk ("PCM device %d not initialized\n", dev); |
dev | 183 | drivers/sound/dmabuf.c | dmap = audio_devs[dev]->dmap = &dmaps[dev]; |
dev | 190 | drivers/sound/dmabuf.c | sound_dma_malloc (dev); |
dev | 196 | drivers/sound/dmabuf.c | if ((retval = audio_devs[dev]->open (dev, mode)) < 0) |
dev | 204 | drivers/sound/dmabuf.c | dma_init_buffers (dev); |
dev | 205 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1); |
dev | 206 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1); |
dev | 207 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1); |
dev | 213 | drivers/sound/dmabuf.c | dma_reset (int dev) |
dev | 220 | drivers/sound/dmabuf.c | audio_devs[dev]->reset (dev); |
dev | 221 | drivers/sound/dmabuf.c | audio_devs[dev]->close (dev); |
dev | 223 | drivers/sound/dmabuf.c | if ((retval = audio_devs[dev]->open (dev, audio_devs[dev]->dmap->open_mode)) < 0) |
dev | 227 | drivers/sound/dmabuf.c | dma_init_buffers (dev); |
dev | 228 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 232 | drivers/sound/dmabuf.c | dma_sync (int dev) |
dev | 236 | drivers/sound/dmabuf.c | if (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT) |
dev | 240 | drivers/sound/dmabuf.c | while (!PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) |
dev | 241 | drivers/sound/dmabuf.c | && audio_devs[dev]->dmap->qlen) |
dev | 243 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ); |
dev | 244 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 247 | drivers/sound/dmabuf.c | return audio_devs[dev]->dmap->qlen; |
dev | 258 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) /* Device has hidden buffers */ |
dev | 260 | drivers/sound/dmabuf.c | while (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 261 | drivers/sound/dmabuf.c | && audio_devs[dev]->local_qlen (dev)) |
dev | 263 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ); |
dev | 268 | drivers/sound/dmabuf.c | return audio_devs[dev]->dmap->qlen; |
dev | 272 | drivers/sound/dmabuf.c | DMAbuf_release (int dev, int mode) |
dev | 276 | drivers/sound/dmabuf.c | if (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 277 | drivers/sound/dmabuf.c | && (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT)) |
dev | 279 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 283 | drivers/sound/dmabuf.c | sound_dma_free (dev); |
dev | 287 | drivers/sound/dmabuf.c | audio_devs[dev]->reset (dev); |
dev | 289 | drivers/sound/dmabuf.c | audio_devs[dev]->close (dev); |
dev | 291 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap->dma_mode = DMODE_NONE; |
dev | 292 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap->flags &= ~DMA_BUSY; |
dev | 299 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
dev | 303 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 310 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 316 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 317 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 322 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 328 | drivers/sound/dmabuf.c | if ((err = audio_devs[dev]->prepare_for_input (dev, |
dev | 339 | drivers/sound/dmabuf.c | audio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail], |
dev | 341 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE) || |
dev | 354 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ); |
dev | 355 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 359 | drivers/sound/dmabuf.c | SET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 376 | drivers/sound/dmabuf.c | DMAbuf_rmchars (int dev, int buff_no, int c) |
dev | 378 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 387 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 398 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 400 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 405 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 410 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 411 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 417 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 476 | drivers/sound/dmabuf.c | if (dmap->fragment_size > audio_devs[dev]->buffsize) |
dev | 477 | drivers/sound/dmabuf.c | dmap->fragment_size = audio_devs[dev]->buffsize; |
dev | 479 | drivers/sound/dmabuf.c | if (dmap->fragment_size == audio_devs[dev]->buffsize && |
dev | 480 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 497 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 503 | drivers/sound/dmabuf.c | if (!space_in_queue (dev)) |
dev | 508 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) |
dev | 510 | drivers/sound/dmabuf.c | int tmp = audio_devs[dev]->local_qlen (dev); |
dev | 535 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
dev | 541 | drivers/sound/dmabuf.c | space_in_queue (int dev) |
dev | 544 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 557 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) |
dev | 559 | drivers/sound/dmabuf.c | tmp = audio_devs[dev]->local_qlen (dev); |
dev | 573 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
dev | 577 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 581 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 586 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 587 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 593 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 600 | drivers/sound/dmabuf.c | if ((err = audio_devs[dev]->prepare_for_output (dev, |
dev | 612 | drivers/sound/dmabuf.c | while (!space_in_queue (dev) && |
dev | 618 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ); |
dev | 619 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 624 | drivers/sound/dmabuf.c | SET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 626 | drivers/sound/dmabuf.c | else if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 634 | drivers/sound/dmabuf.c | if (!space_in_queue (dev)) |
dev | 647 | drivers/sound/dmabuf.c | DMAbuf_start_output (int dev, int buff_no, int l) |
dev | 649 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 657 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 662 | drivers/sound/dmabuf.c | ((audio_devs[dev]->flags & DMA_AUTOMODE) && |
dev | 663 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & NEEDS_RESTART)) |
dev | 673 | drivers/sound/dmabuf.c | audio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead], |
dev | 675 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE) || |
dev | 684 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
dev | 686 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 687 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 699 | drivers/sound/dmabuf.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 716 | drivers/sound/dmabuf.c | printk ("sound: Invalid DMA mode for device %d\n", dev); |
dev | 725 | drivers/sound/dmabuf.c | printk ("sound: Invalid DMA mode for device %d\n", dev); |
dev | 795 | drivers/sound/dmabuf.c | int dev; |
dev | 805 | drivers/sound/dmabuf.c | for (dev = 0; dev < num_audiodevs; dev++) |
dev | 806 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap = &dmaps[dev]; |
dev | 811 | drivers/sound/dmabuf.c | DMAbuf_outputintr (int dev, int event_type) |
dev | 824 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 827 | drivers/sound/dmabuf.c | snd_dma_intr (audio_devs[dev]->dmachan); |
dev | 835 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 845 | drivers/sound/dmabuf.c | audio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead], |
dev | 847 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE)); |
dev | 853 | drivers/sound/dmabuf.c | audio_devs[dev]->halt_xfer (dev); |
dev | 854 | drivers/sound/dmabuf.c | if ((audio_devs[dev]->flags & DMA_AUTOMODE) && |
dev | 855 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & NEEDS_RESTART) |
dev | 863 | drivers/sound/dmabuf.c | if (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 865 | drivers/sound/dmabuf.c | WAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 871 | drivers/sound/dmabuf.c | DMAbuf_inputintr (int dev) |
dev | 874 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 877 | drivers/sound/dmabuf.c | snd_dma_intr (audio_devs[dev]->dmachan); |
dev | 884 | drivers/sound/dmabuf.c | audio_devs[dev]->halt_xfer (dev); |
dev | 886 | drivers/sound/dmabuf.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 896 | drivers/sound/dmabuf.c | dev, dmap->qlen, dmap->nbufs); |
dev | 899 | drivers/sound/dmabuf.c | audio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail], |
dev | 901 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE)); |
dev | 906 | drivers/sound/dmabuf.c | if (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 908 | drivers/sound/dmabuf.c | WAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 914 | drivers/sound/dmabuf.c | DMAbuf_open_dma (int dev) |
dev | 917 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 919 | drivers/sound/dmabuf.c | if (ALLOC_DMA_CHN (chan, audio_devs[dev]->name)) |
dev | 936 | drivers/sound/dmabuf.c | DMAbuf_close_dma (int dev) |
dev | 938 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 940 | drivers/sound/dmabuf.c | DMAbuf_reset_dma (dev); |
dev | 945 | drivers/sound/dmabuf.c | DMAbuf_reset_dma (int dev) |
dev | 948 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
dev | 956 | drivers/sound/dmabuf.c | DMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 958 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
dev | 971 | drivers/sound/dmabuf.c | dev_sleep_flag[dev].mode = WK_SLEEP; |
dev | 972 | drivers/sound/dmabuf.c | select_wait (&dev_sleeper[dev], wait); |
dev | 990 | drivers/sound/dmabuf.c | if (!space_in_queue (dev)) |
dev | 993 | drivers/sound/dmabuf.c | dev_sleep_flag[dev].mode = WK_SLEEP; |
dev | 994 | drivers/sound/dmabuf.c | select_wait (&dev_sleeper[dev], wait); |
dev | 1016 | drivers/sound/dmabuf.c | DMAbuf_open (int dev, int mode) |
dev | 1022 | drivers/sound/dmabuf.c | DMAbuf_release (int dev, int mode) |
dev | 1028 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
dev | 1034 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
dev | 1040 | drivers/sound/dmabuf.c | DMAbuf_rmchars (int dev, int buff_no, int c) |
dev | 1046 | drivers/sound/dmabuf.c | DMAbuf_start_output (int dev, int buff_no, int l) |
dev | 1052 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 1064 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
dev | 1070 | drivers/sound/dmabuf.c | DMAbuf_open_dma (int dev) |
dev | 1076 | drivers/sound/dmabuf.c | DMAbuf_close_dma (int dev) |
dev | 1082 | drivers/sound/dmabuf.c | DMAbuf_reset_dma (int dev) |
dev | 1088 | drivers/sound/dmabuf.c | DMAbuf_inputintr (int dev) |
dev | 1094 | 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 | 869 | drivers/sound/gus_wave.c | guswave_ioctl (int dev, |
dev | 899 | drivers/sound/gus_wave.c | guswave_set_instr (int dev, int voice, int instr_no) |
dev | 937 | drivers/sound/gus_wave.c | guswave_kill_note (int dev, int voice, int note, int velocity) |
dev | 959 | drivers/sound/gus_wave.c | guswave_aftertouch (int dev, int voice, int pressure) |
dev | 1001 | drivers/sound/gus_wave.c | guswave_panning (int dev, int voice, int value) |
dev | 1008 | drivers/sound/gus_wave.c | guswave_volume_method (int dev, int mode) |
dev | 1145 | drivers/sound/gus_wave.c | guswave_controller (int dev, int voice, int ctrl_num, int value) |
dev | 1204 | drivers/sound/gus_wave.c | guswave_start_note2 (int dev, int voice, int note_num, int volume) |
dev | 1399 | drivers/sound/gus_wave.c | guswave_start_note (int dev, int voice, int note_num, int volume) |
dev | 1412 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
dev | 1439 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
dev | 1443 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
dev | 1459 | drivers/sound/gus_wave.c | guswave_reset (int dev) |
dev | 1471 | drivers/sound/gus_wave.c | guswave_open (int dev, int mode) |
dev | 1496 | drivers/sound/gus_wave.c | guswave_close (int dev) |
dev | 1507 | drivers/sound/gus_wave.c | guswave_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 1750 | drivers/sound/gus_wave.c | pmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0); |
dev | 1756 | drivers/sound/gus_wave.c | guswave_hw_control (int dev, unsigned char *event) |
dev | 1783 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, p1); |
dev | 1954 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 2012 | drivers/sound/gus_wave.c | gus_sampling_reset (int dev) |
dev | 2022 | drivers/sound/gus_wave.c | gus_sampling_open (int dev, int mode) |
dev | 2056 | drivers/sound/gus_wave.c | gus_sampling_close (int dev) |
dev | 2212 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
dev | 2247 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
dev | 2252 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
dev | 2269 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
dev | 2299 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
dev | 2305 | drivers/sound/gus_wave.c | pcm_current_dev = dev; |
dev | 2306 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
dev | 2310 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
dev | 2318 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 2322 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
dev | 2334 | drivers/sound/gus_wave.c | gus_sampling_prepare_for_input (int dev, int bsize, int bcount) |
dev | 2352 | drivers/sound/gus_wave.c | gus_sampling_prepare_for_output (int dev, int bsize, int bcount) |
dev | 2383 | drivers/sound/gus_wave.c | gus_local_qlen (int dev) |
dev | 2389 | drivers/sound/gus_wave.c | gus_copy_from_user (int dev, char *localbuf, int localoffs, |
dev | 2459 | drivers/sound/gus_wave.c | guswave_setup_voice (int dev, int voice, int chn) |
dev | 2462 | drivers/sound/gus_wave.c | &synth_devs[dev]->chn_info[chn]; |
dev | 2464 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, info->pgm_num); |
dev | 2476 | drivers/sound/gus_wave.c | guswave_bender (int dev, int voice, int value) |
dev | 2493 | drivers/sound/gus_wave.c | guswave_patchmgr (int dev, struct patmgr_info *rec) |
dev | 2676 | drivers/sound/gus_wave.c | guswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc) |
dev | 2786 | 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 | 139 | drivers/sound/midi_synth.c | int dev; |
dev | 161 | drivers/sound/midi_synth.c | dev = midi2synth[orig_dev]; |
dev | 195 | drivers/sound/midi_synth.c | do_midi_msg (dev, inc->m_buf, inc->m_ptr); |
dev | 223 | drivers/sound/midi_synth.c | do_midi_msg (dev, inc->m_buf, inc->m_ptr); |
dev | 245 | drivers/sound/midi_synth.c | midi_synth_output (int dev) |
dev | 253 | drivers/sound/midi_synth.c | midi_synth_ioctl (int dev, |
dev | 264 | drivers/sound/midi_synth.c | IOCTL_TO_USER ((char *) arg, 0, synth_devs[dev]->info, |
dev | 280 | drivers/sound/midi_synth.c | midi_synth_kill_note (int dev, int channel, int note, int velocity) |
dev | 282 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 346 | drivers/sound/midi_synth.c | midi_synth_set_instr (int dev, int channel, int instr_no) |
dev | 348 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 366 | drivers/sound/midi_synth.c | midi_synth_start_note (int dev, int channel, int note, int velocity) |
dev | 368 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 406 | drivers/sound/midi_synth.c | midi_synth_reset (int dev) |
dev | 411 | drivers/sound/midi_synth.c | midi_synth_open (int dev, int mode) |
dev | 413 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 421 | drivers/sound/midi_synth.c | midi2synth[orig_dev] = dev; |
dev | 442 | drivers/sound/midi_synth.c | midi_synth_close (int dev) |
dev | 444 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 455 | drivers/sound/midi_synth.c | midi_synth_hw_control (int dev, unsigned char *event) |
dev | 460 | drivers/sound/midi_synth.c | midi_synth_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 463 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 542 | drivers/sound/midi_synth.c | midi_synth_panning (int dev, int channel, int pressure) |
dev | 547 | drivers/sound/midi_synth.c | midi_synth_aftertouch (int dev, int channel, int pressure) |
dev | 549 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 577 | drivers/sound/midi_synth.c | midi_synth_controller (int dev, int channel, int ctrl_num, int value) |
dev | 579 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 604 | drivers/sound/midi_synth.c | midi_synth_patchmgr (int dev, struct patmgr_info *rec) |
dev | 610 | drivers/sound/midi_synth.c | midi_synth_bender (int dev, int channel, int value) |
dev | 612 | drivers/sound/midi_synth.c | int orig_dev = synth_devs[dev]->midi_dev; |
dev | 640 | drivers/sound/midi_synth.c | midi_synth_setup_voice (int dev, int voice, int channel) |
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 | 17 | drivers/sound/midi_synth.h | void midi_synth_setup_voice (int dev, int voice, int chn); |
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 | 384 | drivers/sound/midibuf.c | if (midi_devs[dev]->coproc) /* Coprocessor ioctl */ |
dev | 385 | drivers/sound/midibuf.c | return midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0); |
dev | 387 | drivers/sound/midibuf.c | printk ("/dev/midi%d: No coprocessor for this device\n", dev); |
dev | 401 | drivers/sound/midibuf.c | parms[dev].prech_timeout = val; |
dev | 406 | drivers/sound/midibuf.c | return midi_devs[dev]->ioctl (dev, cmd, arg); |
dev | 412 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 414 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 419 | drivers/sound/midibuf.c | if (!DATA_AVAIL (midi_in_buf[dev])) |
dev | 421 | drivers/sound/midibuf.c | input_sleep_flag[dev].mode = WK_SLEEP; |
dev | 422 | drivers/sound/midibuf.c | select_wait (&input_sleeper[dev], wait); |
dev | 429 | drivers/sound/midibuf.c | if (SPACE_AVAIL (midi_out_buf[dev])) |
dev | 431 | drivers/sound/midibuf.c | midi_sleep_flag[dev].mode = WK_SLEEP; |
dev | 432 | drivers/sound/midibuf.c | select_wait (&midi_sleeper[dev], wait); |
dev | 81 | drivers/sound/mpu401.c | void (*inputintr) (int dev, unsigned char data); |
dev | 113 | drivers/sound/mpu401.c | static void set_uart_mode (int dev, struct mpu_config *devc, int arg); |
dev | 431 | drivers/sound/mpu401.c | int dev; |
dev | 443 | drivers/sound/mpu401.c | dev = irq2dev[irq]; |
dev | 444 | drivers/sound/mpu401.c | if (dev == -1) |
dev | 450 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 464 | drivers/sound/mpu401.c | mpu401_open (int dev, int mode, |
dev | 465 | drivers/sound/mpu401.c | void (*input) (int dev, unsigned char data), |
dev | 466 | drivers/sound/mpu401.c | void (*output) (int dev) |
dev | 472 | drivers/sound/mpu401.c | if (dev < 0 || dev >= num_midis) |
dev | 475 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 500 | drivers/sound/mpu401.c | irq2dev[devc->irq] = dev; |
dev | 502 | drivers/sound/mpu401.c | if ((err = snd_set_irq_handler (devc->irq, mpuintr, midi_devs[dev]->info.name) < 0)) |
dev | 507 | drivers/sound/mpu401.c | if (midi_devs[dev]->coproc) |
dev | 508 | drivers/sound/mpu401.c | if ((err = midi_devs[dev]->coproc-> |
dev | 509 | drivers/sound/mpu401.c | open (midi_devs[dev]->coproc->devc, COPR_MIDI)) < 0) |
dev | 518 | drivers/sound/mpu401.c | set_uart_mode (dev, devc, 1); |
dev | 531 | drivers/sound/mpu401.c | mpu401_close (int dev) |
dev | 535 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 547 | drivers/sound/mpu401.c | if (midi_devs[dev]->coproc) |
dev | 548 | drivers/sound/mpu401.c | midi_devs[dev]->coproc->close (midi_devs[dev]->coproc->devc, COPR_MIDI); |
dev | 553 | drivers/sound/mpu401.c | mpu401_out (int dev, unsigned char midi_byte) |
dev | 560 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 593 | drivers/sound/mpu401.c | mpu401_command (int dev, mpu_command_rec * cmd) |
dev | 600 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 664 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
dev | 700 | drivers/sound/mpu401.c | exec_cmd (int dev, int cmd, int data) |
dev | 711 | drivers/sound/mpu401.c | if ((ret = mpu401_command (dev, &rec)) < 0) |
dev | 717 | drivers/sound/mpu401.c | mpu401_prefix_cmd (int dev, unsigned char status) |
dev | 719 | drivers/sound/mpu401.c | struct mpu_config *devc = &dev_conf[dev]; |
dev | 726 | drivers/sound/mpu401.c | if (exec_cmd (dev, 0xD0, 0) < 0) |
dev | 735 | drivers/sound/mpu401.c | if (exec_cmd (dev, 0xDF, 0) < 0) |
dev | 749 | drivers/sound/mpu401.c | mpu401_start_read (int dev) |
dev | 755 | drivers/sound/mpu401.c | mpu401_end_read (int dev) |
dev | 761 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 765 | drivers/sound/mpu401.c | devc = &dev_conf[dev]; |
dev | 780 | drivers/sound/mpu401.c | set_uart_mode (dev, devc, !IOCTL_IN (arg)); |
dev | 791 | drivers/sound/mpu401.c | if ((ret = mpu401_command (dev, &rec)) < 0) |
dev | 805 | drivers/sound/mpu401.c | mpu401_kick (int dev) |
dev | 810 | drivers/sound/mpu401.c | mpu401_buffer_status (int dev) |
dev | 818 | drivers/sound/mpu401.c | mpu_synth_ioctl (int dev, |
dev | 824 | drivers/sound/mpu401.c | midi_dev = synth_devs[dev]->midi_dev; |
dev | 851 | drivers/sound/mpu401.c | mpu_synth_open (int dev, int mode) |
dev | 856 | drivers/sound/mpu401.c | midi_dev = synth_devs[dev]->midi_dev; |
dev | 889 | drivers/sound/mpu401.c | devc->synthno = dev; |
dev | 923 | drivers/sound/mpu401.c | mpu_synth_close (int dev) |
dev | 928 | drivers/sound/mpu401.c | midi_dev = synth_devs[dev]->midi_dev; |
dev | 1191 | drivers/sound/mpu401.c | set_uart_mode (int dev, struct mpu_config *devc, int arg) |
dev | 1208 | drivers/sound/mpu401.c | if (exec_cmd (dev, UART_MODE_ON, 0) < 0) |
dev | 1392 | drivers/sound/mpu401.c | mpu_timer_open (int dev, int mode) |
dev | 1394 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1415 | drivers/sound/mpu401.c | mpu_timer_close (int dev) |
dev | 1417 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1427 | drivers/sound/mpu401.c | mpu_timer_event (int dev, unsigned char *event) |
dev | 1431 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1505 | drivers/sound/mpu401.c | mpu_timer_get_time (int dev) |
dev | 1514 | drivers/sound/mpu401.c | mpu_timer_ioctl (int dev, |
dev | 1517 | drivers/sound/mpu401.c | int midi_dev = sound_timer_devs[dev]->devlink; |
dev | 1614 | drivers/sound/mpu401.c | mpu_timer_arm (int dev, long time) |
dev | 90 | drivers/sound/opl3.c | static int opl3_kill_note (int dev, int voice, int note, int velocity); |
dev | 133 | drivers/sound/opl3.c | opl3_ioctl (int dev, |
dev | 151 | drivers/sound/opl3.c | pmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0); |
dev | 305 | drivers/sound/opl3.c | opl3_kill_note (int dev, int voice, int note, int velocity) |
dev | 355 | drivers/sound/opl3.c | opl3_set_instr (int dev, int voice, int instr_no) |
dev | 552 | drivers/sound/opl3.c | opl3_start_note (int dev, int voice, int note, int volume) |
dev | 832 | drivers/sound/opl3.c | opl3_reset (int dev) |
dev | 853 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 0, 64); |
dev | 871 | drivers/sound/opl3.c | opl3_open (int dev, int mode) |
dev | 899 | drivers/sound/opl3.c | opl3_close (int dev) |
dev | 907 | drivers/sound/opl3.c | opl3_reset (dev); |
dev | 911 | drivers/sound/opl3.c | opl3_hw_control (int dev, unsigned char *event) |
dev | 916 | drivers/sound/opl3.c | opl3_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 940 | drivers/sound/opl3.c | opl3_panning (int dev, int voice, int pressure) |
dev | 945 | drivers/sound/opl3.c | opl3_volume_method (int dev, int mode) |
dev | 956 | drivers/sound/opl3.c | opl3_aftertouch (int dev, int voice, int pressure) |
dev | 1026 | drivers/sound/opl3.c | bend_pitch (int dev, int voice, int value) |
dev | 1068 | drivers/sound/opl3.c | opl3_controller (int dev, int voice, int ctrl_num, int value) |
dev | 1076 | drivers/sound/opl3.c | bend_pitch (dev, voice, value); |
dev | 1086 | drivers/sound/opl3.c | opl3_patchmgr (int dev, struct patmgr_info *rec) |
dev | 1092 | drivers/sound/opl3.c | opl3_bender (int dev, int voice, int value) |
dev | 1097 | drivers/sound/opl3.c | bend_pitch (dev, voice, value - 8192); |
dev | 1101 | drivers/sound/opl3.c | opl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc) |
dev | 1168 | drivers/sound/opl3.c | opl3_setup_voice (int dev, int voice, int chn) |
dev | 1171 | drivers/sound/opl3.c | &synth_devs[dev]->chn_info[chn]; |
dev | 1173 | drivers/sound/opl3.c | opl3_set_instr (dev, voice, |
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 | 260 | 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 | if ((mbox[dev] = |
dev | 244 | drivers/sound/patmgr.c | mbox[dev]->key = PM_K_EVENT; |
dev | 245 | drivers/sound/patmgr.c | mbox[dev]->command = event; |
dev | 246 | drivers/sound/patmgr.c | mbox[dev]->parm1 = p1; |
dev | 247 | drivers/sound/patmgr.c | mbox[dev]->parm2 = p2; |
dev | 248 | drivers/sound/patmgr.c | mbox[dev]->parm3 = p3; |
dev | 249 | drivers/sound/patmgr.c | msg_direction[dev] = A_TO_S; |
dev | 251 | drivers/sound/patmgr.c | if (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev])) |
dev | 253 | drivers/sound/patmgr.c | WAKE_UP (server_procs[dev], server_wait_flag[dev]); |
dev | 257 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 258 | drivers/sound/patmgr.c | KERNEL_FREE (mbox[dev]); |
dev | 259 | drivers/sound/patmgr.c | mbox[dev] = NULL; |
dev | 260 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 114 | drivers/sound/pss.c | set_irq (pss_config * devc, int dev, int irq) |
dev | 129 | drivers/sound/pss.c | tmp = INW (REG (dev)) & ~0x38; /* Load confreg, mask IRQ bits out */ |
dev | 137 | drivers/sound/pss.c | OUTW (tmp | bits, REG (dev)); |
dev | 142 | drivers/sound/pss.c | set_io_base (pss_config * devc, int dev, int base) |
dev | 144 | drivers/sound/pss.c | unsigned short tmp = INW (REG (dev)) & 0x003f; |
dev | 147 | drivers/sound/pss.c | OUTW (bits | tmp, REG (dev)); |
dev | 153 | drivers/sound/pss.c | set_dma (pss_config * devc, int dev, int dma) |
dev | 166 | drivers/sound/pss.c | tmp = INW (REG (dev)) & ~0x07; /* Load confreg, mask DMA bits out */ |
dev | 174 | drivers/sound/pss.c | OUTW (tmp | bits, REG (dev)); |
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 | 411 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
dev | 420 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 422 | drivers/sound/sb_dsp.c | if (audio_devs[dev]->dmachan > 3) |
dev | 461 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
dev | 474 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 476 | drivers/sound/sb_dsp.c | if (audio_devs[dev]->dmachan > 3) |
dev | 522 | drivers/sound/sb_dsp.c | sb_dsp_prepare_for_input (int dev, int bsize, int bcount) |
dev | 557 | drivers/sound/sb_dsp.c | sb_dsp_prepare_for_output (int dev, int bsize, int bcount) |
dev | 590 | drivers/sound/sb_dsp.c | sb_dsp_halt_xfer (int dev) |
dev | 631 | drivers/sound/sb_dsp.c | sb_dsp_open (int dev, int mode) |
dev | 672 | drivers/sound/sb_dsp.c | if (DMAbuf_open_dma (dev) < 0) |
dev | 687 | drivers/sound/sb_dsp.c | DMAbuf_close_dma (dev); |
dev | 702 | drivers/sound/sb_dsp.c | sb_dsp_close (int dev) |
dev | 717 | drivers/sound/sb_dsp.c | DMAbuf_close_dma (dev); |
dev | 753 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 826 | 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 | 172 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
dev | 177 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
dev | 182 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
dev | 193 | drivers/sound/sb_mixer.c | sb_mixer_get (int dev) |
dev | 195 | drivers/sound/sb_mixer.c | if (!((1 << dev) & supported_devices)) |
dev | 198 | drivers/sound/sb_mixer.c | return levels[dev]; |
dev | 242 | drivers/sound/sb_mixer.c | smw_mixer_set (int dev, int value) |
dev | 253 | drivers/sound/sb_mixer.c | if (dev > 31) |
dev | 256 | drivers/sound/sb_mixer.c | if (!(supported_devices & (1 << dev))) /* Not supported */ |
dev | 259 | drivers/sound/sb_mixer.c | switch (dev) |
dev | 268 | drivers/sound/sb_mixer.c | levels[dev] = left | (right << 8); |
dev | 282 | drivers/sound/sb_mixer.c | reg = smw_mix_regs[dev]; |
dev | 289 | drivers/sound/sb_mixer.c | levels[dev] = left | (right << 8); |
dev | 296 | drivers/sound/sb_mixer.c | sb_mixer_set (int dev, int value) |
dev | 306 | drivers/sound/sb_mixer.c | return smw_mixer_set (dev, value); |
dev | 314 | drivers/sound/sb_mixer.c | if (dev > 31) |
dev | 317 | drivers/sound/sb_mixer.c | if (!(supported_devices & (1 << dev))) /* |
dev | 322 | drivers/sound/sb_mixer.c | regoffs = (*iomap)[dev][LEFT_CHN].regno; |
dev | 328 | drivers/sound/sb_mixer.c | change_bits (&val, dev, LEFT_CHN, left); |
dev | 330 | drivers/sound/sb_mixer.c | levels[dev] = left | (left << 8); |
dev | 332 | drivers/sound/sb_mixer.c | if ((*iomap)[dev][RIGHT_CHN].regno != regoffs) /* |
dev | 339 | drivers/sound/sb_mixer.c | regoffs = (*iomap)[dev][RIGHT_CHN].regno; |
dev | 351 | drivers/sound/sb_mixer.c | change_bits (&val, dev, RIGHT_CHN, right); |
dev | 355 | drivers/sound/sb_mixer.c | levels[dev] = left | (right << 8); |
dev | 445 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 99 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 105 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 109 | drivers/sound/sequencer.c | if (dev) /* |
dev | 112 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
dev | 148 | drivers/sound/sequencer.c | sequencer_midi_output (int dev) |
dev | 185 | drivers/sound/sequencer.c | sequencer_midi_input (int dev, unsigned char data) |
dev | 204 | drivers/sound/sequencer.c | event[2] = dev; |
dev | 238 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 245 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 247 | drivers/sound/sequencer.c | DEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count)); |
dev | 252 | drivers/sound/sequencer.c | if (dev) /* |
dev | 255 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
dev | 268 | drivers/sound/sequencer.c | dev = *(unsigned short *) &event[2]; |
dev | 269 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_synthdev) |
dev | 272 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 275 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
dev | 318 | drivers/sound/sequencer.c | int dev = event[2]; |
dev | 320 | drivers/sound/sequencer.c | if (dev >= max_mididev) |
dev | 322 | drivers/sound/sequencer.c | printk ("Sequencer Error: Nonexistent MIDI device %d\n", dev); |
dev | 328 | drivers/sound/sequencer.c | if ((err = midi_devs[dev]->open (dev, mode, |
dev | 332 | drivers/sound/sequencer.c | printk ("Sequencer Error: Unable to open Midi #%d\n", dev); |
dev | 336 | drivers/sound/sequencer.c | midi_opened[dev] = 1; |
dev | 405 | drivers/sound/sequencer.c | int dev = q[2]; |
dev | 407 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_synthdev) |
dev | 410 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 416 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, q[3], q[4], q[5]); |
dev | 423 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, q[3], q[4], q[5]); |
dev | 427 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, q[3], q[4]); |
dev | 431 | drivers/sound/sequencer.c | synth_devs[dev]->aftertouch (dev, q[3], q[4]); |
dev | 435 | drivers/sound/sequencer.c | synth_devs[dev]->panning (dev, q[3], (char) q[4]); |
dev | 439 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]); |
dev | 443 | drivers/sound/sequencer.c | if (synth_devs[dev]->volume_method != NULL) |
dev | 444 | drivers/sound/sequencer.c | synth_devs[dev]->volume_method (dev, q[3]); |
dev | 455 | drivers/sound/sequencer.c | find_voice (int dev, int chn, int note) |
dev | 462 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
dev | 463 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc.map[i] == key) |
dev | 470 | drivers/sound/sequencer.c | alloc_voice (int dev, int chn, int note) |
dev | 477 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
dev | 478 | drivers/sound/sequencer.c | &synth_devs[dev]->alloc); |
dev | 479 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.map[voice] = key; |
dev | 480 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.alloc_times[voice] = |
dev | 481 | drivers/sound/sequencer.c | synth_devs[dev]->alloc.timestamp++; |
dev | 488 | drivers/sound/sequencer.c | unsigned char dev = event[1]; |
dev | 495 | drivers/sound/sequencer.c | if ((int) dev > max_synthdev) |
dev | 497 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 499 | drivers/sound/sequencer.c | if (!synth_devs[dev]) |
dev | 504 | drivers/sound/sequencer.c | if (synth_devs[dev]->alloc_voice) |
dev | 505 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
dev | 520 | drivers/sound/sequencer.c | if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) |
dev | 522 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
dev | 528 | drivers/sound/sequencer.c | if (seq_mode == SEQ_2 && dev < num_synths) |
dev | 537 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, voice, 128 + note); |
dev | 545 | drivers/sound/sequencer.c | synth_devs[dev]->setup_voice (dev, voice, chn); |
dev | 548 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, voice, note, parm); |
dev | 554 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, voice, note, parm); |
dev | 560 | drivers/sound/sequencer.c | synth_devs[dev]->aftertouch (dev, voice, parm); |
dev | 570 | drivers/sound/sequencer.c | unsigned char dev = event[1]; |
dev | 578 | drivers/sound/sequencer.c | if ((int) dev > max_synthdev) |
dev | 580 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 582 | drivers/sound/sequencer.c | if (!synth_devs[dev]) |
dev | 590 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
dev | 591 | drivers/sound/sequencer.c | if (dev >= num_synths) |
dev | 592 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
dev | 595 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
dev | 606 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f; |
dev | 608 | drivers/sound/sequencer.c | if (dev < num_synths) |
dev | 615 | drivers/sound/sequencer.c | val = ((synth_devs[dev]-> |
dev | 617 | drivers/sound/sequencer.c | | (synth_devs[dev]-> |
dev | 626 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
dev | 627 | drivers/sound/sequencer.c | if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) |
dev | 628 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, i, p1, val); |
dev | 631 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
dev | 634 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
dev | 640 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = w14; |
dev | 642 | drivers/sound/sequencer.c | if (dev < num_synths) |
dev | 648 | drivers/sound/sequencer.c | for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) |
dev | 649 | drivers/sound/sequencer.c | if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) |
dev | 650 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, i, w14); |
dev | 653 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
dev | 656 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
dev | 847 | drivers/sound/sequencer.c | int dev; |
dev | 849 | drivers/sound/sequencer.c | dev = q[2]; |
dev | 851 | drivers/sound/sequencer.c | if (!midi_devs[dev]->putc (dev, q[1])) |
dev | 862 | drivers/sound/sequencer.c | midi_written[dev] = 1; |
dev | 950 | drivers/sound/sequencer.c | reset_controllers (int dev, unsigned char *controller, int update_dev) |
dev | 962 | drivers/sound/sequencer.c | int dev; |
dev | 966 | drivers/sound/sequencer.c | for (dev = 0; dev < num_midis; dev++) |
dev | 967 | drivers/sound/sequencer.c | if (midi_devs[dev]->converter != NULL) |
dev | 970 | drivers/sound/sequencer.c | midi_devs[dev]->converter; |
dev | 973 | drivers/sound/sequencer.c | for (dev = 0; dev < max_synthdev; dev++) |
dev | 979 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = 0; |
dev | 980 | drivers/sound/sequencer.c | reset_controllers (dev, |
dev | 981 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers, |
dev | 983 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = (1 << 7); /* Neutral */ |
dev | 992 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
dev | 997 | drivers/sound/sequencer.c | level = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1; |
dev | 999 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 1002 | drivers/sound/sequencer.c | DEB (printk ("sequencer_open(dev=%d)\n", dev)); |
dev | 1010 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1016 | drivers/sound/sequencer.c | dev--; |
dev | 1018 | drivers/sound/sequencer.c | if (dev >= MAX_SYNTH_DEV) |
dev | 1020 | drivers/sound/sequencer.c | if (pmgr_present[dev]) |
dev | 1022 | drivers/sound/sequencer.c | if ((err = pmgr_open (dev)) < 0) |
dev | 1027 | drivers/sound/sequencer.c | pmgr_present[dev] = 1; |
dev | 1181 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
dev | 1186 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 1188 | drivers/sound/sequencer.c | DEB (printk ("sequencer_release(dev=%d)\n", dev)); |
dev | 1190 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1194 | drivers/sound/sequencer.c | dev--; |
dev | 1195 | drivers/sound/sequencer.c | pmgr_release (dev); |
dev | 1196 | drivers/sound/sequencer.c | pmgr_present[dev] = 0; |
dev | 1265 | drivers/sound/sequencer.c | midi_outc (int dev, unsigned char data) |
dev | 1283 | drivers/sound/sequencer.c | while (n && !midi_devs[dev]->putc (dev, data)) |
dev | 1394 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 1400 | drivers/sound/sequencer.c | orig_dev = dev = dev >> 4; |
dev | 1411 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 1420 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 1441 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1457 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1467 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1493 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1511 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 1527 | drivers/sound/sequencer.c | dev = IOCTL_IN (arg); |
dev | 1528 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1531 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 1534 | drivers/sound/sequencer.c | if (!orig_dev && pmgr_present[dev]) |
dev | 1535 | drivers/sound/sequencer.c | pmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0); |
dev | 1537 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 1550 | drivers/sound/sequencer.c | int dev = IOCTL_IN (arg); |
dev | 1552 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1555 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 1558 | drivers/sound/sequencer.c | return IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
dev | 1564 | drivers/sound/sequencer.c | int dev = IOCTL_IN (arg); |
dev | 1566 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1569 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 1572 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 1580 | drivers/sound/sequencer.c | int dev; |
dev | 1583 | drivers/sound/sequencer.c | dev = inf.device; |
dev | 1585 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_synthdev) |
dev | 1588 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 1591 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 1613 | drivers/sound/sequencer.c | int dev; |
dev | 1616 | drivers/sound/sequencer.c | dev = inf.device; |
dev | 1618 | drivers/sound/sequencer.c | if (dev < 0 || dev >= max_mididev) |
dev | 1621 | drivers/sound/sequencer.c | IOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf)); |
dev | 1629 | drivers/sound/sequencer.c | int dev, err; |
dev | 1638 | drivers/sound/sequencer.c | dev = inf->device; |
dev | 1640 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1646 | drivers/sound/sequencer.c | if (!synth_devs[dev]->pmgr_interface) |
dev | 1652 | drivers/sound/sequencer.c | if ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1) |
dev | 1667 | drivers/sound/sequencer.c | int dev, err; |
dev | 1676 | drivers/sound/sequencer.c | dev = inf->device; |
dev | 1678 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 1684 | drivers/sound/sequencer.c | if (!pmgr_present[dev]) |
dev | 1690 | drivers/sound/sequencer.c | if ((err = pmgr_access (dev, inf)) < 0) |
dev | 1706 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1734 | drivers/sound/sequencer.c | if (dev) /* |
dev | 1755 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 1759 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 1911 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 1917 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 1923 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
dev | 1929 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
dev | 1933 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 1940 | drivers/sound/sequencer.c | sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
dev | 1953 | 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, int dontblock); |
dev | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock); |
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 | 14 | drivers/sound/sound_calls.h | int DMAbuf_open_dma (int dev); |
dev | 15 | drivers/sound/sound_calls.h | void DMAbuf_close_dma (int dev); |
dev | 16 | drivers/sound/sound_calls.h | void DMAbuf_reset_dma (int dev); |
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 | 20 | drivers/sound/sound_calls.h | int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 27 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 28 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 29 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
dev | 30 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
dev | 31 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
dev | 33 | 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 audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 44 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 45 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 46 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
dev | 47 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
dev | 48 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 50 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 59 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 66 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 67 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 68 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
dev | 69 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
dev | 70 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
dev | 72 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 73 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
dev | 77 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 86 | drivers/sound/sound_calls.h | int CMIDI_open (int dev, struct fileinfo *file); |
dev | 87 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 88 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 89 | drivers/sound/sound_calls.h | int CMIDI_close (int dev, struct fileinfo *file); |
dev | 104 | drivers/sound/sound_calls.h | void sound_dma_malloc(int dev); |
dev | 105 | drivers/sound/sound_calls.h | void sound_dma_free(int dev); |
dev | 108 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 109 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 110 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
dev | 111 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
dev | 112 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
dev | 191 | 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 | 246 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 247 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 248 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
dev | 249 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
dev | 250 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
dev | 252 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 308 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 310 | drivers/sound/sound_switch.c | DEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count)); |
dev | 312 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 321 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
dev | 326 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
dev | 331 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
dev | 335 | drivers/sound/sound_switch.c | printk ("Sound: Undefined minor device %d\n", dev); |
dev | 342 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 345 | drivers/sound/sound_switch.c | DEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count)); |
dev | 347 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 352 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
dev | 358 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
dev | 363 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
dev | 374 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
dev | 378 | drivers/sound/sound_switch.c | DEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount)); |
dev | 380 | drivers/sound/sound_switch.c | if ((dev >= SND_NDEVS) || (dev < 0)) |
dev | 382 | drivers/sound/sound_switch.c | printk ("Invalid minor device %d\n", dev); |
dev | 386 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 404 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
dev | 410 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
dev | 418 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
dev | 423 | drivers/sound/sound_switch.c | printk ("Invalid minor device %d\n", dev); |
dev | 427 | drivers/sound/sound_switch.c | sbc_devices[dev].usecount++; |
dev | 434 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
dev | 437 | drivers/sound/sound_switch.c | DEB (printk ("sound_release_sw(dev=%d)\n", dev)); |
dev | 439 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 453 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
dev | 458 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
dev | 465 | drivers/sound/sound_switch.c | audio_release (dev, file); |
dev | 469 | drivers/sound/sound_switch.c | printk ("Sound error: Releasing unknown device 0x%02x\n", dev); |
dev | 472 | drivers/sound/sound_switch.c | sbc_devices[dev].usecount--; |
dev | 477 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
dev | 480 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
dev | 483 | drivers/sound/sound_switch.c | if ((dev & 0x0f) != SND_DEV_CTL) |
dev | 485 | drivers/sound/sound_switch.c | int dtype = dev & 0x0f; |
dev | 493 | drivers/sound/sound_switch.c | mixdev = audio_devs[dev >> 4]->mixer_dev; |
dev | 504 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 512 | drivers/sound/sound_switch.c | dev = dev >> 4; |
dev | 514 | drivers/sound/sound_switch.c | if (dev >= num_mixers) |
dev | 517 | drivers/sound/sound_switch.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
dev | 522 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
dev | 528 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
dev | 533 | drivers/sound/sound_switch.c | return MIDIbuf_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 | 59 | drivers/sound/soundcard.c | int dev; |
dev | 61 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 62 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 64 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
dev | 70 | drivers/sound/soundcard.c | int dev; |
dev | 77 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 78 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 80 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
dev | 92 | drivers/sound/soundcard.c | int dev, retval; |
dev | 95 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 96 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 98 | drivers/sound/soundcard.c | if (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS) |
dev | 114 | drivers/sound/soundcard.c | if ((retval = sound_open_sw (dev, &tmp_file)) < 0) |
dev | 121 | drivers/sound/soundcard.c | memcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file)); |
dev | 128 | drivers/sound/soundcard.c | int dev; |
dev | 130 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 131 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 133 | drivers/sound/soundcard.c | sound_release_sw (dev, &files[dev]); |
dev | 143 | drivers/sound/soundcard.c | int dev; |
dev | 145 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 146 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 171 | drivers/sound/soundcard.c | return sound_ioctl_sw (dev, &files[dev], cmd, arg); |
dev | 177 | drivers/sound/soundcard.c | int dev; |
dev | 179 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 180 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 182 | drivers/sound/soundcard.c | DEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type)); |
dev | 184 | drivers/sound/soundcard.c | switch (dev & 0x0f) |
dev | 189 | drivers/sound/soundcard.c | return sequencer_select (dev, &files[dev], sel_type, wait); |
dev | 195 | drivers/sound/soundcard.c | return MIDIbuf_select (dev, &files[dev], sel_type, wait); |
dev | 203 | drivers/sound/soundcard.c | return audio_select (dev, &files[dev], sel_type, wait); |
dev | 438 | drivers/sound/soundcard.c | int dev, ret = 0; |
dev | 443 | drivers/sound/soundcard.c | for (dev = 0; dev < num_audiodevs; dev++) |
dev | 444 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0) |
dev | 446 | drivers/sound/soundcard.c | dmap = audio_devs[dev]->dmap; |
dev | 447 | drivers/sound/soundcard.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 448 | drivers/sound/soundcard.c | audio_devs[dev]->buffcount = 1; |
dev | 450 | drivers/sound/soundcard.c | if (audio_devs[dev]->dmachan > 3) |
dev | 458 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize > dma_pagesize) |
dev | 459 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = dma_pagesize; |
dev | 460 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize &= 0xfffff000; /* Truncate to n*4k */ |
dev | 461 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize < 4096) |
dev | 462 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = 4096; |
dev | 464 | drivers/sound/soundcard.c | printk ("sound: buffsize %lu\n", audio_devs[dev]->buffsize); |
dev | 466 | drivers/sound/soundcard.c | for (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; |
dev | 470 | drivers/sound/soundcard.c | start_addr = kmalloc (audio_devs[dev]->buffsize, GFP_KERNEL); |
dev | 476 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize, |
dev | 482 | drivers/sound/soundcard.c | start_addr = kmalloc (audio_devs[dev]->buffsize * 2, |
dev | 500 | drivers/sound/soundcard.c | start_addr = kmalloc (audio_devs[dev]->buffsize, |
dev | 511 | drivers/sound/soundcard.c | end_addr = start_addr + audio_devs[dev]->buffsize - 1; |
dev | 523 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize); |
dev | 547 | drivers/sound/soundcard.c | int dev, i; |
dev | 549 | drivers/sound/soundcard.c | for (dev = 0; dev < num_audiodevs; dev++) |
dev | 550 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0) |
dev | 552 | drivers/sound/soundcard.c | for (i = 0; i < audio_devs[dev]->buffcount; i++) |
dev | 553 | drivers/sound/soundcard.c | if (audio_devs[dev]->dmap->raw_buf[i]) |
dev | 557 | drivers/sound/soundcard.c | (long) (audio_devs[dev]->dmap->raw_buf[i])); |
dev | 558 | drivers/sound/soundcard.c | kfree (audio_devs[dev]->dmap->raw_buf[i]); |
dev | 569 | drivers/sound/soundcard.c | int i, dev; |
dev | 580 | drivers/sound/soundcard.c | for (dev = 0; dev < num_audiodevs; dev++) /* Enumerate devices */ |
dev | 581 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0) |
dev | 583 | drivers/sound/soundcard.c | dmap = audio_devs[dev]->dmap; |
dev | 585 | drivers/sound/soundcard.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
dev | 586 | drivers/sound/soundcard.c | audio_devs[dev]->buffcount = 1; |
dev | 588 | drivers/sound/soundcard.c | if (audio_devs[dev]->dmachan > 3 && audio_devs[dev]->buffsize > 65536) |
dev | 595 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize > dma_pagesize) |
dev | 596 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = dma_pagesize; |
dev | 597 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize &= 0xfffff000; /* Truncate to n*4k */ |
dev | 598 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize < 4096) |
dev | 599 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = 4096; |
dev | 603 | drivers/sound/soundcard.c | for (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; dmap->raw_count++) |
dev | 605 | drivers/sound/soundcard.c | start_addr = mem_ptr - audio_devs[dev]->buffsize; |
dev | 606 | drivers/sound/soundcard.c | if (!valid_dma_page (start_addr, audio_devs[dev]->buffsize, dma_pagesize)) |
dev | 610 | drivers/sound/soundcard.c | end_addr = start_addr + audio_devs[dev]->buffsize - 1; |
dev | 633 | drivers/sound/sscape.c | sscape_audio_open (int dev, int mode) |
dev | 636 | drivers/sound/sscape.c | sscape_info *devc = (sscape_info *) audio_devs[dev]->devc; |
dev | 677 | drivers/sound/sscape.c | sscape_audio_close (int dev) |
dev | 680 | drivers/sound/sscape.c | sscape_info *devc = (sscape_info *) audio_devs[dev]->devc; |
dev | 689 | drivers/sound/sscape.c | DMAbuf_close_dma (dev); |
dev | 716 | drivers/sound/sscape.c | sscape_audio_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 718 | drivers/sound/sscape.c | sscape_info *devc = (sscape_info *) audio_devs[dev]->devc; |
dev | 763 | drivers/sound/sscape.c | sscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 768 | drivers/sound/sscape.c | sscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 773 | drivers/sound/sscape.c | sscape_audio_prepare_for_input (int dev, int bsize, int bcount) |
dev | 779 | drivers/sound/sscape.c | sscape_audio_prepare_for_output (int dev, int bsize, int bcount) |
dev | 785 | drivers/sound/sscape.c | sscape_audio_halt (int dev) |
dev | 790 | drivers/sound/sscape.c | sscape_audio_reset (int dev) |
dev | 792 | drivers/sound/sscape.c | sscape_audio_halt (dev); |
dev | 111 | drivers/sound/sys_timer.c | def_tmr_open (int dev, int mode) |
dev | 127 | drivers/sound/sys_timer.c | def_tmr_close (int dev) |
dev | 133 | drivers/sound/sys_timer.c | def_tmr_event (int dev, unsigned char *event) |
dev | 195 | drivers/sound/sys_timer.c | def_tmr_get_time (int dev) |
dev | 204 | drivers/sound/sys_timer.c | def_tmr_ioctl (int dev, |
dev | 284 | 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 | 132 | drivers/sound/uart6850.c | uart6850_open (int dev, int mode, |
dev | 133 | drivers/sound/uart6850.c | void (*input) (int dev, unsigned char data), |
dev | 134 | drivers/sound/uart6850.c | void (*output) (int dev) |
dev | 157 | drivers/sound/uart6850.c | uart6850_close (int dev) |
dev | 165 | drivers/sound/uart6850.c | uart6850_out (int dev, unsigned char midi_byte) |
dev | 201 | drivers/sound/uart6850.c | uart6850_command (int dev, unsigned char *midi_byte) |
dev | 207 | drivers/sound/uart6850.c | uart6850_start_read (int dev) |
dev | 213 | drivers/sound/uart6850.c | uart6850_end_read (int dev) |
dev | 219 | drivers/sound/uart6850.c | uart6850_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 225 | drivers/sound/uart6850.c | uart6850_kick (int dev) |
dev | 230 | 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 | 216 | fs/block_dev.c | if (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9)) |
dev | 217 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9); |
dev | 246 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 249 | 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 | 446 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
dev | 452 | fs/buffer.c | void set_blocksize(dev_t dev, int size) |
dev | 457 | fs/buffer.c | if (!blksize_size[MAJOR(dev)]) |
dev | 465 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) { |
dev | 466 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
dev | 469 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == size) |
dev | 471 | fs/buffer.c | sync_buffers(dev, 2); |
dev | 472 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
dev | 482 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 488 | fs/buffer.c | if (bh->b_dev == dev && bh->b_size != size) { |
dev | 690 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
dev | 702 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
dev | 712 | fs/buffer.c | if (find_buffer(dev,block,size)) |
dev | 727 | fs/buffer.c | bh->b_dev=dev; |
dev | 813 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
dev | 817 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
dev | 819 | fs/buffer.c | MAJOR(dev), MINOR(dev)); |
dev | 840 | fs/buffer.c | struct buffer_head * breada(dev_t dev, int block, int bufsize, |
dev | 852 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
dev | 862 | fs/buffer.c | if (blocks > (read_ahead[MAJOR(dev)] >> index)) |
dev | 863 | fs/buffer.c | blocks = read_ahead[MAJOR(dev)] >> index; |
dev | 870 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
dev | 1013 | fs/buffer.c | dev_t dev, int *b, int size) |
dev | 1031 | fs/buffer.c | first = get_hash_table(dev, block, size); |
dev | 1054 | fs/buffer.c | dev_t dev, int b[], int size) |
dev | 1071 | fs/buffer.c | if (find_buffer(dev, block, size)) |
dev | 1085 | fs/buffer.c | bh->b_dev = dev; |
dev | 1125 | fs/buffer.c | dev_t dev, int *b, int size) |
dev | 1133 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
dev | 1135 | fs/buffer.c | return check_aligned(bh, address, dev, b, size); |
dev | 1136 | fs/buffer.c | return try_to_load_aligned(address, dev, b, size); |
dev | 1146 | fs/buffer.c | unsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int no_share) |
dev | 1153 | fs/buffer.c | where = try_to_share_buffers(address, dev, b, size); |
dev | 1161 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
dev | 1181 | fs/buffer.c | void bwrite_page(unsigned long address, dev_t dev, int b[], int size) |
dev | 1189 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
dev | 1489 | fs/buffer.c | dev_t dev, unsigned int starting_block) |
dev | 1518 | fs/buffer.c | p->b_dev=dev; |
dev | 1541 | fs/buffer.c | static int reassign_cluster(dev_t dev, |
dev | 1558 | fs/buffer.c | if (try_to_reassign(bh, &bh, dev, starting_block)) |
dev | 1568 | fs/buffer.c | static unsigned long try_to_generate_cluster(dev_t dev, int block, int size) |
dev | 1586 | fs/buffer.c | if (find_buffer(dev, nblock++, size)) |
dev | 1599 | fs/buffer.c | bh->b_dev = dev; |
dev | 1625 | fs/buffer.c | unsigned long generate_cluster(dev_t dev, int b[], int size) |
dev | 1631 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
dev | 1641 | fs/buffer.c | retval = try_to_generate_cluster(dev, b[0], size); |
dev | 1646 | fs/buffer.c | return try_to_generate_cluster(dev, b[0], size); |
dev | 1648 | 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 | 71 | fs/ext/inode.c | int dev = s->s_dev,block; |
dev | 75 | fs/ext/inode.c | set_blocksize(dev, BLOCK_SIZE); |
dev | 76 | fs/ext/inode.c | if (!(bh = bread(dev, 1, BLOCK_SIZE))) { |
dev | 102 | fs/ext/inode.c | dev); |
dev | 109 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
dev | 121 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
dev | 132 | fs/ext/inode.c | s->s_dev = dev; |
dev | 370 | fs/ext2/super.c | int dev = sb->s_dev; |
dev | 383 | fs/ext2/super.c | set_blocksize (dev, BLOCK_SIZE); |
dev | 384 | fs/ext2/super.c | if (!(bh = bread (dev, sb_block, BLOCK_SIZE))) { |
dev | 404 | fs/ext2/super.c | MAJOR(dev), MINOR(dev)); |
dev | 415 | fs/ext2/super.c | set_blocksize (dev, sb->s_blocksize); |
dev | 418 | fs/ext2/super.c | bh = bread (dev, logic_sb_block, sb->s_blocksize); |
dev | 474 | fs/ext2/super.c | MAJOR(dev), MINOR(dev)); |
dev | 485 | fs/ext2/super.c | dev); |
dev | 544 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
dev | 584 | fs/ext2/super.c | sb->s_dev = dev; |
dev | 248 | fs/hpfs/hpfs_fs.c | static unsigned count_one_bitmap(dev_t dev, secno secno); |
dev | 257 | fs/hpfs/hpfs_fs.c | static struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno, |
dev | 263 | fs/hpfs/hpfs_fs.c | static dnode_secno fnode_dno(dev_t dev, ino_t ino); |
dev | 264 | fs/hpfs/hpfs_fs.c | static struct fnode *map_fnode(dev_t dev, ino_t ino, |
dev | 266 | fs/hpfs/hpfs_fs.c | static struct anode *map_anode(dev_t dev, unsigned secno, |
dev | 268 | fs/hpfs/hpfs_fs.c | static struct dnode *map_dnode(dev_t dev, unsigned secno, |
dev | 270 | fs/hpfs/hpfs_fs.c | static void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp); |
dev | 271 | fs/hpfs/hpfs_fs.c | static void *map_4sectors(dev_t dev, unsigned secno, |
dev | 346 | fs/hpfs/hpfs_fs.c | dev_t dev; |
dev | 372 | fs/hpfs/hpfs_fs.c | dev = s->s_dev; |
dev | 373 | fs/hpfs/hpfs_fs.c | set_blocksize(dev, 512); |
dev | 379 | fs/hpfs/hpfs_fs.c | bootblock = map_sector(dev, 0, &bh0); |
dev | 383 | fs/hpfs/hpfs_fs.c | superblock = map_sector(dev, 16, &bh1); |
dev | 387 | fs/hpfs/hpfs_fs.c | spareblock = map_sector(dev, 17, &bh2); |
dev | 503 | fs/hpfs/hpfs_fs.c | root_dno = fnode_dno(dev, s->s_hpfs_root); |
dev | 853 | fs/hpfs/hpfs_fs.c | static unsigned count_one_bitmap(dev_t dev, secno secno) |
dev | 859 | fs/hpfs/hpfs_fs.c | bits = map_4sectors(dev, secno, &qbh); |
dev | 1557 | fs/hpfs/hpfs_fs.c | static struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno, |
dev | 1563 | fs/hpfs/hpfs_fs.c | struct dnode *dnode = map_dnode(dev, dno, qbh); |
dev | 1587 | fs/hpfs/hpfs_fs.c | static dnode_secno fnode_dno(dev_t dev, ino_t ino) |
dev | 1593 | fs/hpfs/hpfs_fs.c | fnode = map_fnode(dev, ino, &bh); |
dev | 1604 | fs/hpfs/hpfs_fs.c | static struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp) |
dev | 1613 | fs/hpfs/hpfs_fs.c | fnode = map_sector(dev, ino_secno(ino), bhp); |
dev | 1625 | fs/hpfs/hpfs_fs.c | static struct anode *map_anode(dev_t dev, unsigned secno, |
dev | 1635 | fs/hpfs/hpfs_fs.c | anode = map_sector(dev, secno, bhp); |
dev | 1647 | fs/hpfs/hpfs_fs.c | static struct dnode *map_dnode(dev_t dev, unsigned secno, |
dev | 1657 | fs/hpfs/hpfs_fs.c | dnode = map_4sectors(dev, secno, qbh); |
dev | 1669 | fs/hpfs/hpfs_fs.c | static void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp) |
dev | 1673 | fs/hpfs/hpfs_fs.c | if ((*bhp = bh = bread(dev, secno, 512)) != 0) |
dev | 1683 | fs/hpfs/hpfs_fs.c | static void *map_4sectors(dev_t dev, unsigned secno, |
dev | 1698 | fs/hpfs/hpfs_fs.c | qbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX); |
dev | 1703 | fs/hpfs/hpfs_fs.c | qbh->bh[1] = bh = bread(dev, secno + 1, 512); |
dev | 1708 | fs/hpfs/hpfs_fs.c | qbh->bh[2] = bh = bread(dev, secno + 2, 512); |
dev | 1713 | 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 | 159 | 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 | 786 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
dev | 788 | 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 | 218 | fs/nfs/dir.c | int dev; |
dev | 234 | fs/nfs/dir.c | if (entry->dev == dir->i_dev && entry->inode == dir->i_ino |
dev | 255 | fs/nfs/dir.c | entry->dev = 0; |
dev | 281 | fs/nfs/dir.c | entry->dev = dir->i_dev; |
dev | 294 | fs/nfs/dir.c | int dev; |
dev | 299 | fs/nfs/dir.c | dev = inode->i_dev; |
dev | 303 | fs/nfs/dir.c | dev = entry->dev; |
dev | 310 | fs/nfs/dir.c | if (entry->dev == dev && entry->fattr.fileid == fileid) |
dev | 311 | fs/nfs/dir.c | entry->dev = 0; |
dev | 319 | fs/nfs/dir.c | int dev = file->i_dev; |
dev | 325 | fs/nfs/dir.c | if (entry->dev == dev && entry->fattr.fileid == fileid) |
dev | 84 | fs/nfs/inode.c | dev_t dev = sb->s_dev; |
dev | 116 | fs/nfs/inode.c | sb->s_dev = dev; |
dev | 644 | fs/proc/array.c | dev_t dev; |
dev | 657 | fs/proc/array.c | dev = map->vm_inode->i_dev; |
dev | 660 | fs/proc/array.c | dev = 0; |
dev | 666 | 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 | 187 | fs/smbfs/inode.c | dev_t dev = sb->s_dev; |
dev | 230 | fs/smbfs/inode.c | sb->s_dev = dev; |
dev | 1611 | fs/smbfs/proc.c | char dev[] = "A:"; |
dev | 1767 | fs/smbfs/proc.c | strlen(server->m.password) + strlen(dev)); |
dev | 1771 | fs/smbfs/proc.c | p = smb_encode_ascii(p, dev, strlen(dev)); |
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 | asmlinkage int sys_ustat(dev_t dev, struct ustat * ubuf) |
dev | 265 | fs/super.c | s = get_super(dev); |
dev | 289 | fs/super.c | static struct super_block * read_super(dev_t dev,const char *name,int flags, |
dev | 295 | fs/super.c | if (!dev) |
dev | 297 | fs/super.c | check_disk_change(dev); |
dev | 298 | fs/super.c | s = get_super(dev); |
dev | 303 | fs/super.c | MAJOR(dev), MINOR(dev), name); |
dev | 312 | fs/super.c | s->s_dev = dev; |
dev | 318 | fs/super.c | s->s_dev = dev; |
dev | 344 | fs/super.c | void put_unnamed_dev(dev_t dev) |
dev | 346 | fs/super.c | if (!dev) |
dev | 348 | fs/super.c | if (MAJOR(dev) == UNNAMED_MAJOR && |
dev | 349 | fs/super.c | clear_bit(MINOR(dev), unnamed_dev_in_use)) |
dev | 352 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 355 | fs/super.c | static int do_umount(dev_t dev) |
dev | 360 | fs/super.c | if (dev==ROOT_DEV) { |
dev | 363 | fs/super.c | if (!(sb=get_super(dev))) |
dev | 366 | fs/super.c | fsync_dev(dev); |
dev | 373 | fs/super.c | if (!(sb=get_super(dev)) || !(sb->s_covered)) |
dev | 377 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 378 | fs/super.c | if (!fs_may_umount(dev, sb->s_mounted)) |
dev | 387 | fs/super.c | put_super(dev); |
dev | 405 | fs/super.c | dev_t dev; |
dev | 419 | fs/super.c | dev = inode->i_rdev; |
dev | 429 | fs/super.c | dev = inode->i_sb->s_dev; |
dev | 432 | fs/super.c | dummy_inode.i_rdev = dev; |
dev | 435 | fs/super.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 439 | fs/super.c | if (!(retval = do_umount(dev)) && dev != ROOT_DEV) { |
dev | 440 | fs/super.c | fops = get_blkfops(MAJOR(dev)); |
dev | 443 | fs/super.c | if (MAJOR(dev) == UNNAMED_MAJOR) |
dev | 444 | fs/super.c | put_unnamed_dev(dev); |
dev | 450 | fs/super.c | fsync_dev(dev); |
dev | 463 | fs/super.c | int do_mount(dev_t dev, const char * dir, const char * type, int flags, void * data) |
dev | 480 | fs/super.c | if (!fs_may_mount(dev)) { |
dev | 484 | fs/super.c | sb = read_super(dev,type,flags,data,0); |
dev | 587 | fs/super.c | dev_t dev; |
dev | 627 | fs/super.c | dev = inode->i_rdev; |
dev | 628 | fs/super.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 632 | fs/super.c | fops = get_blkfops(MAJOR(dev)); |
dev | 650 | fs/super.c | if (!(dev = get_unnamed_dev())) |
dev | 663 | 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 | 43 | include/linux/atalk.h | struct device *dev; |
dev | 52 | include/linux/atalk.h | struct device *dev; |
dev | 139 | include/linux/atalk.h | extern struct atalk_iface *atalk_find_dev(struct device *dev); |
dev | 140 | include/linux/atalk.h | extern struct at_addr *atalk_find_dev_addr(struct device *dev); |
dev | 141 | include/linux/atalk.h | extern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr); |
dev | 142 | include/linux/atalk.h | extern void aarp_send_probe(struct device *dev, struct at_addr *addr); |
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(struct sk_buff *skb, struct device *dev, |
dev | 34 | include/linux/etherdevice.h | extern int eth_rebuild_header(void *buff, struct device *dev, |
dev | 36 | include/linux/etherdevice.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 37 | include/linux/etherdevice.h | extern void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
dev | 339 | include/linux/fs.h | int (*check_media_change) (dev_t dev); |
dev | 340 | include/linux/fs.h | int (*revalidate) (dev_t dev); |
dev | 415 | include/linux/fs.h | extern int fs_may_mount(dev_t dev); |
dev | 416 | include/linux/fs.h | extern int fs_may_umount(dev_t dev, struct inode * mount_root); |
dev | 417 | include/linux/fs.h | extern int fs_may_remount_ro(dev_t dev); |
dev | 459 | include/linux/fs.h | extern int check_disk_change(dev_t dev); |
dev | 460 | include/linux/fs.h | extern void invalidate_inodes(dev_t dev); |
dev | 461 | include/linux/fs.h | extern void invalidate_buffers(dev_t dev); |
dev | 463 | include/linux/fs.h | extern void sync_inodes(dev_t dev); |
dev | 464 | include/linux/fs.h | extern void sync_dev(dev_t dev); |
dev | 465 | include/linux/fs.h | extern int fsync_dev(dev_t dev); |
dev | 466 | include/linux/fs.h | extern void sync_supers(dev_t dev); |
dev | 476 | include/linux/fs.h | extern int do_mknod(const char * filename, int mode, dev_t dev); |
dev | 486 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
dev | 487 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
dev | 489 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer); |
dev | 490 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
dev | 491 | include/linux/fs.h | extern int is_read_only(int dev); |
dev | 493 | include/linux/fs.h | extern void set_blocksize(dev_t dev, int size); |
dev | 494 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
dev | 495 | include/linux/fs.h | extern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int no_share); |
dev | 496 | include/linux/fs.h | extern void bwrite_page(unsigned long addr,dev_t dev,int b[],int size); |
dev | 497 | include/linux/fs.h | extern struct buffer_head * breada(dev_t dev,int block, int size, |
dev | 499 | include/linux/fs.h | extern void put_super(dev_t dev); |
dev | 500 | 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 | 88 | include/linux/igmp.h | extern void ip_mc_drop_device(struct device *dev); |
dev | 89 | include/linux/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
dev | 90 | 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 | 124 | include/linux/mroute.h | struct device *dev; /* Device we are using */ |
dev | 94 | include/linux/netdevice.h | int (*init)(struct device *dev); |
dev | 101 | include/linux/netdevice.h | struct enet_statistics* (*get_stats)(struct device *dev); |
dev | 147 | include/linux/netdevice.h | int (*open)(struct device *dev); |
dev | 148 | include/linux/netdevice.h | int (*stop)(struct device *dev); |
dev | 150 | include/linux/netdevice.h | struct device *dev); |
dev | 152 | include/linux/netdevice.h | struct device *dev, |
dev | 157 | include/linux/netdevice.h | int (*rebuild_header)(void *eth, struct device *dev, |
dev | 160 | include/linux/netdevice.h | void (*set_multicast_list)(struct device *dev, |
dev | 163 | include/linux/netdevice.h | int (*set_mac_address)(struct device *dev, void *addr); |
dev | 165 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd); |
dev | 167 | include/linux/netdevice.h | int (*set_config)(struct device *dev, struct ifmap *map); |
dev | 168 | include/linux/netdevice.h | void (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
dev | 174 | include/linux/netdevice.h | struct device * dev; |
dev | 206 | include/linux/netdevice.h | extern int dev_open(struct device *dev); |
dev | 207 | include/linux/netdevice.h | extern int dev_close(struct device *dev); |
dev | 208 | include/linux/netdevice.h | extern void dev_queue_xmit(struct sk_buff *skb, struct device *dev, |
dev | 214 | include/linux/netdevice.h | struct device * dev); |
dev | 218 | include/linux/netdevice.h | extern void dev_tint(struct device *dev); |
dev | 265 | include/linux/netdevice.h | extern void ether_setup(struct device *dev); |
dev | 266 | include/linux/netdevice.h | extern void tr_setup(struct device *dev); |
dev | 267 | include/linux/netdevice.h | extern int ether_config(struct device *dev, struct ifmap *map); |
dev | 269 | include/linux/netdevice.h | extern int register_netdev(struct device *dev); |
dev | 270 | include/linux/netdevice.h | extern void unregister_netdev(struct device *dev); |
dev | 274 | include/linux/netdevice.h | extern void dev_mc_upload(struct device *dev); |
dev | 275 | include/linux/netdevice.h | extern void dev_mc_delete(struct device *dev, void *addr, int alen, int all); |
dev | 276 | include/linux/netdevice.h | extern void dev_mc_add(struct device *dev, void *addr, int alen, int newonly); |
dev | 277 | include/linux/netdevice.h | extern void dev_mc_discard(struct device *dev); |
dev | 279 | include/linux/netdevice.h | extern void ip_mc_allhost(struct device *dev); |
dev | 173 | include/linux/optcd.h | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR \ |
dev | 519 | 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 | 50 | include/linux/skbuff.h | struct device *dev; /* Device we arrived on/are leaving by */ |
dev | 744 | include/linux/soundcard.h | #define MIXER_READ(dev) _IOR('M', dev, int) |
dev | 772 | include/linux/soundcard.h | #define MIXER_WRITE(dev) _IOWR('M', dev, int) |
dev | 911 | include/linux/soundcard.h | #define PM_LOAD_PATCH(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \ |
dev | 912 | include/linux/soundcard.h | _pm_info.device=dev, _pm_info.data.data8[0]=pgm, \ |
dev | 915 | include/linux/soundcard.h | #define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \ |
dev | 916 | include/linux/soundcard.h | _pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \ |
dev | 920 | include/linux/soundcard.h | #define SEQ_VOLUME_MODE(dev, mode) {_SEQ_NEEDBUF(8);\ |
dev | 923 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 935 | include/linux/soundcard.h | #define _CHN_VOICE(dev, event, chn, note, parm) \ |
dev | 938 | include/linux/soundcard.h | _seqbuf[_seqbufptr+1] = (dev);\ |
dev | 947 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, chn, note, vol) \ |
dev | 948 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) |
dev | 950 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, chn, note, vol) \ |
dev | 951 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) |
dev | 953 | include/linux/soundcard.h | #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ |
dev | 954 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) |
dev | 960 | include/linux/soundcard.h | #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ |
dev | 963 | include/linux/soundcard.h | _seqbuf[_seqbufptr+1] = (dev);\ |
dev | 971 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ |
dev | 972 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) |
dev | 974 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, chn, patch) \ |
dev | 975 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) |
dev | 977 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, chn, controller, value) \ |
dev | 978 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) |
dev | 980 | include/linux/soundcard.h | #define SEQ_BENDER(dev, chn, value) \ |
dev | 981 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value) |
dev | 984 | include/linux/soundcard.h | #define SEQ_V2_X_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\ |
dev | 987 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 997 | include/linux/soundcard.h | #define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) |
dev | 998 | include/linux/soundcard.h | #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value) |
dev | 999 | include/linux/soundcard.h | #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128) |
dev | 1000 | include/linux/soundcard.h | #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100) |
dev | 1001 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2) |
dev | 1003 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) {_SEQ_NEEDBUF(8);\ |
dev | 1006 | 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(struct sk_buff *skb, struct device *dev, |
dev | 34 | include/linux/trdevice.h | extern int tr_rebuild_header(void *buff, struct device *dev, |
dev | 36 | include/linux/trdevice.h | extern unsigned short tr_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 116 | 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 | 12 | include/net/arp.h | struct device *dev, u32 saddr, struct sk_buff *skb); |
dev | 16 | include/net/arp.h | struct device *dev, u32 src_ip, |
dev | 18 | include/net/arp.h | extern int arp_find_cache(unsigned char *dp, u32 daddr, struct device *dev); |
dev | 27 | include/net/icmp.h | unsigned long info, struct device *dev); |
dev | 28 | 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 | 72 | include/net/ip.h | struct device *dev; /* Device - for icmp replies */ |
dev | 83 | include/net/ip.h | struct device **dev, int type, |
dev | 87 | include/net/ip.h | extern int ip_rcv(struct sk_buff *skb, struct device *dev, |
dev | 89 | include/net/ip.h | extern int ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict); |
dev | 93 | 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 | 82 | include/net/netrom.h | struct device *dev; |
dev | 32 | include/net/protocol.h | int (*handler)(struct sk_buff *skb, struct device *dev, |
dev | 46 | include/net/route.h | extern void ip_rt_flush(struct device *dev); |
dev | 48 | include/net/route.h | __u32 gw, struct device *dev, unsigned short mss, unsigned long window, unsigned short irtt, short metric); |
dev | 266 | include/net/sock.h | struct device **dev, int type, |
dev | 273 | include/net/sock.h | struct device *dev, struct sk_buff *skb, |
dev | 278 | include/net/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
dev | 129 | 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 | 72 | kernel/ksyms.c | extern void set_device_ro(int dev,int flag); |
dev | 30 | net/802/p8022.c | p8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 38 | net/802/p8022.c | return proto->rcvfunc(skb, dev, pt); |
dev | 50 | net/802/p8022.c | struct device *dev = skb->dev; |
dev | 57 | net/802/p8022.c | dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); |
dev | 11 | net/802/p8023.c | struct device *dev = skb->dev; |
dev | 13 | net/802/p8023.c | dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->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 | 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(struct sk_buff *skb, struct device *dev, unsigned short type, |
dev | 45 | net/802/tr.c | struct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len); |
dev | 52 | net/802/tr.c | memcpy(trh->saddr,saddr,dev->addr_len); |
dev | 54 | net/802/tr.c | memset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */ |
dev | 63 | net/802/tr.c | memcpy(trh->daddr,daddr,dev->addr_len); |
dev | 64 | net/802/tr.c | tr_source_route(trh,dev); |
dev | 65 | net/802/tr.c | return(dev->hard_header_len); |
dev | 67 | net/802/tr.c | return -dev->hard_header_len; |
dev | 71 | net/802/tr.c | int tr_rebuild_header(void *buff, struct device *dev, unsigned long dest, |
dev | 82 | net/802/tr.c | if(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) { |
dev | 86 | net/802/tr.c | tr_source_route(trh,dev); |
dev | 91 | net/802/tr.c | unsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) { |
dev | 98 | net/802/tr.c | skb_pull(skb,dev->hard_header_len); |
dev | 105 | net/802/tr.c | if(!memcmp(trh->daddr,dev->broadcast,TR_ALEN)) |
dev | 111 | net/802/tr.c | else if(dev->flags & IFF_PROMISC) |
dev | 113 | net/802/tr.c | if(memcmp(trh->daddr, dev->dev_addr, TR_ALEN)) |
dev | 122 | net/802/tr.c | static void tr_source_route(struct trh_hdr *trh,struct device *dev) { |
dev | 129 | net/802/tr.c | if(!memcmp(&(trh->daddr[0]),&(dev->broadcast[0]),TR_ALEN)) { |
dev | 64 | net/appletalk/aarp.c | struct device *dev; /* Device to use */ |
dev | 104 | net/appletalk/aarp.c | struct device *dev=a->dev; |
dev | 105 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
dev | 108 | net/appletalk/aarp.c | struct at_addr *sat=atalk_find_dev_addr(dev); |
dev | 117 | net/appletalk/aarp.c | skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length); |
dev | 121 | net/appletalk/aarp.c | skb->dev = a->dev; |
dev | 133 | net/appletalk/aarp.c | memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); |
dev | 156 | net/appletalk/aarp.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 165 | net/appletalk/aarp.c | static void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha) |
dev | 167 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
dev | 178 | net/appletalk/aarp.c | skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length); |
dev | 182 | net/appletalk/aarp.c | skb->dev = dev; |
dev | 194 | net/appletalk/aarp.c | memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); |
dev | 219 | net/appletalk/aarp.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 227 | net/appletalk/aarp.c | void aarp_send_probe(struct device *dev, struct at_addr *us) |
dev | 229 | net/appletalk/aarp.c | int len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length; |
dev | 241 | net/appletalk/aarp.c | skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length); |
dev | 246 | net/appletalk/aarp.c | skb->dev = dev; |
dev | 258 | net/appletalk/aarp.c | memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); |
dev | 280 | net/appletalk/aarp.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 335 | net/appletalk/aarp.c | static void aarp_expire_device(struct aarp_entry **n, struct device *dev) |
dev | 340 | net/appletalk/aarp.c | if((*n)->dev==dev) |
dev | 408 | net/appletalk/aarp.c | static struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat) |
dev | 416 | net/appletalk/aarp.c | list->target_addr.s_node==sat->s_node && list->dev==dev) |
dev | 428 | net/appletalk/aarp.c | int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr) |
dev | 438 | net/appletalk/aarp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 443 | net/appletalk/aarp.c | skb->dev = dev; |
dev | 457 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL); |
dev | 459 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, skb->sk->priority); |
dev | 463 | net/appletalk/aarp.c | a=aarp_find_entry(resolved[hash],dev,sa); |
dev | 472 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL); |
dev | 474 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, skb->sk->priority); |
dev | 481 | net/appletalk/aarp.c | a=aarp_find_entry(unresolved[hash],dev,sa); |
dev | 509 | net/appletalk/aarp.c | a->dev=dev; |
dev | 554 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL); |
dev | 556 | net/appletalk/aarp.c | dev_queue_xmit(skb, skb->dev, skb->sk->priority); |
dev | 564 | net/appletalk/aarp.c | static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 578 | net/appletalk/aarp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 630 | net/appletalk/aarp.c | ifa=atalk_find_dev(dev); |
dev | 661 | net/appletalk/aarp.c | if((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev) |
dev | 699 | net/appletalk/aarp.c | aarp_send_reply(dev,ma,&sa,ea->hw_src); |
dev | 284 | net/appletalk/ddp.c | static void atif_drop_device(struct device *dev) |
dev | 291 | net/appletalk/ddp.c | if (tmp->dev == dev) |
dev | 301 | net/appletalk/ddp.c | static struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa) |
dev | 308 | net/appletalk/ddp.c | iface->dev=dev; |
dev | 370 | net/appletalk/ddp.c | aarp_send_probe(atif->dev, &atif->address); |
dev | 392 | net/appletalk/ddp.c | struct at_addr *atalk_find_dev_addr(struct device *dev) |
dev | 396 | net/appletalk/ddp.c | if(iface->dev==dev) |
dev | 405 | net/appletalk/ddp.c | if(!(iface->dev->flags&IFF_LOOPBACK)) |
dev | 418 | net/appletalk/ddp.c | struct atalk_iface *atalk_find_dev(struct device *dev) |
dev | 422 | net/appletalk/ddp.c | if(iface->dev==dev) |
dev | 432 | net/appletalk/ddp.c | static struct atalk_iface *atalk_find_anynet(int node, struct device *dev) |
dev | 436 | net/appletalk/ddp.c | if ( iface->dev != dev || ( iface->status & ATIF_PROBE )) { |
dev | 482 | net/appletalk/ddp.c | if(atrtr_default.dev) |
dev | 499 | net/appletalk/ddp.c | return atr->dev; |
dev | 506 | net/appletalk/ddp.c | static void atrtr_set_default(struct device *dev) |
dev | 508 | net/appletalk/ddp.c | atrtr_default.dev=dev; |
dev | 574 | net/appletalk/ddp.c | devhint = riface->dev; |
dev | 591 | net/appletalk/ddp.c | rt->dev=devhint; |
dev | 627 | net/appletalk/ddp.c | void atrtr_device_down(struct device *dev) |
dev | 633 | net/appletalk/ddp.c | if (tmp->dev == dev) { |
dev | 640 | net/appletalk/ddp.c | if(atrtr_default.dev==dev) |
dev | 674 | net/appletalk/ddp.c | struct device *dev; |
dev | 687 | net/appletalk/ddp.c | if((dev=dev_get(atreq.ifr_name))==NULL) |
dev | 691 | net/appletalk/ddp.c | atif=atalk_find_dev(dev); |
dev | 700 | net/appletalk/ddp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 717 | net/appletalk/ddp.c | atrtr_device_down(dev); /* Flush old routes */ |
dev | 721 | net/appletalk/ddp.c | atif=atif_add_device(dev, &sa->sat_addr); |
dev | 730 | net/appletalk/ddp.c | if(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0) |
dev | 732 | net/appletalk/ddp.c | atif_drop_device(dev); |
dev | 749 | net/appletalk/ddp.c | if(dev->flags&IFF_LOOPBACK) |
dev | 756 | net/appletalk/ddp.c | atrtr_create(&rtdef, dev); |
dev | 757 | net/appletalk/ddp.c | atrtr_set_default(dev); |
dev | 768 | net/appletalk/ddp.c | atrtr_create(&rtdef, dev); |
dev | 771 | net/appletalk/ddp.c | dev_mc_add(dev, aarp_mcast, 6, 1); |
dev | 831 | net/appletalk/ddp.c | iface->dev->name, |
dev | 861 | net/appletalk/ddp.c | if(atrtr_default.dev) |
dev | 866 | net/appletalk/ddp.c | rt->dev->name); |
dev | 873 | net/appletalk/ddp.c | rt->dev->name); |
dev | 1340 | net/appletalk/ddp.c | int atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1399 | net/appletalk/ddp.c | atif=atalk_find_anynet(ddp->deh_dnode, dev); |
dev | 1430 | net/appletalk/ddp.c | skb_trim(skb,min(origlen, rt->dev->hard_header_len + |
dev | 1437 | net/appletalk/ddp.c | if(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1) |
dev | 1477 | net/appletalk/ddp.c | struct device *dev; |
dev | 1531 | net/appletalk/ddp.c | dev=rt->dev; |
dev | 1541 | net/appletalk/ddp.c | dev=rt->dev; |
dev | 1545 | net/appletalk/ddp.c | printk("SK %p: Size needed %d, device %s\n", sk, size, dev->name); |
dev | 1547 | net/appletalk/ddp.c | size += dev->hard_header_len; |
dev | 1557 | net/appletalk/ddp.c | skb_reserve(skb,dev->hard_header_len); |
dev | 1559 | net/appletalk/ddp.c | skb->dev=dev; |
dev | 1599 | net/appletalk/ddp.c | if((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK))) |
dev | 1607 | net/appletalk/ddp.c | if(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1) |
dev | 1614 | net/appletalk/ddp.c | if((dev->flags&IFF_LOOPBACK) || loopback) |
dev | 1620 | net/appletalk/ddp.c | ddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr); |
dev | 1623 | net/appletalk/ddp.c | skb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len; |
dev | 1624 | net/appletalk/ddp.c | skb_pull(skb,dev->hard_header_len); |
dev | 1626 | net/appletalk/ddp.c | atalk_rcv(skb,dev,NULL); |
dev | 1638 | net/appletalk/ddp.c | if(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1) |
dev | 199 | net/ax25/af_ax25.c | static void ax25_kill_by_device(struct device *dev) |
dev | 204 | net/ax25/af_ax25.c | if (s->device == dev) { |
dev | 223 | net/ax25/af_ax25.c | struct device *dev = (struct device *)ptr; |
dev | 227 | net/ax25/af_ax25.c | ax25_dev_device_up(dev); |
dev | 230 | net/ax25/af_ax25.c | ax25_kill_by_device(dev); |
dev | 231 | net/ax25/af_ax25.c | ax25_rt_device_down(dev); |
dev | 232 | net/ax25/af_ax25.c | ax25_dev_device_down(dev); |
dev | 261 | net/ax25/af_ax25.c | static struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type) |
dev | 272 | net/ax25/af_ax25.c | if (s->device == NULL || s->device == dev) { |
dev | 310 | net/ax25/af_ax25.c | static ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev) |
dev | 321 | net/ax25/af_ax25.c | if (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) { |
dev | 569 | net/ax25/af_ax25.c | static void ax25_fillin_cb(ax25_cb *ax25, struct device *dev) |
dev | 571 | net/ax25/af_ax25.c | ax25->device = dev; |
dev | 573 | net/ax25/af_ax25.c | ax25->rtt = ax25_dev_get_value(dev, AX25_VALUES_T1); |
dev | 574 | net/ax25/af_ax25.c | ax25->t1 = ax25_dev_get_value(dev, AX25_VALUES_T1); |
dev | 575 | net/ax25/af_ax25.c | ax25->t2 = ax25_dev_get_value(dev, AX25_VALUES_T2); |
dev | 576 | net/ax25/af_ax25.c | ax25->t3 = ax25_dev_get_value(dev, AX25_VALUES_T3); |
dev | 577 | net/ax25/af_ax25.c | ax25->n2 = ax25_dev_get_value(dev, AX25_VALUES_N2); |
dev | 579 | net/ax25/af_ax25.c | ax25->modulus = ax25_dev_get_value(dev, AX25_VALUES_AXDEFMODE); |
dev | 582 | net/ax25/af_ax25.c | ax25->window = ax25_dev_get_value(dev, AX25_VALUES_WINDOW); |
dev | 584 | net/ax25/af_ax25.c | ax25->window = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW); |
dev | 587 | net/ax25/af_ax25.c | ax25->backoff = ax25_dev_get_value(dev, AX25_VALUES_BACKOFF) == 'E'; |
dev | 591 | net/ax25/af_ax25.c | ax25_digi *digi, struct device *dev) |
dev | 605 | net/ax25/af_ax25.c | if (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) { |
dev | 614 | net/ax25/af_ax25.c | ax25_fillin_cb(ax25, dev); |
dev | 647 | net/ax25/af_ax25.c | struct device *dev; |
dev | 650 | net/ax25/af_ax25.c | for (dev = dev_base; dev != NULL; dev = dev->next) { |
dev | 651 | net/ax25/af_ax25.c | if (dev->flags & IFF_UP) { |
dev | 652 | net/ax25/af_ax25.c | switch (dev->type) { |
dev | 654 | net/ax25/af_ax25.c | if (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) |
dev | 655 | net/ax25/af_ax25.c | return dev; |
dev | 658 | net/ax25/af_ax25.c | if (arp_query((unsigned char *)&dev_addr, dev->pa_addr, ARPHRD_AX25)) |
dev | 660 | net/ax25/af_ax25.c | return dev; |
dev | 923 | net/ax25/af_ax25.c | static struct sock *ax25_make_new(struct sock *osk, struct device *dev) |
dev | 936 | net/ax25/af_ax25.c | ax25_fillin_cb(ax25, dev); |
dev | 1085 | net/ax25/af_ax25.c | struct device *dev; |
dev | 1121 | net/ax25/af_ax25.c | if ((dev = ax25rtr_get_dev(call)) == NULL) { |
dev | 1127 | net/ax25/af_ax25.c | ax25_fillin_cb(sk->ax25, dev); |
dev | 1338 | net/ax25/af_ax25.c | static int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype) |
dev | 1365 | net/ax25/af_ax25.c | ax25_rt_rx_frame(&src, dev, &dp); |
dev | 1383 | net/ax25/af_ax25.c | dev = dev_scan; |
dev | 1389 | net/ax25/af_ax25.c | ax25_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 1421 | net/ax25/af_ax25.c | if (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) { |
dev | 1431 | net/ax25/af_ax25.c | ax25_ip_mode_set(&src, dev, 'D'); |
dev | 1432 | net/ax25/af_ax25.c | ip_rcv(skb, dev, ptype); /* Note ptype here is the wrong one, fix me later */ |
dev | 1437 | net/ax25/af_ax25.c | arp_rcv(skb, dev, ptype); /* Note ptype here is wrong... */ |
dev | 1474 | net/ax25/af_ax25.c | if (!ax25_dev_get_value(dev, AX25_VALUES_CONMODE)) { |
dev | 1480 | net/ax25/af_ax25.c | if ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) { |
dev | 1498 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1504 | net/ax25/af_ax25.c | if ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) { |
dev | 1505 | net/ax25/af_ax25.c | if (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) { |
dev | 1507 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1530 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1535 | net/ax25/af_ax25.c | ax25_fillin_cb(ax25, dev); |
dev | 1538 | net/ax25/af_ax25.c | ax25_return_dm(dev, &src, &dest, &dp); |
dev | 1569 | net/ax25/af_ax25.c | ax25->window = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW); |
dev | 1572 | net/ax25/af_ax25.c | ax25->window = ax25_dev_get_value(dev, AX25_VALUES_WINDOW); |
dev | 1575 | net/ax25/af_ax25.c | ax25->device = dev; |
dev | 1599 | net/ax25/af_ax25.c | static int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype) |
dev | 1610 | net/ax25/af_ax25.c | return ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype); |
dev | 1616 | net/ax25/af_ax25.c | static int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype) |
dev | 1623 | net/ax25/af_ax25.c | if (!arp_query((unsigned char *)&port_call, dev->pa_addr, ARPHRD_AX25)) { |
dev | 1633 | net/ax25/af_ax25.c | return ax25_rcv(skb, dev, &port_call, ptype); |
dev | 2033 | net/ax25/af_ax25.c | struct device *dev; |
dev | 2044 | net/ax25/af_ax25.c | if ((dev = ax25->device) == NULL) |
dev | 2047 | net/ax25/af_ax25.c | devname = dev->name; |
dev | 2182 | net/ax25/af_ax25.c | void ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri) |
dev | 2188 | net/ax25/af_ax25.c | if (dev->type == ARPHRD_ETHER) { |
dev | 2203 | net/ax25/af_ax25.c | dev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0); |
dev | 2210 | net/ax25/af_ax25.c | dev_queue_xmit(skb, dev, pri); |
dev | 2226 | net/ax25/af_ax25.c | int ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr, |
dev | 2235 | net/ax25/af_ax25.c | memcpy(buff, daddr, dev->addr_len); /* Address specified */ |
dev | 2243 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
dev | 2245 | net/ax25/af_ax25.c | memcpy(buff, dev->dev_addr, dev->addr_len); |
dev | 2274 | net/ax25/af_ax25.c | int ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb) |
dev | 2278 | net/ax25/af_ax25.c | if (arp_find(bp + 1, dest, dev, dev->pa_addr, skb)) |
dev | 2282 | net/ax25/af_ax25.c | mode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev); |
dev | 2283 | net/ax25/af_ax25.c | if (mode == 'V' || mode == 'v' || (mode == ' ' && ax25_dev_get_value(dev, AX25_VALUES_IPDEFMODE) == 'V')) { |
dev | 2286 | net/ax25/af_ax25.c | ax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev); |
dev | 148 | net/ax25/ax25_in.c | ip_rcv(skb, skb->dev, NULL); /* Wrong ptype */ |
dev | 60 | net/ax25/ax25_route.c | struct device *dev; |
dev | 69 | net/ax25/ax25_route.c | struct device *dev; |
dev | 73 | net/ax25/ax25_route.c | void ax25_rt_rx_frame(ax25_address *src, struct device *dev, ax25_digi *digi) |
dev | 88 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) { |
dev | 100 | net/ax25/ax25_route.c | oldest->dev = dev; |
dev | 115 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
dev | 138 | net/ax25/ax25_route.c | void ax25_rt_device_down(struct device *dev) |
dev | 146 | net/ax25/ax25_route.c | if (s->dev == dev) { |
dev | 172 | net/ax25/ax25_route.c | struct device *dev; |
dev | 180 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL) |
dev | 185 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == dev) { |
dev | 207 | net/ax25/ax25_route.c | ax25_rt->dev = dev; |
dev | 235 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL) |
dev | 241 | net/ax25/ax25_route.c | if (s->dev == dev && ax25cmp(&route.dest_addr, &s->callsign) == 0) { |
dev | 281 | net/ax25/ax25_route.c | ax25_rt->dev ? ax25_rt->dev->name : "???", |
dev | 374 | net/ax25/ax25_route.c | if ((ax25->device = ax25_rt->dev) == NULL) |
dev | 401 | net/ax25/ax25_route.c | void ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode) |
dev | 406 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) { |
dev | 416 | net/ax25/ax25_route.c | char ax25_ip_mode_get(ax25_address *callsign, struct device *dev) |
dev | 421 | net/ax25/ax25_route.c | if (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) |
dev | 427 | net/ax25/ax25_route.c | static struct ax25_dev *ax25_dev_get_dev(struct device *dev) |
dev | 432 | net/ax25/ax25_route.c | if (s->dev == dev) |
dev | 441 | net/ax25/ax25_route.c | unsigned short ax25_dev_get_value(struct device *dev, int valueno) |
dev | 445 | net/ax25/ax25_route.c | if ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) { |
dev | 457 | net/ax25/ax25_route.c | void ax25_dev_device_up(struct device *dev) |
dev | 465 | net/ax25/ax25_route.c | ax25_dev->dev = dev; |
dev | 489 | net/ax25/ax25_route.c | void ax25_dev_device_down(struct device *dev) |
dev | 497 | net/ax25/ax25_route.c | if (s->dev == dev) { |
dev | 517 | net/ax25/ax25_route.c | struct device *dev; |
dev | 528 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL) |
dev | 530 | net/ax25/ax25_route.c | if ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) |
dev | 575 | net/ax25/ax25_route.c | if ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL) |
dev | 577 | net/ax25/ax25_route.c | if ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) |
dev | 190 | net/ax25/ax25_subr.c | struct device *dev; |
dev | 192 | net/ax25/ax25_subr.c | if ((dev = ax25->device) == NULL) |
dev | 235 | net/ax25/ax25_subr.c | void ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi) |
dev | 241 | net/ax25/ax25_subr.c | if (dev == NULL) |
dev | 266 | net/ax25/ax25_subr.c | ax25_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 199 | net/core/dev.c | struct device *dev; |
dev | 201 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 203 | net/core/dev.c | if (strcmp(dev->name, name) == 0) |
dev | 204 | net/core/dev.c | return(dev); |
dev | 214 | net/core/dev.c | int dev_open(struct device *dev) |
dev | 221 | net/core/dev.c | if (dev->open) |
dev | 222 | net/core/dev.c | ret = dev->open(dev); |
dev | 230 | net/core/dev.c | dev->flags |= (IFF_UP | IFF_RUNNING); |
dev | 238 | net/core/dev.c | ip_mc_allhost(dev); |
dev | 240 | net/core/dev.c | dev_mc_upload(dev); |
dev | 241 | net/core/dev.c | notifier_call_chain(&netdev_chain, NETDEV_UP, dev); |
dev | 251 | net/core/dev.c | int dev_close(struct device *dev) |
dev | 260 | net/core/dev.c | if ((dev->flags & IFF_UP) && dev->stop) |
dev | 261 | net/core/dev.c | dev->stop(dev); |
dev | 267 | net/core/dev.c | dev->flags&=~(IFF_UP|IFF_RUNNING); |
dev | 272 | net/core/dev.c | notifier_call_chain(&netdev_chain, NETDEV_DOWN, dev); |
dev | 276 | net/core/dev.c | dev_mc_discard(dev); |
dev | 280 | net/core/dev.c | dev->pa_addr = 0; |
dev | 281 | net/core/dev.c | dev->pa_dstaddr = 0; |
dev | 282 | net/core/dev.c | dev->pa_brdaddr = 0; |
dev | 283 | net/core/dev.c | dev->pa_mask = 0; |
dev | 290 | net/core/dev.c | while((skb=skb_dequeue(&dev->buffs[ct]))!=NULL) |
dev | 324 | net/core/dev.c | void dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri) |
dev | 337 | net/core/dev.c | skb->dev = dev; |
dev | 364 | net/core/dev.c | if (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) { |
dev | 373 | net/core/dev.c | skb_queue_tail(dev->buffs + pri,skb); |
dev | 375 | net/core/dev.c | skb = skb_dequeue(dev->buffs + pri); |
dev | 389 | net/core/dev.c | if ((ptype->dev == dev || !ptype->dev) && |
dev | 395 | net/core/dev.c | skb2->h.raw = skb2->data + dev->hard_header_len; |
dev | 397 | net/core/dev.c | ptype->func(skb2, skb->dev, ptype); |
dev | 402 | net/core/dev.c | if (dev->hard_start_xmit(skb, dev) == 0) { |
dev | 417 | net/core/dev.c | skb_queue_head(dev->buffs + pri,skb); |
dev | 493 | net/core/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
dev | 501 | net/core/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
dev | 522 | net/core/dev.c | dev->name); |
dev | 538 | net/core/dev.c | amount = min(len2, (unsigned long) dev->rmem_end - |
dev | 545 | net/core/dev.c | if ((unsigned long) buff == dev->rmem_end) |
dev | 546 | net/core/dev.c | buff = (unsigned char *) dev->rmem_start; |
dev | 554 | net/core/dev.c | skb->dev = dev; |
dev | 571 | net/core/dev.c | struct device *dev; |
dev | 573 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 575 | net/core/dev.c | if (dev->flags != 0 && !dev->tbusy) { |
dev | 579 | net/core/dev.c | dev_tint(dev); |
dev | 683 | net/core/dev.c | pt_prev->func(skb2,skb->dev, pt_prev); |
dev | 690 | net/core/dev.c | if (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev)) |
dev | 708 | net/core/dev.c | pt_prev->func(skb2, skb->dev, pt_prev); |
dev | 720 | net/core/dev.c | pt_prev->func(skb, skb->dev, pt_prev); |
dev | 759 | net/core/dev.c | void dev_tint(struct device *dev) |
dev | 778 | net/core/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
dev | 789 | net/core/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
dev | 793 | net/core/dev.c | if (dev->tbusy) |
dev | 812 | net/core/dev.c | struct device *dev; |
dev | 841 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 843 | net/core/dev.c | if(!(dev->flags & IFF_UP)) /* Downed devices don't count */ |
dev | 846 | net/core/dev.c | strcpy(ifr.ifr_name, dev->name); |
dev | 847 | net/core/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family; |
dev | 848 | net/core/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
dev | 887 | net/core/dev.c | static int sprintf_stats(char *buffer, struct device *dev) |
dev | 889 | net/core/dev.c | struct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL); |
dev | 894 | net/core/dev.c | dev->name, |
dev | 905 | net/core/dev.c | size = sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
dev | 922 | net/core/dev.c | struct device *dev; |
dev | 932 | net/core/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 934 | net/core/dev.c | size = sprintf_stats(buffer+len, dev); |
dev | 979 | net/core/dev.c | struct device *dev; |
dev | 996 | net/core/dev.c | if ((dev = dev_get(ifr.ifr_name)) == NULL) |
dev | 1002 | net/core/dev.c | ifr.ifr_flags = dev->flags; |
dev | 1007 | net/core/dev.c | int old_flags = dev->flags; |
dev | 1020 | net/core/dev.c | dev->flags = (ifr.ifr_flags & ( |
dev | 1024 | net/core/dev.c | | IFF_MULTICAST)) | (dev->flags & IFF_UP); |
dev | 1029 | net/core/dev.c | dev_mc_upload(dev); |
dev | 1040 | net/core/dev.c | ret=dev_close(dev); |
dev | 1043 | net/core/dev.c | ret=dev_open(dev); |
dev | 1045 | net/core/dev.c | dev->flags&=~IFF_UP; /* Open failed */ |
dev | 1054 | net/core/dev.c | dev_mc_upload(dev); |
dev | 1060 | net/core/dev.c | &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
dev | 1062 | net/core/dev.c | &ifr.ifr_addr).sin_family = dev->family; |
dev | 1068 | net/core/dev.c | dev->pa_addr = (*(struct sockaddr_in *) |
dev | 1070 | net/core/dev.c | dev->family = ifr.ifr_addr.sa_family; |
dev | 1075 | net/core/dev.c | dev->pa_mask = ip_get_mask(dev->pa_addr); |
dev | 1077 | net/core/dev.c | dev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask; |
dev | 1083 | net/core/dev.c | &ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr; |
dev | 1085 | net/core/dev.c | &ifr.ifr_broadaddr).sin_family = dev->family; |
dev | 1091 | net/core/dev.c | dev->pa_brdaddr = (*(struct sockaddr_in *) |
dev | 1098 | net/core/dev.c | &ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr; |
dev | 1100 | net/core/dev.c | &ifr.ifr_dstaddr).sin_family = dev->family; |
dev | 1106 | net/core/dev.c | dev->pa_dstaddr = (*(struct sockaddr_in *) |
dev | 1113 | net/core/dev.c | &ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask; |
dev | 1115 | net/core/dev.c | &ifr.ifr_netmask).sin_family = dev->family; |
dev | 1130 | net/core/dev.c | dev->pa_mask = mask; |
dev | 1137 | net/core/dev.c | ifr.ifr_metric = dev->metric; |
dev | 1141 | net/core/dev.c | dev->metric = ifr.ifr_metric; |
dev | 1146 | net/core/dev.c | ifr.ifr_mtu = dev->mtu; |
dev | 1157 | net/core/dev.c | dev->mtu = ifr.ifr_mtu; |
dev | 1171 | net/core/dev.c | memcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN); |
dev | 1175 | net/core/dev.c | memcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN); |
dev | 1176 | net/core/dev.c | ifr.ifr_hwaddr.sa_family=dev->type; |
dev | 1180 | net/core/dev.c | if(dev->set_mac_address==NULL) |
dev | 1182 | net/core/dev.c | if(ifr.ifr_hwaddr.sa_family!=dev->type) |
dev | 1184 | net/core/dev.c | ret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data); |
dev | 1188 | net/core/dev.c | ifr.ifr_map.mem_start=dev->mem_start; |
dev | 1189 | net/core/dev.c | ifr.ifr_map.mem_end=dev->mem_end; |
dev | 1190 | net/core/dev.c | ifr.ifr_map.base_addr=dev->base_addr; |
dev | 1191 | net/core/dev.c | ifr.ifr_map.irq=dev->irq; |
dev | 1192 | net/core/dev.c | ifr.ifr_map.dma=dev->dma; |
dev | 1193 | net/core/dev.c | ifr.ifr_map.port=dev->if_port; |
dev | 1197 | net/core/dev.c | if(dev->set_config==NULL) |
dev | 1199 | net/core/dev.c | return dev->set_config(dev,&ifr.ifr_map); |
dev | 1202 | net/core/dev.c | if(dev->set_multicast_list==NULL) |
dev | 1206 | net/core/dev.c | dev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1); |
dev | 1210 | net/core/dev.c | if(dev->set_multicast_list==NULL) |
dev | 1214 | net/core/dev.c | dev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1); |
dev | 1223 | net/core/dev.c | if(dev->do_ioctl==NULL) |
dev | 1225 | net/core/dev.c | ret=dev->do_ioctl(dev, &ifr, getset); |
dev | 1320 | net/core/dev.c | struct device *dev, **dp; |
dev | 1330 | net/core/dev.c | while ((dev = *dp) != NULL) |
dev | 1334 | net/core/dev.c | skb_queue_head_init(dev->buffs + i); |
dev | 1337 | net/core/dev.c | if (dev->init && dev->init(dev)) |
dev | 1342 | net/core/dev.c | *dp = dev->next; |
dev | 1346 | net/core/dev.c | dp = &dev->next; |
dev | 61 | net/core/dev_mcast.c | void dev_mc_upload(struct device *dev) |
dev | 70 | net/core/dev_mcast.c | if(!(dev->flags&IFF_UP)) |
dev | 78 | net/core/dev_mcast.c | if(dev->set_multicast_list==NULL) |
dev | 85 | net/core/dev_mcast.c | if(dev->flags&IFF_PROMISC) |
dev | 87 | net/core/dev_mcast.c | dev->set_multicast_list(dev, -1, NULL); |
dev | 96 | net/core/dev_mcast.c | if(dev->flags&IFF_ALLMULTI) |
dev | 98 | net/core/dev_mcast.c | dev->set_multicast_list(dev, -2, NULL); |
dev | 106 | net/core/dev_mcast.c | if(dev->mc_count==0) |
dev | 108 | net/core/dev_mcast.c | dev->set_multicast_list(dev,0,NULL); |
dev | 117 | net/core/dev_mcast.c | data=kmalloc(dev->mc_count*dev->addr_len, GFP_KERNEL); |
dev | 120 | net/core/dev_mcast.c | printk("Unable to get memory to set multicast list on %s\n",dev->name); |
dev | 123 | net/core/dev_mcast.c | for(tmp = data, dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next) |
dev | 126 | net/core/dev_mcast.c | tmp+=dev->addr_len; |
dev | 128 | net/core/dev_mcast.c | dev->set_multicast_list(dev,dev->mc_count,data); |
dev | 136 | net/core/dev_mcast.c | void dev_mc_delete(struct device *dev, void *addr, int alen, int all) |
dev | 139 | net/core/dev_mcast.c | for(dmi=&dev->mc_list;*dmi!=NULL;dmi=&(*dmi)->next) |
dev | 147 | net/core/dev_mcast.c | dev->mc_count--; |
dev | 149 | net/core/dev_mcast.c | dev_mc_upload(dev); |
dev | 159 | net/core/dev_mcast.c | void dev_mc_add(struct device *dev, void *addr, int alen, int newonly) |
dev | 162 | net/core/dev_mcast.c | for(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next) |
dev | 176 | net/core/dev_mcast.c | dmi->next=dev->mc_list; |
dev | 178 | net/core/dev_mcast.c | dev->mc_list=dmi; |
dev | 179 | net/core/dev_mcast.c | dev->mc_count++; |
dev | 180 | net/core/dev_mcast.c | dev_mc_upload(dev); |
dev | 187 | net/core/dev_mcast.c | void dev_mc_discard(struct device *dev) |
dev | 189 | net/core/dev_mcast.c | while(dev->mc_list!=NULL) |
dev | 191 | net/core/dev_mcast.c | struct dev_mc_list *tmp=dev->mc_list; |
dev | 192 | net/core/dev_mcast.c | dev->mc_list=dev->mc_list->next; |
dev | 195 | net/core/dev_mcast.c | dev->mc_count=0; |
dev | 614 | net/core/skbuff.c | n->dev=skb->dev; |
dev | 542 | net/core/sock.c | sk->prot->rcv(skb, skb->dev, sk->opt, |
dev | 87 | net/ethernet/eth.c | int eth_header(struct sk_buff *skb, struct device *dev, unsigned short type, |
dev | 107 | net/ethernet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
dev | 109 | net/ethernet/eth.c | memcpy(eth->h_source,dev->dev_addr,dev->addr_len); |
dev | 115 | net/ethernet/eth.c | if (dev->flags & IFF_LOOPBACK) |
dev | 117 | net/ethernet/eth.c | memset(eth->h_dest, 0, dev->addr_len); |
dev | 118 | net/ethernet/eth.c | return(dev->hard_header_len); |
dev | 123 | net/ethernet/eth.c | memcpy(eth->h_dest,daddr,dev->addr_len); |
dev | 124 | net/ethernet/eth.c | return dev->hard_header_len; |
dev | 127 | net/ethernet/eth.c | return -dev->hard_header_len; |
dev | 137 | net/ethernet/eth.c | int eth_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
dev | 149 | net/ethernet/eth.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
dev | 157 | net/ethernet/eth.c | return arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0; |
dev | 170 | net/ethernet/eth.c | unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev) |
dev | 181 | net/ethernet/eth.c | if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0) |
dev | 187 | net/ethernet/eth.c | else if(dev->flags&IFF_PROMISC) |
dev | 189 | net/ethernet/eth.c | if(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN)) |
dev | 217 | net/ethernet/eth.c | void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr) |
dev | 219 | net/ethernet/eth.c | int v=arp_find_cache(sk->ip_hcache_data, daddr, dev); |
dev | 224 | 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 | dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len); |
dev | 352 | net/ipv4/af_inet.c | skb->dev = NULL; |
dev | 113 | net/ipv4/arp.c | struct device *dev; /* Device the entry is tied to */ |
dev | 298 | net/ipv4/arp.c | struct device *dev=ptr; |
dev | 317 | net/ipv4/arp.c | if(entry->dev==dev) |
dev | 339 | net/ipv4/arp.c | struct device *dev, u32 src_ip, |
dev | 350 | net/ipv4/arp.c | if(dev->flags&IFF_NOARP) |
dev | 357 | net/ipv4/arp.c | skb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4) |
dev | 358 | net/ipv4/arp.c | + dev->hard_header_len, GFP_ATOMIC); |
dev | 364 | net/ipv4/arp.c | skb_reserve(skb, dev->hard_header_len); |
dev | 365 | net/ipv4/arp.c | arp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4)); |
dev | 367 | net/ipv4/arp.c | skb->dev = dev; |
dev | 374 | net/ipv4/arp.c | dev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len); |
dev | 377 | net/ipv4/arp.c | arp->ar_hrd = htons(dev->type); |
dev | 380 | net/ipv4/arp.c | arp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP); |
dev | 382 | net/ipv4/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP); |
dev | 387 | net/ipv4/arp.c | arp->ar_hln = dev->addr_len; |
dev | 393 | net/ipv4/arp.c | memcpy(arp_ptr, src_hw, dev->addr_len); |
dev | 394 | net/ipv4/arp.c | arp_ptr+=dev->addr_len; |
dev | 398 | net/ipv4/arp.c | memcpy(arp_ptr, dest_hw, dev->addr_len); |
dev | 400 | net/ipv4/arp.c | memset(arp_ptr, 0, dev->addr_len); |
dev | 401 | net/ipv4/arp.c | arp_ptr+=dev->addr_len; |
dev | 404 | net/ipv4/arp.c | dev_queue_xmit(skb, dev, 0); |
dev | 438 | net/ipv4/arp.c | struct device *dev = entry->dev; |
dev | 445 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, |
dev | 446 | net/ipv4/arp.c | NULL, dev->dev_addr); |
dev | 529 | net/ipv4/arp.c | if(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb)) |
dev | 533 | net/ipv4/arp.c | dev_queue_xmit(skb, skb->dev, 0); |
dev | 535 | net/ipv4/arp.c | dev_queue_xmit(skb,skb->dev,skb->sk->priority); |
dev | 596 | net/ipv4/arp.c | int arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 619 | net/ipv4/arp.c | if (arp->ar_hln != dev->addr_len || |
dev | 620 | net/ipv4/arp.c | dev->type != ntohs(arp->ar_hrd) || |
dev | 621 | net/ipv4/arp.c | dev->flags & IFF_NOARP || |
dev | 638 | net/ipv4/arp.c | switch(dev->type) |
dev | 685 | net/ipv4/arp.c | hlen = dev->addr_len; |
dev | 686 | net/ipv4/arp.c | htype = dev->type; |
dev | 751 | net/ipv4/arp.c | if(tip!=dev->pa_addr) |
dev | 771 | net/ipv4/arp.c | if (proxy_entry->dev != dev && proxy_entry->htype == htype && |
dev | 780 | net/ipv4/arp.c | arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha); |
dev | 796 | net/ipv4/arp.c | arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr); |
dev | 867 | net/ipv4/arp.c | entry->dev = skb->dev; |
dev | 919 | net/ipv4/arp.c | int arp_find(unsigned char *haddr, u32 paddr, struct device *dev, |
dev | 932 | net/ipv4/arp.c | memcpy(haddr, dev->dev_addr, dev->addr_len); |
dev | 937 | net/ipv4/arp.c | if(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802) |
dev | 957 | net/ipv4/arp.c | memcpy(haddr, dev->broadcast, dev->addr_len); |
dev | 968 | net/ipv4/arp.c | entry = arp_lookup(paddr, PROXY_NONE, dev->type); |
dev | 993 | net/ipv4/arp.c | memcpy(haddr, entry->ha, dev->addr_len); |
dev | 1013 | net/ipv4/arp.c | memset(entry->ha, 0, dev->addr_len); |
dev | 1014 | net/ipv4/arp.c | entry->hlen = dev->addr_len; |
dev | 1015 | net/ipv4/arp.c | entry->htype = dev->type; |
dev | 1016 | net/ipv4/arp.c | entry->dev = dev; |
dev | 1042 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, |
dev | 1043 | net/ipv4/arp.c | dev->dev_addr); |
dev | 1161 | net/ipv4/arp.c | int arp_find_cache(unsigned char *dp, u32 daddr, struct device *dev) |
dev | 1175 | net/ipv4/arp.c | memcpy(dp, dev->dev_addr, dev->addr_len); |
dev | 1179 | net/ipv4/arp.c | if(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802) |
dev | 1198 | net/ipv4/arp.c | memcpy(dp, dev->broadcast, dev->addr_len); |
dev | 1202 | net/ipv4/arp.c | entry=arp_lookup(daddr, PROXY_NONE, dev->type); |
dev | 1341 | net/ipv4/arp.c | entry->dev = rt->rt_dev; |
dev | 79 | net/ipv4/devinet.c | struct device *dev; |
dev | 108 | net/ipv4/devinet.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 110 | net/ipv4/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 117 | net/ipv4/devinet.c | if ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/) |
dev | 123 | net/ipv4/devinet.c | if (addr == dev->pa_addr) |
dev | 129 | net/ipv4/devinet.c | if ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr) |
dev | 135 | net/ipv4/devinet.c | if (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) |
dev | 137 | net/ipv4/devinet.c | if ((addr & ~dev->pa_mask) == 0) |
dev | 139 | net/ipv4/devinet.c | if ((addr & ~dev->pa_mask) == ~dev->pa_mask) |
dev | 147 | net/ipv4/devinet.c | if (((addr ^ dev->pa_addr) & mask) == 0) |
dev | 173 | net/ipv4/devinet.c | struct device *dev; |
dev | 175 | net/ipv4/devinet.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 177 | net/ipv4/devinet.c | if (dev->flags & IFF_LOOPBACK) |
dev | 178 | net/ipv4/devinet.c | return(dev->pa_addr); |
dev | 192 | net/ipv4/devinet.c | struct device *dev; |
dev | 194 | net/ipv4/devinet.c | for (dev = dev_base; dev; dev = dev->next) |
dev | 196 | net/ipv4/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 198 | net/ipv4/devinet.c | if (!(dev->flags & IFF_POINTOPOINT)) |
dev | 200 | net/ipv4/devinet.c | if (addr != dev->pa_dstaddr) |
dev | 202 | net/ipv4/devinet.c | return dev; |
dev | 204 | net/ipv4/devinet.c | for (dev = dev_base; dev; dev = dev->next) |
dev | 206 | net/ipv4/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 208 | net/ipv4/devinet.c | if (dev->flags & IFF_POINTOPOINT) |
dev | 210 | net/ipv4/devinet.c | if (dev->pa_mask & (addr ^ dev->pa_addr)) |
dev | 212 | net/ipv4/devinet.c | return dev; |
dev | 223 | net/ipv4/devinet.c | struct device *dev; |
dev | 224 | net/ipv4/devinet.c | for(dev = dev_base; dev; dev=dev->next) |
dev | 226 | net/ipv4/devinet.c | if((dev->flags&IFF_UP) && dev->pa_addr==addr) |
dev | 227 | net/ipv4/devinet.c | return dev; |
dev | 148 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
dev | 250 | net/ipv4/icmp.c | void icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev) |
dev | 314 | net/ipv4/icmp.c | if(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR) |
dev | 315 | net/ipv4/icmp.c | saddr=dev->pa_addr; |
dev | 336 | net/ipv4/icmp.c | static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
dev | 425 | net/ipv4/icmp.c | static void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len) |
dev | 444 | net/ipv4/icmp.c | printk("icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name); |
dev | 456 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
dev | 472 | net/ipv4/icmp.c | ((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) || |
dev | 477 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0, 0); |
dev | 502 | net/ipv4/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
dev | 521 | net/ipv4/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
dev | 566 | net/ipv4/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
dev | 575 | net/ipv4/icmp.c | icmp_param.data_ptr=&dev->pa_mask; |
dev | 582 | net/ipv4/icmp.c | static void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
dev | 591 | net/ipv4/icmp.c | int icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 628 | net/ipv4/icmp.c | if (daddr!=dev->pa_addr && ip_chk_addr(daddr) == IS_BROADCAST) |
dev | 641 | net/ipv4/icmp.c | daddr=dev->pa_addr; |
dev | 646 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |
dev | 97 | net/ipv4/igmp.c | static void igmp_send_report(struct device *dev, unsigned long address, int type) |
dev | 105 | net/ipv4/igmp.c | tmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL, |
dev | 118 | net/ipv4/igmp.c | ip_queue_xmit(NULL,dev,skb,1); |
dev | 138 | net/ipv4/igmp.c | static void igmp_heard_report(struct device *dev, unsigned long address) |
dev | 141 | net/ipv4/igmp.c | for(im=dev->ip_mc_list;im!=NULL;im=im->next) |
dev | 146 | net/ipv4/igmp.c | static void igmp_heard_query(struct device *dev) |
dev | 149 | net/ipv4/igmp.c | for(im=dev->ip_mc_list;im!=NULL;im=im->next) |
dev | 177 | net/ipv4/igmp.c | void ip_mc_filter_add(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_add(dev,buf,ETH_ALEN,0); |
dev | 190 | net/ipv4/igmp.c | void ip_mc_filter_del(struct device *dev, unsigned long addr) |
dev | 193 | net/ipv4/igmp.c | if(dev->type!=ARPHRD_ETHER) |
dev | 196 | net/ipv4/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
dev | 213 | net/ipv4/igmp.c | int igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 226 | net/ipv4/igmp.c | if(dev->flags&IFF_LOOPBACK) |
dev | 228 | net/ipv4/igmp.c | dev=ip_dev_find(saddr); |
dev | 229 | net/ipv4/igmp.c | if(dev==NULL) |
dev | 230 | net/ipv4/igmp.c | dev=&loopback_dev; |
dev | 241 | net/ipv4/igmp.c | igmp_heard_query(dev); |
dev | 243 | net/ipv4/igmp.c | igmp_heard_report(dev,ih->group); |
dev | 257 | net/ipv4/igmp.c | static void ip_mc_inc_group(struct device *dev, unsigned long addr) |
dev | 260 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
dev | 272 | net/ipv4/igmp.c | i->interface=dev; |
dev | 274 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
dev | 276 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
dev | 283 | net/ipv4/igmp.c | static void ip_mc_dec_group(struct device *dev, unsigned long addr) |
dev | 286 | net/ipv4/igmp.c | for(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next) |
dev | 307 | net/ipv4/igmp.c | void ip_mc_drop_device(struct device *dev) |
dev | 311 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=j) |
dev | 316 | net/ipv4/igmp.c | dev->ip_mc_list=NULL; |
dev | 323 | net/ipv4/igmp.c | void ip_mc_allhost(struct device *dev) |
dev | 326 | net/ipv4/igmp.c | for(i=dev->ip_mc_list;i!=NULL;i=i->next) |
dev | 333 | net/ipv4/igmp.c | i->interface=dev; |
dev | 336 | net/ipv4/igmp.c | i->next=dev->ip_mc_list; |
dev | 337 | net/ipv4/igmp.c | dev->ip_mc_list=i; |
dev | 346 | net/ipv4/igmp.c | int ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr) |
dev | 352 | net/ipv4/igmp.c | if(!(dev->flags&IFF_MULTICAST)) |
dev | 362 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
dev | 371 | net/ipv4/igmp.c | sk->ip_mc_list->multidev[unused]=dev; |
dev | 372 | net/ipv4/igmp.c | ip_mc_inc_group(dev,addr); |
dev | 380 | net/ipv4/igmp.c | int ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr) |
dev | 385 | net/ipv4/igmp.c | if(!(dev->flags&IFF_MULTICAST)) |
dev | 392 | net/ipv4/igmp.c | if(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev) |
dev | 395 | net/ipv4/igmp.c | ip_mc_dec_group(dev,addr); |
dev | 190 | net/ipv4/ip.c | static int ip_send(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
dev | 194 | net/ipv4/ip.c | skb->dev = dev; |
dev | 196 | net/ipv4/ip.c | if (dev->hard_header) |
dev | 202 | net/ipv4/ip.c | skb_reserve(skb,(dev->hard_header_len+15)&~15); /* 16 byte aligned IP headers are good */ |
dev | 203 | net/ipv4/ip.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
dev | 214 | net/ipv4/ip.c | static int ip_send_room(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
dev | 218 | net/ipv4/ip.c | skb->dev = dev; |
dev | 220 | net/ipv4/ip.c | if (dev->hard_header) |
dev | 223 | net/ipv4/ip.c | mac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len); |
dev | 243 | net/ipv4/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
dev | 256 | net/ipv4/ip.c | if(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name) |
dev | 257 | net/ipv4/ip.c | *dev=dev_get(skb->sk->ip_mc_name); |
dev | 259 | net/ipv4/ip.c | if (*dev == NULL) |
dev | 271 | net/ipv4/ip.c | *dev = rt->rt_dev; |
dev | 317 | net/ipv4/ip.c | tmp = ip_send_room(skb, raddr, len, *dev, saddr); |
dev | 319 | net/ipv4/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
dev | 325 | net/ipv4/ip.c | skb->dev = *dev; |
dev | 508 | net/ipv4/ip.c | ICMP_EXC_FRAGTIME, 0, qp->dev); |
dev | 524 | net/ipv4/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
dev | 534 | net/ipv4/ip.c | skb->dev = qp->dev; |
dev | 555 | net/ipv4/ip.c | qp->dev = dev; |
dev | 680 | net/ipv4/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
dev | 727 | net/ipv4/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
dev | 874 | net/ipv4/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
dev | 890 | net/ipv4/ip.c | iph = (struct iphdr *) (raw + dev->hard_header_len); |
dev | 902 | net/ipv4/ip.c | hlen += dev->hard_header_len; /* Total header size */ |
dev | 903 | net/ipv4/ip.c | mtu = (dev->mtu - hlen); /* Size of data space */ |
dev | 916 | net/ipv4/ip.c | icmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev->mtu, dev); |
dev | 929 | net/ipv4/ip.c | icmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev); |
dev | 1014 | net/ipv4/ip.c | skb2->h.raw+=dev->hard_header_len; |
dev | 1037 | net/ipv4/ip.c | ip_queue_xmit(sk, dev, skb2, 2); |
dev | 1050 | net/ipv4/ip.c | int ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict) |
dev | 1072 | net/ipv4/ip.c | fw_res=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0); |
dev | 1080 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev); |
dev | 1115 | net/ipv4/ip.c | icmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev); |
dev | 1131 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev); |
dev | 1154 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev); |
dev | 1169 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev); |
dev | 1190 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && (rt->rt_flags&RTF_MODIFIED)) |
dev | 1191 | net/ipv4/ip.c | icmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev); |
dev | 1254 | net/ipv4/ip.c | skb2->dev=dev2; |
dev | 1282 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); |
dev | 1332 | net/ipv4/ip.c | int ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1353 | net/ipv4/ip.c | return ipv6_rcv(skb,dev,pt); |
dev | 1399 | net/ipv4/ip.c | if ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))<FW_ACCEPT) |
dev | 1402 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev); |
dev | 1450 | net/ipv4/ip.c | icmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev); |
dev | 1471 | net/ipv4/ip.c | if (iph->daddr!=skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) |
dev | 1476 | net/ipv4/ip.c | icmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev); |
dev | 1492 | net/ipv4/ip.c | icmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev); |
dev | 1497 | net/ipv4/ip.c | *(u32 *)(&opt_ptr[opt_ptr[2]])=skb->dev->pa_addr; /* Record hop */ |
dev | 1544 | net/ipv4/ip.c | if ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0) |
dev | 1547 | net/ipv4/ip.c | if(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK)) |
dev | 1552 | net/ipv4/ip.c | struct ip_mc_list *ip_mc=dev->ip_mc_list; |
dev | 1575 | net/ipv4/ip.c | if(ip_forward(skb, dev, is_frag|4, iph->daddr, 0)) |
dev | 1586 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); |
dev | 1596 | net/ipv4/ip.c | skb=ip_defrag(iph,skb,dev); |
dev | 1599 | net/ipv4/ip.c | skb->dev = dev; |
dev | 1638 | net/ipv4/ip.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr); |
dev | 1689 | net/ipv4/ip.c | ipprot->handler(skb2, dev, NULL, iph->daddr, |
dev | 1703 | net/ipv4/ip.c | raw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr); |
dev | 1707 | net/ipv4/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev); |
dev | 1733 | net/ipv4/ip.c | if(ip_forward(skb, dev, is_frag, target_addr, target_strict)) |
dev | 1751 | net/ipv4/ip.c | struct device *dev=&loopback_dev; |
dev | 1753 | net/ipv4/ip.c | struct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15); |
dev | 1760 | net/ipv4/ip.c | newskb->dev=dev; |
dev | 1772 | net/ipv4/ip.c | ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
dev | 1785 | net/ipv4/ip.c | ip_queue_xmit(NULL, dev, newskb, 1); |
dev | 1798 | net/ipv4/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
dev | 1805 | net/ipv4/ip.c | if (dev == NULL) |
dev | 1818 | net/ipv4/ip.c | skb->dev = dev; |
dev | 1831 | net/ipv4/ip.c | ptr += dev->hard_header_len; |
dev | 1840 | net/ipv4/ip.c | if(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) < FW_ACCEPT) |
dev | 1866 | net/ipv4/ip.c | if(ntohs(iph->tot_len)> dev->mtu) |
dev | 1868 | net/ipv4/ip.c | ip_fragment(sk,skb,dev,0); |
dev | 1942 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); |
dev | 1951 | net/ipv4/ip.c | if (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK)) |
dev | 1955 | net/ipv4/ip.c | if(iph->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI)) |
dev | 1957 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 1961 | net/ipv4/ip.c | struct ip_mc_list *imc=dev->ip_mc_list; |
dev | 1966 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 1982 | net/ipv4/ip.c | if((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK)) |
dev | 1983 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 1985 | net/ipv4/ip.c | if (dev->flags & IFF_UP) |
dev | 1994 | net/ipv4/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 1998 | net/ipv4/ip.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 2026 | net/ipv4/ip.c | struct device *dev; |
dev | 2032 | net/ipv4/ip.c | for(dev = dev_base; dev; dev = dev->next) |
dev | 2034 | net/ipv4/ip.c | if((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)) |
dev | 2037 | net/ipv4/ip.c | dev->name, dev->mc_count); |
dev | 2038 | net/ipv4/ip.c | for(im = dev->ip_mc_list; im; im = im->next) |
dev | 2075 | net/ipv4/ip.c | struct device *dev; |
dev | 2076 | net/ipv4/ip.c | for(dev = dev_base; dev; dev = dev->next) |
dev | 2078 | net/ipv4/ip.c | if((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&& |
dev | 2079 | net/ipv4/ip.c | (dev->pa_addr==addr)) |
dev | 2080 | net/ipv4/ip.c | return dev; |
dev | 2155 | net/ipv4/ip.c | struct device *dev=NULL; |
dev | 2182 | net/ipv4/ip.c | dev=ip_mc_find_devfor(addr.s_addr); |
dev | 2188 | net/ipv4/ip.c | if(dev) |
dev | 2190 | net/ipv4/ip.c | strcpy(sk->ip_mc_name,dev->name); |
dev | 2205 | net/ipv4/ip.c | struct device *dev=NULL; |
dev | 2228 | net/ipv4/ip.c | dev=rt->rt_dev; |
dev | 2238 | net/ipv4/ip.c | dev=ip_mc_find_devfor(mreq.imr_interface.s_addr); |
dev | 2245 | net/ipv4/ip.c | if(!dev) |
dev | 2252 | net/ipv4/ip.c | return ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr); |
dev | 2260 | net/ipv4/ip.c | struct device *dev=NULL; |
dev | 2280 | net/ipv4/ip.c | dev=rt->rt_dev; |
dev | 2287 | net/ipv4/ip.c | dev=ip_mc_find_devfor(mreq.imr_interface.s_addr); |
dev | 2294 | net/ipv4/ip.c | if(!dev) |
dev | 2301 | net/ipv4/ip.c | return ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr); |
dev | 2458 | net/ipv4/ip.c | struct device *dev; |
dev | 2466 | net/ipv4/ip.c | dev=dev_get(sk->ip_mc_name); |
dev | 2467 | net/ipv4/ip.c | if(!dev) |
dev | 2473 | net/ipv4/ip.c | saddr = dev->pa_addr; |
dev | 2534 | net/ipv4/ip.c | dev=rt->rt_dev; |
dev | 2548 | net/ipv4/ip.c | if(length+20 <= dev->mtu && !MULTICAST(daddr) && daddr!=0xFFFFFFFF && daddr!=dev->pa_brdaddr) |
dev | 2551 | net/ipv4/ip.c | struct sk_buff *skb=sock_alloc_send_skb(sk, length+20+15+dev->hard_header_len,0, 0,&error); |
dev | 2557 | net/ipv4/ip.c | skb->dev=dev; |
dev | 2565 | net/ipv4/ip.c | skb_reserve(skb,(dev->hard_header_len+15)&~15); |
dev | 2568 | net/ipv4/ip.c | memcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data,dev->hard_header_len); |
dev | 2571 | net/ipv4/ip.c | else if(dev->hard_header) |
dev | 2573 | net/ipv4/ip.c | if(dev->hard_header(skb,dev,ETH_P_IP,NULL,NULL,0)>0) |
dev | 2600 | net/ipv4/ip.c | if(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy,0) < FW_ACCEPT) |
dev | 2607 | net/ipv4/ip.c | ip_fw_chk((void *)skb->data,dev,ip_acct_chain, IP_FW_F_ACCEPT,1); |
dev | 2609 | net/ipv4/ip.c | if(dev->flags&IFF_UP) |
dev | 2610 | net/ipv4/ip.c | dev_queue_xmit(skb,dev,sk->priority); |
dev | 2620 | net/ipv4/ip.c | fragheaderlen = dev->hard_header_len; |
dev | 2629 | net/ipv4/ip.c | maxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen; |
dev | 2704 | net/ipv4/ip.c | skb->dev = dev; |
dev | 2711 | net/ipv4/ip.c | skb_reserve(skb,(dev->hard_header_len+15)&~15); |
dev | 2712 | net/ipv4/ip.c | data = skb_put(skb, fraglen-dev->hard_header_len); |
dev | 2723 | net/ipv4/ip.c | memcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data, dev->hard_header_len); |
dev | 2726 | net/ipv4/ip.c | else if (dev->hard_header) |
dev | 2728 | net/ipv4/ip.c | if(dev->hard_header(skb, dev, ETH_P_IP, |
dev | 2784 | net/ipv4/ip.c | if(!offset && ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy,0) < FW_ACCEPT) |
dev | 2793 | net/ipv4/ip.c | ip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1); |
dev | 2804 | net/ipv4/ip.c | if (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) |
dev | 2815 | net/ipv4/ip.c | if(skb->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI)) |
dev | 2816 | net/ipv4/ip.c | ip_loopback(rt?rt->rt_dev:dev,skb); |
dev | 2819 | net/ipv4/ip.c | struct ip_mc_list *imc=rt?rt->rt_dev->ip_mc_list:dev->ip_mc_list; |
dev | 2824 | net/ipv4/ip.c | ip_loopback(rt?rt->rt_dev:dev,skb); |
dev | 2848 | net/ipv4/ip.c | if((dev->flags&IFF_BROADCAST) && (daddr==0xFFFFFFFF || daddr==dev->pa_brdaddr) && !(dev->flags&IFF_LOOPBACK)) |
dev | 2849 | net/ipv4/ip.c | ip_loopback(dev,skb); |
dev | 2855 | net/ipv4/ip.c | if (dev->flags & IFF_UP) |
dev | 2857 | net/ipv4/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 576 | net/ipv4/ip_fw.c | static struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp) |
dev | 647 | net/ipv4/ip_fw.c | from = ntohl(dev->pa_addr); |
dev | 734 | net/ipv4/ip_fw.c | void ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev) |
dev | 798 | net/ipv4/ip_fw.c | iph->saddr = dev->pa_addr; /* my own address */ |
dev | 815 | net/ipv4/ip_fw.c | skb = revamp(*skb_ptr, dev, ms); |
dev | 839 | net/ipv4/ip_fw.c | printk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name); |
dev | 1273 | net/ipv4/ip_fw.c | void ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f) |
dev | 1275 | net/ipv4/ip_fw.c | (void) ip_fw_chk(iph, dev, f, 0, 1); |
dev | 63 | net/ipv4/ipip.c | int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 93 | net/ipv4/ipip.c | if((err=ip_fw_chk(skb->ip_hdr,dev,ip_fw_blk_chain, ip_fw_blk_policy,0))<FW_ACCEPT) |
dev | 96 | net/ipv4/ipip.c | icmp_send(skb,ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0 , dev); |
dev | 113 | net/ipv4/ipip.c | if(ip_forward(skb, dev, 0, daddr, 0)) |
dev | 54 | net/ipv4/ipmr.c | v->dev->flags&=~IFF_ALLMULTI; |
dev | 55 | net/ipv4/ipmr.c | dev_mc_upload(v->dev); |
dev | 57 | net/ipv4/ipmr.c | v->dev=NULL; |
dev | 110 | net/ipv4/ipmr.c | struct device *dev; |
dev | 115 | net/ipv4/ipmr.c | dev=ip_dev_find(vif.vifc_lcl_addr.s_addr); |
dev | 116 | net/ipv4/ipmr.c | if(!dev) |
dev | 127 | net/ipv4/ipmr.c | if(dev->flags&IFF_MULTICAST) |
dev | 131 | net/ipv4/ipmr.c | dev->flags|=IFF_ALLMULTI; |
dev | 132 | net/ipv4/ipmr.c | dev_mc_upload(dev); |
dev | 149 | net/ipv4/ipmr.c | v->dev=dev; |
dev | 289 | net/ipv4/ipmr.c | v->dev->flags&=~IFF_ALLMULTI; |
dev | 290 | net/ipv4/ipmr.c | dev_mc_upload(v->dev); |
dev | 307 | net/ipv4/ipmr.c | if((vifc_map&(1<<ct)) && v->dev==ptr) |
dev | 73 | net/ipv4/packet.c | int packet_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 95 | net/ipv4/packet.c | skb->dev = dev; |
dev | 149 | net/ipv4/packet.c | struct device *dev; |
dev | 176 | net/ipv4/packet.c | dev = dev_get(saddr->sa_data); |
dev | 177 | net/ipv4/packet.c | if (dev == NULL) |
dev | 187 | net/ipv4/packet.c | if(len>dev->mtu+dev->hard_header_len) |
dev | 215 | net/ipv4/packet.c | if (dev->flags & IFF_UP) |
dev | 216 | net/ipv4/packet.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 269 | net/ipv4/packet.c | p->dev = NULL; |
dev | 342 | net/ipv4/packet.c | saddr->sa_family = skb->dev->type; |
dev | 343 | net/ipv4/packet.c | memcpy(saddr->sa_data,skb->dev->name, 14); |
dev | 87 | net/ipv4/rarp.c | struct device *dev; /* Device the entry is tied to */ |
dev | 145 | net/ipv4/rarp.c | static void rarp_destroy_dev(struct device *dev) |
dev | 154 | net/ipv4/rarp.c | if (entry->dev == dev) |
dev | 198 | net/ipv4/rarp.c | static int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 213 | net/ipv4/rarp.c | if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) |
dev | 214 | net/ipv4/rarp.c | || dev->flags&IFF_NOARP) |
dev | 235 | net/ipv4/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
dev | 237 | net/ipv4/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
dev | 252 | net/ipv4/rarp.c | rarp_ptr+=dev->addr_len; |
dev | 256 | net/ipv4/rarp.c | rarp_ptr+=dev->addr_len; |
dev | 273 | net/ipv4/rarp.c | arp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, |
dev | 274 | net/ipv4/rarp.c | dev->dev_addr); |
dev | 374 | net/ipv4/rarp.c | entry->dev = rt->rt_dev; |
dev | 116 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr) |
dev | 123 | net/ipv4/raw.c | skb->dev = dev; |
dev | 133 | net/ipv4/route.c | void ip_rt_flush(struct device *dev) |
dev | 143 | net/ipv4/route.c | if (r->rt_dev != dev) { |
dev | 179 | net/ipv4/route.c | static __u32 guess_mask(__u32 dst, struct device * dev) |
dev | 186 | net/ipv4/route.c | if ((dst ^ dev->pa_addr) & mask) |
dev | 188 | net/ipv4/route.c | return dev->pa_mask; |
dev | 225 | net/ipv4/route.c | __u32 gw, struct device *dev, unsigned short mtu, |
dev | 248 | net/ipv4/route.c | if (!((dst ^ dev->pa_addr) & dev->pa_mask)) |
dev | 250 | net/ipv4/route.c | mask = dev->pa_mask; |
dev | 259 | net/ipv4/route.c | mask = guess_mask(dst, dev); |
dev | 267 | net/ipv4/route.c | if (gw == dev->pa_addr) |
dev | 276 | net/ipv4/route.c | if (dev != get_gw_dev(gw)) |
dev | 296 | net/ipv4/route.c | rt->rt_dev = dev; |
dev | 299 | net/ipv4/route.c | rt->rt_mss = dev->mtu - HEADER_SIZE; |
dev | 415 | net/ipv4/route.c | struct device * dev = NULL; |
dev | 429 | net/ipv4/route.c | dev = dev_get(devname); |
dev | 431 | net/ipv4/route.c | if (!dev) |
dev | 459 | net/ipv4/route.c | if (!dev && (flags & RTF_GATEWAY)) |
dev | 467 | net/ipv4/route.c | dev = dev2; |
dev | 497 | net/ipv4/route.c | if (!dev) |
dev | 498 | net/ipv4/route.c | dev = get_gw_dev(gw); |
dev | 500 | net/ipv4/route.c | else if (!dev) |
dev | 501 | net/ipv4/route.c | dev = ip_dev_check(daddr); |
dev | 507 | net/ipv4/route.c | if (dev == NULL) |
dev | 514 | net/ipv4/route.c | ip_rt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt, metric); |
dev | 632 | net/ipv4/tcp.c | struct device *dev; |
dev | 645 | net/ipv4/tcp.c | dev = skb->dev; |
dev | 695 | net/ipv4/tcp.c | dev=rt->rt_dev; |
dev | 699 | net/ipv4/tcp.c | skb->dev=dev; |
dev | 701 | net/ipv4/tcp.c | if(dev->hard_header) |
dev | 703 | net/ipv4/tcp.c | if(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0) |
dev | 726 | net/ipv4/tcp.c | if (dev->flags & IFF_UP) |
dev | 742 | net/ipv4/tcp.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 1421 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, 0); |
dev | 1511 | net/ipv4/tcp.c | struct device *dev = NULL; |
dev | 1551 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
dev | 1613 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 1654 | net/ipv4/tcp.c | struct device *dev = NULL; |
dev | 1896 | net/ipv4/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
dev | 1906 | net/ipv4/tcp.c | skb->dev = dev; |
dev | 1994 | net/ipv4/tcp.c | struct device *dev = NULL; |
dev | 2034 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 2061 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 2512 | net/ipv4/tcp.c | struct device *dev=NULL; |
dev | 2538 | net/ipv4/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
dev | 2566 | net/ipv4/tcp.c | buff->dev = dev; |
dev | 2597 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
dev | 2694 | net/ipv4/tcp.c | struct proto *prot, struct options *opt, struct device *dev, int tos, int ttl) |
dev | 2718 | net/ipv4/tcp.c | buff->dev = dev; |
dev | 2871 | net/ipv4/tcp.c | struct options *opt, struct device *dev, u32 seq) |
dev | 2893 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
dev | 3031 | net/ipv4/tcp.c | if ((saddr ^ daddr) & dev->pa_mask) |
dev | 3042 | net/ipv4/tcp.c | newsk->mtu = min(newsk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr)); |
dev | 3286 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, skb->free); |
dev | 4065 | net/ipv4/tcp.c | sk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl); |
dev | 4454 | net/ipv4/tcp.c | struct device *dev=NULL; |
dev | 4517 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 4558 | net/ipv4/tcp.c | if ((sk->saddr ^ sk->daddr) & dev->pa_mask) |
dev | 4571 | net/ipv4/tcp.c | sk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr)); |
dev | 4600 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
dev | 4612 | net/ipv4/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
dev | 4654 | net/ipv4/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
dev | 4700 | net/ipv4/tcp.c | int tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 4775 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
dev | 4806 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
dev | 4852 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
dev | 4872 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq()); |
dev | 4912 | net/ipv4/tcp.c | sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
dev | 5009 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000); |
dev | 5025 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
dev | 5041 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
dev | 5058 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
dev | 5107 | net/ipv4/tcp.c | struct device *dev=NULL; |
dev | 5181 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 5194 | net/ipv4/tcp.c | buff->dev = dev; |
dev | 5213 | net/ipv4/tcp.c | tcp_data_start = skb->data + skb->dev->hard_header_len + |
dev | 5281 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 5317 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 137 | 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 | 572 | net/ipv4/udp.c | int udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 581 | net/ipv4/udp.c | if(!dev || dev->pa_addr!=daddr) |
dev | 658 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
dev | 685 | net/ipv4/udp.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev); |
dev | 695 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
dev | 698 | 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 | 701 | net/ipv4/udp.c | skb->dev = dev; |
dev | 205 | net/ipx/af_ipx.c | ipxitf_find_using_phys(struct device *dev, unsigned short datalink) |
dev | 210 | net/ipx/af_ipx.c | i && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); |
dev | 308 | net/ipx/af_ipx.c | struct device *dev = ptr; |
dev | 317 | net/ipx/af_ipx.c | if (i->if_dev == dev) |
dev | 475 | net/ipx/af_ipx.c | struct device *dev = intrfc->if_dev; |
dev | 484 | net/ipx/af_ipx.c | if ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) |
dev | 517 | net/ipx/af_ipx.c | addr_len = dev->addr_len; |
dev | 519 | net/ipx/af_ipx.c | memcpy(dest_node, dev->broadcast, addr_len); |
dev | 529 | net/ipx/af_ipx.c | skb->dev = dev; |
dev | 546 | net/ipx/af_ipx.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 680 | net/ipx/af_ipx.c | struct device *dev; |
dev | 720 | net/ipx/af_ipx.c | dev=dev_get(idef->ipx_device); |
dev | 721 | net/ipx/af_ipx.c | if (dev==NULL) |
dev | 724 | net/ipx/af_ipx.c | if (!(dev->flags & IFF_UP)) |
dev | 728 | net/ipx/af_ipx.c | if(dev->addr_len>IPX_NODE_LEN) |
dev | 731 | net/ipx/af_ipx.c | if ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) { |
dev | 737 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
dev | 747 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length; |
dev | 749 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len); |
dev | 764 | net/ipx/af_ipx.c | struct device *dev = NULL; |
dev | 780 | net/ipx/af_ipx.c | dev=dev_get(idef->ipx_device); |
dev | 781 | net/ipx/af_ipx.c | if(dev==NULL) return -ENODEV; |
dev | 783 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, dlink_type); |
dev | 792 | net/ipx/af_ipx.c | ipxitf_auto_create(struct device *dev, unsigned short dlink_type) |
dev | 805 | net/ipx/af_ipx.c | if (dev == NULL) |
dev | 809 | net/ipx/af_ipx.c | if(dev->addr_len>IPX_NODE_LEN) return NULL; |
dev | 813 | net/ipx/af_ipx.c | intrfc->if_dev=dev; |
dev | 820 | net/ipx/af_ipx.c | intrfc->if_ipx_offset = dev->hard_header_len + |
dev | 823 | net/ipx/af_ipx.c | memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), |
dev | 824 | net/ipx/af_ipx.c | dev->dev_addr, dev->addr_len); |
dev | 864 | net/ipx/af_ipx.c | struct device *dev; |
dev | 870 | net/ipx/af_ipx.c | dev=dev_get(ifr.ifr_name); |
dev | 871 | net/ipx/af_ipx.c | if(!dev) |
dev | 873 | net/ipx/af_ipx.c | ipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type)); |
dev | 1654 | net/ipx/af_ipx.c | int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1678 | net/ipx/af_ipx.c | intrfc = ipxitf_find_using_phys(dev, pt->type); |
dev | 1681 | net/ipx/af_ipx.c | intrfc = ipxitf_auto_create(dev, pt->type); |
dev | 105 | net/netrom/af_netrom.c | static void nr_kill_by_device(struct device *dev) |
dev | 110 | net/netrom/af_netrom.c | if (s->nr->device == dev) { |
dev | 126 | net/netrom/af_netrom.c | struct device *dev = (struct device *)ptr; |
dev | 131 | net/netrom/af_netrom.c | nr_kill_by_device(dev); |
dev | 132 | net/netrom/af_netrom.c | nr_rt_device_down(dev); |
dev | 680 | net/netrom/af_netrom.c | struct device *dev; |
dev | 699 | net/netrom/af_netrom.c | if ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) { |
dev | 726 | net/netrom/af_netrom.c | sk->nr->device = dev; |
dev | 743 | net/netrom/af_netrom.c | struct device *dev; |
dev | 764 | net/netrom/af_netrom.c | if ((dev = nr_dev_first()) == NULL) |
dev | 770 | net/netrom/af_netrom.c | source = (ax25_address *)dev->dev_addr; |
dev | 908 | net/netrom/af_netrom.c | int nr_rx_frame(struct sk_buff *skb, struct device *dev) |
dev | 937 | net/netrom/af_netrom.c | return nr_rx_ip(skb, dev); |
dev | 1345 | net/netrom/af_netrom.c | struct device *dev; |
dev | 1356 | net/netrom/af_netrom.c | if ((dev = s->nr->device) == NULL) |
dev | 1359 | net/netrom/af_netrom.c | devname = dev->name; |
dev | 53 | net/netrom/nr_dev.c | int nr_rx_ip(struct sk_buff *skb, struct device *dev) |
dev | 55 | net/netrom/nr_dev.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 57 | net/netrom/nr_dev.c | if (!dev->start) |
dev | 67 | net/netrom/nr_dev.c | skb->dev = dev; |
dev | 70 | net/netrom/nr_dev.c | ip_rcv(skb, skb->dev, NULL); |
dev | 75 | net/netrom/nr_dev.c | static int nr_header(struct sk_buff *skb, struct device *dev, unsigned short type, |
dev | 80 | net/netrom/nr_dev.c | memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); |
dev | 87 | net/netrom/nr_dev.c | memcpy(buff, daddr, dev->addr_len); |
dev | 107 | net/netrom/nr_dev.c | static int nr_rebuild_header(void *buff, struct device *dev, |
dev | 110 | net/netrom/nr_dev.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 141 | net/netrom/nr_dev.c | static int nr_set_mac_address(struct device *dev, void *addr) |
dev | 143 | net/netrom/nr_dev.c | memcpy(dev->dev_addr, addr, dev->addr_len); |
dev | 148 | net/netrom/nr_dev.c | static int nr_open(struct device *dev) |
dev | 150 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 151 | net/netrom/nr_dev.c | dev->start = 1; |
dev | 156 | net/netrom/nr_dev.c | static int nr_close(struct device *dev) |
dev | 158 | net/netrom/nr_dev.c | dev->tbusy = 1; |
dev | 159 | net/netrom/nr_dev.c | dev->start = 0; |
dev | 164 | net/netrom/nr_dev.c | static int nr_xmit(struct sk_buff *skb, struct device *dev) |
dev | 166 | net/netrom/nr_dev.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 168 | net/netrom/nr_dev.c | if (skb == NULL || dev == NULL) |
dev | 171 | net/netrom/nr_dev.c | if (!dev->start) { |
dev | 178 | net/netrom/nr_dev.c | if (dev->tbusy != 0) { |
dev | 184 | net/netrom/nr_dev.c | dev->tbusy = 1; |
dev | 192 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 199 | net/netrom/nr_dev.c | static struct enet_statistics *nr_get_stats(struct device *dev) |
dev | 201 | net/netrom/nr_dev.c | return (struct enet_statistics *)dev->priv; |
dev | 204 | net/netrom/nr_dev.c | int nr_init(struct device *dev) |
dev | 208 | net/netrom/nr_dev.c | dev->mtu = 236; /* MTU */ |
dev | 209 | net/netrom/nr_dev.c | dev->tbusy = 0; |
dev | 210 | net/netrom/nr_dev.c | dev->hard_start_xmit = nr_xmit; |
dev | 211 | net/netrom/nr_dev.c | dev->open = nr_open; |
dev | 212 | net/netrom/nr_dev.c | dev->stop = nr_close; |
dev | 214 | net/netrom/nr_dev.c | dev->hard_header = nr_header; |
dev | 215 | net/netrom/nr_dev.c | dev->hard_header_len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + 3 + NR_NETWORK_LEN + NR_TRANSPORT_LEN; |
dev | 216 | net/netrom/nr_dev.c | dev->addr_len = AX25_ADDR_LEN; |
dev | 217 | net/netrom/nr_dev.c | dev->type = ARPHRD_NETROM; |
dev | 218 | net/netrom/nr_dev.c | dev->rebuild_header = nr_rebuild_header; |
dev | 219 | net/netrom/nr_dev.c | dev->set_mac_address = nr_set_mac_address; |
dev | 222 | net/netrom/nr_dev.c | dev->flags = 0; |
dev | 223 | net/netrom/nr_dev.c | dev->family = AF_INET; |
dev | 225 | net/netrom/nr_dev.c | dev->pa_addr = 0; |
dev | 226 | net/netrom/nr_dev.c | dev->pa_brdaddr = 0; |
dev | 227 | net/netrom/nr_dev.c | dev->pa_mask = 0; |
dev | 228 | net/netrom/nr_dev.c | dev->pa_alen = sizeof(unsigned long); |
dev | 230 | net/netrom/nr_dev.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 231 | net/netrom/nr_dev.c | if (dev->priv == NULL) |
dev | 234 | net/netrom/nr_dev.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 236 | net/netrom/nr_dev.c | dev->get_stats = nr_get_stats; |
dev | 240 | net/netrom/nr_dev.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 66 | net/netrom/nr_route.c | ax25_digi *ax25_digi, struct device *dev, int quality, int obs_count) |
dev | 79 | net/netrom/nr_route.c | if (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
dev | 92 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
dev | 290 | net/netrom/nr_route.c | static int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev) |
dev | 303 | net/netrom/nr_route.c | if (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
dev | 340 | net/netrom/nr_route.c | static int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality) |
dev | 346 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) { |
dev | 359 | net/netrom/nr_route.c | nr_neigh->dev = dev; |
dev | 380 | net/netrom/nr_route.c | static int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality) |
dev | 385 | net/netrom/nr_route.c | if (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) |
dev | 468 | net/netrom/nr_route.c | void nr_rt_device_down(struct device *dev) |
dev | 478 | net/netrom/nr_route.c | if (s->dev == dev) { |
dev | 515 | net/netrom/nr_route.c | struct device *dev; |
dev | 518 | net/netrom/nr_route.c | if ((dev = dev_get(devname)) == NULL) |
dev | 521 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25) |
dev | 522 | net/netrom/nr_route.c | return dev; |
dev | 524 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER) |
dev | 525 | net/netrom/nr_route.c | if (arp_query((unsigned char *)&callsign, dev->pa_addr, ARPHRD_AX25)) |
dev | 526 | net/netrom/nr_route.c | return dev; |
dev | 536 | net/netrom/nr_route.c | struct device *dev, *first = NULL; |
dev | 538 | net/netrom/nr_route.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 539 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM) |
dev | 540 | net/netrom/nr_route.c | if (first == NULL || strncmp(dev->name, first->name, 3) < 0) |
dev | 541 | net/netrom/nr_route.c | first = dev; |
dev | 551 | net/netrom/nr_route.c | struct device *dev; |
dev | 553 | net/netrom/nr_route.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 554 | net/netrom/nr_route.c | if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) |
dev | 555 | net/netrom/nr_route.c | return dev; |
dev | 566 | net/netrom/nr_route.c | struct device *dev; |
dev | 576 | net/netrom/nr_route.c | if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL) |
dev | 583 | net/netrom/nr_route.c | NULL, dev, nr_route.quality, |
dev | 587 | net/netrom/nr_route.c | dev, nr_route.quality); |
dev | 596 | net/netrom/nr_route.c | if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL) |
dev | 601 | net/netrom/nr_route.c | &nr_route.neighbour, dev); |
dev | 604 | net/netrom/nr_route.c | dev, nr_route.quality); |
dev | 627 | net/netrom/nr_route.c | void nr_link_failed(ax25_address *callsign, struct device *dev) |
dev | 633 | net/netrom/nr_route.c | if (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev) |
dev | 652 | net/netrom/nr_route.c | struct device *dev; |
dev | 661 | net/netrom/nr_route.c | if ((dev = nr_dev_get(nr_dest)) != NULL) /* Its for me */ |
dev | 662 | net/netrom/nr_route.c | return nr_rx_frame(skb, dev); |
dev | 685 | net/netrom/nr_route.c | if ((dev = nr_dev_first()) == NULL) |
dev | 691 | net/netrom/nr_route.c | ax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev); |
dev | 762 | net/netrom/nr_route.c | nr_neigh->dev ? nr_neigh->dev->name : "???", |