taglinefilesource code
dev28drivers/block/blk.hint dev;    /* -1 if no request */
dev48drivers/block/blk.h((s1)->dev < (s2)->dev || (((s1)->dev == (s2)->dev && \
dev67drivers/block/blk.hblksize_size[MAJOR_NR][MINOR(CURRENT->dev)] ? \
dev68drivers/block/blk.h((blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] >> 9) - 1) :  \
dev76drivers/block/blk.hextern void resetup_one_dev(struct gendisk *dev, int drive);
dev88drivers/block/blk.hextern int is_read_only(int dev);
dev89drivers/block/blk.hextern void set_device_ro(int dev,int flag);
dev97drivers/block/blk.h#define RO_IOCTLS(dev,where) \
dev99drivers/block/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev101drivers/block/blk.hif (!__err) put_fs_long(is_read_only(dev),(long *) (where)); return __err; }
dev215drivers/block/blk.h#define CURRENT_DEV DEVICE_NR(CURRENT->dev)
dev257drivers/block/blk.h(unsigned long)req->dev, req->sector);
dev279drivers/block/blk.hDEVICE_OFF(req->dev);
dev287drivers/block/blk.hreq->dev = -1;
dev303drivers/block/blk.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev982drivers/block/cdu31a.cunsigned int dev;
dev1004drivers/block/cdu31a.cif (!(CURRENT) || CURRENT->dev < 0)
dev1010drivers/block/cdu31a.cdev = MINOR(CURRENT->dev);
dev1013drivers/block/cdu31a.cif (dev != 0)
dev1280drivers/block/cdu31a.cunsigned int dev;
dev1291drivers/block/cdu31a.cdev = MINOR(inode->i_rdev) >> 6;
dev1292drivers/block/cdu31a.cif (dev != 0)
dev239drivers/block/floppy.c(CURRENT->dev))
dev679drivers/block/floppy.cint drive = MINOR(CURRENT->dev);
dev997drivers/block/floppy.cif (CURRENT && CURRENT->dev < 0) return;
dev1011drivers/block/floppy.cif (MAJOR(CURRENT->dev) != MAJOR_NR)
dev36drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, int dev)
dev43drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev49drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev85drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
dev94drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
dev106drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev107drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev108drivers/block/genhd.cprintk("  unable to read partition table of device %04x\n",dev);
dev161drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev164drivers/block/genhd.cint start = drive<<dev->minor_shift;
dev165drivers/block/genhd.cint j = start + dev->max_p;
dev166drivers/block/genhd.cint major = dev->major << 8;
dev168drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev169drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev172drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev175drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev178drivers/block/genhd.cint j = dev->max_nr * dev->max_p;
dev179drivers/block/genhd.cint major = dev->major << 8;
dev184drivers/block/genhd.cdev->part[i].start_sect = 0;
dev185drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev187drivers/block/genhd.cdev->init();  
dev188drivers/block/genhd.cfor (drive=0 ; drive<dev->nr_real ; drive++) {
dev189drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev190drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev193drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev194drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev283drivers/block/hd.cint dev;
dev287drivers/block/hd.cdev = MINOR(CURRENT->dev) >> 6;
dev290drivers/block/hd.crecalibrate[dev] = 1;
dev294drivers/block/hd.crecalibrate[dev] = 1;
dev344drivers/block/hd.cMINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> 
dev445drivers/block/hd.cunsigned int block,dev;
dev449drivers/block/hd.cif (CURRENT && CURRENT->dev < 0) return;
dev457drivers/block/hd.cdev = MINOR(CURRENT->dev);
dev460drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) {
dev463drivers/block/hd.cblock, hd[dev].nr_sects);
dev468drivers/block/hd.cblock += hd[dev].start_sect;
dev469drivers/block/hd.cdev >>= 6;
dev470drivers/block/hd.csec = block % hd_info[dev].sect + 1;
dev471drivers/block/hd.ctrack = block / hd_info[dev].sect;
dev472drivers/block/hd.chead = track % hd_info[dev].head;
dev473drivers/block/hd.ccyl = track / hd_info[dev].head;
dev476drivers/block/hd.cdev, cyl, head, sec, CURRENT->buffer);
dev488drivers/block/hd.cif (recalibrate[dev]) {
dev489drivers/block/hd.crecalibrate[dev] = 0;
dev490drivers/block/hd.chd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr);
dev497drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
dev510drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr);
dev523drivers/block/hd.cint dev, err;
dev527drivers/block/hd.cdev = MINOR(inode->i_rdev) >> 6;
dev528drivers/block/hd.cif (dev >= NR_HD)
dev536drivers/block/hd.cput_fs_byte(hd_info[dev].head,
dev538drivers/block/hd.cput_fs_byte(hd_info[dev].sect,
dev540drivers/block/hd.cput_fs_word(hd_info[dev].cyl,
dev761drivers/block/hd.cstatic int revalidate_hddisk(int dev, int maxusage)
dev769drivers/block/hd.ctarget =  DEVICE_NR(MINOR(dev));
dev78drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, int dev)
dev94drivers/block/ll_rw_blk.cif (req->dev < 0)
dev100drivers/block/ll_rw_blk.creq->dev = dev;
dev109drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, int dev)
dev113drivers/block/ll_rw_blk.cwhile ((req = get_request(n, dev)) == NULL)
dev122drivers/block/ll_rw_blk.cint is_read_only(int dev)
dev126drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev127drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev132drivers/block/ll_rw_blk.cvoid set_device_ro(int dev,int flag)
dev136drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev137drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev148drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
dev156drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev157drivers/block/ll_rw_blk.cdev->current_request = req;
dev158drivers/block/ll_rw_blk.c(dev->request_fn)();
dev172drivers/block/ll_rw_blk.cif (scsi_major(MAJOR(req->dev)))
dev173drivers/block/ll_rw_blk.c(dev->request_fn)();
dev235drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev249drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev302drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, int dev, int page, char * buffer)
dev305drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev308drivers/block/ll_rw_blk.cprintk("Trying to read nonexistent block-device %04x (%d)\n",dev,page*8);
dev313drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev314drivers/block/ll_rw_blk.cprintk("Can't page to read-only device 0x%X\n",dev);
dev318drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev345drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev355drivers/block/ll_rw_blk.cdev = NULL;
dev357drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev358drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev395drivers/block/ll_rw_blk.cif (!dev->current_request && nr > 1) {
dev396drivers/block/ll_rw_blk.cdev->current_request = &plug;
dev397drivers/block/ll_rw_blk.cplug.dev = -1;
dev414drivers/block/ll_rw_blk.cdev->current_request = plug.next;
dev415drivers/block/ll_rw_blk.c(dev->request_fn)();
dev428drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
dev433drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev444drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev445drivers/block/ll_rw_blk.cprintk("Can't swap to read-only device 0x%X\n",dev);
dev454drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev477drivers/block/ll_rw_blk.creq->dev = -1;
dev551drivers/block/mcd.cunsigned int block,dev;
dev555drivers/block/mcd.cif (!(CURRENT) || CURRENT->dev < 0) return;
dev557drivers/block/mcd.cdev = MINOR(CURRENT->dev);
dev40drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev2732drivers/block/sbpcd.cint dev;
dev2740drivers/block/sbpcd.cif ((CURRENT==NULL)||(CURRENT->dev<0)) return;
dev2743drivers/block/sbpcd.cdev = MINOR(CURRENT->dev);
dev2744drivers/block/sbpcd.cif ( (dev<0) || (dev>=NR_SBPCD) )
dev2746drivers/block/sbpcd.cprintk("SBPCD: do_request: bad device: %d\n", dev);
dev2749drivers/block/sbpcd.cswitch_drive(dev);
dev193drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev195drivers/block/xd.cif (dev < xd_drives) {
dev196drivers/block/xd.cwhile (!xd_valid[dev])
dev199drivers/block/xd.cxd_access[dev]++;
dev217drivers/block/xd.cif (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) {
dev218drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
dev239drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev)),err;
dev241drivers/block/xd.cif (inode && (dev < xd_drives))
dev247drivers/block/xd.cput_fs_byte(xd_info[dev].heads,(char *) &geometry->heads);
dev248drivers/block/xd.cput_fs_byte(xd_info[dev].sectors,(char *) &geometry->sectors);
dev249drivers/block/xd.cput_fs_word(xd_info[dev].cylinders,(short *) &geometry->cylinders);
dev287drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev289drivers/block/xd.cif (dev < xd_drives) {
dev290drivers/block/xd.csync_dev(dev);
dev291drivers/block/xd.cxd_access[dev]--;
dev296drivers/block/xd.cstatic int xd_reread_partitions(int dev)
dev298drivers/block/xd.cint target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition;
dev1813drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev1820drivers/char/tpqic02.cMINOR(dev), buf, count, filp->f_pos, flags);
dev1983drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev1989drivers/char/tpqic02.cMINOR(dev), buf, count, filp->f_pos, flags);
dev2129drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2136drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2137drivers/char/tpqic02.cprintk("tape_qic02_open: dev=%x, flags=%x     ", dev, flags);
dev2140drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2187drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2198drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2237drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2240drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2242drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2248drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2292drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2294drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2295drivers/char/tpqic02.cprintk("tape_qic02_release: dev=%x\n", dev);
dev2312drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
dev58drivers/net/3c501.cint el1_probe(struct device *dev);
dev59drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev60drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev62drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev63drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev64drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev65drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev66drivers/net/3c501.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev132drivers/net/3c501.cel1_probe(struct device *dev)
dev139drivers/net/3c501.celdev = dev;    /* Store for debugging. */
dev140drivers/net/3c501.cel_base = dev->base_addr;
dev165drivers/net/3c501.cif (dev->irq < 2) {
dev178drivers/net/3c501.cprintk("%s: 3c501 probe failed to detect IRQ line.\n", dev->name);
dev181drivers/net/3c501.cdev->irq = autoirq;
dev186drivers/net/3c501.cdev->base_addr = el_base;
dev187drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev188drivers/net/3c501.cif (dev->mem_start & 0xf)
dev189drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev192drivers/net/3c501.cdev->name, dev->base_addr, autoirq ? "auto":"assigned ", dev->irq);
dev198drivers/net/3c501.cdev->open = &el_open;
dev199drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev200drivers/net/3c501.cdev->stop = &el1_close;
dev201drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev202drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev204drivers/net/3c501.cether_setup(dev);
dev211drivers/net/3c501.cel_open(struct device *dev)
dev215drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev217drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt)) {
dev222drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev224drivers/net/3c501.cel_reset(dev);
dev226drivers/net/3c501.cdev->start = 1;
dev238drivers/net/3c501.cel_start_xmit(struct sk_buff *skb, struct device *dev)
dev241drivers/net/3c501.cif (dev->tbusy) {
dev242drivers/net/3c501.cif (jiffies - dev->trans_start < 20) {
dev249drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev252drivers/net/3c501.cel_reset(dev);
dev259drivers/net/3c501.cdev->tbusy = 0;
dev260drivers/net/3c501.cdev->trans_start = jiffies;
dev264drivers/net/3c501.cdev_tint(dev);
dev272drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev273drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev289drivers/net/3c501.cdev->trans_start = jiffies;
dev307drivers/net/3c501.cstruct device *dev = eldev;
dev316drivers/net/3c501.cioaddr = dev->base_addr;
dev321drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev322drivers/net/3c501.cif (dev->interrupt)
dev323drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev324drivers/net/3c501.cdev->interrupt = 1;
dev326drivers/net/3c501.cif (dev->tbusy) {
dev335drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev337drivers/net/3c501.cdev->tbusy = 0;
dev342drivers/net/3c501.cdev->name);
dev352drivers/net/3c501.cdev->interrupt = 0;
dev359drivers/net/3c501.cdev->tbusy = 0;
dev379drivers/net/3c501.cdev->name, rxsr);
dev390drivers/net/3c501.cdev->interrupt = 0;
dev398drivers/net/3c501.cel_receive(struct device *dev)
dev410drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev419drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev424drivers/net/3c501.cskb->dev = dev;
dev435drivers/net/3c501.cel_reset(struct device *dev)
dev444drivers/net/3c501.coutb(dev->dev_addr[i], el_base + i);
dev453drivers/net/3c501.cdev->interrupt = 0;
dev454drivers/net/3c501.cdev->tbusy = 0;
dev459drivers/net/3c501.cel1_close(struct device *dev)
dev461drivers/net/3c501.cint ioaddr = dev->base_addr;
dev464drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev466drivers/net/3c501.cdev->tbusy = 1;
dev467drivers/net/3c501.cdev->start = 0;
dev470drivers/net/3c501.cfree_irq(dev->irq);
dev472drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev481drivers/net/3c501.cel1_get_stats(struct device *dev)
dev493drivers/net/3c501.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev34drivers/net/3c503.cint el2_probe(struct device *dev);
dev35drivers/net/3c503.cint el2_pio_autoprobe(struct device *dev);
dev36drivers/net/3c503.cint el2probe1(int ioaddr, struct device *dev);
dev38drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev39drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev40drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev41drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev42drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev44drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev59drivers/net/3c503.cel2_probe(struct device *dev)
dev62drivers/net/3c503.cshort ioaddr = dev->base_addr;
dev67drivers/net/3c503.creturn ! el2probe1(ioaddr, dev);
dev82drivers/net/3c503.cif (el2probe1(ports[i], dev))
dev86drivers/net/3c503.creturn el2_pio_autoprobe(dev);
dev95drivers/net/3c503.cel2_pio_autoprobe(struct device *dev)
dev107drivers/net/3c503.c&& el2probe1(ports[i], dev))
dev117drivers/net/3c503.cel2probe1(int ioaddr, struct device *dev)
dev120drivers/net/3c503.cunsigned char *station_addr = dev->dev_addr;
dev153drivers/net/3c503.cethdev_init(dev);
dev157drivers/net/3c503.cdev->base_addr = ioaddr;
dev169drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev173drivers/net/3c503.cdev->mem_start = 0;
dev175drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev182drivers/net/3c503.cint *mem_base = (int *)dev->mem_start;
dev190drivers/net/3c503.cdev->mem_start = 0;
dev201drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev202drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev214drivers/net/3c503.cif (dev->irq == 2)
dev215drivers/net/3c503.cdev->irq = 9;
dev216drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev218drivers/net/3c503.cdev->irq);
dev219drivers/net/3c503.cdev->irq = 0;
dev222drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev224drivers/net/3c503.cdev->start = 0;
dev225drivers/net/3c503.cdev->open = &el2_open;
dev226drivers/net/3c503.cdev->stop = &el2_close;
dev228drivers/net/3c503.cif (dev->mem_start)
dev230drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev233drivers/net/3c503.cdev->name, ei_status.name);
dev241drivers/net/3c503.cel2_open(struct device *dev)
dev244drivers/net/3c503.cif (dev->irq < 2) {
dev256drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt) == 0)
dev265drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt)) {
dev269drivers/net/3c503.cel2_init_card(dev);
dev270drivers/net/3c503.creturn ei_open(dev);
dev274drivers/net/3c503.cel2_close(struct device *dev)
dev276drivers/net/3c503.cfree_irq(dev->irq);
dev277drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev278drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev281drivers/net/3c503.cNS8390_init(dev, 0);
dev291drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev294drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev301drivers/net/3c503.cel2_init_card(dev);
dev307drivers/net/3c503.cel2_init_card(struct device *dev)
dev322drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev327drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev337drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev346drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev347drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev352drivers/net/3c503.cdev->name, (int) dest_addr);
dev370drivers/net/3c503.cdev->name, i, count, boguscount);
dev381drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev384drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev388drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev390drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev392drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev393drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev395drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev396drivers/net/3c503.creturn dev->rmem_start + count;
dev398drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev414drivers/net/3c503.cdev->name, i, count, boguscount);
dev6drivers/net/3c503.h#define EL2H (dev->base_addr + 0x400)
dev7drivers/net/3c503.h#define EL2L (dev->base_addr)
dev152drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev187drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev268drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev270drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, short ioaddr);
dev271drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev272drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev274drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev275drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev276drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev278drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev279drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev289drivers/net/3c507.cel16_probe(struct device *dev)
dev293drivers/net/3c507.cint base_addr = dev->base_addr;
dev297drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev317drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev328drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev336drivers/net/3c507.cint el16_probe1(struct device *dev, short ioaddr)
dev340drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev355drivers/net/3c507.cdev->base_addr = ioaddr;
dev359drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev360drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev363drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev364drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev367drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev368drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev382drivers/net/3c507.cdev->mem_start = base;
dev383drivers/net/3c507.cdev->mem_end = base + size;
dev387drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev388drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev390drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev391drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev397drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev398drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev400drivers/net/3c507.cdev->open    = el16_open;
dev401drivers/net/3c507.cdev->stop    = el16_close;
dev402drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev403drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev405drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev413drivers/net/3c507.cel16_open(struct device *dev)
dev415drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev418drivers/net/3c507.cinit_82586_mem(dev);
dev420drivers/net/3c507.cdev->tbusy = 0;
dev421drivers/net/3c507.cdev->interrupt = 0;
dev422drivers/net/3c507.cdev->start = 1;
dev427drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev429drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev430drivers/net/3c507.cint ioaddr = dev->base_addr;
dev431drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev433drivers/net/3c507.cif (dev->tbusy) {
dev436drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev440drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev447drivers/net/3c507.cinit_82586_mem(dev);
dev455drivers/net/3c507.cdev->tbusy=0;
dev456drivers/net/3c507.cdev->trans_start = jiffies;
dev463drivers/net/3c507.cdev_tint(dev);
dev468drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev469drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev476drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev477drivers/net/3c507.cdev->trans_start = jiffies;
dev496drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev502drivers/net/3c507.cif (dev == NULL) {
dev506drivers/net/3c507.cdev->interrupt = 1;
dev508drivers/net/3c507.cioaddr = dev->base_addr;
dev509drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev510drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev515drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev532drivers/net/3c507.cdev->tbusy = 0;
dev553drivers/net/3c507.cel16_rx(dev);
dev559drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev562drivers/net/3c507.cdev->name, status);
dev569drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev575drivers/net/3c507.cdev->name, status);
dev576drivers/net/3c507.cinit_rx_bufs(dev);
dev594drivers/net/3c507.cel16_close(struct device *dev)
dev596drivers/net/3c507.cint ioaddr = dev->base_addr;
dev597drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev599drivers/net/3c507.cdev->tbusy = 1;
dev600drivers/net/3c507.cdev->start = 0;
dev612drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev622drivers/net/3c507.cel16_get_stats(struct device *dev)
dev624drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev633drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev635drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev644drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev672drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev679drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev681drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev682drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev683drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev694drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev697drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev700drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev701drivers/net/3c507.csizeof(dev->dev_addr));
dev707drivers/net/3c507.cinit_rx_bufs(dev);
dev721drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev732drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev738drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev740drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev741drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev743drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev766drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev776drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev780drivers/net/3c507.cdev->tbusy = 0;
dev784drivers/net/3c507.cel16_rx(struct device *dev)
dev786drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev787drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev794drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev798drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev804drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev822drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev827drivers/net/3c507.cskb->dev = dev;
dev840drivers/net/3c507.c*(short*)(dev->mem_start + rx_tail + 2) = 0x0000;
dev75drivers/net/3c509.cstatic int el3_open(struct device *dev);
dev76drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
dev78drivers/net/3c509.cstatic void update_stats(int addr, struct device *dev);
dev79drivers/net/3c509.cstatic struct enet_statistics *el3_get_stats(struct device *dev);
dev80drivers/net/3c509.cstatic int el3_rx(struct device *dev);
dev81drivers/net/3c509.cstatic int el3_close(struct device *dev);
dev83drivers/net/3c509.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev88drivers/net/3c509.cint el3_probe(struct device *dev)
dev92drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev173drivers/net/3c509.cif (dev->base_addr != 0
dev174drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev189drivers/net/3c509.cdev->base_addr = ioaddr;
dev190drivers/net/3c509.cdev->irq = irq;
dev191drivers/net/3c509.cdev->if_port = if_port;
dev192drivers/net/3c509.csnarf_region(dev->base_addr, 16);
dev197drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev202drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev203drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev206drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev207drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev213drivers/net/3c509.cdev->open = &el3_open;
dev214drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev215drivers/net/3c509.cdev->stop = &el3_close;
dev216drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev218drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev222drivers/net/3c509.cether_setup(dev);
dev265drivers/net/3c509.cel3_open(struct device *dev)
dev267drivers/net/3c509.cint ioaddr = dev->base_addr;
dev270drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt)) {
dev276drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev277drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev282drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev285drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + 8);
dev291drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev293drivers/net/3c509.cif (dev->if_port == 3)
dev296drivers/net/3c509.celse if (dev->if_port == 0) {
dev310drivers/net/3c509.cdev->interrupt = 0;
dev311drivers/net/3c509.cdev->tbusy = 0;
dev312drivers/net/3c509.cdev->start = 1;
dev317drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev326drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev328drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev329drivers/net/3c509.cint ioaddr = dev->base_addr;
dev332drivers/net/3c509.cif (dev->tbusy) {
dev333drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev337drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev338drivers/net/3c509.cdev->trans_start = jiffies;
dev342drivers/net/3c509.cdev->tbusy = 0;
dev346drivers/net/3c509.cdev_tint(dev);
dev355drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev363drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev374drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev375drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev383drivers/net/3c509.cdev->trans_start = jiffies;
dev385drivers/net/3c509.cdev->tbusy=0;
dev416drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev420drivers/net/3c509.cif (dev == NULL) {
dev425drivers/net/3c509.cif (dev->interrupt)
dev426drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev427drivers/net/3c509.cdev->interrupt = 1;
dev429drivers/net/3c509.cioaddr = dev->base_addr;
dev433drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev438drivers/net/3c509.cel3_rx(dev);
dev445drivers/net/3c509.cdev->tbusy = 0;
dev449drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev453drivers/net/3c509.cdev->name, status);
dev463drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev467drivers/net/3c509.cdev->interrupt = 0;
dev473drivers/net/3c509.cel3_get_stats(struct device *dev)
dev475drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev478drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev488drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev490drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev517drivers/net/3c509.cel3_rx(struct device *dev)
dev519drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev520drivers/net/3c509.cint ioaddr = dev->base_addr;
dev550drivers/net/3c509.cskb->dev = dev;
dev563drivers/net/3c509.cIN_SKBUFF,dev)== 0){
dev576drivers/net/3c509.cprintk("%s: receive buffers full.\n", dev->name);
dev582drivers/net/3c509.cdev->name, pkt_len);
dev606drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev608drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev619drivers/net/3c509.cel3_close(struct device *dev)
dev621drivers/net/3c509.cint ioaddr = dev->base_addr;
dev624drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev626drivers/net/3c509.cdev->tbusy = 1;
dev627drivers/net/3c509.cdev->start = 0;
dev636drivers/net/3c509.cif (dev->if_port == 3)
dev639drivers/net/3c509.celse if (dev->if_port == 0) {
dev645drivers/net/3c509.cfree_irq(dev->irq);
dev652drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev654drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev88drivers/net/8390.cint ei_open(struct device *dev);  /* Put into the device structure. */
dev91drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev92drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev93drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev96drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp);
dev97drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev100drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev109drivers/net/8390.cint ei_open(struct device *dev)
dev111drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev114drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev118drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev119drivers/net/8390.cNS8390_init(dev, 1);
dev120drivers/net/8390.cdev->start = 1;
dev125drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev127drivers/net/8390.cint e8390_base = dev->base_addr;
dev128drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev136drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev138drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev144drivers/net/8390.cdev->name, txsr, isr);
dev147drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq);
dev150drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name);
dev155drivers/net/8390.cei_reset_8390(dev);
dev156drivers/net/8390.cNS8390_init(dev, 1);
dev157drivers/net/8390.cdev->trans_start = jiffies;
dev164drivers/net/8390.cdev_tint(dev);
dev173drivers/net/8390.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev174drivers/net/8390.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev191drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev198drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev203drivers/net/8390.cdev->name);
dev205drivers/net/8390.cdev->tbusy = 1;
dev209drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev211drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev212drivers/net/8390.cdev->trans_start = jiffies;
dev221drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev223drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev224drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev225drivers/net/8390.cdev->trans_start = jiffies;
dev226drivers/net/8390.cdev->tbusy = 1;
dev244drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev249drivers/net/8390.cif (dev == NULL) {
dev253drivers/net/8390.ce8390_base = dev->base_addr;
dev254drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev255drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev261drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev266drivers/net/8390.cdev->interrupt = 1;
dev272drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev283drivers/net/8390.cei_rx_overrun(dev);
dev286drivers/net/8390.cei_receive(dev);
dev290drivers/net/8390.cei_tx_intr(dev);
dev292drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev307drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev311drivers/net/8390.cdev->interrupt = 0;
dev317drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev319drivers/net/8390.cint e8390_base = dev->base_addr;
dev321drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev332drivers/net/8390.cdev->tbusy = 0;
dev334drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev335drivers/net/8390.cdev->trans_start = jiffies;
dev346drivers/net/8390.cdev->tbusy = 0;
dev348drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev349drivers/net/8390.cdev->trans_start = jiffies;
dev357drivers/net/8390.cdev->name, ei_local->lasttx);
dev360drivers/net/8390.cdev->tbusy = 0;
dev381drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev383drivers/net/8390.cint e8390_base = dev->base_addr;
dev384drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev407drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev413drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev436drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev446drivers/net/8390.cdev->name, pkt_len);
dev451drivers/net/8390.cskb->dev = dev;
dev453drivers/net/8390.cei_block_input(dev, pkt_len, (char *) skb->data,
dev462drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev471drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x..", dev->name,
dev493drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev495drivers/net/8390.cint e8390_base = dev->base_addr;
dev497drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev503drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev516drivers/net/8390.cdev->name);
dev517drivers/net/8390.cNS8390_init(dev, 1);
dev522drivers/net/8390.cei_receive(dev);
dev530drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev532drivers/net/8390.cshort ioaddr = dev->base_addr;
dev533drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev550drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev552drivers/net/8390.cshort ioaddr = dev->base_addr;
dev566drivers/net/8390.cint ethdev_init(struct device *dev)
dev571drivers/net/8390.cif (dev->priv == NULL) {
dev574drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev575drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev576drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev583drivers/net/8390.cif (dev->open == NULL)
dev584drivers/net/8390.cdev->open = &ei_open;
dev586drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev587drivers/net/8390.cdev->get_stats  = get_stats;
dev589drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev592drivers/net/8390.cether_setup(dev);
dev600drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev602drivers/net/8390.cint e8390_base = dev->base_addr;
dev603drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev632drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev642drivers/net/8390.cdev->tbusy = 0;
dev643drivers/net/8390.cdev->interrupt = 0;
dev658drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev661drivers/net/8390.cint e8390_base = dev->base_addr;
dev668drivers/net/8390.cdev->name);
dev23drivers/net/8390.hextern int ethif_init(struct device *dev);
dev24drivers/net/8390.hextern int ethdev_init(struct device *dev);
dev25drivers/net/8390.hextern void NS8390_init(struct device *dev, int startp);
dev26drivers/net/8390.hextern int ei_open(struct device *dev);
dev64drivers/net/8390.h#define ei_status (*(struct ei_device *)(dev->priv))
dev40drivers/net/Space.cextern int ultra_probe(struct device *dev);
dev41drivers/net/Space.cextern int wd_probe(struct device *dev);
dev42drivers/net/Space.cextern int el2_probe(struct device *dev);
dev43drivers/net/Space.cextern int ne_probe(struct device *dev);
dev44drivers/net/Space.cextern int hp_probe(struct device *dev);
dev62drivers/net/Space.cethif_probe(struct device *dev)
dev64drivers/net/Space.cshort base_addr = dev->base_addr;
dev71drivers/net/Space.c&& ultra_probe(dev)
dev74drivers/net/Space.c&& wd_probe(dev)
dev77drivers/net/Space.c&& el2_probe(dev)
dev80drivers/net/Space.c&& ne_probe(dev)
dev83drivers/net/Space.c&& hp_probe(dev)
dev86drivers/net/Space.c&& at1500_probe(dev)
dev89drivers/net/Space.c&& at1700_probe(dev)
dev92drivers/net/Space.c&& el3_probe(dev)
dev95drivers/net/Space.c&& znet_probe(dev)
dev98drivers/net/Space.c&& express_probe(dev)
dev101drivers/net/Space.c&& depca_probe(dev)
dev104drivers/net/Space.c&& el1_probe(dev)
dev107drivers/net/Space.c&& el16_probe(dev)
dev110drivers/net/Space.c&& elplus_probe(dev)
dev113drivers/net/Space.c&& ac3200_probe(dev)
dev116drivers/net/Space.c&& e2100_probe(dev)
dev119drivers/net/Space.c&& de600_probe(dev)
dev128drivers/net/Space.cextern int dl_open(struct device *dev);
dev129drivers/net/Space.cextern int tc589_open(struct device *dev);
dev130drivers/net/Space.cextern int ibmccae_open(struct device *dev);
dev131drivers/net/Space.cstatic int pc_eth_open(struct device *dev);
dev133drivers/net/Space.cstatic int pc_eth_probe(struct device *dev)
dev135drivers/net/Space.cdev->open = &pc_eth_open;
dev136drivers/net/Space.cdev->set_config = &ether_config;
dev137drivers/net/Space.cdev->tbusy = 1;
dev141drivers/net/Space.cstatic int pc_eth_open(struct device *dev)
dev145drivers/net/Space.c&& dl_open(dev)
dev148drivers/net/Space.c&& tc589_open(dev)
dev151drivers/net/Space.c&& ibmccae_open(dev)
dev285drivers/net/Space.cextern int dummy_init(struct device *dev);
dev293drivers/net/Space.cextern int loopback_init(struct device *dev);
dev108drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev110drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev112drivers/net/at1700.cstatic int net_open(struct device *dev);
dev113drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev115drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev116drivers/net/at1700.cstatic int net_close(struct device *dev);
dev117drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev118drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev128drivers/net/at1700.cat1700_probe(struct device *dev)
dev131drivers/net/at1700.cshort *port, base_addr = dev->base_addr;
dev134drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev142drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev157drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev162drivers/net/at1700.cunsigned short *station_address = (unsigned short *)dev->dev_addr;
dev193drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev196drivers/net/at1700.cdev->base_addr = ioaddr;
dev197drivers/net/at1700.cdev->irq = irq;
dev198drivers/net/at1700.cirq2dev_map[irq] = dev;
dev216drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev217drivers/net/at1700.cprintk(" %s interface (%04x).\n", porttype[(dev->if_port>>3) & 3],
dev224drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev237drivers/net/at1700.coutb(dev->if_port, MODE13);
dev246drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev247drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev249drivers/net/at1700.cdev->open    = net_open;
dev250drivers/net/at1700.cdev->stop    = net_close;
dev251drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev252drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev253drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev257drivers/net/at1700.cether_setup(dev);
dev302drivers/net/at1700.cstatic int net_open(struct device *dev)
dev304drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev305drivers/net/at1700.cint ioaddr = dev->base_addr;
dev313drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev335drivers/net/at1700.cdev->tbusy = 0;
dev336drivers/net/at1700.cdev->interrupt = 0;
dev337drivers/net/at1700.cdev->start = 1;
dev343drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev345drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev346drivers/net/at1700.cint ioaddr = dev->base_addr;
dev348drivers/net/at1700.cif (dev->tbusy) {
dev351drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev354drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev358drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev367drivers/net/at1700.cdev->tbusy=0;
dev368drivers/net/at1700.cdev->trans_start = jiffies;
dev375drivers/net/at1700.cdev_tint(dev);
dev381drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev382drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev401drivers/net/at1700.cdev->trans_start = jiffies;
dev404drivers/net/at1700.cdev->tbusy = 0;
dev421drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev425drivers/net/at1700.cif (dev == NULL) {
dev429drivers/net/at1700.cdev->interrupt = 1;
dev431drivers/net/at1700.cioaddr = dev->base_addr;
dev432drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev437drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev440drivers/net/at1700.cnet_rx(dev);
dev449drivers/net/at1700.cdev->trans_start = jiffies;
dev450drivers/net/at1700.cdev->tbusy = 0;
dev456drivers/net/at1700.cdev->tbusy = 0;
dev466drivers/net/at1700.cnet_rx(struct device *dev)
dev468drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev469drivers/net/at1700.cint ioaddr = dev->base_addr;
dev477drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev498drivers/net/at1700.cdev->name, pkt_len);
dev506drivers/net/at1700.cdev->name, pkt_len);
dev512drivers/net/at1700.cskb->dev = dev;
dev518drivers/net/at1700.cprintk("%s: Rxed packet of length %d: ", dev->name, pkt_len);
dev544drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev550drivers/net/at1700.cstatic int net_close(struct device *dev)
dev552drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev553drivers/net/at1700.cint ioaddr = dev->base_addr;
dev557drivers/net/at1700.cdev->tbusy = 1;
dev558drivers/net/at1700.cdev->start = 0;
dev574drivers/net/at1700.cnet_get_stats(struct device *dev)
dev576drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev592drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev594drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev131drivers/net/atp.cextern int atp_probe(struct device *dev);
dev133drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
dev134drivers/net/atp.cstatic void get_node_ID(struct device *dev);
dev136drivers/net/atp.cstatic int net_open(struct device *dev);
dev137drivers/net/atp.cstatic void hardware_init(struct device *dev);
dev140drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev142drivers/net/atp.cstatic void net_rx(struct device *dev);
dev144drivers/net/atp.cstatic int net_close(struct device *dev);
dev145drivers/net/atp.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev146drivers/net/atp.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev156drivers/net/atp.catp_init(struct device *dev)
dev159drivers/net/atp.cint base_addr = dev->base_addr;
dev162drivers/net/atp.creturn atp_probe1(dev, base_addr);
dev171drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
dev178drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
dev208drivers/net/atp.cdev->irq = 7;
dev210drivers/net/atp.cdev->irq = 5;
dev214drivers/net/atp.cdev->base_addr = ioaddr;
dev217drivers/net/atp.cget_node_ID(dev);
dev220drivers/net/atp.c"%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr,
dev221drivers/net/atp.cdev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev222drivers/net/atp.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev231drivers/net/atp.cether_setup(dev);
dev232drivers/net/atp.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev233drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev237drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev242drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev243drivers/net/atp.cif (dev->mem_end & 0xf)
dev244drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev246drivers/net/atp.cdev->open    = net_open;
dev247drivers/net/atp.cdev->stop    = net_close;
dev248drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev249drivers/net/atp.cdev->get_stats  = net_get_stats;
dev250drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev256drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev258drivers/net/atp.cshort ioaddr = dev->base_addr;
dev270drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev318drivers/net/atp.cstatic int net_open(struct device *dev)
dev324drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev325drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev326drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt)) {
dev330drivers/net/atp.chardware_init(dev);
dev331drivers/net/atp.cdev->start = 1;
dev337drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev339drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev340drivers/net/atp.cint ioaddr = dev->base_addr;
dev346drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev351drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev369drivers/net/atp.cdev->tbusy = 0;
dev370drivers/net/atp.cdev->interrupt = 0;
dev411drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev413drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev414drivers/net/atp.cint ioaddr = dev->base_addr;
dev416drivers/net/atp.cif (dev->tbusy) {
dev419drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev422drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev427drivers/net/atp.chardware_init(dev);
dev428drivers/net/atp.cdev->tbusy=0;
dev429drivers/net/atp.cdev->trans_start = jiffies;
dev436drivers/net/atp.cdev_tint(dev);
dev442drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev443drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev457drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev468drivers/net/atp.cdev->trans_start = jiffies;
dev486drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev491drivers/net/atp.cif (dev == NULL) {
dev495drivers/net/atp.cdev->interrupt = 1;
dev497drivers/net/atp.cioaddr = dev->base_addr;
dev498drivers/net/atp.clp = (struct net_local *)dev->priv;
dev507drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev524drivers/net/atp.cnet_rx(dev);
dev529drivers/net/atp.cnet_rx(dev);
dev530drivers/net/atp.cdev->last_rx = jiffies;
dev544drivers/net/atp.chardware_init(dev);
dev560drivers/net/atp.cdev->tbusy = 0;
dev565drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev568drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev569drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev572drivers/net/atp.chardware_init(dev);
dev584drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev597drivers/net/atp.cdev->interrupt = 0;
dev603drivers/net/atp.cstatic void net_rx(struct device *dev)
dev605drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev606drivers/net/atp.cint ioaddr = dev->base_addr;
dev615drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev624drivers/net/atp.cdev->name, rx_head.rx_status);
dev625drivers/net/atp.chardware_init(dev);
dev634drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev639drivers/net/atp.cskb->dev = dev;
dev641drivers/net/atp.cread_block(ioaddr, pkt_len, skb->data, dev->if_port);
dev682drivers/net/atp.cnet_close(struct device *dev)
dev684drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev685drivers/net/atp.cint ioaddr = dev->base_addr;
dev687drivers/net/atp.cdev->tbusy = 1;
dev688drivers/net/atp.cdev->start = 0;
dev696drivers/net/atp.cfree_irq(dev->irq);
dev697drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev708drivers/net/atp.cnet_get_stats(struct device *dev)
dev710drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev721drivers/net/atp.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev723drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev724drivers/net/atp.cshort ioaddr = dev->base_addr;
dev210drivers/net/d_link.cstatic int    d_link_read_status(struct device *dev);
dev211drivers/net/d_link.cstatic unsigned  char  d_link_read_byte(unsigned char type, struct device *dev);
dev214drivers/net/d_link.cstatic int  d_link_open(struct device *dev);
dev215drivers/net/d_link.cstatic int  d_link_close(struct device *dev);
dev216drivers/net/d_link.cstatic struct netstats *get_stats(struct device *dev);
dev217drivers/net/d_link.cstatic int  d_link_start_xmit(struct sk_buff *skb, struct device *dev);
dev221drivers/net/d_link.cstatic int  d_link_tx_intr(struct device *dev, int irq_status);
dev222drivers/net/d_link.cstatic void  d_link_rx_intr(struct device *dev);
dev225drivers/net/d_link.cstatic void  trigger_interrupt(struct device *dev);
dev226drivers/net/d_link.cint    d_link_init(struct device *dev);
dev227drivers/net/d_link.cstatic void  adapter_init(struct device *dev);
dev277drivers/net/d_link.cd_link_read_status(struct device *dev)
dev289drivers/net/d_link.cd_link_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev307drivers/net/d_link.cd_link_open(struct device *dev)
dev312drivers/net/d_link.cprintk ("%s: unable to get IRQ %d\n", dev->name, D_LINK_IRQ);
dev315drivers/net/d_link.cirq2dev_map[D_LINK_IRQ] = dev;
dev317drivers/net/d_link.cadapter_init(dev);
dev340drivers/net/d_link.cd_link_close(struct device *dev)
dev351drivers/net/d_link.cdev->start = 0;
dev359drivers/net/d_link.cget_stats(struct device *dev)
dev361drivers/net/d_link.creturn (struct netstats *)(dev->priv);
dev365drivers/net/d_link.ctrigger_interrupt(struct device *dev)
dev379drivers/net/d_link.cd_link_start_xmit(struct sk_buff *skb, struct device *dev)
dev393drivers/net/d_link.cdev_tint(dev);
dev398drivers/net/d_link.ctickssofar = jiffies - dev->trans_start;
dev405drivers/net/d_link.cdev->name,
dev410drivers/net/d_link.cadapter_init(dev);
dev430drivers/net/d_link.cdev->trans_start = jiffies;
dev431drivers/net/d_link.cdev->tbusy = 0;  /* allow more packets into adapter */
dev437drivers/net/d_link.cdev->tbusy = !free_tx_pages;
dev457drivers/net/d_link.cstruct device  *dev = irq2dev_map[irq];
dev463drivers/net/d_link.cif ((dev == NULL) || (dev->start == 0) || (D_LINK_IRQ != irq)) {
dev464drivers/net/d_link.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev468drivers/net/d_link.cdev->interrupt = 1;
dev470drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev476drivers/net/d_link.cd_link_rx_intr(dev);
dev482drivers/net/d_link.cretrig = d_link_tx_intr(dev, irq_status);
dev486drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev495drivers/net/d_link.cdev->interrupt = 0;
dev499drivers/net/d_link.ctrigger_interrupt(dev);
dev506drivers/net/d_link.cd_link_tx_intr(struct device *dev, int irq_status)
dev522drivers/net/d_link.c((struct netstats *)(dev->priv))->tx_packets++;
dev523drivers/net/d_link.cdev->tbusy = 0;
dev528drivers/net/d_link.cdev->trans_start = jiffies;
dev542drivers/net/d_link.cd_link_rx_intr(struct device *dev)
dev552drivers/net/d_link.csize = d_link_read_byte(RX_LEN, dev);  /* low byte */
dev553drivers/net/d_link.csize += (d_link_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev563drivers/net/d_link.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev569drivers/net/d_link.cdev->name, size);
dev581drivers/net/d_link.c*buffer = d_link_read_byte(READ_DATA, dev);
dev583drivers/net/d_link.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev585drivers/net/d_link.cif (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev))
dev586drivers/net/d_link.cprintk("%s: receive buffers full.\n", dev->name);
dev595drivers/net/d_link.cd_link_init(struct device *dev)
dev599drivers/net/d_link.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev607drivers/net/d_link.c(void)d_link_read_status(dev);
dev610drivers/net/d_link.cif (d_link_read_status(dev) & 0xf0) {
dev623drivers/net/d_link.cdev->dev_addr[i] = d_link_read_byte(READ_DATA, dev);
dev624drivers/net/d_link.cdev->broadcast[i] = 0xff;
dev628drivers/net/d_link.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev630drivers/net/d_link.cdev->dev_addr[0] = 0x00;
dev631drivers/net/d_link.cdev->dev_addr[1] = 0x80;
dev632drivers/net/d_link.cdev->dev_addr[2] = 0xc8;
dev633drivers/net/d_link.cdev->dev_addr[3] &= 0x0f;
dev634drivers/net/d_link.cdev->dev_addr[3] |= 0x70;
dev640drivers/net/d_link.cprintk(", Ethernet Address: %2.2X", dev->dev_addr[0]);
dev642drivers/net/d_link.cprintk(":%2.2X",dev->dev_addr[i]);
dev646drivers/net/d_link.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev647drivers/net/d_link.cmemset(dev->priv, 0, sizeof(struct netstats));
dev648drivers/net/d_link.cdev->get_stats = get_stats;
dev650drivers/net/d_link.cdev->open = d_link_open;
dev651drivers/net/d_link.cdev->stop = d_link_close;
dev652drivers/net/d_link.cdev->hard_start_xmit = &d_link_start_xmit;
dev654drivers/net/d_link.cether_setup(dev);
dev661drivers/net/d_link.cadapter_init(struct device *dev)
dev666drivers/net/d_link.cdev->tbusy = 0;    /* Transmit busy...  */
dev667drivers/net/d_link.cdev->interrupt = 0;
dev668drivers/net/d_link.cdev->start = 1;
dev682drivers/net/d_link.cd_link_put_byte(dev->dev_addr[i]);
dev215drivers/net/de600.cstatic int    de600_read_status(struct device *dev);
dev216drivers/net/de600.cstatic unsigned  char  de600_read_byte(unsigned char type, struct device *dev);
dev219drivers/net/de600.cstatic int  de600_open(struct device *dev);
dev220drivers/net/de600.cstatic int  de600_close(struct device *dev);
dev221drivers/net/de600.cstatic struct netstats *get_stats(struct device *dev);
dev222drivers/net/de600.cstatic int  de600_start_xmit(struct sk_buff *skb, struct device *dev);
dev226drivers/net/de600.cstatic int  de600_tx_intr(struct device *dev, int irq_status);
dev227drivers/net/de600.cstatic void  de600_rx_intr(struct device *dev);
dev230drivers/net/de600.cstatic void  trigger_interrupt(struct device *dev);
dev231drivers/net/de600.cint    de600_probe(struct device *dev);
dev232drivers/net/de600.cstatic void  adapter_init(struct device *dev);
dev282drivers/net/de600.cde600_read_status(struct device *dev)
dev294drivers/net/de600.cde600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev312drivers/net/de600.cde600_open(struct device *dev)
dev319drivers/net/de600.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ);
dev322drivers/net/de600.cirq2dev_map[DE600_IRQ] = dev;
dev327drivers/net/de600.cadapter_init(dev);
dev350drivers/net/de600.cde600_close(struct device *dev)
dev361drivers/net/de600.cdev->start = 0;
dev372drivers/net/de600.cget_stats(struct device *dev)
dev374drivers/net/de600.creturn (struct netstats *)(dev->priv);
dev378drivers/net/de600.ctrigger_interrupt(struct device *dev)
dev392drivers/net/de600.cde600_start_xmit(struct sk_buff *skb, struct device *dev)
dev406drivers/net/de600.cdev_tint(dev);
dev411drivers/net/de600.ctickssofar = jiffies - dev->trans_start;
dev418drivers/net/de600.cdev->name,
dev423drivers/net/de600.cadapter_init(dev);
dev443drivers/net/de600.cdev->trans_start = jiffies;
dev444drivers/net/de600.cdev->tbusy = 0;  /* allow more packets into adapter */
dev450drivers/net/de600.cdev->tbusy = !free_tx_pages;
dev470drivers/net/de600.cstruct device  *dev = irq2dev_map[irq];
dev476drivers/net/de600.cif ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) {
dev477drivers/net/de600.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev481drivers/net/de600.cdev->interrupt = 1;
dev483drivers/net/de600.cirq_status = de600_read_status(dev);
dev489drivers/net/de600.cde600_rx_intr(dev);
dev495drivers/net/de600.cretrig = de600_tx_intr(dev, irq_status);
dev499drivers/net/de600.cirq_status = de600_read_status(dev);
dev508drivers/net/de600.cdev->interrupt = 0;
dev512drivers/net/de600.ctrigger_interrupt(dev);
dev519drivers/net/de600.cde600_tx_intr(struct device *dev, int irq_status)
dev535drivers/net/de600.c((struct netstats *)(dev->priv))->tx_packets++;
dev536drivers/net/de600.cdev->tbusy = 0;
dev541drivers/net/de600.cdev->trans_start = jiffies;
dev555drivers/net/de600.cde600_rx_intr(struct device *dev)
dev565drivers/net/de600.csize = de600_read_byte(RX_LEN, dev);  /* low byte */
dev566drivers/net/de600.csize += (de600_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev576drivers/net/de600.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev582drivers/net/de600.cdev->name, size);
dev594drivers/net/de600.c*buffer = de600_read_byte(READ_DATA, dev);
dev596drivers/net/de600.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev598drivers/net/de600.cif (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev))
dev599drivers/net/de600.cprintk("%s: receive buffers full.\n", dev->name);
dev608drivers/net/de600.cde600_probe(struct device *dev)
dev614drivers/net/de600.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev622drivers/net/de600.c(void)de600_read_status(dev);
dev625drivers/net/de600.cif (de600_read_status(dev) & 0xf0) {
dev638drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
dev639drivers/net/de600.cdev->broadcast[i] = 0xff;
dev643drivers/net/de600.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev645drivers/net/de600.cdev->dev_addr[0] = 0x00;
dev646drivers/net/de600.cdev->dev_addr[1] = 0x80;
dev647drivers/net/de600.cdev->dev_addr[2] = 0xc8;
dev648drivers/net/de600.cdev->dev_addr[3] &= 0x0f;
dev649drivers/net/de600.cdev->dev_addr[3] |= 0x70;
dev655drivers/net/de600.cprintk(", Ethernet Address: %2.2X", dev->dev_addr[0]);
dev657drivers/net/de600.cprintk(":%2.2X",dev->dev_addr[i]);
dev662drivers/net/de600.cdev->priv = &de600_netstats;
dev664drivers/net/de600.cmemset(dev->priv, 0, sizeof(struct netstats));
dev665drivers/net/de600.cdev->get_stats = get_stats;
dev667drivers/net/de600.cdev->open = de600_open;
dev668drivers/net/de600.cdev->stop = de600_close;
dev669drivers/net/de600.cdev->hard_start_xmit = &de600_start_xmit;
dev671drivers/net/de600.cether_setup(dev);
dev678drivers/net/de600.cadapter_init(struct device *dev)
dev683drivers/net/de600.cdev->tbusy = 0;    /* Transmit busy...  */
dev684drivers/net/de600.cdev->interrupt = 0;
dev685drivers/net/de600.cdev->start = 1;
dev699drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
dev266drivers/net/depca.cstatic int depca_open(struct device *dev);
dev267drivers/net/depca.cstatic int depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev269drivers/net/depca.cstatic int depca_close(struct device *dev);
dev270drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev272drivers/net/depca.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev278drivers/net/depca.cstatic int depca_probe1(struct device *dev, short ioaddr);
dev279drivers/net/depca.cstatic void depca_init_ring(struct device *dev);
dev280drivers/net/depca.cstatic int depca_rx(struct device *dev);
dev281drivers/net/depca.cstatic int depca_tx(struct device *dev);
dev283drivers/net/depca.cstatic void LoadCSRs(struct device *dev);
dev284drivers/net/depca.cstatic int InitRestartDepca(struct device *dev);
dev318drivers/net/depca.cint depca_probe(struct device *dev)
dev321drivers/net/depca.cint base_addr = dev->base_addr;
dev328drivers/net/depca.cstatus = depca_probe1(dev, base_addr);
dev349drivers/net/depca.cwhile (dev->next != (struct device *)NULL) {
dev350drivers/net/depca.cif (dev->next->base_addr == 0xffe0) break;
dev351drivers/net/depca.cdev = dev->next;         /* walk through eth device list */
dev360drivers/net/depca.cif (dev->next == (struct device *)NULL) {
dev361drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev373drivers/net/depca.cif ((dev->next != (struct device *)NULL) &&
dev375drivers/net/depca.cdev = dev->next;         /* point to the new device */
dev376drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev377drivers/net/depca.csprintf(dev->name,"eth%d", num_eth); /* New device name */
dev378drivers/net/depca.cdev->base_addr = ioaddr; /* assign the io address */
dev379drivers/net/depca.cdev->next = (struct device *)NULL; /* mark the end of list */
dev380drivers/net/depca.cdev->init = &depca_probe;/* initialisation routine */
dev383drivers/net/depca.ceth0 = dev;                /* remember the first device */
dev384drivers/net/depca.cstatus = depca_probe1(dev, ioaddr);
dev390drivers/net/depca.cif (eth0) dev = eth0;             /* restore the first device */
dev393drivers/net/depca.cif (status) dev->base_addr = base_addr;
dev399drivers/net/depca.cdepca_probe1(struct device *dev, short ioaddr)
dev441drivers/net/depca.cdev->base_addr = ioaddr;
dev443drivers/net/depca.cprintk("%s: DEPCA at %#3x is a %s, ", dev->name, ioaddr, name);
dev462drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev464drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev540drivers/net/depca.cdev->priv = (void *)((mem_start + 0x07) & ~0x07);      
dev541drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev542drivers/net/depca.cmemset(dev->priv, 0, sizeof(struct depca_private));
dev545drivers/net/depca.cmem_start = ((((unsigned long)dev->priv + 
dev588drivers/net/depca.cdepca_init_ring(dev);
dev593drivers/net/depca.cLoadCSRs(dev);
dev607drivers/net/depca.cdev->dma = 0;
dev611drivers/net/depca.cif (dev->irq < 2) {
dev617drivers/net/depca.cdev->irq = autoirq_report(1);
dev618drivers/net/depca.cif (dev->irq) {
dev619drivers/net/depca.cprintk(" and probed IRQ%d.\n", dev->irq);
dev625drivers/net/depca.cprintk(". Assigned IRQ%d.\n", dev->irq);
dev636drivers/net/depca.cdev->open = &depca_open;
dev637drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev638drivers/net/depca.cdev->stop = &depca_close;
dev639drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev641drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev644drivers/net/depca.cdev->mem_start = 0;
dev647drivers/net/depca.cether_setup(dev);
dev658drivers/net/depca.cdepca_open(struct device *dev)
dev660drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev661drivers/net/depca.cint i,nicsr,ioaddr = dev->base_addr;
dev663drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt)) {
dev664drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev668drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev680drivers/net/depca.cdepca_init_ring(dev);                 /* initialize the descriptor rings */
dev681drivers/net/depca.cLoadCSRs(dev);
dev684drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev729drivers/net/depca.cdev->tbusy = 0;                         
dev730drivers/net/depca.cdev->interrupt = 0;
dev731drivers/net/depca.cdev->start = 1;
dev733drivers/net/depca.cInitRestartDepca(dev);                /* ignore the return status */
dev746drivers/net/depca.cdepca_init_ring(struct device *dev)
dev748drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev765drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev780drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev782drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev783drivers/net/depca.cint ioaddr = dev->base_addr;
dev787drivers/net/depca.cif (dev->tbusy) {
dev788drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev794drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev796drivers/net/depca.cdepca_init_ring(dev);
dev797drivers/net/depca.cLoadCSRs(dev);
dev798drivers/net/depca.cInitRestartDepca(dev);
dev799drivers/net/depca.cdev->tbusy=0;
dev800drivers/net/depca.cdev->trans_start = jiffies;
dev806drivers/net/depca.cdev_tint(dev);
dev816drivers/net/depca.cprintk("%s: depca_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev822drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev823drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev866drivers/net/depca.cdev->trans_start = jiffies;
dev877drivers/net/depca.cdev->tbusy=0;
dev904drivers/net/depca.cdev->name, entry, (unsigned long) &lp->tx_ring[entry],
dev907drivers/net/depca.cdev->name, pkt[0], pkt[1], pkt[2], pkt[5], pkt[6],
dev914drivers/net/depca.cdev->tbusy=0;
dev932drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev936drivers/net/depca.cif (dev == NULL) {
dev940drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev941drivers/net/depca.cioaddr = dev->base_addr;
dev945drivers/net/depca.cif (dev->interrupt)
dev946drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev948drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev963drivers/net/depca.cdev->name, csr0, inw(DEPCA_DATA));
dev966drivers/net/depca.cdepca_rx(dev);
dev969drivers/net/depca.cdepca_tx(dev);
dev977drivers/net/depca.cdev->name, inw(DEPCA_ADDR),
dev985drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev990drivers/net/depca.cdepca_rx(struct device *dev)
dev992drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1034drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1039drivers/net/depca.cskb->dev = dev;
dev1071drivers/net/depca.cdepca_tx(struct device *dev)
dev1073drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1078drivers/net/depca.cdev->name, dirty_tx, (lp->cur_tx & lp->rmask));
dev1110drivers/net/depca.cdev->name, dirty_tx,
dev1118drivers/net/depca.cdepca_close(struct device *dev)
dev1120drivers/net/depca.cint ioaddr = dev->base_addr;
dev1122drivers/net/depca.cdev->start = 0;
dev1123drivers/net/depca.cdev->tbusy = 1;
dev1129drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1138drivers/net/depca.cfree_irq(dev->irq);
dev1140drivers/net/depca.cirq2dev_map[dev->irq] = 0;
dev1145drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1147drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1148drivers/net/depca.cint ioaddr = dev->base_addr;
dev1159drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1161drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1162drivers/net/depca.cint ioaddr = dev->base_addr;
dev1176drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1181drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1188drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1190drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1206drivers/net/depca.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1208drivers/net/depca.cshort ioaddr = dev->base_addr;
dev1209drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev55drivers/net/dummy.cstatic int dummy_xmit(struct sk_buff *skb, struct device *dev);
dev57drivers/net/dummy.cstatic struct enet_statistics *dummy_get_stats(struct device *dev);
dev61drivers/net/dummy.cdummy_init(struct device *dev)
dev68drivers/net/dummy.cdev->hard_start_xmit  = dummy_xmit;
dev71drivers/net/dummy.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev72drivers/net/dummy.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev73drivers/net/dummy.cdev->get_stats    = dummy_get_stats;
dev77drivers/net/dummy.cether_setup(dev);
dev83drivers/net/dummy.cdummy_xmit(struct sk_buff *skb, struct device *dev)
dev89drivers/net/dummy.cif (skb == NULL || dev == NULL)
dev96drivers/net/dummy.cstats = (struct enet_statistics *)dev->priv;
dev105drivers/net/dummy.cdummy_get_stats(struct device *dev)
dev107drivers/net/dummy.cstruct enet_statistics *stats = (struct enet_statistics*) dev->priv;
dev281drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev283drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev284drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev285drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev287drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev288drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev289drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev290drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev293drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev294drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev295drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev305drivers/net/eexpress.cexpress_probe(struct device *dev)
dev309drivers/net/eexpress.cint base_addr = dev->base_addr;
dev312drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev331drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev338drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev343drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev360drivers/net/eexpress.cdev->base_addr = ioaddr;
dev363drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev364drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev375drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev376drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev378drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev387drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev388drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev394drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev395drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev397drivers/net/eexpress.cdev->open    = eexp_open;
dev398drivers/net/eexpress.cdev->stop    = eexp_close;
dev399drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev400drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev401drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev405drivers/net/eexpress.cether_setup(dev);
dev415drivers/net/eexpress.ceexp_open(struct device *dev)
dev417drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev419drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev422drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev424drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev425drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt)) {
dev430drivers/net/eexpress.cinit_82586_mem(dev);
dev433drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev435drivers/net/eexpress.cdev->tbusy = 0;
dev436drivers/net/eexpress.cdev->interrupt = 0;
dev437drivers/net/eexpress.cdev->start = 1;
dev442drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev444drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev445drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev447drivers/net/eexpress.cif (dev->tbusy) {
dev450drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev454drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev462drivers/net/eexpress.cinit_82586_mem(dev);
dev470drivers/net/eexpress.cdev->tbusy=0;
dev471drivers/net/eexpress.cdev->trans_start = jiffies;
dev478drivers/net/eexpress.cdev_tint(dev);
dev483drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev484drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev490drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev491drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev492drivers/net/eexpress.cdev->trans_start = jiffies;
dev494drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev512drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev517drivers/net/eexpress.cif (dev == NULL) {
dev521drivers/net/eexpress.cdev->interrupt = 1;
dev523drivers/net/eexpress.cioaddr = dev->base_addr;
dev524drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev529drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev533drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev547drivers/net/eexpress.cdev->tbusy = 0;
dev568drivers/net/eexpress.ceexp_rx(dev);
dev574drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev578drivers/net/eexpress.cdev->name, status);
dev593drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev601drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
dev612drivers/net/eexpress.cinit_rx_bufs(dev);
dev622drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev626drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev631drivers/net/eexpress.ceexp_close(struct device *dev)
dev633drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev635drivers/net/eexpress.cdev->tbusy = 1;
dev636drivers/net/eexpress.cdev->start = 0;
dev645drivers/net/eexpress.cfree_irq(dev->irq);
dev647drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev657drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev659drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev673drivers/net/eexpress.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev675drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev738drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev740drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev741drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev756drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
dev766drivers/net/eexpress.cinit_rx_bufs(dev);
dev780drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev790drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev796drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev)
dev798drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev799drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev837drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev839drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev840drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev877drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev882drivers/net/eexpress.cdev->tbusy = 0;
dev886drivers/net/eexpress.ceexp_rx(struct device *dev)
dev888drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev889drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev911drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev929drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev934drivers/net/eexpress.cskb->dev = dev;
dev951drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev965drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
dev48drivers/net/hp.cint hp_probe(struct device *dev);
dev49drivers/net/hp.cint hpprobe1(struct device *dev, int ioaddr);
dev51drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev52drivers/net/hp.cstatic int hp_block_input(struct device *dev, int count,
dev54drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev56drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev67drivers/net/hp.cint hp_probe(struct device *dev)
dev70drivers/net/hp.cshort ioaddr = dev->base_addr;
dev73drivers/net/hp.creturn hpprobe1(dev, ioaddr);
dev80drivers/net/hp.cif (hpprobe1(dev, *port) == 0) {
dev87drivers/net/hp.cint hpprobe1(struct device *dev, int ioaddr)
dev91drivers/net/hp.cunsigned char *station_addr = dev->dev_addr;
dev115drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev121drivers/net/hp.cif (dev->irq < 2) {
dev135drivers/net/hp.cdev->irq = *irqp;
dev145drivers/net/hp.cif (dev->irq == 2)
dev146drivers/net/hp.cdev->irq = 9;
dev147drivers/net/hp.cif (irqaction(dev->irq, &ei_sigaction)) {
dev148drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev157drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev159drivers/net/hp.cethdev_init(dev);
dev170drivers/net/hp.chp_init_card(dev);
dev176drivers/net/hp.chp_reset_8390(struct device *dev)
dev178drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev192drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev204drivers/net/hp.chp_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev206drivers/net/hp.cint nic_base = dev->base_addr;
dev232drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev239drivers/net/hp.chp_block_output(struct device *dev, int count,
dev242drivers/net/hp.cint nic_base = dev->base_addr;
dev289drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev297drivers/net/hp.chp_init_card(struct device *dev)
dev299drivers/net/hp.cint irq = dev->irq;
dev300drivers/net/hp.cNS8390_init(dev, 0);
dev302drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev41drivers/net/lance.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev204drivers/net/lance.cstatic int lance_open(struct device *dev);
dev205drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev206drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev207drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev209drivers/net/lance.cstatic int lance_close(struct device *dev);
dev210drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev212drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev236drivers/net/lance.cstruct device *dev;
dev256drivers/net/lance.cdev = init_etherdev(0, sizeof(struct lance_private)
dev260drivers/net/lance.cprintk("%s: LANCE at %#3x,", dev->name, ioaddr);
dev265drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev267drivers/net/lance.cdev->base_addr = ioaddr;
dev271drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev272drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev273drivers/net/lance.clp->rx_buffs = (long)dev->priv + sizeof(struct lance_private);
dev295drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev311drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev312drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev313drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev316drivers/net/lance.cif (dev->mem_start & 0x07)
dev317drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev318drivers/net/lance.celse if (dev->dma == 0)
dev319drivers/net/lance.cdev->dma = LANCE_DMA;
dev323drivers/net/lance.cif (dev->irq < 2) {
dev330drivers/net/lance.cdev->irq = autoirq_report(1);
dev331drivers/net/lance.cif (dev->irq)
dev333drivers/net/lance.cdev->irq, dev->dma);
dev339drivers/net/lance.cprintk(" assigned IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev353drivers/net/lance.cdev->open = &lance_open;
dev354drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev355drivers/net/lance.cdev->stop = &lance_close;
dev356drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev357drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev364drivers/net/lance.clance_open(struct device *dev)
dev366drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev367drivers/net/lance.cint ioaddr = dev->base_addr;
dev370drivers/net/lance.cif (request_irq(dev->irq, &lance_interrupt)) {
dev374drivers/net/lance.cif (request_dma(dev->dma)) {
dev375drivers/net/lance.cfree_irq(dev->irq);
dev378drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev384drivers/net/lance.cenable_dma(dev->dma);
dev385drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev399drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev402drivers/net/lance.clance_init_ring(dev);
dev415drivers/net/lance.cdev->tbusy = 0;
dev416drivers/net/lance.cdev->interrupt = 0;
dev417drivers/net/lance.cdev->start = 1;
dev426drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev433drivers/net/lance.clance_init_ring(struct device *dev)
dev435drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev454drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev462drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev464drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev465drivers/net/lance.cint ioaddr = dev->base_addr;
dev469drivers/net/lance.cif (dev->tbusy) {
dev470drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev475drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev494drivers/net/lance.clance_init_ring(dev);
dev497drivers/net/lance.cdev->tbusy=0;
dev498drivers/net/lance.cdev->trans_start = jiffies;
dev504drivers/net/lance.cdev_tint(dev);
dev513drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev520drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev521drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev527drivers/net/lance.cprintk("%s: tx queue lock!.\n", dev->name);
dev554drivers/net/lance.cdev->name, (int)(skb->data));
dev574drivers/net/lance.cdev->trans_start = jiffies;
dev579drivers/net/lance.cdev->tbusy=0;
dev590drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev594drivers/net/lance.cif (dev == NULL) {
dev599drivers/net/lance.cioaddr = dev->base_addr;
dev600drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev601drivers/net/lance.cif (dev->interrupt)
dev602drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev604drivers/net/lance.cdev->interrupt = 1;
dev606drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev607drivers/net/lance.ccsr0 = inw(dev->base_addr + LANCE_DATA);
dev610drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev614drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev617drivers/net/lance.clance_rx(dev);
dev669drivers/net/lance.cif (dev->tbusy  &&  dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
dev671drivers/net/lance.cdev->tbusy = 0;
dev684drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev685drivers/net/lance.coutw(0x7f40, dev->base_addr + LANCE_DATA);
dev689drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev690drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev692drivers/net/lance.cdev->interrupt = 0;
dev697drivers/net/lance.clance_rx(struct device *dev)
dev699drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev726drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev739drivers/net/lance.cskb->dev = dev;
dev758drivers/net/lance.clance_close(struct device *dev)
dev760drivers/net/lance.cint ioaddr = dev->base_addr;
dev761drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev763drivers/net/lance.cdev->start = 0;
dev764drivers/net/lance.cdev->tbusy = 1;
dev773drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev779drivers/net/lance.cdisable_dma(dev->dma);
dev781drivers/net/lance.cfree_irq(dev->irq);
dev782drivers/net/lance.cfree_dma(dev->dma);
dev784drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev790drivers/net/lance.clance_get_stats(struct device *dev)
dev792drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev793drivers/net/lance.cshort ioaddr = dev->base_addr;
dev813drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev815drivers/net/lance.cshort ioaddr = dev->base_addr;
dev44drivers/net/loopback.cloopback_xmit(struct sk_buff *skb, struct device *dev)
dev46drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev49drivers/net/loopback.cif (skb == NULL || dev == NULL) return(0);
dev52drivers/net/loopback.cif (dev->tbusy != 0) {
dev57drivers/net/loopback.cdev->tbusy = 1;
dev60drivers/net/loopback.cdone = dev_rint(skb->data, skb->len, 0, dev);
dev64drivers/net/loopback.cdone = dev_rint(NULL, 0, 0, dev);
dev68drivers/net/loopback.cdev->tbusy = 0;
dev89drivers/net/loopback.cget_stats(struct device *dev)
dev91drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev94drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev96drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev102drivers/net/loopback.cloopback_init(struct device *dev)
dev106drivers/net/loopback.cdev->mtu    = 2000;      /* MTU      */
dev107drivers/net/loopback.cdev->tbusy    = 0;
dev108drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev109drivers/net/loopback.cdev->open    = NULL;
dev111drivers/net/loopback.cdev->hard_header  = eth_header;
dev112drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev113drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev114drivers/net/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev115drivers/net/loopback.cdev->type_trans  = eth_type_trans;
dev116drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev117drivers/net/loopback.cdev->open    = loopback_open;
dev119drivers/net/loopback.cdev->hard_header_length = 0;
dev120drivers/net/loopback.cdev->addr_len    = 0;
dev121drivers/net/loopback.cdev->type    = 0;      /* loopback_type (0)  */
dev122drivers/net/loopback.cdev->hard_header  = NULL;
dev123drivers/net/loopback.cdev->type_trans  = NULL;
dev124drivers/net/loopback.cdev->rebuild_header  = NULL;
dev128drivers/net/loopback.cdev->flags    = IFF_LOOPBACK;
dev129drivers/net/loopback.cdev->family    = AF_INET;
dev131drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev132drivers/net/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev133drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev134drivers/net/loopback.cdev->pa_alen    = sizeof(unsigned long);
dev136drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev137drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev138drivers/net/loopback.cdev->get_stats = get_stats;
dev142drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev32drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev42drivers/net/ne.cint ne_probe(struct device *dev);
dev43drivers/net/ne.cstatic int neprobe1(int ioaddr, struct device *dev, int verbose);
dev45drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev46drivers/net/ne.cstatic int ne_block_input(struct device *dev, int count,
dev48drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev73drivers/net/ne.cint ne_probe(struct device *dev)
dev76drivers/net/ne.cshort ioaddr = dev->base_addr;
dev81drivers/net/ne.creturn ! neprobe1(ioaddr, dev, 1);
dev88drivers/net/ne.cif (inb_p(*port) != 0xff && neprobe1(*port, dev, 0)) {
dev89drivers/net/ne.cdev->base_addr = *port;
dev93drivers/net/ne.cdev->base_addr = ioaddr;
dev97drivers/net/ne.cstatic int neprobe1(int ioaddr, struct device *dev, int verbose)
dev173drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev203drivers/net/ne.cif (dev->irq < 2) {
dev210drivers/net/ne.cdev->irq = autoirq_report(0);
dev212drivers/net/ne.cprintk(" autoirq is %d", dev->irq);
dev213drivers/net/ne.c} else if (dev->irq == 2)
dev216drivers/net/ne.cdev->irq = 9;
dev221drivers/net/ne.cint irqval = irqaction (dev->irq, &ei_sigaction);
dev223drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev228drivers/net/ne.cdev->base_addr = ioaddr;
dev234drivers/net/ne.cethdev_init(dev);
dev236drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev255drivers/net/ne.cNS8390_init(dev, 0);
dev256drivers/net/ne.creturn dev->base_addr;
dev262drivers/net/ne.cne_reset_8390(struct device *dev)
dev274drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev285drivers/net/ne.cne_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev288drivers/net/ne.cint nic_base = dev->base_addr;
dev294drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock);
dev330drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev337drivers/net/ne.cne_block_output(struct device *dev, int count,
dev352drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock);
dev405drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev85drivers/net/net_init.cinit_etherdev(struct device *dev, int sizeof_private, unsigned long *mem_startp)
dev90drivers/net/net_init.cif (dev == NULL) {
dev94drivers/net/net_init.cdev = (struct device *)*mem_startp;
dev97drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev98drivers/net/net_init.cmemset(dev, 0, sizeof(alloc_size));
dev99drivers/net/net_init.cdev->name = (char *)(dev + 1);
dev101drivers/net/net_init.cdev->priv = dev->name + sizeof("eth%d ");
dev105drivers/net/net_init.cif (dev->name &&
dev106drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev109drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev110drivers/net/net_init.cethdev_index[i] = dev;
dev115drivers/net/net_init.cether_setup(dev); /* should this be called here? */
dev122drivers/net/net_init.c(*old_devp)->next = dev;
dev123drivers/net/net_init.cdev->next = 0;
dev125drivers/net/net_init.creturn dev;
dev128drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev134drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev137drivers/net/net_init.cif (dev->name && (strncmp(dev->name, "eth", 3) == 0)) {
dev138drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
dev140drivers/net/net_init.cethdev_index[i] = dev;
dev142drivers/net/net_init.celse if (dev != ethdev_index[i]) {
dev145drivers/net/net_init.cdev->name);
dev149drivers/net/net_init.cdev->hard_header  = eth_header;
dev150drivers/net/net_init.cdev->rebuild_header = eth_rebuild_header;
dev151drivers/net/net_init.cdev->type_trans = eth_type_trans;
dev153drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev154drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev155drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev156drivers/net/net_init.cdev->addr_len  = ETH_ALEN;
dev158drivers/net/net_init.cdev->broadcast[i]=0xff;
dev162drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev163drivers/net/net_init.cdev->family    = AF_INET;
dev164drivers/net/net_init.cdev->pa_addr  = 0;
dev165drivers/net/net_init.cdev->pa_brdaddr = 0;
dev166drivers/net/net_init.cdev->pa_mask  = 0;
dev167drivers/net/net_init.cdev->pa_alen  = sizeof(unsigned long);
dev170drivers/net/net_init.cint ether_config(struct device *dev, struct ifmap *map)
dev173drivers/net/net_init.cdev->mem_start = map->mem_start;
dev175drivers/net/net_init.cdev->mem_end = map->mem_end;
dev177drivers/net/net_init.cdev->base_addr = map->base_addr;
dev179drivers/net/net_init.cdev->irq = map->irq;
dev181drivers/net/net_init.cdev->dma = map->dma;
dev183drivers/net/net_init.cdev->if_port = map->port;
dev187drivers/net/net_init.cint register_netdev(struct device *dev)
dev196drivers/net/net_init.cif (dev && dev->init) {
dev197drivers/net/net_init.cif (dev->init(dev) != 0) {
dev202drivers/net/net_init.cif (dev->name &&
dev203drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev206drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev207drivers/net/net_init.cprintk("device '%s' loaded\n", dev->name);
dev208drivers/net/net_init.cethdev_index[i] = dev;
dev217drivers/net/net_init.cd->next = dev;
dev220drivers/net/net_init.cdev_base = dev;
dev221drivers/net/net_init.cdev->next = NULL;
dev227drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev238drivers/net/net_init.cif (dev == NULL) {
dev244drivers/net/net_init.cif (dev->start)
dev245drivers/net/net_init.cprintk("'%s' busy\n", dev->name);
dev247drivers/net/net_init.cif (dev_base == dev)
dev248drivers/net/net_init.cdev_base = dev->next;
dev250drivers/net/net_init.cwhile (d && (d->next != dev))
dev253drivers/net/net_init.cif (d && (d->next == dev)) {
dev254drivers/net/net_init.cd->next = dev->next;
dev255drivers/net/net_init.cprintk("'%s' unlinked\n", dev->name);
dev258drivers/net/net_init.cprintk("'%s' not found\n", dev->name);
dev264drivers/net/net_init.cif (ethdev_index[i] == dev) {
dev155drivers/net/plip.cextern int plip_probe(int ioaddr, struct device *dev);
dev156drivers/net/plip.cstatic int plip_open(struct device *dev);
dev157drivers/net/plip.cstatic int plip_close(struct device *dev);
dev158drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev159drivers/net/plip.cstatic int plip_header (unsigned char *buff, struct device *dev,
dev169drivers/net/plip.cstatic void plip_device_clear(struct device *dev);
dev170drivers/net/plip.cstatic void plip_receiver_error(struct device *dev);
dev171drivers/net/plip.cstatic void plip_set_physicaladdr(struct device *dev, unsigned long ipaddr);
dev175drivers/net/plip.cstatic int plip_receive_packet(struct device *dev);
dev176drivers/net/plip.cstatic int plip_send_packet(struct device *dev, unsigned char *buf, int length);
dev177drivers/net/plip.cstatic int plip_send_start(struct device *dev, struct ethhdr *eth);
dev179drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev182drivers/net/plip.cplip_init(struct device *dev)
dev184drivers/net/plip.cint port_base = dev->base_addr;
dev203drivers/net/plip.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev204drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct netstats));
dev207drivers/net/plip.cskb_queue_head_init(&dev->buffs[i]);
dev209drivers/net/plip.cdev->hard_header = &plip_header;
dev210drivers/net/plip.cdev->rebuild_header = eth_rebuild_header;
dev211drivers/net/plip.cdev->type_trans = eth_type_trans;
dev213drivers/net/plip.cdev->open = &plip_open;
dev214drivers/net/plip.cdev->stop = &plip_close;
dev215drivers/net/plip.cdev->hard_start_xmit = &plip_tx_packet;
dev216drivers/net/plip.cdev->get_stats = &plip_get_stats;
dev219drivers/net/plip.cdev->type = ARPHRD_ETHER;
dev220drivers/net/plip.cdev->hard_header_len = ETH_HLEN;
dev221drivers/net/plip.cdev->mtu = PLIP_MTU;  /* PLIP may later negotiate max pkt size */
dev222drivers/net/plip.cdev->addr_len = ETH_ALEN;
dev223drivers/net/plip.cfor (i = 0; i < dev->addr_len; i++) {
dev224drivers/net/plip.cdev->broadcast[i]=0xff;
dev225drivers/net/plip.cdev->dev_addr[i] = 0;
dev228drivers/net/plip.cdev->name, dev->base_addr, dev->irq);
dev243drivers/net/plip.cstatic int plip_open(struct device *dev)
dev245drivers/net/plip.cif (dev->irq == 0)
dev246drivers/net/plip.cdev->irq = 7;
dev248drivers/net/plip.cif (request_irq(dev->irq , &plip_interrupt) != 0) {
dev250drivers/net/plip.cPRINTK(("%s: couldn't get IRQ %d.\n", dev->name, dev->irq));
dev254drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev256drivers/net/plip.cplip_device_clear(dev);
dev257drivers/net/plip.cdev->tbusy = 0;
dev258drivers/net/plip.cdev->interrupt = 0;
dev259drivers/net/plip.cdev->start = 1;
dev268drivers/net/plip.cplip_close(struct device *dev)
dev270drivers/net/plip.cdev->tbusy = 1;
dev271drivers/net/plip.cdev->start = 0;
dev273drivers/net/plip.cfree_irq(dev->irq);
dev274drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev276drivers/net/plip.coutb(0x00, dev->base_addr);    /* Release the interrupt. */
dev284drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev288drivers/net/plip.cif (dev->tbusy || dev->interrupt) {  /* Do timeouts, to avoid hangs. */
dev289drivers/net/plip.cint tickssofar = jiffies - dev->trans_start;
dev292drivers/net/plip.cprintk("%s: transmit timed out\n", dev->name);
dev294drivers/net/plip.cplip_device_clear(dev);
dev302drivers/net/plip.cdev_tint(dev);
dev306drivers/net/plip.cdev->trans_start = jiffies;
dev307drivers/net/plip.cret_val = plip_send_packet(dev, skb->data, skb->len);
dev310drivers/net/plip.cdev->tbusy = 0;
dev316drivers/net/plip.cplip_header (unsigned char *buff, struct device *dev,
dev320drivers/net/plip.cif (dev->dev_addr[0] == 0) {
dev322drivers/net/plip.cplip_set_physicaladdr(dev, dev->pa_addr);
dev324drivers/net/plip.creturn eth_header(buff, dev, type, daddr, saddr, len, skb);
dev328drivers/net/plip.cplip_device_clear(struct device *dev)
dev330drivers/net/plip.cdev->interrupt = 0;
dev331drivers/net/plip.cdev->tbusy = 0;
dev332drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev333drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev337drivers/net/plip.cplip_receiver_error(struct device *dev)
dev339drivers/net/plip.cdev->interrupt = 0;
dev340drivers/net/plip.cdev->tbusy = 0;
dev341drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev342drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev346drivers/net/plip.cget_byte(struct device *dev)
dev352drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev356drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev363drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev365drivers/net/plip.coutb(0x10, dev->base_addr + PAR_DATA);
dev369drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev376drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev379drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev394drivers/net/plip.cstruct device *dev = irq2dev_map[irq];
dev397drivers/net/plip.cif (dev == NULL) {
dev401drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev402drivers/net/plip.cif (dev->tbusy || dev->interrupt) return;
dev403drivers/net/plip.cdev->interrupt = 1;
dev404drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL);  /* Disable the rx interrupt. */
dev406drivers/net/plip.cPRINTK2(("%s: interrupt.  ", dev->name));
dev411drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0xc0) {
dev414drivers/net/plip.cdev->name, inb(dev->base_addr + PAR_STATUS)));
dev415drivers/net/plip.cplip_device_clear(dev);
dev420drivers/net/plip.cif (plip_receive_packet(dev)) {
dev423drivers/net/plip.cplip_receiver_error(dev);
dev425drivers/net/plip.cplip_device_clear(dev);
dev430drivers/net/plip.cplip_receive_packet(struct device *dev)
dev438drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev440drivers/net/plip.coutb(1, dev->base_addr + PAR_DATA);    /* Ack: 'Ready' */
dev445drivers/net/plip.clength = get_byte(dev);
dev446drivers/net/plip.clength |= get_byte(dev) << 8;
dev451drivers/net/plip.c*eth_p = get_byte(dev);
dev455drivers/net/plip.cif (length > dev->mtu || length < 8) {
dev456drivers/net/plip.cPRINTK2(("%s: bogus packet size %d.\n", dev->name, length));
dev467drivers/net/plip.cdev->name,length));
dev483drivers/net/plip.cunsigned char new_byte = get_byte(dev);
dev488drivers/net/plip.cif (checksum != get_byte(dev)) {
dev492drivers/net/plip.c} else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) {
dev493drivers/net/plip.cprintk("%s: rcv buff full.\n", dev->name);
dev503drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev505drivers/net/plip.cwhile ( (inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0x80 ) {
dev518drivers/net/plip.cstatic int send_byte(struct device *dev, unsigned char val)
dev523drivers/net/plip.coutb((val & 0xf), dev->base_addr); /* this makes data bits more stable */
dev525drivers/net/plip.coutb(0x10 | (val & 0xf), dev->base_addr);
dev527drivers/net/plip.cwhile( inb(dev->base_addr+PAR_STATUS) & 0x80 )
dev532drivers/net/plip.coutb(0x10 | (val >> 4), dev->base_addr);
dev533drivers/net/plip.coutb(val >> 4, dev->base_addr);
dev535drivers/net/plip.cwhile( (inb(dev->base_addr+PAR_STATUS) & 0x80) == 0 )
dev557drivers/net/plip.cplip_send_start(struct device *dev, struct ethhdr *eth)
dev562drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev567drivers/net/plip.cwhile ( ((status = inb(dev->base_addr+PAR_STATUS)) & 0x08) == 0 ) {
dev568drivers/net/plip.cdev->tbusy = 1;
dev569drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL); /* Disable my rx intr. */
dev570drivers/net/plip.coutb(0x08, dev->base_addr + PAR_DATA);   /* Trigger remote rx intr. */
dev580drivers/net/plip.cif (plip_receive_packet(dev)) {
dev583drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev585drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev593drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev599drivers/net/plip.cplip_device_clear(dev);
dev602drivers/net/plip.cdev->name));
dev611drivers/net/plip.cplip_send_packet(struct device *dev, unsigned char *buf, int length)
dev617drivers/net/plip.cdev->name, length, buf[0], buf[1], buf[2], buf[3], buf[4]));
dev618drivers/net/plip.cif (length > dev->mtu) {
dev619drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, length);
dev622drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev628drivers/net/plip.cwhile ( (i = (inb(dev->base_addr+PAR_STATUS) & 0xe8)) != 0x80 ) {
dev647drivers/net/plip.cif (plip_send_start(dev, (struct ethhdr *)buf) < 0)
dev656drivers/net/plip.csend_byte(dev, length); 
dev657drivers/net/plip.csend_byte(dev, length >> 8);
dev665drivers/net/plip.csend_byte(dev, *buf);
dev671drivers/net/plip.cif (send_byte(dev, buf[i]) < 0) {
dev676drivers/net/plip.csend_byte(dev, checksum & 0xff);
dev682drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev685drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xe8) != 0x80) {
dev693drivers/net/plip.cif (inb(dev->base_addr + PAR_STATUS) & 0x10) {
dev698drivers/net/plip.cplip_device_clear(dev);
dev708drivers/net/plip.cplip_set_physicaladdr(struct device *dev, unsigned long ipaddr)
dev715drivers/net/plip.cunsigned char *addr = dev->dev_addr;
dev719drivers/net/plip.cPRINTK2(("%s: set physical address to %08x\n", dev->name, ipaddr));
dev762drivers/net/plip.cplip_get_stats(struct device *dev)
dev764drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev97drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr);
dev116drivers/net/ppp.cstatic int ppp_header(unsigned char *buff, struct device *dev,
dev119drivers/net/ppp.cstatic int ppp_rebuild_header(void *buff, struct device *dev);
dev121drivers/net/ppp.cstruct device *dev);
dev206drivers/net/ppp.cppp_init(struct device *dev)
dev211drivers/net/ppp.cppp = &ppp_ctrl[dev->base_addr];
dev257drivers/net/ppp.cppp->line  = dev->base_addr;
dev259drivers/net/ppp.cppp->dev   = dev;
dev265drivers/net/ppp.cdev->mtu             = PPP_MTU;
dev266drivers/net/ppp.cdev->hard_start_xmit = ppp_xmit;
dev267drivers/net/ppp.cdev->open            = ppp_dev_open;
dev268drivers/net/ppp.cdev->do_ioctl        = ppp_dev_ioctl;
dev269drivers/net/ppp.cdev->stop            = ppp_dev_close;
dev270drivers/net/ppp.cdev->get_stats       = ppp_get_stats;
dev271drivers/net/ppp.cdev->hard_header     = ppp_header;
dev272drivers/net/ppp.cdev->type_trans      = ppp_type_trans;
dev273drivers/net/ppp.cdev->rebuild_header  = ppp_rebuild_header;
dev274drivers/net/ppp.cdev->hard_header_len = 0;
dev275drivers/net/ppp.cdev->addr_len        = 0;
dev276drivers/net/ppp.cdev->type            = ARPHRD_PPP;
dev279drivers/net/ppp.cdev->add_arp         = ppp_add_arp;
dev280drivers/net/ppp.cdev->queue_xmit      = dev_queue_xmit;
dev284drivers/net/ppp.cskb_queue_head_init(&dev->buffs[i]);  /* = NULL if NET02D */
dev287drivers/net/ppp.cdev->flags      = IFF_POINTOPOINT;
dev288drivers/net/ppp.cdev->family     = AF_INET;
dev289drivers/net/ppp.cdev->pa_addr    = 0;
dev290drivers/net/ppp.cdev->pa_brdaddr = 0;
dev291drivers/net/ppp.cdev->pa_mask    = 0;
dev292drivers/net/ppp.cdev->pa_alen    = sizeof(unsigned long);
dev361drivers/net/ppp.cstruct device *dev;
dev368drivers/net/ppp.cdev = ppp->dev;
dev380drivers/net/ppp.cdev->name, new_mtu, new_mru));
dev417drivers/net/ppp.cdev->mem_start  = (unsigned long) new_xbuff;
dev418drivers/net/ppp.cdev->mem_end    = (unsigned long) (dev->mem_start + mtu);
dev420drivers/net/ppp.cdev->rmem_start = (unsigned long) new_rbuff;
dev422drivers/net/ppp.cdev->rmem_end   = (unsigned long) (dev->rmem_start + mru);
dev436drivers/net/ppp.cdev->mtu    = new_mtu;
dev463drivers/net/ppp.cif (ppp->dev) {
dev464drivers/net/ppp.cppp->dev->flags &= ~IFF_UP; /* down the device */
dev465drivers/net/ppp.cppp->dev->flags |= IFF_POINTOPOINT;
dev498drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name));
dev510drivers/net/ppp.cppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown"));
dev543drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev561drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name));
dev569drivers/net/ppp.cppp_dev_open(struct device *dev)
dev571drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev574drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev578drivers/net/ppp.cdev->name));
dev583drivers/net/ppp.cdev->name));
dev590drivers/net/ppp.cppp_dev_close(struct device *dev)
dev592drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev596drivers/net/ppp.cdev->name));
dev601drivers/net/ppp.cdev->name));
dev606drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr)
dev608drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev650drivers/net/ppp.cif (((struct ppp *) ppp)->dev->flags & IFF_UP)
dev651drivers/net/ppp.cdev_tint (((struct ppp *) ppp)->dev);
dev1021drivers/net/ppp.cif ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) {
dev1058drivers/net/ppp.cPRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name,
dev1112drivers/net/ppp.cPRINTK ((KERN_INFO "%s <--    src %lx dst %lx len %d\n", ppp->dev->name, 
dev1117drivers/net/ppp.cwhile ((dev_rint(c, count, 0, ppp->dev) & ~1) != 0)
dev1312drivers/net/ppp.cif (ppp->mtu != ppp->dev->mtu)  /* Someone has been ifconfigging */
dev1313drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev1400drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, temp_i);
dev1460drivers/net/ppp.cput_fs_long (ppp->dev->base_addr, l);
dev1461drivers/net/ppp.cPRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %d", ppp->dev->base_addr));
dev1662drivers/net/ppp.cppp_xmit(struct sk_buff *skb, struct device *dev)
dev1677drivers/net/ppp.cppp   = &ppp_ctrl[dev->base_addr];
dev1683drivers/net/ppp.cPRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, 
dev1689drivers/net/ppp.cPRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name));
dev1693drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev1696drivers/net/ppp.cdev->name));
dev1748drivers/net/ppp.cdev->name, (int) proto, (int) len, (int) iph->saddr,
dev1799drivers/net/ppp.cppp_type_trans (struct sk_buff *skb, struct device *dev)
dev1806drivers/net/ppp.cppp_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1813drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev)
dev1819drivers/net/ppp.cppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev1826drivers/net/ppp.cppp_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1833drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1841drivers/net/ppp.cppp_get_stats (struct device *dev)
dev1843drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev1910drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1911drivers/net/ppp.cppp->dev->tbusy = 1;
dev1923drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1924drivers/net/ppp.cppp->dev->tbusy = 0;
dev99drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev101drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, short ioaddr);
dev102drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev103drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev105drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev106drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev107drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev108drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev111drivers/net/skeleton.c#define tx_done(dev) 1
dev113drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev123drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev126drivers/net/skeleton.cint base_addr = dev->base_addr;
dev129drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev139drivers/net/skeleton.cdev->base_addr = ioaddr;
dev140drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev144drivers/net/skeleton.cdev->base_addr = base_addr;
dev148drivers/net/skeleton.cint netcard_probe1(struct device *dev, short ioaddr)
dev163drivers/net/skeleton.cprintk("%s: %s found at %#3x, IRQ %d.\n", dev->name,
dev164drivers/net/skeleton.c"network card", dev->base_addr, dev->irq);
dev171drivers/net/skeleton.cif (dev->irq == -1)
dev173drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev177drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev179drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev180drivers/net/skeleton.c} else if (dev->irq == 2)
dev183drivers/net/skeleton.cdev->irq = 9;
dev185drivers/net/skeleton.c{   int irqval = request_irq(dev->irq, &net_interrupt);
dev187drivers/net/skeleton.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev188drivers/net/skeleton.cdev->irq, irqval);
dev201drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev202drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev204drivers/net/skeleton.cdev->open    = net_open;
dev205drivers/net/skeleton.cdev->stop    = net_close;
dev206drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev207drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev208drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev212drivers/net/skeleton.cether_setup(dev);
dev226drivers/net/skeleton.cnet_open(struct device *dev)
dev228drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev229drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev233drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt)) {
dev239drivers/net/skeleton.cif (request_dma(dev->dma)) {
dev240drivers/net/skeleton.cfree_irq(dev->irq);
dev243drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev250drivers/net/skeleton.cdev->tbusy = 0;
dev251drivers/net/skeleton.cdev->interrupt = 0;
dev252drivers/net/skeleton.cdev->start = 1;
dev257drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev259drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev260drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev262drivers/net/skeleton.cif (dev->tbusy) {
dev265drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev268drivers/net/skeleton.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev269drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev271drivers/net/skeleton.cchipset_init(dev, 1);
dev272drivers/net/skeleton.cdev->tbusy=0;
dev273drivers/net/skeleton.cdev->trans_start = jiffies;
dev280drivers/net/skeleton.cdev_tint(dev);
dev286drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev287drivers/net/skeleton.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev293drivers/net/skeleton.cdev->trans_start = jiffies;
dev311drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev315drivers/net/skeleton.cif (dev == NULL) {
dev319drivers/net/skeleton.cdev->interrupt = 1;
dev321drivers/net/skeleton.cioaddr = dev->base_addr;
dev322drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev328drivers/net/skeleton.cnet_rx(dev);
dev332drivers/net/skeleton.cdev->tbusy = 0;
dev346drivers/net/skeleton.cnet_rx(struct device *dev)
dev348drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev349drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev371drivers/net/skeleton.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev376drivers/net/skeleton.cskb->dev = dev;
dev379drivers/net/skeleton.cmemcpy(skb->data, (void*)dev->rmem_start,
dev397drivers/net/skeleton.cnet_close(struct device *dev)
dev399drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev400drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev404drivers/net/skeleton.cdev->tbusy = 1;
dev405drivers/net/skeleton.cdev->start = 0;
dev409drivers/net/skeleton.cdisable_dma(dev->dma);
dev414drivers/net/skeleton.cfree_irq(dev->irq);
dev415drivers/net/skeleton.cfree_dma(dev->dma);
dev417drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev428drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev430drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev431drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev448drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev450drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev76drivers/net/slip.csl_initialize(struct slip *sl, struct device *dev)
dev93drivers/net/slip.csl->line    = dev->base_addr;
dev95drivers/net/slip.csl->dev    = dev;
dev105drivers/net/slip.cdev->rmem_end    = (unsigned long) NULL;
dev106drivers/net/slip.cdev->rmem_start  = (unsigned long) NULL;
dev107drivers/net/slip.cdev->mem_end    = (unsigned long) NULL;
dev108drivers/net/slip.cdev->mem_start  = (unsigned long) NULL;
dev109drivers/net/slip.cdev->type    = ARPHRD_SLIP + sl->mode;
dev110drivers/net/slip.cif(dev->type == 260)  /* KISS */
dev111drivers/net/slip.cdev->type=ARPHRD_AX25;
dev159drivers/net/slip.cstruct device *dev=sl->dev;
dev164drivers/net/slip.csl->mtu=dev->mtu;
dev165drivers/net/slip.cl=(dev->mtu *2);
dev182drivers/net/slip.cdev->mtu=omtu;
dev194drivers/net/slip.ctf=(unsigned char *)sl->dev->mem_start;
dev195drivers/net/slip.csl->dev->mem_start=(unsigned long)tb;
dev196drivers/net/slip.csl->dev->mem_end=(unsigned long) (sl->dev->mem_start + l);
dev197drivers/net/slip.crf=(unsigned char *)sl->dev->rmem_start;
dev198drivers/net/slip.csl->dev->rmem_start=(unsigned long)rb;
dev199drivers/net/slip.csl->dev->rmem_end=(unsigned long) (sl->dev->rmem_start + l);
dev201drivers/net/slip.csl->xbuff = (unsigned char *) sl->dev->mem_start;
dev202drivers/net/slip.csl->rbuff = (unsigned char *) sl->dev->rmem_start;
dev203drivers/net/slip.csl->rend  = (unsigned char *) sl->dev->rmem_end;
dev265drivers/net/slip.csl->dev->tbusy = 1;
dev279drivers/net/slip.csl->dev->tbusy = 0;
dev342drivers/net/slip.cdone = dev_rint(sl->rbuff, count, 0, sl->dev);
dev357drivers/net/slip.cif(sl->mtu != sl->dev->mtu)  /* Someone has been ifconfigging */
dev381drivers/net/slip.cdev_tint(sl->dev);
dev420drivers/net/slip.cdev_tint(sl->dev);
dev445drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev452drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev471drivers/net/slip.cif(!skb->arp && dev->rebuild_header(skb->data,dev))
dev473drivers/net/slip.cskb->dev=dev;
dev509drivers/net/slip.csl_type_trans (struct sk_buff *skb, struct device *dev)
dev512drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev522drivers/net/slip.csl_header(unsigned char *buff, struct device *dev, unsigned short type,
dev527drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev529drivers/net/slip.creturn ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb);
dev539drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev544drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev547drivers/net/slip.creturn ax25_rebuild_header(buff,dev,raddr, skb);
dev556drivers/net/slip.csl_open(struct device *dev)
dev562drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev566drivers/net/slip.csl->dev = dev;
dev576drivers/net/slip.cl = (dev->mtu * 2);
dev590drivers/net/slip.csl->mtu    = dev->mtu;
dev591drivers/net/slip.csl->dev->mem_start  = (unsigned long) p;
dev592drivers/net/slip.csl->dev->mem_end  = (unsigned long) (sl->dev->mem_start + l);
dev596drivers/net/slip.ckfree_s((void *)sl->dev->mem_start,l+4);
dev599drivers/net/slip.csl->dev->rmem_start  = (unsigned long) p;
dev600drivers/net/slip.csl->dev->rmem_end  = (unsigned long) (sl->dev->rmem_start + l);
dev602drivers/net/slip.csl->xbuff    = (unsigned char *) sl->dev->mem_start;
dev603drivers/net/slip.csl->rbuff    = (unsigned char *) sl->dev->rmem_start;
dev604drivers/net/slip.csl->rend    = (unsigned char *) sl->dev->rmem_end;
dev613drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev620drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev621drivers/net/slip.ckfree((unsigned char *)sl->dev->rmem_start);
dev626drivers/net/slip.cdev->flags|=IFF_UP;
dev628drivers/net/slip.cif(dev->pa_addr==0)
dev629drivers/net/slip.cdev->pa_addr=ntohl(0xC0000001);
dev636drivers/net/slip.csl_close(struct device *dev)
dev640drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev654drivers/net/slip.csl_initialize(sl, dev);
dev678drivers/net/slip.cif(sl->mtu!=sl->dev->mtu)
dev724drivers/net/slip.c(void) sl_open(sl->dev);
dev732drivers/net/slip.csl_get_stats(struct device *dev)
dev739drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev778drivers/net/slip.c(void) dev_close(sl->dev);
dev943drivers/net/slip.cint sl_set_mac_address(struct device *dev, void *addr)
dev948drivers/net/slip.cmemcpy_fromfs(dev->dev_addr,addr,7);  /* addr is an AX.25 shifted ASCII mac address */
dev952drivers/net/slip.cstatic int sl_set_dev_mac_address(struct device *dev, void *addr)
dev954drivers/net/slip.cmemcpy(dev->dev_addr,addr,7);
dev977drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev989drivers/net/slip.csl->dev->addr_len=7;  /* sizeof an AX.25 addr */
dev990drivers/net/slip.csl->dev->hard_header_len=17;  /* We don't do digipeaters */
dev994drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev995drivers/net/slip.csl->dev->hard_header_len=0;
dev998drivers/net/slip.csl->dev->type=ARPHRD_SLIP+sl->mode;
dev999drivers/net/slip.cif(sl->dev->type==260)
dev1000drivers/net/slip.csl->dev->type=ARPHRD_AX25;
dev1004drivers/net/slip.creturn sl_set_mac_address(sl->dev,arg);
dev1019drivers/net/slip.cslip_init(struct device *dev)
dev1028drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev1057drivers/net/slip.csl_initialize(sl, dev);
dev1068drivers/net/slip.cdev->mtu    = SL_MTU;
dev1069drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1070drivers/net/slip.cdev->open    = sl_open;
dev1071drivers/net/slip.cdev->stop    = sl_close;
dev1072drivers/net/slip.cdev->hard_header  = sl_header;
dev1073drivers/net/slip.cdev->type_trans  = sl_type_trans;
dev1074drivers/net/slip.cdev->get_stats  = sl_get_stats;
dev1077drivers/net/slip.cdev->set_mac_address  = sl_set_dev_mac_address;
dev1080drivers/net/slip.cdev->hard_header_len  = 0;
dev1081drivers/net/slip.cdev->addr_len    = 0;
dev1082drivers/net/slip.cdev->type    = 0;
dev1084drivers/net/slip.cmemcpy(dev->broadcast,ax25_bcast,7);    /* Only activated in AX.25 mode */
dev1085drivers/net/slip.cmemcpy(dev->dev_addr,ax25_test,7);    /*    ""      ""       ""    "" */
dev1087drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1089drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1092drivers/net/slip.cdev->flags    = 0;
dev1093drivers/net/slip.cdev->family    = AF_INET;
dev1094drivers/net/slip.cdev->pa_addr    = 0;
dev1095drivers/net/slip.cdev->pa_brdaddr  = 0;
dev1096drivers/net/slip.cdev->pa_mask    = 0;
dev1097drivers/net/slip.cdev->pa_alen    = sizeof(unsigned long);
dev40drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev81drivers/net/slip.hextern int  slip_init(struct device *dev);
dev36drivers/net/smc-ultra.cint ultraprobe(int ioaddr, struct device *dev);
dev37drivers/net/smc-ultra.cint ultraprobe1(int ioaddr, struct device *dev);
dev39drivers/net/smc-ultra.cstatic int ultra_open(struct device *dev);
dev40drivers/net/smc-ultra.cstatic void ultra_reset_8390(struct device *dev);
dev41drivers/net/smc-ultra.cstatic int ultra_block_input(struct device *dev, int count,
dev43drivers/net/smc-ultra.cstatic void ultra_block_output(struct device *dev, int count,
dev45drivers/net/smc-ultra.cstatic int ultra_close_card(struct device *dev);
dev60drivers/net/smc-ultra.cint ultra_probe(struct device *dev)
dev63drivers/net/smc-ultra.cunsigned short ioaddr = dev->base_addr;
dev66drivers/net/smc-ultra.creturn ultraprobe1(ioaddr, dev);
dev74drivers/net/smc-ultra.c&& ultraprobe1(*port, dev) == 0)
dev77drivers/net/smc-ultra.cdev->base_addr = ioaddr;
dev81drivers/net/smc-ultra.cint ultraprobe1(int ioaddr, struct device *dev)
dev84drivers/net/smc-ultra.cunsigned char *station_addr = dev->dev_addr;
dev100drivers/net/smc-ultra.cprintk("%s: SMC Ultra at %#3x,", dev->name, ioaddr);
dev119drivers/net/smc-ultra.cif (dev->irq < 2) {
dev130drivers/net/smc-ultra.cdev->irq = irq;
dev139drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev145drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev149drivers/net/smc-ultra.cethdev_init(dev);
dev157drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev158drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev159drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev162drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev169drivers/net/smc-ultra.cdev->open = &ultra_open;
dev170drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev171drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev177drivers/net/smc-ultra.cultra_open(struct device *dev)
dev179drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev181drivers/net/smc-ultra.cif (irqaction(dev->irq, &ei_sigaction))
dev187drivers/net/smc-ultra.creturn ei_open(dev);
dev191drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev193drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev209drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev211drivers/net/smc-ultra.cvoid *xfer_start = (void *)(dev->mem_start + ring_offset
dev214drivers/net/smc-ultra.cif (xfer_start + count > (void*) dev->rmem_end) {
dev216drivers/net/smc-ultra.cint semi_count = (void*)dev->rmem_end - xfer_start;
dev219drivers/net/smc-ultra.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev220drivers/net/smc-ultra.creturn dev->rmem_start + count;
dev228drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev232drivers/net/smc-ultra.c= (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8);
dev239drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev241drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev243drivers/net/smc-ultra.cdev->start = 0;
dev244drivers/net/smc-ultra.cdev->tbusy = 1;
dev247drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev250drivers/net/smc-ultra.cfree_irq(dev->irq);
dev251drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev253drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev37drivers/net/wd.cint wd_probe(struct device *dev);
dev38drivers/net/wd.cint wdprobe1(int ioaddr, struct device *dev);
dev40drivers/net/wd.cstatic int wd_open(struct device *dev);
dev41drivers/net/wd.cstatic void wd_reset_8390(struct device *dev);
dev42drivers/net/wd.cstatic int wd_block_input(struct device *dev, int count,
dev44drivers/net/wd.cstatic void wd_block_output(struct device *dev, int count,
dev46drivers/net/wd.cstatic int wd_close_card(struct device *dev);
dev69drivers/net/wd.cint wd_probe(struct device *dev)
dev72drivers/net/wd.cshort ioaddr = dev->base_addr;
dev77drivers/net/wd.creturn ! wdprobe1(ioaddr, dev);
dev84drivers/net/wd.c&& wdprobe1(*port, dev))
dev87drivers/net/wd.cdev->base_addr = ioaddr;
dev91drivers/net/wd.cint wdprobe1(int ioaddr, struct device *dev)
dev94drivers/net/wd.cunsigned char *station_addr = dev->dev_addr;
dev105drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
dev124drivers/net/wd.cdev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12;
dev125drivers/net/wd.cdev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1;
dev166drivers/net/wd.cdev->mem_start = WD_SHMEM;
dev168drivers/net/wd.cif (dev->mem_start == 0) {
dev173drivers/net/wd.cdev->mem_start = 0xd0000;
dev174drivers/net/wd.cprintk(" assigning address %#lx", dev->mem_start);
dev180drivers/net/wd.cdev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19);
dev186drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
dev188drivers/net/wd.cif (dev->irq < 2) {
dev205drivers/net/wd.cdev->irq = autoirq_report(2);
dev209drivers/net/wd.cprintk(" autoirq is %d", dev->irq);
dev210drivers/net/wd.cif (dev->irq < 2)
dev211drivers/net/wd.cdev->irq = word16 ? 10 : 5;
dev213drivers/net/wd.cdev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)];
dev214drivers/net/wd.c} else if (dev->irq == 2)    /* Fixup bogosity: IRQ2 is really IRQ9 */
dev215drivers/net/wd.cdev->irq = 9;
dev219drivers/net/wd.cif (irqaction (dev->irq, &ei_sigaction)) {
dev220drivers/net/wd.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev226drivers/net/wd.cethdev_init(dev);
dev235drivers/net/wd.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev236drivers/net/wd.cdev->mem_end = dev->rmem_end
dev237drivers/net/wd.c= dev->mem_start + (ei_status.stop_page - WD_START_PG)*256;
dev240drivers/net/wd.cmodel_name, dev->irq, dev->mem_start, dev->mem_end-1);
dev247drivers/net/wd.cdev->open = &wd_open;
dev248drivers/net/wd.cdev->stop = &wd_close_card;
dev249drivers/net/wd.cNS8390_init(dev, 0);
dev251drivers/net/wd.creturn dev->base_addr;
dev255drivers/net/wd.cwd_open(struct device *dev)
dev257drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev261drivers/net/wd.cei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB;
dev262drivers/net/wd.cei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16;
dev268drivers/net/wd.creturn ei_open(dev);
dev272drivers/net/wd.cwd_reset_8390(struct device *dev)
dev274drivers/net/wd.cint wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev281drivers/net/wd.coutb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port);
dev283drivers/net/wd.coutb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5);
dev295drivers/net/wd.cwd_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev297drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev298drivers/net/wd.clong xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8);
dev309drivers/net/wd.cif (xfer_start + count > dev->rmem_end) {
dev311drivers/net/wd.cint semi_count = dev->rmem_end - xfer_start;
dev314drivers/net/wd.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev326drivers/net/wd.cwd_block_output(struct device *dev, int count, const unsigned char *buf,
dev329drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev330drivers/net/wd.clong shmem = dev->mem_start + ((start_page - WD_START_PG)<<8);
dev344drivers/net/wd.cwd_close_card(struct device *dev)
dev346drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev349drivers/net/wd.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev350drivers/net/wd.cNS8390_init(dev, 0);
dev964drivers/scsi/aha152x.cint aha152x_biosparam( int size, int dev, int *info_array )
dev967drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%x, size=%d, ", dev, size);
dev981drivers/scsi/aha1542.cprintk("Timed out command pending for %4.4x\n", SCpnt->request.dev);
dev987drivers/scsi/aha1542.cprintk("Other pending command %4.4x\n", SCpnt->request.dev);
dev1068drivers/scsi/aha1542.cint aha1542_biosparam(int size, int dev, int * ip)
dev1074drivers/scsi/aha1542.cdisk = rscsi_disks[MINOR(dev) >> 4].device;
dev493drivers/scsi/aha1740.cint aha1740_biosparam(int size, int dev, int* ip)
dev1143drivers/scsi/buslogic.cSCpnt->request.dev);
dev1150drivers/scsi/buslogic.cSCpnt->request.dev);
dev1184drivers/scsi/buslogic.cint buslogic_biosparam(int size, int dev, int *ip)
dev1193drivers/scsi/buslogic.cdisk = rscsi_disks[MINOR(dev) >> 4].device;
dev366drivers/scsi/constants.cint dev = SCpnt->request.dev;
dev397drivers/scsi/constants.cprintk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]);
dev399drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev427drivers/scsi/constants.cprintk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]);
dev430drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev1464drivers/scsi/fdomain.cint fdomain_16x0_biosparam( int size, int dev, int *info_array )
dev1511drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev396drivers/scsi/pas16.cint pas16_biosparam(int size, int dev, int * ip)
dev193drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev205drivers/scsi/scsi.cint dev, lun, type;
dev220drivers/scsi/scsi.cfor (dev = 0; dev < 8; ++dev)
dev221drivers/scsi/scsi.cif (shpnt->this_id != dev)
dev233drivers/scsi/scsi.cscsi_devices[NR_SCSI_DEVICES].id = dev;
dev249drivers/scsi/scsi.cSCmd.target = dev;
dev252drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev264drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev266drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev299drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev306drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev373drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev378drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev384drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev456drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev463drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev562drivers/scsi/scsi.cif (req && req->dev <= 0)
dev569drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev605drivers/scsi/scsi.creq->dev = -1;
dev609drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev631drivers/scsi/scsi.cint dev = -1;
dev645drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev655drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev661drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev665drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev675drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev705drivers/scsi/scsi.creq->dev = -1;
dev710drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1462drivers/scsi/scsi.cif (SCpnt1->request.dev > 0) {
dev1745drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev1866drivers/scsi/scsi.cSCpnt->request.dev,
dev1895drivers/scsi/scsi.creq->dev,
dev523drivers/scsi/scsi.hreq->dev,req->sector);
dev548drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev555drivers/scsi/scsi.hreq->dev = -1;
dev571drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev65drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev71drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev77drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
dev78drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
dev86drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");  \
dev87drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev96drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev221drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
dev544drivers/scsi/scsi_debug.cint scsi_debug_biosparam(int size, int dev, int* info){
dev79drivers/scsi/scsi_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev89drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev94drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev->index, 1);
dev99drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev102drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev108drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev112drivers/scsi/scsi_ioctl.cif(dev->removable){
dev117drivers/scsi/scsi_ioctl.cif (dev->removable){
dev118drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev125drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev126drivers/scsi/scsi_ioctl.cdev->id,
dev127drivers/scsi/scsi_ioctl.cdev->lun,
dev137drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;
dev142drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev174drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev178drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev->index, 1);
dev183drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev186drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev204drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev215drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev235drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev239drivers/scsi/scsi_ioctl.cif ((cmd != 0 && dev->index > NR_SCSI_DEVICES))
dev245drivers/scsi/scsi_ioctl.cput_fs_long(dev->id + (dev->lun << 8) + 
dev246drivers/scsi/scsi_ioctl.c(dev->host->host_no << 16), (unsigned long *) arg);
dev250drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev251drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev252drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev256drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev257drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev258drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev261drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev264drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev266drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev268drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev271drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev274drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev276drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev279drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev282drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev285drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev298drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev303drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev16drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev17drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev149drivers/scsi/sd.cprintk("sd%d : rw_intr(%d, %d)\n", MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
dev161drivers/scsi/sd.cprintk("sd%d : %d sectors remain.\n", MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors);
dev204drivers/scsi/sd.cMINOR(SCpnt->request.dev));
dev256drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev267drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev271drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev288drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev289drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev298drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev299drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev300drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev323drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev344drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev362drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index);
dev367drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev385drivers/scsi/sd.cint dev, block, this_count;
dev394drivers/scsi/sd.cif(SCpnt->request.dev <= 0) {
dev399drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev404drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev407drivers/scsi/sd.cif (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev413drivers/scsi/sd.cblock += sd[dev].start_sect;
dev414drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev416drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev427drivers/scsi/sd.cprintk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block);
dev433drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev513drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev675drivers/scsi/sd.cprintk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(SCpnt->request.dev),
dev682drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev689drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev694drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev726drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev729drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev774drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev808drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev817drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev833drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev842drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev867drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev877drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev879drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev882drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev890drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1052drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev1059drivers/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
dev19drivers/scsi/sd_ioctl.cint dev = inode->i_rdev;
dev31drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev36drivers/scsi/sd_ioctl.chost->hostt->bios_param(rscsi_disks[MINOR(dev) >> 4].capacity,
dev37drivers/scsi/sd_ioctl.cdev,
dev70drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev72drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1599drivers/scsi/seagate.cint seagate_st0x_biosparam(int size, int dev, int* ip) {
dev1606drivers/scsi/seagate.cdisk = rscsi_disks[MINOR(dev) >> 4].device;
dev57drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev58drivers/scsi/sg.cif ((dev<0) || (dev>=NR_SG))
dev63drivers/scsi/sg.cscsi_generics[dev].timeout=get_fs_long((int *) arg);
dev66drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev68drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev74drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev76drivers/scsi/sg.cif (dev>=NR_SG)
dev82drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev86drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev90drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev93drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev97drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev101drivers/scsi/sg.cif (!scsi_generics[dev].users && scsi_generics[dev].pending && scsi_generics[dev].complete)
dev103drivers/scsi/sg.cscsi_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev104drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev106drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev107drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev108drivers/scsi/sg.cscsi_generics[dev].users++;
dev114drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev115drivers/scsi/sg.cscsi_generics[dev].users--;
dev116drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev117drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev155drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev157drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev188drivers/scsi/sg.cint dev=SCpnt->request.dev;
dev189drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev192drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev193drivers/scsi/sg.cSCpnt->request.dev=-1;
dev203drivers/scsi/sg.cSCpnt->request.dev=-1;
dev204drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev209drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev213drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev262drivers/scsi/sg.cSCpnt->request.dev=dev;
dev214drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev223drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
dev224drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
dev249drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
dev250drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
dev296drivers/scsi/sr.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev305drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev323drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index);
dev328drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
dev349drivers/scsi/sr.cunsigned int dev, block, realcount;
dev356drivers/scsi/sr.cif(SCpnt->request.dev <= 0) {
dev361drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
dev366drivers/scsi/sr.cif (dev >= NR_SR)
dev374drivers/scsi/sr.cif (!scsi_CDs[dev].use)
dev382drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
dev435drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev563drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev570drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev572drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev577drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev594drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev617drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev639drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev662drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev672drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe);
dev674drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev677drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev685drivers/scsi/sr.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev19drivers/scsi/sr_ioctl.cextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev27drivers/scsi/sr_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev52drivers/scsi/sr_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev55drivers/scsi/sr_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev87drivers/scsi/sr_ioctl.cSCpnt->request.dev = -1; /* Deallocate */
dev97drivers/scsi/sr_ioctl.cint dev = inode->i_rdev;
dev100drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev394drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev97drivers/scsi/st.cint dev = SCpnt->request.dev;
dev106drivers/scsi/st.cprintk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result,
dev124drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev125drivers/scsi/st.cscsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT);
dev132drivers/scsi/st.cprintk("st%d: Recovered %s error (%d).\n", dev, stp,
dev133drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev147drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < NR_ST && st_nbr >= 0) {
dev169drivers/scsi/st.cSCpnt->request.dev = -1;
dev171drivers/scsi/st.cSCpnt->request.dev = 0xffff;
dev184drivers/scsi/st.cwrite_behind_check(int dev)
dev189drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev220drivers/scsi/st.cback_over_eof(int dev)
dev223drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev233drivers/scsi/st.cSCpnt->request.dev = dev;
dev238drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev239drivers/scsi/st.cSCpnt->request.dev = -1;
dev247drivers/scsi/st.cflush_write_buffer(int dev)
dev253drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev256drivers/scsi/st.cwrite_behind_check(dev);
dev260drivers/scsi/st.cprintk("st%d: Async write error (flush) %x.\n", dev,
dev278drivers/scsi/st.cprintk("st%d: Flushing %d bytes.\n", dev, transfer);
dev290drivers/scsi/st.cSCpnt->request.dev = dev;
dev295drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev298drivers/scsi/st.cprintk("st%d: Error on flush.\n", dev);
dev316drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev327drivers/scsi/st.cint dev;
dev332drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev333drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev337drivers/scsi/st.creturn flush_write_buffer(dev);
dev351drivers/scsi/st.cresult = back_over_eof(dev); /* Back over the EOF hit */
dev369drivers/scsi/st.cint dev;
dev376drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev377drivers/scsi/st.cif (dev >= NR_ST)
dev379drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev381drivers/scsi/st.cprintk("st%d: Device already in use.\n", dev);
dev390drivers/scsi/st.cprintk("st%d: No free buffers.\n", dev);
dev409drivers/scsi/st.cprintk("st%d: Tape request not allocated", dev);
dev416drivers/scsi/st.cSCpnt->request.dev = dev;
dev422drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev430drivers/scsi/st.cSCpnt->request.dev = dev;
dev436drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev444drivers/scsi/st.cprintk("st%d: No tape.\n", dev);
dev446drivers/scsi/st.cprintk("st%d: Error %x.\n", dev, SCpnt->result);
dev451drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev458drivers/scsi/st.cSCpnt->request.dev = dev;
dev463drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev472drivers/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev480drivers/scsi/st.cprintk("st%d: Can't read block limits.\n", dev);
dev488drivers/scsi/st.cSCpnt->request.dev = dev;
dev493drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev498drivers/scsi/st.cprintk("st%d: No Mode Sense.\n", dev);
dev503drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev507drivers/scsi/st.cprintk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev,
dev520drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev525drivers/scsi/st.cprintk("st%d: Blocksize %d too large for buffer.\n", dev,
dev549drivers/scsi/st.cprintk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev558drivers/scsi/st.cprintk( "st%d: Write protected\n", dev);
dev570drivers/scsi/st.cint dev;
dev577drivers/scsi/st.cdev = MINOR(inode->i_rdev);
dev578drivers/scsi/st.crewind = (dev & 0x80) == 0;
dev579drivers/scsi/st.cdev = dev & 127;
dev580drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev584drivers/scsi/st.cresult = flush_write_buffer(dev);
dev588drivers/scsi/st.cprintk("st%d: File length %ld bytes.\n", dev, filp->f_pos);
dev598drivers/scsi/st.cSCpnt->request.dev = dev;
dev603drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev606drivers/scsi/st.cprintk("st%d: Error on write filemark.\n", dev);
dev612drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev617drivers/scsi/st.cprintk("st%d: Buffer flushed, EOF written\n", dev);
dev623drivers/scsi/st.cback_over_eof(dev);
dev643drivers/scsi/st.cint dev;
dev651drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev652drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev655drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev674drivers/scsi/st.cwrite_behind_check(dev);
dev678drivers/scsi/st.cprintk("st%d: Async write error (write) %x.\n", dev,
dev742drivers/scsi/st.cSCpnt->request.dev = dev;
dev747drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev752drivers/scsi/st.cprintk("st%d: Error on write:\n", dev);
dev781drivers/scsi/st.cdev, transfer);
dev790drivers/scsi/st.cprintk("st%d: EOM with lost data.\n", dev);
dev799drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev829drivers/scsi/st.cSCpnt->request.dev = -1;
dev853drivers/scsi/st.cSCpnt->request.dev = dev;
dev860drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev870drivers/scsi/st.cint dev;
dev877drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev878drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev881drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev902drivers/scsi/st.cprintk("st%d: EOF flag up. Bytes %d\n", dev,
dev941drivers/scsi/st.cSCpnt->request.dev = dev;
dev947drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev955drivers/scsi/st.cprintk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev,
dev982drivers/scsi/st.cprintk("st%d: Incorrect block size.\n", dev);
dev983drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev996drivers/scsi/st.cprintk("st%d: EOM detected (%d bytes read).\n", dev,
dev1011drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1018drivers/scsi/st.cprintk("st%d: Tape error while reading.\n", dev);
dev1020drivers/scsi/st.cSCpnt->request.dev = -1;
dev1030drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1050drivers/scsi/st.cprintk("st%d: EOF up. Left %d, needed %d.\n", dev,
dev1065drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1081drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1092drivers/scsi/st.cint dev, value;
dev1095drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1096drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1105drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes,
dev1119drivers/scsi/st.cprintk("st%d: Write threshold set to %d bytes.\n", dev,
dev1135drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1144drivers/scsi/st.cdev = dev & 127;
dev1145drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1161drivers/scsi/st.cprintk("st%d: Spacing tape forward over %d filemarks.\n", dev,
dev1180drivers/scsi/st.cprintk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp));
dev1194drivers/scsi/st.cprintk("st%d: Spacing tape forward %d blocks.\n", dev,
dev1212drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1228drivers/scsi/st.cprintk("st%d: Writing %d filemarks.\n", dev,
dev1242drivers/scsi/st.cprintk("st%d: Rewinding tape.\n", dev);
dev1254drivers/scsi/st.cprintk("st%d: Unloading tape.\n", dev);
dev1261drivers/scsi/st.cprintk("st%d: No op on tape.\n", dev);
dev1274drivers/scsi/st.cprintk("st%d: Retensioning tape.\n", dev);
dev1290drivers/scsi/st.cprintk("st%d: Spacing to end of recorded medium.\n", dev);
dev1301drivers/scsi/st.cprintk("st%d: Erasing tape.\n", dev);
dev1327drivers/scsi/st.cprintk("st%d: Seeking tape to block %ld.\n", dev, arg);
dev1340drivers/scsi/st.cprintk("st%d: Illegal block size.\n", dev);
dev1368drivers/scsi/st.cprintk("st%d: Setting block size to %d bytes.\n", dev,
dev1373drivers/scsi/st.cprintk("st%d: Setting density code to %x.\n", dev,
dev1376drivers/scsi/st.cprintk("st%d: Setting drive buffer code to %d.\n", dev,
dev1382drivers/scsi/st.cprintk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in);
dev1388drivers/scsi/st.cSCpnt->request.dev = dev;
dev1393drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1397drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1472drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1480drivers/scsi/st.cdev = dev & 127;
dev1481drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1484drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1543drivers/scsi/st.cprintk("st%d: get tape position.\n", dev);
dev1568drivers/scsi/st.cSCpnt->request.dev = dev;
dev1574drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1580drivers/scsi/st.cprintk("st%d: Can't read tape position.\n", dev);
dev1598drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev295drivers/scsi/t128.cint t128_biosparam(int size, int dev, int * ip)
dev980drivers/scsi/ultrastor.cint ultrastor_biosparam(int size, int dev, int * dkinfo)
dev1228drivers/scsi/wd7000.cint wd7000_biosparam(int size, int dev, int* ip)
dev54drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev58drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev61drivers/sound/audio.cdev = dev >> 4;
dev68drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev71drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SAMPLESIZE, bits, 1) != bits)
dev73drivers/sound/audio.caudio_release (dev, file);
dev77drivers/sound/audio.cwr_buff_no[dev] = -1;
dev78drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev84drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev88drivers/sound/audio.cdev = dev >> 4;
dev91drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev93drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev95drivers/sound/audio.cwr_buff_no[dev] = -1;
dev98drivers/sound/audio.cDMAbuf_release (dev, mode);
dev127drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev131drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev133drivers/sound/audio.cdev = dev >> 4;
dev138drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /* Direction changed */
dev140drivers/sound/audio.cwr_buff_no[dev] = -1;
dev143drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev147drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev149drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev151drivers/sound/audio.cwr_buff_no[dev] = -1;
dev158drivers/sound/audio.cif (wr_buff_no[dev] < 0)  /* There is no incomplete buffers */
dev160drivers/sound/audio.cif ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev], &wr_buff_size[dev])) < 0)
dev161drivers/sound/audio.creturn wr_buff_no[dev];
dev162drivers/sound/audio.cwr_buff_ptr[dev] = 0;
dev166drivers/sound/audio.cif (l > (wr_buff_size[dev] - wr_buff_ptr[dev]))
dev167drivers/sound/audio.cl = (wr_buff_size[dev] - wr_buff_ptr[dev]);
dev169drivers/sound/audio.cif (!dsp_devs[dev]->copy_from_user)
dev171drivers/sound/audio.cCOPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l);
dev174drivers/sound/audio.cdsp_devs[dev]->copy_from_user (dev,
dev175drivers/sound/audio.cwr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l);
dev186drivers/sound/audio.ctranslate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
dev191drivers/sound/audio.cwr_buff_ptr[dev] += l;
dev193drivers/sound/audio.cif (wr_buff_ptr[dev] >= wr_buff_size[dev])
dev195drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0)
dev198drivers/sound/audio.cwr_buff_no[dev] = -1;
dev207drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev212drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev214drivers/sound/audio.cdev = dev >> 4;
dev218drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev220drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev222drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev224drivers/sound/audio.cwr_buff_no[dev] = -1;
dev228drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev232drivers/sound/audio.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l)) < 0)
dev252drivers/sound/audio.cDMAbuf_rmchars (dev, buff_no, l);
dev262drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev265drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev267drivers/sound/audio.cdev = dev >> 4;
dev272drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev274drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev276drivers/sound/audio.cwr_buff_no[dev] = -1;
dev278drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev282drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev284drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev286drivers/sound/audio.cwr_buff_no[dev] = -1;
dev292drivers/sound/audio.cwr_buff_no[dev] = -1;
dev293drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev300drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev314drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev320drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev326drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev332drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev336drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev343drivers/sound/audio.caudio_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev64drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev65drivers/sound/dev_table.hvoid (*close) (int dev);
dev66drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev68drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev70drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local);
dev71drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev72drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev73drivers/sound/dev_table.hvoid (*reset) (int dev);
dev74drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev75drivers/sound/dev_table.hint (*has_output_drained)(int dev);
dev76drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev81drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev89drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev90drivers/sound/dev_table.hvoid (*close) (int dev);
dev91drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev92drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int velocity);
dev93drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev94drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev95drivers/sound/dev_table.hvoid (*reset) (int dev);
dev96drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev97drivers/sound/dev_table.hint (*load_patch) (int dev, int format, snd_rw_buf *addr,
dev99drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev100drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev101drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev102drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev103drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev108drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev109drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev110drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev112drivers/sound/dev_table.hvoid (*close) (int dev);
dev113drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev114drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev115drivers/sound/dev_table.hint (*start_read) (int dev);
dev116drivers/sound/dev_table.hint (*end_read) (int dev);
dev117drivers/sound/dev_table.hvoid (*kick)(int dev);
dev118drivers/sound/dev_table.hint (*command) (int dev, unsigned char data);
dev119drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev126drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev127drivers/sound/dev_table.hvoid (*close) (int dev);
dev128drivers/sound/dev_table.hint (*write) (int dev, snd_rw_buf *data);
dev129drivers/sound/dev_table.hint (*read)  (int dev, snd_rw_buf *data);
dev102drivers/sound/dmabuf.creorganize_buffers (int dev)
dev111drivers/sound/dmabuf.csr = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev112drivers/sound/dmabuf.cnc = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev113drivers/sound/dmabuf.csz = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev117drivers/sound/dmabuf.cprintk ("SOUND: Invalid PCM parameters[%d] sr=%d, nc=%d, sz=%d\n", dev, sr, nc, sz);
dev131drivers/sound/dmabuf.cbsz = sound_buffsizes[dev];
dev136drivers/sound/dmabuf.cif (sound_buffcounts[dev] == 1 && bsz == sound_buffsizes[dev])
dev139drivers/sound/dmabuf.cif (dev_subdivision[dev] == 0)
dev140drivers/sound/dmabuf.cdev_subdivision[dev] = 1;  /* Default value */
dev142drivers/sound/dmabuf.cbsz /= dev_subdivision[dev];  /* Use smaller buffers */
dev147drivers/sound/dmabuf.cwhile ((sound_buffsizes[dev] * sound_buffcounts[dev]) / bsz > MAX_SUB_BUFFERS)
dev150drivers/sound/dmabuf.cdev_buffsize[dev] = bsz;
dev157drivers/sound/dmabuf.cfor (i = 0; i < snd_raw_count[dev]; i++)
dev161drivers/sound/dmabuf.cwhile ((p + bsz) <= sound_buffsizes[dev])
dev163drivers/sound/dmabuf.cdev_buf[dev][n] = snd_raw_buf[dev][i] + p;
dev164drivers/sound/dmabuf.cdev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p;
dev170drivers/sound/dmabuf.cdev_nbufs[dev] = n;
dev172drivers/sound/dmabuf.cfor (i = 0; i < dev_nbufs[dev]; i++)
dev174drivers/sound/dmabuf.cdev_counts[dev][i] = 0;
dev177drivers/sound/dmabuf.cbufferalloc_done[dev] = 1;
dev181drivers/sound/dmabuf.cdma_init_buffers (int dev)
dev183drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev184drivers/sound/dmabuf.cdev_underrun[dev] = 0;
dev186drivers/sound/dmabuf.cdev_busy[dev] = 1;
dev188drivers/sound/dmabuf.cbufferalloc_done[dev] = 0;
dev190drivers/sound/dmabuf.cdev_active[dev] = dev_qlen[dev] = dev_qtail[dev] = dev_qhead[dev] = 0;
dev191drivers/sound/dmabuf.cdev_needs_restart[dev] = dev_started[dev] = 0;
dev192drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev196drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev200drivers/sound/dmabuf.cif (dev >= num_dspdevs)
dev202drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev206drivers/sound/dmabuf.cif (dev_busy[dev])
dev209drivers/sound/dmabuf.cif (!dsp_devs[dev])
dev211drivers/sound/dmabuf.cprintk ("DSP device %d not initialized\n", dev);
dev216drivers/sound/dmabuf.csound_dma_malloc (dev);
dev219drivers/sound/dmabuf.cif (snd_raw_buf[dev][0] == NULL)
dev222drivers/sound/dmabuf.cif ((retval = dsp_devs[dev]->open (dev, mode)) < 0)
dev225drivers/sound/dmabuf.cdev_modes[dev] = mode;
dev226drivers/sound/dmabuf.cdev_subdivision[dev] = 0;
dev228drivers/sound/dmabuf.cdma_init_buffers (dev);
dev229drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1);
dev230drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1);
dev231drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1);
dev237drivers/sound/dmabuf.cdma_reset (int dev)
dev243drivers/sound/dmabuf.cdsp_devs[dev]->reset (dev);
dev244drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev246drivers/sound/dmabuf.cif ((retval = dsp_devs[dev]->open (dev, dev_modes[dev])) < 0)
dev250drivers/sound/dmabuf.cdma_init_buffers (dev);
dev251drivers/sound/dmabuf.creorganize_buffers (dev);
dev255drivers/sound/dmabuf.cdma_sync (int dev)
dev259drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_OUTPUT)
dev263drivers/sound/dmabuf.cwhile ((!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev264drivers/sound/dmabuf.cdmabuf_interrupted[dev]))
dev265drivers/sound/dmabuf.c&& dev_qlen[dev])
dev267drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ);
dev268drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev269drivers/sound/dmabuf.creturn dev_qlen[dev];
dev279drivers/sound/dmabuf.cif (dsp_devs[dev]->has_output_drained)  /* Device has hidden buffers */
dev281drivers/sound/dmabuf.cwhile (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev282drivers/sound/dmabuf.cdmabuf_interrupted[dev])
dev283drivers/sound/dmabuf.c&& !dsp_devs[dev]->has_output_drained (dev))
dev285drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ / 4);
dev290drivers/sound/dmabuf.creturn dev_qlen[dev];
dev294drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev297drivers/sound/dmabuf.cif (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev298drivers/sound/dmabuf.cdmabuf_interrupted[dev])
dev299drivers/sound/dmabuf.c&& (dma_mode[dev] == DMODE_OUTPUT))
dev301drivers/sound/dmabuf.cdma_sync (dev);
dev305drivers/sound/dmabuf.csound_dma_free (dev);
dev308drivers/sound/dmabuf.cdsp_devs[dev]->reset (dev);
dev310drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev312drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev313drivers/sound/dmabuf.cdev_busy[dev] = 0;
dev319drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev325drivers/sound/dmabuf.cif (!dev_qlen[dev])
dev327drivers/sound/dmabuf.cif (dev_needs_restart[dev])
dev329drivers/sound/dmabuf.cdma_reset (dev);
dev330drivers/sound/dmabuf.cdev_needs_restart[dev] = 0;
dev333drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_OUTPUT)  /* Was output -> direction change */
dev335drivers/sound/dmabuf.cdma_sync (dev);
dev336drivers/sound/dmabuf.cdma_reset (dev);
dev337drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev340drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev341drivers/sound/dmabuf.creorganize_buffers (dev);
dev343drivers/sound/dmabuf.cif (!dma_mode[dev])
dev347drivers/sound/dmabuf.cif ((err = dsp_devs[dev]->prepare_for_input (dev,
dev348drivers/sound/dmabuf.cdev_buffsize[dev], dev_nbufs[dev])) < 0)
dev353drivers/sound/dmabuf.cdma_mode[dev] = DMODE_INPUT;
dev356drivers/sound/dmabuf.cif (!dev_active[dev])
dev358drivers/sound/dmabuf.cdsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]],
dev359drivers/sound/dmabuf.cdev_buffsize[dev], 0,
dev360drivers/sound/dmabuf.c!sound_dma_automode[dev] ||
dev361drivers/sound/dmabuf.c!dev_started[dev]);
dev362drivers/sound/dmabuf.cdev_active[dev] = 1;
dev363drivers/sound/dmabuf.cdev_started[dev] = 1;
dev367drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev368drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev372drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev379drivers/sound/dmabuf.cif (!dev_qlen[dev])
dev382drivers/sound/dmabuf.c*buf = &dev_buf[dev][dev_qhead[dev]][dev_counts[dev][dev_qhead[dev]]];
dev383drivers/sound/dmabuf.c*len = dev_buffsize[dev] - dev_counts[dev][dev_qhead[dev]];
dev385drivers/sound/dmabuf.creturn dev_qhead[dev];
dev389drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev391drivers/sound/dmabuf.cint             p = dev_counts[dev][dev_qhead[dev]] + c;
dev393drivers/sound/dmabuf.cif (p >= dev_buffsize[dev])
dev395drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]] = 0;
dev396drivers/sound/dmabuf.cdev_qlen[dev]--;
dev397drivers/sound/dmabuf.cdev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev];
dev400drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]] = p;
dev406drivers/sound/dmabuf.cDMAbuf_read (int dev, snd_rw_buf * user_buf, int count)
dev416drivers/sound/dmabuf.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &c)) < 0)
dev424drivers/sound/dmabuf.cif ((err = DMAbuf_rmchars (dev, buff_no, c)) < 0)
dev431drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev436drivers/sound/dmabuf.cdma_reset (dev);
dev441drivers/sound/dmabuf.cdma_sync (dev);
dev442drivers/sound/dmabuf.cdma_reset (dev);
dev447drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev448drivers/sound/dmabuf.creorganize_buffers (dev);
dev450drivers/sound/dmabuf.creturn IOCTL_OUT (arg, dev_buffsize[dev]);
dev459drivers/sound/dmabuf.cfact = dev_subdivision[dev];
dev465drivers/sound/dmabuf.cif (dev_subdivision[dev] != 0)  /* Too late to change */
dev474drivers/sound/dmabuf.cdev_subdivision[dev] = fact;
dev480drivers/sound/dmabuf.creturn dsp_devs[dev]->ioctl (dev, cmd, arg, local);
dev488drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev493drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_INPUT)  /* Was input -> Direction change */
dev495drivers/sound/dmabuf.cdma_reset (dev);
dev496drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev498drivers/sound/dmabuf.celse if (dev_needs_restart[dev])  /* Restart buffering */
dev500drivers/sound/dmabuf.cdma_sync (dev);
dev501drivers/sound/dmabuf.cdma_reset (dev);
dev504drivers/sound/dmabuf.cdev_needs_restart[dev] = 0;
dev506drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev507drivers/sound/dmabuf.creorganize_buffers (dev);
dev509drivers/sound/dmabuf.cif (!dma_mode[dev])
dev513drivers/sound/dmabuf.cdma_mode[dev] = DMODE_OUTPUT;
dev514drivers/sound/dmabuf.cif ((err = dsp_devs[dev]->prepare_for_output (dev,
dev515drivers/sound/dmabuf.cdev_buffsize[dev], dev_nbufs[dev])) < 0)
dev522drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev524drivers/sound/dmabuf.cif (dev_qlen[dev] == dev_nbufs[dev])
dev526drivers/sound/dmabuf.cif (!dev_active[dev])
dev529drivers/sound/dmabuf.cdev_qlen[dev], dev_nbufs[dev]);
dev534drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev535drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev539drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev541drivers/sound/dmabuf.celse if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev546drivers/sound/dmabuf.cif (dev_qlen[dev] == dev_nbufs[dev])
dev549drivers/sound/dmabuf.c*buf = dev_buf[dev][dev_qtail[dev]];
dev550drivers/sound/dmabuf.c*size = dev_buffsize[dev];
dev551drivers/sound/dmabuf.cdev_counts[dev][dev_qtail[dev]] = 0;
dev553drivers/sound/dmabuf.creturn dev_qtail[dev];
dev557drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev559drivers/sound/dmabuf.cif (buff_no != dev_qtail[dev])
dev560drivers/sound/dmabuf.cprintk ("Soundcard warning: DMA buffers out of sync %d != %d\n", buff_no, dev_qtail[dev]);
dev562drivers/sound/dmabuf.cdev_qlen[dev]++;
dev564drivers/sound/dmabuf.cdev_counts[dev][dev_qtail[dev]] = l;
dev566drivers/sound/dmabuf.cdev_needs_restart[dev] = (l != dev_buffsize[dev]) &&
dev567drivers/sound/dmabuf.c(sound_dma_automode[dev] || dsp_devs[dev]->flags & NEEDS_RESTART);
dev569drivers/sound/dmabuf.cdev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev];
dev571drivers/sound/dmabuf.cif (!dev_active[dev])
dev573drivers/sound/dmabuf.cdev_active[dev] = 1;
dev574drivers/sound/dmabuf.cdsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]],
dev575drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]], 0,
dev576drivers/sound/dmabuf.c!sound_dma_automode[dev] || !dev_started[dev]);
dev577drivers/sound/dmabuf.cdev_started[dev] = 1;
dev584drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev586drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev598drivers/sound/dmabuf.cif (sound_dma_automode[dev])
dev606drivers/sound/dmabuf.cset_dma_addr (chan, snd_raw_buf_phys[dev][0]);
dev607drivers/sound/dmabuf.cset_dma_count (chan, sound_buffsizes[dev]);
dev613drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev616drivers/sound/dmabuf.csnd_raw_buf_phys[dev][0],
dev617drivers/sound/dmabuf.csound_buffsizes[dev],
dev622drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev629drivers/sound/dmabuf.csnd_raw_buf_phys[dev][0], count);
dev696drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev700drivers/sound/dmabuf.cdev_qlen[dev]--;
dev701drivers/sound/dmabuf.cdev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev];
dev702drivers/sound/dmabuf.cdev_active[dev] = 0;
dev704drivers/sound/dmabuf.cif (dev_qlen[dev])
dev706drivers/sound/dmabuf.cdsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]],
dev707drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]], 1,
dev708drivers/sound/dmabuf.c!sound_dma_automode[dev]);
dev709drivers/sound/dmabuf.cdev_active[dev] = 1;
dev713drivers/sound/dmabuf.cdev_underrun[dev]++;
dev714drivers/sound/dmabuf.cdsp_devs[dev]->halt_xfer (dev);
dev715drivers/sound/dmabuf.cdev_needs_restart[dev] = (sound_dma_automode[dev] ||
dev716drivers/sound/dmabuf.cdsp_devs[dev]->flags & NEEDS_RESTART);
dev720drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev722drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev728drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev732drivers/sound/dmabuf.cif (!dev_busy[dev])
dev734drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev736drivers/sound/dmabuf.celse if (dev_qlen[dev] == (dev_nbufs[dev] - 1))
dev739drivers/sound/dmabuf.cdev_underrun[dev]++;
dev740drivers/sound/dmabuf.cdsp_devs[dev]->halt_xfer (dev);
dev741drivers/sound/dmabuf.cdev_active[dev] = 0;
dev742drivers/sound/dmabuf.cdev_needs_restart[dev] = sound_dma_automode[dev];
dev746drivers/sound/dmabuf.cdev_qlen[dev]++;
dev747drivers/sound/dmabuf.cdev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev];
dev749drivers/sound/dmabuf.cdsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]],
dev750drivers/sound/dmabuf.cdev_buffsize[dev], 1,
dev751drivers/sound/dmabuf.c!sound_dma_automode[dev]);
dev752drivers/sound/dmabuf.cdev_active[dev] = 1;
dev756drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev758drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev764drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev767drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev786drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev788drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev811drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev817drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev823drivers/sound/dmabuf.cDMAbuf_read (int dev, snd_rw_buf * user_buf, int count)
dev829drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev835drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev841drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev847drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev853drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev865drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev889drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev895drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev43drivers/sound/gus_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev53drivers/sound/gus_midi.cgus_midi_open (int dev, int mode,
dev54drivers/sound/gus_midi.cvoid            (*input) (int dev, unsigned char data),
dev55drivers/sound/gus_midi.cvoid            (*output) (int dev)
dev118drivers/sound/gus_midi.cgus_midi_close (int dev)
dev127drivers/sound/gus_midi.cgus_midi_out (int dev, unsigned char midi_byte)
dev173drivers/sound/gus_midi.cgus_midi_start_read (int dev)
dev179drivers/sound/gus_midi.cgus_midi_end_read (int dev)
dev185drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev191drivers/sound/gus_midi.cgus_midi_kick (int dev)
dev196drivers/sound/gus_midi.cgus_midi_buffer_status (int dev)
dev1019drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev1049drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev1091drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev1093drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int velocity)
dev1114drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev1164drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev1171drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1332drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1396drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1621drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1635drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1661drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1665drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1681drivers/sound/gus_wave.cguswave_reset (int dev)
dev1693drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1715drivers/sound/gus_wave.cguswave_close (int dev)
dev1725drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, snd_rw_buf * addr,
dev2001drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev2007drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev2034drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev2213drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev2275drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2280drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2311drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2511drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2548drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2553drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2578drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2609drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2615drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2616drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2620drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2628drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2634drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2652drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2672drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2703drivers/sound/gus_wave.cgus_has_output_drained (int dev)
dev2709drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2778drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2796drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev3060drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev79drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
dev83drivers/sound/ics2101.cint             ctrl_addr = dev << 3;
dev84drivers/sound/ics2101.cint             attn_addr = dev << 3;
dev103drivers/sound/ics2101.cOUTB (selector[dev], u_MixData);
dev110drivers/sound/ics2101.cset_volumes (int dev, int vol)
dev124drivers/sound/ics2101.cwrite_mix (dev, CHN_LEFT, left);
dev125drivers/sound/ics2101.cwrite_mix (dev, CHN_RIGHT, right);
dev128drivers/sound/ics2101.cvolumes[dev] = vol;
dev133drivers/sound/ics2101.cics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev141drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev174drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev44drivers/sound/midibuf.cMIDIbuf_open (int dev, struct fileinfo *file)
dev48drivers/sound/midibuf.cdev = dev >> 4;
dev69drivers/sound/midibuf.cMIDIbuf_release (int dev, struct fileinfo *file)
dev73drivers/sound/midibuf.cdev = dev >> 4;
dev81drivers/sound/midibuf.cMIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev84drivers/sound/midibuf.cdev = dev >> 4;
dev91drivers/sound/midibuf.cMIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev93drivers/sound/midibuf.cdev = dev >> 4;
dev99drivers/sound/midibuf.cMIDIbuf_ioctl (int dev, struct fileinfo *file,
dev102drivers/sound/midibuf.cdev = dev >> 4;
dev108drivers/sound/midibuf.creturn midi_devs[0]->ioctl (dev, cmd, arg);
dev113drivers/sound/midibuf.cMIDIbuf_bytes_received (int dev, unsigned char *buf, int count)
dev62drivers/sound/mpu401.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev77drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev78drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev79drivers/sound/mpu401.cvoid            (*output) (int dev)
dev97drivers/sound/mpu401.cmpu401_close (int dev)
dev103drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev137drivers/sound/mpu401.cmpu401_command (int dev, unsigned char midi_byte)
dev143drivers/sound/mpu401.cmpu401_start_read (int dev)
dev149drivers/sound/mpu401.cmpu401_end_read (int dev)
dev155drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, unsigned arg)
dev161drivers/sound/mpu401.cmpu401_kick (int dev)
dev166drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev78drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int velocity);
dev121drivers/sound/opl3.copl3_ioctl (int dev,
dev139drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev239drivers/sound/opl3.copl3_kill_note (int dev, int voice, int velocity)
dev285drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev431drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev655drivers/sound/opl3.copl3_reset (int dev)
dev676drivers/sound/opl3.copl3_kill_note (dev, i, 64);
dev694drivers/sound/opl3.copl3_open (int dev, int mode)
dev709drivers/sound/opl3.copl3_close (int dev)
dev716drivers/sound/opl3.copl3_reset (dev);
dev720drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev725drivers/sound/opl3.copl3_load_patch (int dev, int format, snd_rw_buf * addr,
dev749drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev754drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev765drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev831drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev875drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev46drivers/sound/pas2_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev49drivers/sound/pas2_midi.cpas_midi_open (int dev, int mode,
dev50drivers/sound/pas2_midi.cvoid            (*input) (int dev, unsigned char data),
dev51drivers/sound/pas2_midi.cvoid            (*output) (int dev)
dev108drivers/sound/pas2_midi.cpas_midi_close (int dev)
dev138drivers/sound/pas2_midi.cpas_midi_out (int dev, unsigned char midi_byte)
dev184drivers/sound/pas2_midi.cpas_midi_start_read (int dev)
dev190drivers/sound/pas2_midi.cpas_midi_end_read (int dev)
dev196drivers/sound/pas2_midi.cpas_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev202drivers/sound/pas2_midi.cpas_midi_kick (int dev)
dev208drivers/sound/pas2_midi.cpas_buffer_status (int dev)
dev314drivers/sound/pas2_mixer.cgetmixer (int dev, int chn)
dev318drivers/sound/pas2_mixer.creturn (levels[dev] >> 8) & 0x7f;
dev322drivers/sound/pas2_mixer.creturn levels[dev] & 0x7f;
dev407drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev126drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev191drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev199drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev208drivers/sound/pas2_pcm.cif (!DMAbuf_open_dma (dev))
dev220drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev228drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev229drivers/sound/pas2_pcm.cDMAbuf_close_dma (dev);
dev237drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count,
dev245drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev248drivers/sound/pas2_pcm.cif (sound_dma_automode[dev] &&
dev259drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev261drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev283drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count,
dev292drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev303drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev305drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev327drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev332drivers/sound/pas2_pcm.cpas_pcm_prepare_for_output (int dev, int bsize, int bcount)
dev52drivers/sound/patmgr.cpmgr_open (int dev)
dev54drivers/sound/patmgr.cif (dev < 0 || dev >= num_synths)
dev57drivers/sound/patmgr.cif (pmgr_opened[dev])
dev59drivers/sound/patmgr.cpmgr_opened[dev] = 1;
dev61drivers/sound/patmgr.cRESET_WAIT_QUEUE (server_procs[dev], server_wait_flag[dev]);
dev67drivers/sound/patmgr.cpmgr_release (int dev)
dev70drivers/sound/patmgr.cif (mbox[dev])    /* Killed in action. Inform the client */
dev73drivers/sound/patmgr.cmbox[dev]->key = PM_ERROR;
dev74drivers/sound/patmgr.cmbox[dev]->parm1 = RET_ERROR (EIO);
dev80drivers/sound/patmgr.cpmgr_opened[dev] = 0;
dev84drivers/sound/patmgr.cpmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev91drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid read count\n", dev);
dev95drivers/sound/patmgr.cwhile (!ok && !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev]))
dev99drivers/sound/patmgr.cwhile (!(mbox[dev] && msg_direction[dev] == A_TO_S) &&
dev100drivers/sound/patmgr.c!PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev]))
dev102drivers/sound/patmgr.cDO_SLEEP (server_procs[dev], server_wait_flag[dev], 0);
dev105drivers/sound/patmgr.cif (mbox[dev] && msg_direction[dev] == A_TO_S)
dev107drivers/sound/patmgr.cCOPY_TO_USER (buf, 0, (char *) mbox[dev], count);
dev108drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev122drivers/sound/patmgr.cpmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev128drivers/sound/patmgr.cprintk ("PATMGR%d: Write count < 4\n", dev);
dev132drivers/sound/patmgr.cCOPY_FROM_USER (mbox[dev], buf, 0, 4);
dev134drivers/sound/patmgr.cif (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE)
dev138drivers/sound/patmgr.ctmp_dev = ((unsigned short *) mbox[dev])[2];
dev139drivers/sound/patmgr.cif (tmp_dev != dev)
dev142drivers/sound/patmgr.creturn synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev],
dev148drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid write count\n", dev);
dev159drivers/sound/patmgr.cif (mbox[dev] && !msg_direction[dev])
dev161drivers/sound/patmgr.cCOPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4);
dev162drivers/sound/patmgr.cmsg_direction[dev] = S_TO_A;
dev176drivers/sound/patmgr.cpmgr_access (int dev, struct patmgr_info *rec)
dev183drivers/sound/patmgr.cif (mbox[dev])
dev184drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev188drivers/sound/patmgr.cmbox[dev] = rec;
dev189drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev191drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev193drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev198drivers/sound/patmgr.cif (msg_direction[dev] != S_TO_A)
dev210drivers/sound/patmgr.cmbox[dev] = NULL;
dev211drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev220drivers/sound/patmgr.cpmgr_inform (int dev, int event, unsigned long p1, unsigned long p2,
dev226drivers/sound/patmgr.cif (!pmgr_opened[dev])
dev231drivers/sound/patmgr.cif (mbox[dev])
dev232drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev235drivers/sound/patmgr.cmbox[dev] =
dev238drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev239drivers/sound/patmgr.cmbox[dev]->command = event;
dev240drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev241drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev242drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev243drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev245drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev247drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev251drivers/sound/patmgr.cif (mbox[dev])
dev252drivers/sound/patmgr.cKERNEL_FREE (mbox[dev]);
dev253drivers/sound/patmgr.cmbox[dev] = NULL;
dev254drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev60drivers/sound/sb16_dsp.cstatic int      sb16_dsp_open (int dev, int mode);
dev61drivers/sound/sb16_dsp.cstatic void     sb16_dsp_close (int dev);
dev62drivers/sound/sb16_dsp.cstatic void     sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev63drivers/sound/sb16_dsp.cstatic void     sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev64drivers/sound/sb16_dsp.cstatic int      sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local);
dev65drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_input (int dev, int bsize, int bcount);
dev66drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_output (int dev, int bsize, int bcount);
dev67drivers/sound/sb16_dsp.cstatic void     sb16_dsp_reset (int dev);
dev68drivers/sound/sb16_dsp.cstatic void     sb16_dsp_halt (int dev);
dev221drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev271drivers/sound/sb16_dsp.csb16_dsp_open (int dev, int mode)
dev314drivers/sound/sb16_dsp.csb16_dsp_close (int dev)
dev334drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev347drivers/sound/sb16_dsp.cint             pos, chan = sound_dsp_dmachan[dev];
dev358drivers/sound/sb16_dsp.cif (sound_dma_automode[dev] &&
dev370drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev371drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev391drivers/sound/sb16_dsp.csb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev404drivers/sound/sb16_dsp.cint             pos, chan = sound_dsp_dmachan[dev];
dev415drivers/sound/sb16_dsp.cif (sound_dma_automode[dev] &&
dev427drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev428drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev449drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev458drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev474drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev487drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev59drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev84drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev85drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev86drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev103drivers/sound/sb16_midi.csb16midi_close (int dev)
dev109drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev143drivers/sound/sb16_midi.csb16midi_command (int dev, unsigned char midi_byte)
dev149drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev155drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev161drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev167drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev172drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev346drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count,
dev355drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev357drivers/sound/sb_dsp.cif (sound_dsp_dmachan[dev] > 3)
dev390drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev401drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev403drivers/sound/sb_dsp.cif (sound_dsp_dmachan[dev] > 3)
dev443drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev462drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev479drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev518drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev547drivers/sound/sb_dsp.cif (!DMAbuf_open_dma (dev))
dev563drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev565drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev575drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev629drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev60drivers/sound/sb_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev64drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev65drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev66drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev117drivers/sound/sb_midi.cmy_dev = dev;
dev127drivers/sound/sb_midi.csb_midi_close (int dev)
dev140drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev162drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev173drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev184drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev149drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev154drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev157drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev164drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev166drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev169drivers/sound/sb_mixer.creturn levels[dev];
dev173drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev186drivers/sound/sb_mixer.cif (dev > 31)
dev189drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev192drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev198drivers/sound/sb_mixer.cchange_bits (&val, dev, LEFT_CHN, left);
dev200drivers/sound/sb_mixer.clevels[dev] = left | (left << 8);
dev202drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs)  /* Change register */
dev205drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev213drivers/sound/sb_mixer.cchange_bits (&val, dev, RIGHT_CHN, right);
dev216drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev300drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev77drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev82drivers/sound/sequencer.cdev = dev >> 4;
dev84drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev85drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev120drivers/sound/sequencer.csequencer_midi_output (int dev)
dev146drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev161drivers/sound/sequencer.cevent[2] = dev;
dev168drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev175drivers/sound/sequencer.cdev = dev >> 4;
dev177drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev182drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev183drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev196drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev197drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev200drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev203drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev234drivers/sound/sequencer.cint             dev = event[2];
dev236drivers/sound/sequencer.cif (dev >= num_midis)
dev238drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev244drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev248drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev252drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev305drivers/sound/sequencer.cint             dev = q[2];
dev307drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev310drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev316drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[5]);
dev323drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev327drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev331drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev335drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev339drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev343drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev425drivers/sound/sequencer.cint             dev;
dev427drivers/sound/sequencer.cdev = q[2];
dev429drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev442drivers/sound/sequencer.cmidi_written[dev] = 1;
dev481drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev485drivers/sound/sequencer.cdev = dev >> 4;
dev488drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev496drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev500drivers/sound/sequencer.cdev--;
dev501drivers/sound/sequencer.cif (pmgr_present[dev])
dev503drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev506drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev596drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev601drivers/sound/sequencer.cdev = dev >> 4;
dev603drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev605drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev607drivers/sound/sequencer.cdev--;
dev608drivers/sound/sequencer.cpmgr_release (dev);
dev609drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev660drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev674drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev725drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev731drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev737drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev748drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev756drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev780drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev796drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev804drivers/sound/sequencer.cdev = IOCTL_IN (arg);
dev805drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev808drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev811drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev812drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev814drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev827drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev829drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev832drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev835drivers/sound/sequencer.creturn IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev841drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev843drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev846drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev849drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev857drivers/sound/sequencer.cint             dev;
dev860drivers/sound/sequencer.cdev = inf.device;
dev862drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev865drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev868drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev875drivers/sound/sequencer.cint             dev;
dev878drivers/sound/sequencer.cdev = inf.device;
dev880drivers/sound/sequencer.cif (dev < 0 || dev >= num_midis)
dev883drivers/sound/sequencer.cIOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf));
dev891drivers/sound/sequencer.cint             dev, err;
dev896drivers/sound/sequencer.cdev = inf->device;
dev898drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev904drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev910drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev925drivers/sound/sequencer.cint             dev, err;
dev930drivers/sound/sequencer.cdev = inf->device;
dev932drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev938drivers/sound/sequencer.cif (!pmgr_present[dev])
dev944drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev960drivers/sound/sequencer.cif (dev)    /* Patch manager */
dev973drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev992drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev994drivers/sound/sequencer.cdev = dev >> 4;
dev1128drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1134drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1140drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1146drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1150drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1157drivers/sound/sequencer.csequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev1169drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev5drivers/sound/sound_calls.hint DMAbuf_open(int dev, int mode);
dev6drivers/sound/sound_calls.hint DMAbuf_release(int dev, int mode);
dev7drivers/sound/sound_calls.hint DMAbuf_read (int dev, snd_rw_buf *user_buf, int count);
dev8drivers/sound/sound_calls.hint DMAbuf_getwrbuffer(int dev, char **buf, int *size);
dev9drivers/sound/sound_calls.hint DMAbuf_getrdbuffer(int dev, char **buf, int *len);
dev10drivers/sound/sound_calls.hint DMAbuf_rmchars(int dev, int buff_no, int c);
dev11drivers/sound/sound_calls.hint DMAbuf_start_output(int dev, int buff_no, int l);
dev12drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local);
dev14drivers/sound/sound_calls.hint DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
dev18drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev19drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev25drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev26drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev27drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev28drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev29drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev31drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev38drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev39drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev40drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev41drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev42drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev44drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev51drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev58drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev59drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev60drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev61drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev62drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev64drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev65drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev74drivers/sound/sound_calls.hint   CMIDI_open  (int dev, struct fileinfo *file);
dev75drivers/sound/sound_calls.hint   CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev76drivers/sound/sound_calls.hint   CMIDI_read  (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev77drivers/sound/sound_calls.hint   CMIDI_close (int dev, struct fileinfo *file); 
dev87drivers/sound/sound_calls.hint  pro_midi_open(int dev, int mode);
dev88drivers/sound/sound_calls.hvoid pro_midi_close(int dev);
dev89drivers/sound/sound_calls.hint pro_midi_write(int dev, snd_rw_buf *uio);
dev90drivers/sound/sound_calls.hint pro_midi_read(int dev, snd_rw_buf *uio);
dev100drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev101drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev104drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev105drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev106drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev107drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev108drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev185drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg);
dev199drivers/sound/sound_calls.hint pmgr_open(int dev);
dev200drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev201drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev202drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev203drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev204drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev242drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev244drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev246drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev255drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev259drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev264drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev268drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev275drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev278drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev280drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev284drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev290drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev301drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev305drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev307drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev309drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev313drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev330drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev336drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev344drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev349drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev353drivers/sound/sound_switch.csbc_devices[dev].usecount++;
dev360drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev363drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev365drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev378drivers/sound/sound_switch.csequencer_release (dev, file);
dev383drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev390drivers/sound/sound_switch.caudio_release (dev, file);
dev394drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev397drivers/sound/sound_switch.csbc_devices[dev].usecount--;
dev402drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev405drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev407drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev415drivers/sound/sound_switch.cif ((dev >> 4) >= num_mixers)
dev418drivers/sound/sound_switch.creturn mixer_devs[dev >> 4]->ioctl (dev >> 4, cmd, arg);
dev422drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev428drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev433drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev63drivers/sound/soundcard.cint             dev;
dev65drivers/sound/soundcard.cdev = inode->i_rdev;
dev66drivers/sound/soundcard.cdev = MINOR (dev);
dev68drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev74drivers/sound/soundcard.cint             dev;
dev76drivers/sound/soundcard.cdev = inode->i_rdev;
dev77drivers/sound/soundcard.cdev = MINOR (dev);
dev79drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev91drivers/sound/soundcard.cint             dev;
dev93drivers/sound/soundcard.cdev = inode->i_rdev;
dev94drivers/sound/soundcard.cdev = MINOR (dev);
dev96drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev102drivers/sound/soundcard.cfiles[dev].mode = 0;
dev105drivers/sound/soundcard.cfiles[dev].mode = OPEN_READWRITE;
dev107drivers/sound/soundcard.cfiles[dev].mode = OPEN_READ;
dev109drivers/sound/soundcard.cfiles[dev].mode = OPEN_WRITE;
dev111drivers/sound/soundcard.creturn sound_open_sw (dev, &files[dev]);
dev117drivers/sound/soundcard.cint             dev;
dev119drivers/sound/soundcard.cdev = inode->i_rdev;
dev120drivers/sound/soundcard.cdev = MINOR (dev);
dev122drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev129drivers/sound/soundcard.cint             dev;
dev131drivers/sound/soundcard.cdev = inode->i_rdev;
dev132drivers/sound/soundcard.cdev = MINOR (dev);
dev134drivers/sound/soundcard.creturn sound_ioctl_sw (dev, &files[dev], cmd, arg);
dev140drivers/sound/soundcard.cint             dev;
dev142drivers/sound/soundcard.cdev = inode->i_rdev;
dev143drivers/sound/soundcard.cdev = MINOR (dev);
dev145drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev147drivers/sound/soundcard.cswitch (dev & 0x0f)
dev150drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev282drivers/sound/soundcard.cint             i, dev;
dev292drivers/sound/soundcard.cfor (dev = 0; dev < num_dspdevs; dev++)  /* Enumerate devices */
dev293drivers/sound/soundcard.cif (sound_buffcounts[dev] > 0 && sound_dsp_dmachan[dev] > 0)
dev295drivers/sound/soundcard.cif (sound_dma_automode[dev])
dev296drivers/sound/soundcard.csound_buffcounts[dev] = 1;
dev298drivers/sound/soundcard.cif (sound_dsp_dmachan[dev] > 3 && sound_buffsizes[dev] > 65536)
dev305drivers/sound/soundcard.cif (sound_buffsizes[dev] > dma_pagesize)
dev306drivers/sound/soundcard.csound_buffsizes[dev] = dma_pagesize;
dev307drivers/sound/soundcard.csound_buffsizes[dev] &= 0xfffff000;  /* Truncate to n*4k */
dev308drivers/sound/soundcard.cif (sound_buffsizes[dev] < 4096)
dev309drivers/sound/soundcard.csound_buffsizes[dev] = 4096;
dev313drivers/sound/soundcard.cfor (snd_raw_count[dev] = 0; snd_raw_count[dev] < sound_buffcounts[dev]; snd_raw_count[dev]++)
dev315drivers/sound/soundcard.cstart_addr = mem_ptr - sound_buffsizes[dev];
dev316drivers/sound/soundcard.cif (!valid_dma_page (start_addr, sound_buffsizes[dev], dma_pagesize))
dev320drivers/sound/soundcard.cend_addr = start_addr + sound_buffsizes[dev] - 1;
dev322drivers/sound/soundcard.csnd_raw_buf[dev][snd_raw_count[dev]] = (char *) start_addr;
dev323drivers/sound/soundcard.csnd_raw_buf_phys[dev][snd_raw_count[dev]] = start_addr;
dev30fs/block_dev.cunsigned int dev;
dev34fs/block_dev.cdev = inode->i_rdev;
dev36fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev37fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev51fs/block_dev.cif (blk_size[MAJOR(dev)])
dev52fs/block_dev.csize = (blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev64fs/block_dev.cbh = getblk(dev, block, blocksize);
dev66fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev71fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev72fs/block_dev.cbh = getblk(dev, block, blocksize);
dev76fs/block_dev.c!read_ahead[MAJOR(dev)]) {
dev79fs/block_dev.cbh = bread(dev,block,blocksize);
dev82fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2;
dev91fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev93fs/block_dev.cbhlist[i] = getblk (dev, block+i, blocksize);
dev139fs/block_dev.cunsigned int dev;
dev142fs/block_dev.cdev = inode->i_rdev;
dev144fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev145fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev154fs/block_dev.cif (blk_size[MAJOR(dev)])
dev155fs/block_dev.csize = blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev176fs/block_dev.cif(blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev177fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev203fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev206fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev157fs/buffer.cstatic int sync_buffers(dev_t dev, int wait)
dev181fs/buffer.cif (dev && bh->b_dev != dev)
dev228fs/buffer.cvoid sync_dev(dev_t dev)
dev230fs/buffer.csync_buffers(dev, 0);
dev231fs/buffer.csync_supers(dev);
dev232fs/buffer.csync_inodes(dev);
dev233fs/buffer.csync_buffers(dev, 0);
dev236fs/buffer.cint fsync_dev(dev_t dev)
dev238fs/buffer.csync_buffers(dev, 0);
dev239fs/buffer.csync_supers(dev);
dev240fs/buffer.csync_inodes(dev);
dev241fs/buffer.creturn sync_buffers(dev, 1);
dev269fs/buffer.cvoid invalidate_buffers(dev_t dev)
dev279fs/buffer.cif (bh->b_dev != dev)
dev282fs/buffer.cif (bh->b_dev == dev)
dev303fs/buffer.cvoid check_disk_change(dev_t dev)
dev308fs/buffer.cswitch(MAJOR(dev)){
dev310fs/buffer.cif (!(bh = getblk(dev,0,1024)))
dev318fs/buffer.ci = check_scsidisk_media_change(dev, 0);
dev324fs/buffer.ci = check_cdrom_media_change(dev, 0);
dev330fs/buffer.ci = check_cdu31a_media_change(dev, 0);
dev336fs/buffer.ci = check_mcd_media_change(dev, 0);
dev342fs/buffer.ci = check_sbpcd_media_change(dev, 0);
dev353fs/buffer.cMAJOR(dev), MINOR(dev));
dev355fs/buffer.cif (super_blocks[i].s_dev == dev)
dev357fs/buffer.cinvalidate_inodes(dev);
dev358fs/buffer.cinvalidate_buffers(dev);
dev363fs/buffer.cif (MAJOR(dev) == SCSI_DISK_MAJOR)
dev364fs/buffer.crevalidate_scsidisk(dev, 0);
dev368fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash)
dev369fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev505fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
dev509fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev510fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
dev515fs/buffer.cMAJOR(dev), MINOR(dev));
dev528fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
dev533fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev537fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
dev543fs/buffer.cvoid set_blocksize(dev_t dev, int size)
dev548fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev556fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev557fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev560fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev562fs/buffer.csync_buffers(dev, 2);
dev563fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev573fs/buffer.cif (bh->b_dev != dev)
dev579fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev781fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
dev793fs/buffer.cbh = get_hash_table(dev, block, size);
dev803fs/buffer.cif (find_buffer(dev,block,size))
dev817fs/buffer.cbh->b_dev=dev;
dev893fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev897fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev899fs/buffer.cMAJOR(dev), MINOR(dev));
dev920fs/buffer.cstruct buffer_head * breada(dev_t dev, int block, int bufsize,
dev932fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev942fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev943fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev950fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1077fs/buffer.cdev_t dev, int *b, int size)
dev1097fs/buffer.cfirst = get_hash_table(dev, block, size);
dev1118fs/buffer.cdev_t dev, int b[], int size)
dev1135fs/buffer.cif (find_buffer(dev, block, size))
dev1148fs/buffer.cbh->b_dev = dev;
dev1188fs/buffer.cdev_t dev, int *b, int size)
dev1196fs/buffer.cbh = get_hash_table(dev, block, size);
dev1198fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev1199fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev1214fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot)
dev1221fs/buffer.cwhere = try_to_share_buffers(address,dev,b,size);
dev1229fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1517fs/buffer.cdev_t dev, unsigned int starting_block)
dev1546fs/buffer.cp->b_dev=dev;
dev1569fs/buffer.cstatic int reassign_cluster(dev_t dev, 
dev1586fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1596fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
dev1614fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1627fs/buffer.cbh->b_dev = dev;
dev1653fs/buffer.cunsigned long generate_cluster(dev_t dev, int b[], int size)
dev1659fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1669fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1674fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1676fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev189fs/ext/freelists.cdev_t dev;
dev211fs/ext/freelists.cdev = inode->i_dev;
dev229fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev62fs/ext/inode.cint dev = s->s_dev,block;
dev65fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev66fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev91fs/ext/inode.cdev);
dev97fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev108fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev118fs/ext/inode.cs->s_dev = dev;
dev26fs/ext2/dcache.cunsigned short dev;
dev55fs/ext2/dcache.c#define hash(dev,dir)  ((dev ^ dir) % HASH_QUEUES)
dev84fs/ext2/dcache.cstatic struct dir_cache_entry * find_name (int queue, unsigned short dev,
dev90fs/ext2/dcache.cfor (p = queue_head[queue]; p != NULL && (p->dev != dev ||
dev109fs/ext2/dcache.cp->dev, p->dir, p->name);
dev179fs/ext2/dcache.cvoid ext2_dcache_invalidate (unsigned short dev)
dev188fs/ext2/dcache.cif (p->dev == dev) {
dev190fs/ext2/dcache.cremove_from_queue (hash (p->dev, p->dir), p);
dev203fs/ext2/dcache.cunsigned long ext2_dcache_lookup (unsigned short dev, unsigned long dir,
dev217fs/ext2/dcache.cprintk ("dcache_lookup (%04x, %lu, %s, %d)\n", dev, dir, our_name, len);
dev219fs/ext2/dcache.cqueue = hash (dev, dir);
dev220fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, our_name, len))) {
dev253fs/ext2/dcache.cvoid ext2_dcache_add (unsigned short dev, unsigned long dir, const char * name,
dev263fs/ext2/dcache.cdev, dir, name, len, ino);
dev267fs/ext2/dcache.cqueue = hash (dev, dir);
dev268fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, name, len))) {
dev291fs/ext2/dcache.cremove_from_queue (hash (p->dev, p->dir), p);
dev294fs/ext2/dcache.cp->dev = dev;
dev313fs/ext2/dcache.cvoid ext2_dcache_remove (unsigned short dev, unsigned long dir,
dev322fs/ext2/dcache.cprintk ("dcache_remove (%04x, %lu, %s, %d)\n", dev, dir, name, len);
dev326fs/ext2/dcache.cqueue = hash (dev, dir);
dev327fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, name, len))) {
dev362fs/ext2/super.cint dev = sb->s_dev;
dev377fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev378fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev401fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev412fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev415fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev488fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev497fs/ext2/super.cdev);
dev526fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev559fs/ext2/super.csb->s_dev = dev;
dev239fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno);
dev250fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev256fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino);
dev257fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino,
dev259fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev261fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev263fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp);
dev264fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev339fs/hpfs/hpfs_fs.cdev_t dev;
dev362fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev363fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev369fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev373fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev377fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev492fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev838fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno)
dev844fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1539fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev1545fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1569fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino)
dev1575fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1586fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp)
dev1595fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1607fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev1617fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1629fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev1639fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1651fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp)
dev1655fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1665fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev1680fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX);
dev1685fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1690fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1695fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev24fs/inode.cstatic inline int const hashfn(dev_t dev, unsigned int i)
dev26fs/inode.creturn (dev ^ i) % NR_IHASH;
dev29fs/inode.cstatic inline struct inode_hash_entry * const hash(dev_t dev, int i)
dev31fs/inode.creturn hash_table + hashfn(dev, i);
dev162fs/inode.cint fs_may_mount(dev_t dev)
dev171fs/inode.cif (inode->i_dev != dev)
dev180fs/inode.cint fs_may_umount(dev_t dev, struct inode * mount_root)
dev187fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev196fs/inode.cint fs_may_remount_ro(dev_t dev)
dev204fs/inode.cfile->f_inode->i_dev != dev)
dev269fs/inode.cvoid invalidate_inodes(dev_t dev)
dev278fs/inode.cif (inode->i_dev != dev)
dev281fs/inode.cprintk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev));
dev288fs/inode.cvoid sync_inodes(dev_t dev)
dev295fs/inode.cif (dev && inode->i_dev != dev)
dev219fs/isofs/dir.ccache.dev = inode->i_dev;
dev130fs/isofs/inode.cint dev=s->s_dev;
dev154fs/isofs/inode.cset_blocksize(dev, blocksize);
dev161fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), blocksize))) {
dev164fs/isofs/inode.cdev, iso_blknum);
dev257fs/isofs/inode.cs->s_dev = dev;
dev688fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev690fs/isofs/inode.creturn bread(dev, block, size);
dev229fs/isofs/namei.cif (dir->i_dev == cache.dev && 
dev120fs/minix/inode.cint i,dev=s->s_dev,block;
dev125fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
dev156fs/minix/inode.cprintk("VFS: Can't find a minix filesystem on dev 0x%04x.\n", dev);
dev165fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev170fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev189fs/minix/inode.cs->s_dev = dev;
dev384fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev412fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev418fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev436fs/namei.cerror = do_mknod(tmp,mode,dev);
dev175fs/nfs/dir.cint dev;
dev191fs/nfs/dir.cif (entry->dev == dir->i_dev && entry->inode == dir->i_ino
dev212fs/nfs/dir.centry->dev = 0;
dev238fs/nfs/dir.centry->dev = dir->i_dev;
dev251fs/nfs/dir.cint dev;
dev256fs/nfs/dir.cdev = inode->i_dev;
dev260fs/nfs/dir.cdev = entry->dev;
dev267fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev268fs/nfs/dir.centry->dev = 0;
dev276fs/nfs/dir.cint dev = file->i_dev;
dev282fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev68fs/nfs/inode.cdev_t dev = sb->s_dev;
dev95fs/nfs/inode.csb->s_dev = dev;
dev24fs/open.casmlinkage int sys_ustat(int dev, struct ustat * ubuf)
dev416fs/proc/array.cdev_t dev;
dev447fs/proc/array.cdev = map->vm_inode->i_dev;
dev450fs/proc/array.cdev = 0;
dev456fs/proc/array.cMAJOR(dev),MINOR(dev), ino);
dev111fs/proc/link.cunsigned int dev,ino;
dev123fs/proc/link.cdev = inode->i_dev;
dev126fs/proc/link.ci = sprintf(buf,"[%04x]:%u", dev, ino);
dev200fs/super.cvoid sync_supers(dev_t dev)
dev207fs/super.cif (dev && sb->s_dev != dev)
dev212fs/super.cif (dev && (dev != sb->s_dev))
dev219fs/super.cstatic struct super_block * get_super(dev_t dev)
dev223fs/super.cif (!dev)
dev227fs/super.cif (s->s_dev == dev) {
dev229fs/super.cif (s->s_dev == dev)
dev237fs/super.cvoid put_super(dev_t dev)
dev241fs/super.cif (dev == ROOT_DEV) {
dev243fs/super.cMAJOR(dev), MINOR(dev));
dev246fs/super.cif (!(sb = get_super(dev)))
dev250fs/super.cMAJOR(dev), MINOR(dev));
dev257fs/super.cstatic struct super_block * read_super(dev_t dev,char *name,int flags,
dev263fs/super.cif (!dev)
dev265fs/super.ccheck_disk_change(dev);
dev266fs/super.cs = get_super(dev);
dev271fs/super.cMAJOR(dev), MINOR(dev), name);
dev280fs/super.cs->s_dev = dev;
dev286fs/super.cs->s_dev = dev;
dev319fs/super.cstatic void put_unnamed_dev(dev_t dev)
dev321fs/super.cif (!dev)
dev323fs/super.cif (!unnamed_dev_in_use[dev]) {
dev325fs/super.cMAJOR(dev), MINOR(dev));
dev328fs/super.cunnamed_dev_in_use[dev] = 0;
dev331fs/super.cstatic int do_umount(dev_t dev)
dev336fs/super.cif (dev==ROOT_DEV) {
dev339fs/super.cif (!(sb=get_super(dev)))
dev342fs/super.cfsync_dev(dev);
dev349fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev353fs/super.cMAJOR(dev), MINOR(dev));
dev354fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev363fs/super.cput_super(dev);
dev381fs/super.cdev_t dev;
dev395fs/super.cdev = inode->i_rdev;
dev405fs/super.cdev = inode->i_sb->s_dev;
dev408fs/super.cdummy_inode.i_rdev = dev;
dev411fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev415fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev416fs/super.cfops = get_blkfops(MAJOR(dev));
dev419fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev420fs/super.cput_unnamed_dev(dev);
dev426fs/super.cfsync_dev(dev);
dev439fs/super.cstatic int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data)
dev456fs/super.cif (!fs_may_mount(dev)) {
dev460fs/super.csb = read_super(dev,type,flags,data,0);
dev562fs/super.cdev_t dev;
dev601fs/super.cdev = inode->i_rdev;
dev602fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev607fs/super.cif (!(dev = get_unnamed_dev()))
dev611fs/super.cfops = get_blkfops(MAJOR(dev));
dev628fs/super.cretval = do_mount(dev,dir_name,t,flags,(void *) page);
dev270fs/sysv/inode.cint dev = sb->s_dev;
dev286fs/sysv/inode.cif ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) {
dev291fs/sysv/inode.cif ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) {
dev307fs/sysv/inode.cif ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) {
dev319fs/sysv/inode.cprintk("VFS: unable to read Xenix/SystemV/Coherent superblock on device %d/%d\n",MAJOR(dev),MINOR(dev));
dev325fs/sysv/inode.cprintk("VFS: Found a %s FS (block size = %d) on device %d/%d\n",found,sb->sv_block_size,MAJOR(dev),MINOR(dev));
dev328fs/sysv/inode.csb->s_dev = dev;
dev64fs/xiafs/inode.cint i, z, dev;
dev66fs/xiafs/inode.cdev=s->s_dev;
dev69fs/xiafs/inode.cset_blocksize(dev, BLOCK_SIZE);
dev71fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
dev85fs/xiafs/inode.cdev);
dev94fs/xiafs/inode.cset_blocksize(dev, s->s_blocksize);
dev95fs/xiafs/inode.cbh = bread (dev, 0,  s->s_blocksize);
dev122fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev132fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev138fs/xiafs/inode.cs->s_dev = dev;
dev31include/linux/etherdevice.hextern int    eth_header(unsigned char *buff, struct device *dev,
dev35include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev37include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev370include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev371include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev372include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev414include/linux/fs.hextern void check_disk_change(dev_t dev);
dev415include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev416include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev418include/linux/fs.hextern void sync_inodes(dev_t dev);
dev419include/linux/fs.hextern void sync_dev(dev_t dev);
dev420include/linux/fs.hextern int fsync_dev(dev_t dev);
dev421include/linux/fs.hextern void sync_supers(dev_t dev);
dev429include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev437include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev438include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev440include/linux/fs.hextern void ll_rw_page(int rw, int dev, int nr, char * buffer);
dev441include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev443include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev444include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev445include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot);
dev446include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block, int size, 
dev448include/linux/fs.hextern void put_super(dev_t dev);
dev449include/linux/fs.hunsigned long generate_cluster(dev_t dev, int b[], int size);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev195include/linux/iso_fs.hdev_t dev;  /* And this matches */
dev211include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev113include/linux/msdos_fs.hstatic inline struct buffer_head *msdos_sread(int dev,int sector,void **start)
dev117include/linux/msdos_fs.hif (!(bh = bread(dev,sector >> 1, 1024)))
dev73include/linux/netdevice.hint        (*init)(struct device *dev);
dev80include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev120include/linux/netdevice.hint        (*open)(struct device *dev);
dev121include/linux/netdevice.hint        (*stop)(struct device *dev);
dev123include/linux/netdevice.hstruct device *dev);
dev125include/linux/netdevice.hstruct device *dev,
dev131include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev134include/linux/netdevice.hstruct device *dev);
dev136include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev,
dev139include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev141include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr);
dev143include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev178include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev179include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev180include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev186include/linux/netdevice.hstruct device * dev);
dev190include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev198include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev199include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev201include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev202include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev190include/linux/ppp.hstruct device    *dev;    /* easy for intr handling  */
dev48include/linux/skbuff.hstruct device      *dev;
dev519include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev542include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev647include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev648include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev651include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev652include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev656include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev659include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev667include/linux/soundcard.h#define SEQ_START_NOTE(dev, voice, note, vol)  {_SEQ_NEEDBUF(8);\
dev670include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev678include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, voice, note, vol)  {_SEQ_NEEDBUF(8);\
dev681include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev689include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, voice, pressure)  {_SEQ_NEEDBUF(8);\
dev692include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev700include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos)  {_SEQ_NEEDBUF(8);\
dev703include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev711include/linux/soundcard.h#define SEQ_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev714include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev721include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev722include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev723include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_EXPRESSION, value)
dev724include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_MAIN_VOLUME, value)
dev732include/linux/soundcard.h#define SEQ_SET_PATCH(dev, voice, patch)  {_SEQ_NEEDBUF(8);\
dev735include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev354include/linux/sysv_fs.hsysv_bread (struct super_block *sb, int dev, unsigned int block, char* * data)
dev358include/linux/sysv_fs.hif (!(bh = bread (dev, (block >> sb->sv_block_size_ratio_bits) + sb->sv_block_base, BLOCK_SIZE)))
dev276include/linux/tpqic02.h#define  TP_DENS(dev)  ((MINOR(dev) >> 1) & 0x07)         /* tape density */
dev277include/linux/tpqic02.h#define TP_UNIT(dev)  ((MINOR(dev) >> 4) & 0x07)         /* unit number */
dev278include/linux/tpqic02.h#define TP_DIAGS(dev)  (MINOR(dev) & 0x80)    /* print excessive diagnostics */
dev117include/linux/xd.hstatic int xd_reread_partitions (int dev);
dev290net/inet/af_inet.cskb->dev = NULL;
dev75net/inet/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev252net/inet/arp.cstruct device *dev, unsigned long src_ip, 
dev263net/inet/arp.cif(dev->flags&IFF_NOARP)
dev270net/inet/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev271net/inet/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev277net/inet/arp.cskb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4);
dev279net/inet/arp.cskb->dev = dev;
dev286net/inet/arp.cdev->hard_header(skb->data,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb);
dev289net/inet/arp.carp = (struct arphdr *) (skb->data + dev->hard_header_len);
dev290net/inet/arp.carp->ar_hrd = htons(dev->type);
dev292net/inet/arp.carp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP);
dev296net/inet/arp.carp->ar_hln = dev->addr_len;
dev302net/inet/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev303net/inet/arp.carp_ptr+=dev->addr_len;
dev307net/inet/arp.cmemcpy(arp_ptr, dest_hw, dev->addr_len);
dev309net/inet/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev310net/inet/arp.carp_ptr+=dev->addr_len;
dev313net/inet/arp.cdev_queue_xmit(skb, dev, 0);
dev347net/inet/arp.cstruct device *dev = entry->dev;
dev354net/inet/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, 
dev355net/inet/arp.cNULL, dev->dev_addr);
dev411net/inet/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev415net/inet/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev417net/inet/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev467net/inet/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev490net/inet/arp.cif (arp->ar_hln != dev->addr_len    || 
dev491net/inet/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev492net/inet/arp.cdev->flags & IFF_NOARP          ||
dev505net/inet/arp.cswitch(dev->type)
dev534net/inet/arp.chlen  = dev->addr_len;
dev535net/inet/arp.chtype = dev->type;
dev618net/inet/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha);
dev634net/inet/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr);
dev701net/inet/arp.centry->dev = skb->dev;
dev721net/inet/arp.cint arp_find(unsigned char *haddr, unsigned long paddr, struct device *dev,
dev730net/inet/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev734net/inet/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev770net/inet/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev786net/inet/arp.centry->hlen = dev->addr_len;
dev787net/inet/arp.centry->htype = dev->type;
dev789net/inet/arp.cmemset(entry->ha, 0, dev->addr_len);
dev792net/inet/arp.centry->dev = dev;
dev814net/inet/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev815net/inet/arp.cdev->dev_addr);
dev1016net/inet/arp.centry->dev = rt->rt_dev;
dev7net/inet/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev10net/inet/arp.hstruct device *dev, unsigned long saddr, struct sk_buff *skb);
dev14net/inet/arp.hstruct device *dev, unsigned long src_ip, 
dev230net/inet/dev.cstruct device *dev;
dev232net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev234net/inet/dev.cif (strcmp(dev->name, name) == 0)
dev235net/inet/dev.creturn(dev);
dev245net/inet/dev.cint dev_open(struct device *dev)
dev252net/inet/dev.cif (dev->open) 
dev253net/inet/dev.cret = dev->open(dev);
dev260net/inet/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev275net/inet/dev.cint dev_close(struct device *dev)
dev281net/inet/dev.cif (dev->flags != 0) 
dev284net/inet/dev.cdev->flags = 0;
dev288net/inet/dev.cif (dev->stop) 
dev289net/inet/dev.cdev->stop(dev);
dev294net/inet/dev.cip_rt_flush(dev);
dev297net/inet/dev.cipxrtr_device_down(dev);
dev302net/inet/dev.cdev->pa_addr = 0;
dev303net/inet/dev.cdev->pa_dstaddr = 0;
dev304net/inet/dev.cdev->pa_brdaddr = 0;
dev305net/inet/dev.cdev->pa_mask = 0;
dev312net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev326net/inet/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev333net/inet/dev.cif (dev == NULL) 
dev341net/inet/dev.cif(dev->slave!=NULL && dev->slave->pkt_queue < dev->pkt_queue &&
dev342net/inet/dev.c(dev->slave->flags & IFF_UP))
dev343net/inet/dev.cdev=dev->slave;
dev349net/inet/dev.cskb->dev = dev;
dev361net/inet/dev.cdev->hard_start_xmit(NULL, dev);
dev388net/inet/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev398net/inet/dev.cskb_queue_tail(dev->buffs + pri,skb);
dev399net/inet/dev.cskb = skb_dequeue(dev->buffs + pri);
dev406net/inet/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev408net/inet/dev.cdev->pkt_queue--;
dev419net/inet/dev.cdev->pkt_queue++;
dev421net/inet/dev.cskb_queue_head(dev->buffs + pri,skb);
dev493net/inet/dev.cint dev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev501net/inet/dev.cif (dev == NULL || buff == NULL || len <= 0) 
dev522net/inet/dev.cdev->name);
dev538net/inet/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev545net/inet/dev.cif ((unsigned long) buff == dev->rmem_end)
dev546net/inet/dev.cbuff = (unsigned char *) dev->rmem_start;
dev555net/inet/dev.cskb->dev = dev;
dev572net/inet/dev.cstruct device *dev;
dev574net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev576net/inet/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev580net/inet/dev.cdev_tint(dev);
dev666net/inet/dev.cskb->h.raw = skb->data + skb->dev->hard_header_len;
dev667net/inet/dev.cskb->len -= skb->dev->hard_header_len;
dev680net/inet/dev.ctype = skb->dev->type_trans(skb, skb->dev);
dev741net/inet/dev.cptype->func(skb2, skb->dev, ptype);
dev782net/inet/dev.cvoid dev_tint(struct device *dev)
dev797net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev803net/inet/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev807net/inet/dev.cif (dev->tbusy)
dev824net/inet/dev.cstruct device *dev;
dev853net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev855net/inet/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev858net/inet/dev.cstrcpy(ifr.ifr_name, dev->name);
dev859net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev860net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev899net/inet/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev901net/inet/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev906net/inet/dev.cdev->name,
dev917net/inet/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev934net/inet/dev.cstruct device *dev;
dev944net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev946net/inet/dev.csize = sprintf_stats(buffer+len, dev);
dev991net/inet/dev.cstruct device *dev;
dev1008net/inet/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) 
dev1014net/inet/dev.cifr.ifr_flags = dev->flags;
dev1020net/inet/dev.cint old_flags = dev->flags;
dev1022net/inet/dev.cif(dev->flags&IFF_SLAVE)
dev1025net/inet/dev.cdev->flags = ifr.ifr_flags & (
dev1030net/inet/dev.cif(!(dev->flags&IFF_MASTER) && dev->slave)
dev1032net/inet/dev.cdev->slave->flags&=~IFF_SLAVE;
dev1033net/inet/dev.cdev->slave=NULL;
dev1040net/inet/dev.cif ( (old_flags & IFF_PROMISC) && ((dev->flags & IFF_PROMISC) == 0))
dev1041net/inet/dev.cdev->set_multicast_list(dev,0,NULL);
dev1047net/inet/dev.cif ( (dev->flags & IFF_PROMISC) && ((old_flags & IFF_PROMISC) == 0))
dev1048net/inet/dev.cdev->set_multicast_list(dev,-1,NULL);
dev1054net/inet/dev.cif ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) 
dev1056net/inet/dev.cret = dev_close(dev);
dev1064net/inet/dev.cret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP))
dev1065net/inet/dev.c? dev_open(dev) : 0;
dev1070net/inet/dev.cdev->flags&=~IFF_UP;  /* Didnt open so down the if */
dev1077net/inet/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1079net/inet/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1087net/inet/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1089net/inet/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1094net/inet/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1096net/inet/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1102net/inet/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1104net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1112net/inet/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1119net/inet/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1121net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1129net/inet/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1136net/inet/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1138net/inet/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1155net/inet/dev.cdev->pa_mask = mask;
dev1162net/inet/dev.cifr.ifr_metric = dev->metric;
dev1168net/inet/dev.cdev->metric = ifr.ifr_metric;
dev1173net/inet/dev.cifr.ifr_mtu = dev->mtu;
dev1186net/inet/dev.cdev->mtu = ifr.ifr_mtu;
dev1202net/inet/dev.cmemcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev1208net/inet/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1209net/inet/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1215net/inet/dev.cif(dev->set_mac_address==NULL)
dev1217net/inet/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1219net/inet/dev.cret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data);
dev1223net/inet/dev.cif(dev->do_ioctl==NULL)
dev1225net/inet/dev.creturn dev->do_ioctl(dev, &ifr);
dev1228net/inet/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1229net/inet/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1230net/inet/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1231net/inet/dev.cifr.ifr_map.irq=dev->irq;
dev1232net/inet/dev.cifr.ifr_map.dma=dev->dma;
dev1233net/inet/dev.cifr.ifr_map.port=dev->if_port;
dev1239net/inet/dev.cif(dev->set_config==NULL)
dev1241net/inet/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1245net/inet/dev.cif(dev->slave==NULL)
dev1247net/inet/dev.cstrncpy(ifr.ifr_name,dev->name,sizeof(ifr.ifr_name));
dev1275net/inet/dev.cif(dev->flags&IFF_SLAVE)
dev1280net/inet/dev.cif(dev->slave!=NULL)
dev1290net/inet/dev.cdev->slave=slave;
dev1292net/inet/dev.cdev->flags|=IFF_MASTER;
dev1390net/inet/dev.cstruct device *dev, *dev2;
dev1400net/inet/dev.cfor (dev = dev_base; dev != NULL; dev=dev->next) 
dev1402net/inet/dev.cif (dev->init && dev->init(dev)) 
dev1409net/inet/dev.cdev_base = dev->next;
dev1411net/inet/dev.cdev2->next = dev->next;
dev1415net/inet/dev.cdev2 = dev;
dev115net/inet/devinet.cstruct device *dev;
dev141net/inet/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev143net/inet/devinet.cif (!(dev->flags & IFF_UP))
dev150net/inet/devinet.cif ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/)
dev156net/inet/devinet.cif (addr == dev->pa_addr)
dev162net/inet/devinet.cif ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr)
dev168net/inet/devinet.cif (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) 
dev170net/inet/devinet.cif ((addr & ~dev->pa_mask) == 0)
dev172net/inet/devinet.cif ((addr & ~dev->pa_mask) == ~dev->pa_mask)
dev180net/inet/devinet.cif (((addr ^ dev->pa_addr) & mask) == 0) 
dev204net/inet/devinet.cstruct device *dev;
dev206net/inet/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev208net/inet/devinet.cif (dev->flags & IFF_LOOPBACK) 
dev209net/inet/devinet.creturn(dev->pa_addr);
dev223net/inet/devinet.cstruct device *dev;
dev225net/inet/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev227net/inet/devinet.cif (!(dev->flags & IFF_UP))
dev229net/inet/devinet.cif (!(dev->flags & IFF_POINTOPOINT))
dev231net/inet/devinet.cif (addr != dev->pa_dstaddr)
dev233net/inet/devinet.creturn dev;
dev235net/inet/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev237net/inet/devinet.cif (!(dev->flags & IFF_UP))
dev239net/inet/devinet.cif (dev->flags & IFF_POINTOPOINT)
dev241net/inet/devinet.cif (dev->pa_mask & (addr ^ dev->pa_addr))
dev243net/inet/devinet.creturn dev;
dev82net/inet/eth.cint eth_header(unsigned char *buff, struct device *dev, unsigned short type,
dev103net/inet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev105net/inet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev111net/inet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev113net/inet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev114net/inet/eth.creturn(dev->hard_header_len);
dev119net/inet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev120net/inet/eth.creturn dev->hard_header_len;
dev123net/inet/eth.creturn -dev->hard_header_len;
dev133net/inet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev145net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev153net/inet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev166net/inet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev173net/inet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev179net/inet/eth.cif(dev->flags&IFF_PROMISC)
dev181net/inet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev27net/inet/eth.hextern int    eth_header(unsigned char *buff, struct device *dev,
dev30net/inet/eth.hextern int    eth_rebuild_header(void *buff, struct device *dev);
dev32net/inet/eth.hstruct device *dev);
dev33net/inet/eth.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev90net/inet/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, struct device *dev)
dev103net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
dev161net/inet/icmp.clen = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) +
dev176net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
dev210net/inet/icmp.cip_queue_xmit(NULL, dev, skb, 1);
dev288net/inet/icmp.cstruct device *dev, unsigned long source)
dev311net/inet/icmp.cip, 0, icmph->un.gateway, dev,0);
dev327net/inet/icmp.cip, 0, icmph->un.gateway, dev,0);
dev349net/inet/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev361net/inet/icmp.csize = dev->hard_header_len + 64 + len;
dev403net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev416net/inet/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev427net/inet/icmp.csize = dev->hard_header_len + 64 + len;
dev481net/inet/icmp.cip_queue_xmit((struct sock *) NULL, dev, skb2, 1);
dev493net/inet/icmp.cstatic void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev506net/inet/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev518net/inet/icmp.csize = dev->hard_header_len + 64 + len;
dev559net/inet/icmp.cmemcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask));
dev564net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev575net/inet/icmp.cint icmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt,
dev636net/inet/icmp.cicmp_redirect(icmph, skb1, dev, saddr);
dev640net/inet/icmp.cicmp_echo(icmph, skb1, dev, saddr, daddr, len, opt);
dev648net/inet/icmp.cicmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt);
dev656net/inet/icmp.cicmp_info(icmph, skb1, dev, saddr, daddr, len, opt);
dev664net/inet/icmp.cicmp_address(icmph, skb1, dev, saddr, daddr, len, opt);
dev29net/inet/icmp.hstruct device *dev);
dev30net/inet/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev158net/inet/ip.cstatic int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr)
dev162net/inet/ip.cskb->dev = dev;
dev164net/inet/ip.cif (dev->hard_header) 
dev170net/inet/ip.cmac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb);
dev190net/inet/ip.cstruct device **dev, int type, struct options *opt, int len, int tos, int ttl)
dev213net/inet/ip.cif (*dev == NULL) 
dev225net/inet/ip.c*dev = rt->rt_dev;
dev265net/inet/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev273net/inet/ip.cskb->dev = *dev;
dev692net/inet/ip.cICMP_EXC_FRAGTIME, qp->dev);
dev708net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev719net/inet/ip.cskb->dev = qp->dev;
dev760net/inet/ip.cqp->dev = dev;
dev890net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev937net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
dev957net/inet/ip.cptr = skb->data + dev->hard_header_len + ihl;
dev1083net/inet/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev1098net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
dev1108net/inet/ip.chlen += dev->hard_header_len;    /* Total header size */
dev1109net/inet/ip.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev1119net/inet/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); 
dev1132net/inet/ip.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev);
dev1217net/inet/ip.cskb2->h.raw+=dev->hard_header_len; 
dev1239net/inet/ip.cip_queue_xmit(sk, dev, skb2, 2);
dev1252net/inet/ip.cstatic void ip_forward(struct sk_buff *skb, struct device *dev, int is_frag)
dev1277net/inet/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev);
dev1301net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev);
dev1328net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev);
dev1350net/inet/ip.cif (dev == dev2)
dev1427net/inet/ip.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1523net/inet/ip.cip_forward(skb, dev, is_frag);
dev1545net/inet/ip.cskb=ip_defrag(iph,skb,dev);
dev1612net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
dev1628net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1645net/inet/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev, 
dev1656net/inet/ip.cif (dev == NULL) 
dev1669net/inet/ip.cskb->dev = dev;
dev1681net/inet/ip.cptr += dev->hard_header_len;
dev1684net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
dev1703net/inet/ip.cif(skb->len > dev->mtu)
dev1705net/inet/ip.cip_fragment(sk,skb,dev,0);
dev1781net/inet/ip.cif (dev->flags & IFF_UP) 
dev1790net/inet/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev1794net/inet/ip.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1815net/inet/ip.cstruct device *dev;
dev1824net/inet/ip.cdev = skb->dev;
dev1843net/inet/ip.ciph = (struct iphdr *)(skb->data + dev->hard_header_len);
dev1859net/inet/ip.cif (dev->flags & IFF_UP) 
dev1875net/inet/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev62net/inet/ip.hstruct device *dev;    /* Device - for icmp replies */
dev75net/inet/ip.hstruct device **dev, int type,
dev79net/inet/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev82net/inet/ip.hstruct device *dev, struct sk_buff *skb,
dev203net/inet/ipx.cipxrtr_get_local_net(struct device *dev, unsigned short datalink)
dev212net/inet/ipx.cif((r->dev==dev) && (r->dlink_type == datalink))
dev276net/inet/ipx.cstruct device *dev;
dev321net/inet/ipx.crt->dev=rt1->dev;
dev325net/inet/ipx.cdev=dev_get(r->ipx_device);
dev326net/inet/ipx.cif(dev==NULL)
dev329net/inet/ipx.cif(dev->addr_len>6)
dev331net/inet/ipx.cif(dev->addr_len<2)
dev333net/inet/ipx.cif (ipxrtr_get_local_net(dev, dlink_type) != NULL)
dev343net/inet/ipx.crt->dev=dev;
dev387net/inet/ipx.cvoid ipxrtr_device_down(struct device *dev)
dev393net/inet/ipx.cif (tmp->dev == dev) {
dev440net/inet/ipx.crt->router_node[3], rt->router_node[4], rt->router_node[5], rt->flags, rt->dev->name);
dev740net/inet/ipx.cnodestart = sk->ipx_source_addr.node + (6 - rt->dev->addr_len);
dev741net/inet/ipx.cmemcpy(nodestart,rt->dev->dev_addr,rt->dev->addr_len);
dev841net/inet/ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev876net/inet/ipx.cln = ipxrtr_get_local_net(dev, pt->type);
dev884net/inet/ipx.cmemcpy(IPXaddr+(6 - dev->addr_len), dev->dev_addr, dev->addr_len);
dev922net/inet/ipx.coutgoing_size = rt->datalink->header_length + rt->dev->hard_header_len;
dev954net/inet/ipx.cskb2->dev = rt->dev;
dev959net/inet/ipx.cdev_queue_xmit(skb2,rt->dev,SOPRI_NORMAL);
dev1008net/inet/ipx.cstruct device *dev;
dev1079net/inet/ipx.cdev=rt->dev;
dev1082net/inet/ipx.csize += dev->hard_header_len;
dev1106net/inet/ipx.cskb->dev=rt->dev;
dev1114net/inet/ipx.cmemcpy(IPXaddr+(6 - skb->dev->addr_len), skb->dev->dev_addr, 
dev1115net/inet/ipx.cskb->dev->addr_len);
dev1141net/inet/ipx.cif((dev->flags&IFF_LOOPBACK) || self_addressing) {
dev1148net/inet/ipx.cipx_rcv(skb,dev,&pt);
dev1164net/inet/ipx.c+ dev->hard_header_len;
dev1166net/inet/ipx.cipx_rcv(skb2,dev,&pt);
dev1168net/inet/ipx.cdev_queue_xmit(skb,dev,SOPRI_NORMAL);
dev55net/inet/ipx.hstruct device *dev;
dev66net/inet/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev67net/inet/ipx.hextern void ipxrtr_device_down(struct device *dev);
dev23net/inet/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev30net/inet/p8022.creturn proto->rcvfunc(skb, dev, pt);
dev42net/inet/p8022.cstruct device  *dev = skb->dev;
dev44net/inet/p8022.cunsigned long  hard_len = dev->hard_header_len;
dev47net/inet/p8022.cdev->hard_header(skb->data, dev, len - hard_len,
dev11net/inet/p8023.cstruct device  *dev = skb->dev;
dev13net/inet/p8023.cunsigned long  hard_len = dev->hard_header_len;
dev15net/inet/p8023.cdev->hard_header(skb->data, dev, len - hard_len,
dev65net/inet/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev82net/inet/packet.cskb->dev = dev;
dev83net/inet/packet.cskb->len += dev->hard_header_len;
dev126net/inet/packet.cstruct device *dev;
dev169net/inet/packet.cdev = dev_get(saddr.sa_data);
dev170net/inet/packet.cif (dev == NULL) 
dev180net/inet/packet.cif(len>dev->mtu)
dev213net/inet/packet.cif (dev->flags & IFF_UP) 
dev214net/inet/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev364net/inet/packet.caddr.sa_family = skb->dev->type;
dev365net/inet/packet.cmemcpy(addr.sa_data,skb->dev->name, 14);
dev11net/inet/pe2.cstruct device  *dev = skb->dev;
dev13net/inet/pe2.cunsigned long  hard_len = dev->hard_header_len;
dev15net/inet/pe2.cdev->hard_header(skb->data, dev, ETH_P_IPX,
dev31net/inet/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
dev35net/inet/protocol.hint      (*frag_handler)(struct sk_buff *skb, struct device *dev,
dev72net/inet/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev164net/inet/rarp.cint rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev179net/inet/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev180net/inet/rarp.c|| dev->flags&IFF_NOARP)
dev201net/inet/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev203net/inet/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev218net/inet/rarp.crarp_ptr+=dev->addr_len;
dev222net/inet/rarp.crarp_ptr+=dev->addr_len;
dev239net/inet/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev240net/inet/rarp.cdev->dev_addr);
dev340net/inet/rarp.centry->dev = rt->rt_dev;
dev7net/inet/rarp.hstruct device *dev, 
dev91net/inet/raw.craw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev117net/inet/raw.cskb->dev = dev;
dev144net/inet/raw.cstruct device *dev=NULL;
dev227net/inet/raw.csin.sin_addr.s_addr, &dev,
dev257net/inet/raw.csk->prot->queue_xmit(sk, dev, skb, 1);
dev26net/inet/raw.hextern int  raw_rcv(struct sk_buff *skb, struct device *dev,
dev107net/inet/route.cvoid ip_rt_flush(struct device *dev)
dev117net/inet/route.cif (r->rt_dev != dev) {
dev152net/inet/route.cstatic unsigned long guess_mask(unsigned long dst, struct device * dev)
dev159net/inet/route.cif ((dst ^ dev->pa_addr) & mask)
dev161net/inet/route.creturn dev->pa_mask;
dev198net/inet/route.cunsigned long gw, struct device *dev, unsigned short mtu)
dev219net/inet/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev221net/inet/route.cmask = dev->pa_mask;
dev230net/inet/route.cmask = guess_mask(dst, dev);
dev238net/inet/route.cif (gw == dev->pa_addr)
dev247net/inet/route.cif (dev != get_gw_dev(gw))
dev267net/inet/route.crt->rt_dev = dev;
dev270net/inet/route.crt->rt_mtu = dev->mtu;
dev356net/inet/route.cstruct device * dev = NULL;
dev368net/inet/route.cdev = dev_get(devname);
dev370net/inet/route.cif (!dev)
dev397net/inet/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev405net/inet/route.cdev = dev2;
dev435net/inet/route.cif (!dev)
dev436net/inet/route.cdev = get_gw_dev(gw);
dev438net/inet/route.celse if (!dev)
dev439net/inet/route.cdev = ip_dev_check(daddr);
dev445net/inet/route.cif (dev == NULL)
dev452net/inet/route.cip_rt_add(flags, daddr, mask, gw, dev, r->rt_mtu);
dev44net/inet/route.hextern void    ip_rt_flush(struct device *dev);
dev46net/inet/route.hunsigned long gw, struct device *dev, unsigned short);
dev426net/inet/skbuff.cif(skb->in_dev_queue && skb->dev!=NULL)
dev427net/inet/skbuff.cskb->dev->pkt_queue--;
dev435net/inet/skbuff.cif(skb->in_dev_queue && skb->dev!=NULL)
dev436net/inet/skbuff.cskb->dev->pkt_queue--;
dev499net/inet/skbuff.cif(x->in_dev_queue && x->dev!=NULL)
dev500net/inet/skbuff.cx->dev->pkt_queue--;
dev543net/inet/skbuff.cn->dev=skb->dev;
dev415net/inet/sock.cif (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt,
dev205net/inet/sock.hstruct device **dev, int type,
dev211net/inet/sock.hstruct device *dev, struct sk_buff *skb,
dev216net/inet/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev599net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev658net/inet/tcp.cstruct device *dev = NULL;
dev686net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev736net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev776net/inet/tcp.cstruct device *dev = NULL;
dev1021net/inet/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1032net/inet/tcp.cskb->dev = dev;
dev1116net/inet/tcp.cstruct device *dev = NULL;
dev1150net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1178net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1470net/inet/tcp.cstruct device *dev = NULL;
dev1528net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev1559net/inet/tcp.cbuff->dev = dev;
dev1590net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev1646net/inet/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev1664net/inet/tcp.cbuff->dev = dev;
dev1717net/inet/tcp.cprot->queue_xmit(NULL, dev, buff, 1);
dev1800net/inet/tcp.cstruct options *opt, struct device *dev)
dev1817net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev1925net/inet/tcp.cif ((saddr ^ daddr) & dev->pa_mask)
dev1932net/inet/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE);
dev2000net/inet/tcp.cnewsk->prot->queue_xmit(newsk, dev, buff, 0);
dev2022net/inet/tcp.cstruct device *dev=NULL;
dev2139net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2165net/inet/tcp.cbuff->dev = dev;
dev2189net/inet/tcp.cprot->queue_xmit(sk, dev, buff, 0);
dev2259net/inet/tcp.cskb->dev->hard_header_len);
dev2269net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev2725net/inet/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev2982net/inet/tcp.cunsigned long saddr, struct device *dev)
dev3117net/inet/tcp.cstruct device *dev=NULL;
dev3194net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3231net/inet/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
dev3244net/inet/tcp.csk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE);
dev3268net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev3280net/inet/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev3321net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev3332net/inet/tcp.ctcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev3343net/inet/tcp.cif (!dev) 
dev3381net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev3450net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
dev3490net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl);
dev3518net/inet/tcp.cif (th->fin && tcp_fin(skb, sk, th, saddr, dev)) {
dev3537net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3550net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3564net/inet/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev);
dev3583net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) 
dev3625net/inet/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3653net/inet/tcp.csk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev3702net/inet/tcp.cif (th->fin) tcp_fin(skb, sk, th, saddr, dev);
dev3725net/inet/tcp.ctcp_fin(skb, sk, th, saddr, dev);
dev3741net/inet/tcp.cstruct device *dev=NULL;
dev3773net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3807net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev119net/inet/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev250net/inet/udp.cstruct device *dev;
dev277net/inet/udp.cdev = NULL;
dev279net/inet/udp.c&dev, IPPROTO_UDP, sk->opt, skb->mem_len,sk->ip_tos,sk->ip_ttl);
dev295net/inet/udp.cskb->dev = dev;
dev325net/inet/udp.csk->prot->queue_xmit(sk, dev, skb, 1);
dev574net/inet/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev610net/inet/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev);
dev630net/inet/udp.cskb->dev = dev;
dev43net/inet/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,