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);
dev85drivers/block/blk.hextern int is_read_only(int dev);
dev86drivers/block/blk.hextern void set_device_ro(int dev,int flag);
dev94drivers/block/blk.h#define RO_IOCTLS(dev,where) \
dev96drivers/block/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev98drivers/block/blk.hif (!__err) put_fs_long(is_read_only(dev),(long *) (where)); return __err; }
dev212drivers/block/blk.h#define CURRENT_DEV DEVICE_NR(CURRENT->dev)
dev254drivers/block/blk.h(unsigned long)req->dev, req->sector);
dev276drivers/block/blk.hDEVICE_OFF(req->dev);
dev284drivers/block/blk.hreq->dev = -1;
dev300drivers/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)))
dev84drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
dev93drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
dev105drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev106drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev107drivers/block/genhd.cprintk("  unable to read partition table of device %04x\n",dev);
dev160drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev163drivers/block/genhd.cint start = drive<<dev->minor_shift;
dev164drivers/block/genhd.cint j = start + dev->max_p;
dev165drivers/block/genhd.cint major = dev->major << 8;
dev167drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev168drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev171drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev174drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev177drivers/block/genhd.cint j = dev->max_nr * dev->max_p;
dev178drivers/block/genhd.cint major = dev->major << 8;
dev183drivers/block/genhd.cdev->part[i].start_sect = 0;
dev184drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev186drivers/block/genhd.cdev->init();  
dev187drivers/block/genhd.cfor (drive=0 ; drive<dev->nr_real ; drive++) {
dev188drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev189drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev192drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev193drivers/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,
dev755drivers/block/hd.cstatic int revalidate_hddisk(int dev, int maxusage)
dev763drivers/block/hd.ctarget =  DEVICE_NR(MINOR(dev));
dev82drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, int dev)
dev98drivers/block/ll_rw_blk.cif (req->dev < 0)
dev104drivers/block/ll_rw_blk.creq->dev = dev;
dev113drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, int dev)
dev117drivers/block/ll_rw_blk.cwhile ((req = get_request(n, dev)) == NULL)
dev126drivers/block/ll_rw_blk.cint is_read_only(int dev)
dev130drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev131drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev136drivers/block/ll_rw_blk.cvoid set_device_ro(int dev,int flag)
dev140drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev141drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev152drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
dev160drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev161drivers/block/ll_rw_blk.cdev->current_request = req;
dev162drivers/block/ll_rw_blk.c(dev->request_fn)();
dev176drivers/block/ll_rw_blk.cif (scsi_major(MAJOR(req->dev)))
dev177drivers/block/ll_rw_blk.c(dev->request_fn)();
dev239drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev253drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev306drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, int dev, int page, char * buffer)
dev309drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev312drivers/block/ll_rw_blk.cprintk("Trying to read nonexistent block-device %04x (%d)\n",dev,page*8);
dev317drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev318drivers/block/ll_rw_blk.cprintk("Can't page to read-only device 0x%X\n",dev);
dev322drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev349drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev359drivers/block/ll_rw_blk.cdev = NULL;
dev361drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev362drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev399drivers/block/ll_rw_blk.cif (!dev->current_request && nr > 1) {
dev400drivers/block/ll_rw_blk.cdev->current_request = &plug;
dev401drivers/block/ll_rw_blk.cplug.dev = -1;
dev418drivers/block/ll_rw_blk.cdev->current_request = plug.next;
dev419drivers/block/ll_rw_blk.c(dev->request_fn)();
dev432drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
dev437drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev448drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev449drivers/block/ll_rw_blk.cprintk("Can't swap to read-only device 0x%X\n",dev);
dev458drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev481drivers/block/ll_rw_blk.creq->dev = -1;
dev537drivers/block/mcd.cunsigned int block,dev;
dev541drivers/block/mcd.cif (!(CURRENT) || CURRENT->dev < 0) return;
dev543drivers/block/mcd.cdev = MINOR(CURRENT->dev);
dev40drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev2335drivers/block/sbpcd.cint dev;
dev2343drivers/block/sbpcd.cif ((CURRENT==NULL)||(CURRENT->dev<0)) return;
dev2346drivers/block/sbpcd.cdev = MINOR(CURRENT->dev);
dev2347drivers/block/sbpcd.cif ( (dev<0) || (dev>=NR_SBPCD) )
dev2349drivers/block/sbpcd.cprintk("SBPCD: do_request: bad device: %d\n", dev);
dev2352drivers/block/sbpcd.cswitch_drive(dev);
dev161drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev163drivers/block/xd.cif (dev < xd_drives) {
dev164drivers/block/xd.cwhile (!xd_valid[dev])
dev167drivers/block/xd.cxd_access[dev]++;
dev185drivers/block/xd.cif (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) {
dev186drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
dev205drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev)),err;
dev207drivers/block/xd.cif (inode && (dev < xd_drives))
dev212drivers/block/xd.cput_fs_byte(xd_info[dev].heads,(char *) &geometry->heads);
dev213drivers/block/xd.cput_fs_byte(xd_info[dev].sectors,(char *) &geometry->sectors);
dev214drivers/block/xd.cput_fs_word(xd_info[dev].cylinders,(short *) &geometry->cylinders);
dev244drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev246drivers/block/xd.cif (dev < xd_drives) {
dev247drivers/block/xd.csync_dev(dev);
dev248drivers/block/xd.cxd_access[dev]--;
dev253drivers/block/xd.cstatic int xd_reread_partitions(int dev)
dev255drivers/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)) {
dev243drivers/char/tty_io.cint dev;
dev247drivers/char/tty_io.cdev = MKDEV(TTY_MAJOR,tty->line);
dev251drivers/char/tty_io.cif (filp->f_rdev != dev)
dev1148drivers/char/tty_io.cint i, dev;
dev1151drivers/char/tty_io.cdev = file->f_rdev;
dev1152drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1153drivers/char/tty_io.cprintk("tty_read: bad pseudo-major nr #%d\n", MAJOR(dev));
dev1156drivers/char/tty_io.cdev = MINOR(dev);
dev1157drivers/char/tty_io.ctty = TTY_TABLE(dev);
dev1168drivers/char/tty_io.c(current->tty == dev) &&
dev1189drivers/char/tty_io.cint dev, i, is_console;
dev1192drivers/char/tty_io.cdev = file->f_rdev;
dev1194drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1198drivers/char/tty_io.cdev = MINOR(dev);
dev1202drivers/char/tty_io.ctty = TTY_TABLE(dev);
dev1207drivers/char/tty_io.c(current->tty == dev) && (tty->pgrp != current->pgrp)) {
dev1231drivers/char/tty_io.cstatic int init_dev(int dev)
dev1238drivers/char/tty_io.co_dev = PTY_OTHER(dev);
dev1244drivers/char/tty_io.cif (IS_A_PTY_MASTER(dev) && tty_table[dev] && tty_table[dev]->count)
dev1247drivers/char/tty_io.cif (!tty_table[dev] && !tty) {
dev1250drivers/char/tty_io.cinitialize_tty_struct(dev, tty);
dev1253drivers/char/tty_io.cif (!tty_termios[dev] && !tp) {
dev1258drivers/char/tty_io.cinitialize_termios(dev, tp);
dev1261drivers/char/tty_io.cif (!termios_locked[dev] && !ltp) {
dev1269drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1297drivers/char/tty_io.cif (!tty_termios[dev]) {
dev1298drivers/char/tty_io.ctty_termios[dev] = tp;
dev1301drivers/char/tty_io.cif (!tty_table[dev]) {
dev1302drivers/char/tty_io.ctty->termios = tty_termios[dev];
dev1303drivers/char/tty_io.ctty_table[dev] = tty;
dev1306drivers/char/tty_io.cif (!termios_locked[dev]) {
dev1307drivers/char/tty_io.ctermios_locked[dev] = ltp;
dev1310drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1324drivers/char/tty_io.ctty_table[dev]->link = tty_table[o_dev];
dev1325drivers/char/tty_io.ctty_table[o_dev]->link = tty_table[dev];
dev1327drivers/char/tty_io.ctty_table[dev]->count++;
dev1328drivers/char/tty_io.cif (IS_A_PTY_MASTER(dev))
dev1352drivers/char/tty_io.cstatic void release_dev(int dev, struct file * filp)
dev1358drivers/char/tty_io.ctty = tty_table[dev];
dev1359drivers/char/tty_io.ctp = tty_termios[dev];
dev1363drivers/char/tty_io.cprintk("release_dev: tty_table[%d] was NULL\n", dev);
dev1367drivers/char/tty_io.cprintk("release_dev: tty_termios[%d] was NULL\n", dev);
dev1371drivers/char/tty_io.cprintk("release_dev of tty%d (tty count=%d)...", dev, tty->count);
dev1373drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1374drivers/char/tty_io.co_tty = tty_table[PTY_OTHER(dev)];
dev1375drivers/char/tty_io.co_tp = tty_termios[PTY_OTHER(dev)];
dev1377drivers/char/tty_io.cprintk("release_dev: pty pair(%d) was NULL\n", dev);
dev1381drivers/char/tty_io.cprintk("release_dev: pty pair(%d) termios was NULL\n", dev);
dev1392drivers/char/tty_io.cif (IS_A_PTY_MASTER(dev)) {
dev1395drivers/char/tty_io.cdev, tty->count);
dev1401drivers/char/tty_io.cdev, tty->count);
dev1433drivers/char/tty_io.ctty_table[PTY_OTHER(dev)] = NULL;
dev1434drivers/char/tty_io.ctty_termios[PTY_OTHER(dev)] = NULL;
dev1437drivers/char/tty_io.ctty_table[dev] = NULL;
dev1438drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1439drivers/char/tty_io.ctty_termios[dev] = NULL;
dev1557drivers/char/tty_io.cint dev;
dev1559drivers/char/tty_io.cdev = filp->f_rdev;
dev1560drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1564drivers/char/tty_io.cdev = MINOR(filp->f_rdev);
dev1565drivers/char/tty_io.cif (!dev) {
dev1569drivers/char/tty_io.crelease_dev(dev, filp);
dev1574drivers/char/tty_io.cint dev;
dev1577drivers/char/tty_io.cdev = filp->f_rdev;
dev1578drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1582drivers/char/tty_io.cdev = MINOR(filp->f_rdev);
dev1583drivers/char/tty_io.ctty = TTY_TABLE(dev);
dev1585drivers/char/tty_io.cprintk("tty_select: tty struct for dev %d was NULL\n", dev);
dev344drivers/char/tty_ioctl.cint dev;
dev352drivers/char/tty_ioctl.cdev = MINOR(file->f_rdev);
dev353drivers/char/tty_ioctl.ctty = TTY_TABLE(dev);
dev356drivers/char/tty_ioctl.cif (IS_A_PTY(dev))
dev357drivers/char/tty_ioctl.cother_tty = tty_table[PTY_OTHER(dev)];
dev360drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev)) {
dev362drivers/char/tty_ioctl.ctermios_dev = PTY_OTHER(dev);
dev365drivers/char/tty_ioctl.ctermios_dev = dev;
dev406drivers/char/tty_ioctl.cretval = check_change(tty, dev);
dev431drivers/char/tty_ioctl.cretval = check_change(tty, dev);
dev476drivers/char/tty_ioctl.cif (p->tty == dev)
dev481drivers/char/tty_ioctl.ccurrent->tty = dev;
dev530drivers/char/tty_ioctl.cif ((current->tty != dev) && !suser())
dev547drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev))
dev570drivers/char/tty_ioctl.cif (IS_A_CONSOLE(dev)) {
dev580drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev))
dev582drivers/char/tty_ioctl.celse if (IS_A_PTY_SLAVE(dev))
dev595drivers/char/tty_ioctl.cif (current->tty != dev)
dev609drivers/char/tty_ioctl.cretval = check_change(tty, dev);
dev633drivers/char/tty_ioctl.cif (!IS_A_PTY_MASTER(dev))
dev648drivers/char/tty_ioctl.cretval = check_change(tty, dev);
dev59drivers/net/3c501.cint el1_probe(struct device *dev);
dev60drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev61drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev63drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev64drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev65drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev66drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev68drivers/net/3c501.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev135drivers/net/3c501.cel1_probe(struct device *dev)
dev142drivers/net/3c501.celdev = dev;    /* Store for debugging. */
dev143drivers/net/3c501.cel_base = dev->base_addr;
dev168drivers/net/3c501.cif (dev->irq < 2) {
dev181drivers/net/3c501.cprintk("%s: 3c501 probe failed to detect IRQ line.\n", dev->name);
dev184drivers/net/3c501.cdev->irq = autoirq;
dev189drivers/net/3c501.cdev->base_addr = el_base;
dev190drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev191drivers/net/3c501.cif (dev->mem_start & 0xf)
dev192drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev195drivers/net/3c501.cdev->name, dev->base_addr, autoirq ? "auto":"assigned ", dev->irq);
dev201drivers/net/3c501.cdev->open = &el_open;
dev202drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev203drivers/net/3c501.cdev->stop = &el1_close;
dev204drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev206drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev211drivers/net/3c501.cdev->buffs[i] = NULL;
dev213drivers/net/3c501.cdev->hard_header  = eth_header;
dev214drivers/net/3c501.cdev->add_arp  = eth_add_arp;
dev215drivers/net/3c501.cdev->queue_xmit  = dev_queue_xmit;
dev216drivers/net/3c501.cdev->rebuild_header  = eth_rebuild_header;
dev217drivers/net/3c501.cdev->type_trans  = eth_type_trans;
dev219drivers/net/3c501.cdev->type    = ARPHRD_ETHER;
dev220drivers/net/3c501.cdev->hard_header_len = ETH_HLEN;
dev221drivers/net/3c501.cdev->mtu    = 1500; /* eth_mtu */
dev222drivers/net/3c501.cdev->addr_len  = ETH_ALEN;
dev224drivers/net/3c501.cdev->broadcast[i]=0xff;
dev228drivers/net/3c501.cdev->flags    = IFF_BROADCAST;
dev229drivers/net/3c501.cdev->family    = AF_INET;
dev230drivers/net/3c501.cdev->pa_addr  = 0;
dev231drivers/net/3c501.cdev->pa_brdaddr  = 0;
dev232drivers/net/3c501.cdev->pa_mask  = 0;
dev233drivers/net/3c501.cdev->pa_alen  = sizeof(unsigned long);
dev240drivers/net/3c501.cel_open(struct device *dev)
dev244drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev246drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt)) {
dev251drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev253drivers/net/3c501.cel_reset(dev);
dev255drivers/net/3c501.cdev->start = 1;
dev264drivers/net/3c501.cel_start_xmit(struct sk_buff *skb, struct device *dev)
dev267drivers/net/3c501.cif (dev->tbusy) {
dev268drivers/net/3c501.cif (jiffies - dev->trans_start < 20) {
dev275drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev278drivers/net/3c501.cel_reset(dev);
dev285drivers/net/3c501.cdev->tbusy = 0;
dev286drivers/net/3c501.cdev->trans_start = jiffies;
dev290drivers/net/3c501.cdev_tint(dev);
dev295drivers/net/3c501.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev296drivers/net/3c501.cskb->dev = dev;
dev306drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev307drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev323drivers/net/3c501.cdev->trans_start = jiffies;
dev341drivers/net/3c501.cstruct device *dev = eldev;
dev350drivers/net/3c501.cioaddr = dev->base_addr;
dev355drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev356drivers/net/3c501.cif (dev->interrupt)
dev357drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev358drivers/net/3c501.cdev->interrupt = 1;
dev360drivers/net/3c501.cif (dev->tbusy) {
dev369drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev371drivers/net/3c501.cdev->tbusy = 0;
dev376drivers/net/3c501.cdev->name);
dev386drivers/net/3c501.cdev->interrupt = 0;
dev393drivers/net/3c501.cdev->tbusy = 0;
dev413drivers/net/3c501.cdev->name, rxsr);
dev424drivers/net/3c501.cdev->interrupt = 0;
dev432drivers/net/3c501.cel_receive(struct device *dev)
dev444drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev454drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev461drivers/net/3c501.cskb->dev = dev;
dev469drivers/net/3c501.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev481drivers/net/3c501.cel_reset(struct device *dev)
dev490drivers/net/3c501.coutb(dev->dev_addr[i], el_base + i);
dev499drivers/net/3c501.cdev->interrupt = 0;
dev500drivers/net/3c501.cdev->tbusy = 0;
dev505drivers/net/3c501.cel1_close(struct device *dev)
dev507drivers/net/3c501.cint ioaddr = dev->base_addr;
dev510drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev512drivers/net/3c501.cdev->tbusy = 1;
dev513drivers/net/3c501.cdev->start = 0;
dev516drivers/net/3c501.cfree_irq(dev->irq);
dev518drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev524drivers/net/3c501.cel1_get_stats(struct device *dev)
dev537drivers/net/3c501.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev33drivers/net/3c503.cint el2_probe(struct device *dev);
dev34drivers/net/3c503.cint el2_pio_autoprobe(struct device *dev);
dev35drivers/net/3c503.cint el2probe1(int ioaddr, struct device *dev);
dev37drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev38drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev39drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev40drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev41drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev43drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev58drivers/net/3c503.cel2_probe(struct device *dev)
dev61drivers/net/3c503.cshort ioaddr = dev->base_addr;
dev66drivers/net/3c503.creturn ! el2probe1(ioaddr, dev);
dev81drivers/net/3c503.cif (el2probe1(ports[i], dev))
dev85drivers/net/3c503.creturn el2_pio_autoprobe(dev);
dev94drivers/net/3c503.cel2_pio_autoprobe(struct device *dev)
dev106drivers/net/3c503.c&& el2probe1(ports[i], dev))
dev116drivers/net/3c503.cel2probe1(int ioaddr, struct device *dev)
dev119drivers/net/3c503.cunsigned char *station_addr = dev->dev_addr;
dev152drivers/net/3c503.cethdev_init(dev);
dev156drivers/net/3c503.cdev->base_addr = ioaddr;
dev168drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev172drivers/net/3c503.cdev->mem_start = 0;
dev174drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev181drivers/net/3c503.cint *mem_base = (int *)dev->mem_start;
dev189drivers/net/3c503.cdev->mem_start = 0;
dev200drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev201drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev213drivers/net/3c503.cif (dev->irq == 2)
dev214drivers/net/3c503.cdev->irq = 9;
dev215drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev217drivers/net/3c503.cdev->irq);
dev218drivers/net/3c503.cdev->irq = 0;
dev221drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev223drivers/net/3c503.cdev->start = 0;
dev224drivers/net/3c503.cdev->open = &el2_open;
dev225drivers/net/3c503.cdev->stop = &el2_close;
dev227drivers/net/3c503.cif (dev->mem_start)
dev229drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev232drivers/net/3c503.cdev->name, ei_status.name);
dev240drivers/net/3c503.cel2_open(struct device *dev)
dev243drivers/net/3c503.cif (dev->irq < 2) {
dev255drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt) == 0)
dev264drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt)) {
dev268drivers/net/3c503.cel2_init_card(dev);
dev269drivers/net/3c503.creturn ei_open(dev);
dev273drivers/net/3c503.cel2_close(struct device *dev)
dev275drivers/net/3c503.cfree_irq(dev->irq);
dev276drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev277drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev280drivers/net/3c503.cNS8390_init(dev, 0);
dev290drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev293drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev300drivers/net/3c503.cel2_init_card(dev);
dev306drivers/net/3c503.cel2_init_card(struct device *dev)
dev321drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev326drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev336drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev345drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev346drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev351drivers/net/3c503.cdev->name, (int) dest_addr);
dev369drivers/net/3c503.cdev->name, i, count, boguscount);
dev380drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev383drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev387drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev389drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev391drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev392drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev394drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev395drivers/net/3c503.creturn dev->rmem_start + count;
dev397drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev413drivers/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)
dev159drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev194drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev275drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev277drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, short ioaddr);
dev278drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev279drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev281drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev282drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev283drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev285drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev286drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev296drivers/net/3c507.cel16_probe(struct device *dev)
dev300drivers/net/3c507.cint base_addr = dev->base_addr;
dev304drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev324drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev335drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev343drivers/net/3c507.cint el16_probe1(struct device *dev, short ioaddr)
dev347drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev362drivers/net/3c507.cdev->base_addr = ioaddr;
dev366drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev367drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev370drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev371drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev374drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev375drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev389drivers/net/3c507.cdev->mem_start = base;
dev390drivers/net/3c507.cdev->mem_end = base + size;
dev394drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev395drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev397drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev398drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev404drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev405drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev407drivers/net/3c507.cdev->open    = el16_open;
dev408drivers/net/3c507.cdev->stop    = el16_close;
dev409drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev410drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev415drivers/net/3c507.cdev->buffs[i] = NULL;
dev417drivers/net/3c507.cdev->hard_header  = eth_header;
dev418drivers/net/3c507.cdev->add_arp  = eth_add_arp;
dev419drivers/net/3c507.cdev->queue_xmit = dev_queue_xmit;
dev420drivers/net/3c507.cdev->rebuild_header = eth_rebuild_header;
dev421drivers/net/3c507.cdev->type_trans = eth_type_trans;
dev423drivers/net/3c507.cdev->type    = ARPHRD_ETHER;
dev424drivers/net/3c507.cdev->hard_header_len = ETH_HLEN;
dev425drivers/net/3c507.cdev->mtu    = 1500; /* eth_mtu */
dev426drivers/net/3c507.cdev->addr_len  = ETH_ALEN;
dev428drivers/net/3c507.cdev->broadcast[i]=0xff;
dev432drivers/net/3c507.cdev->flags    = IFF_BROADCAST;
dev433drivers/net/3c507.cdev->family    = AF_INET;
dev434drivers/net/3c507.cdev->pa_addr  = 0;
dev435drivers/net/3c507.cdev->pa_brdaddr = 0;
dev436drivers/net/3c507.cdev->pa_mask  = 0;
dev437drivers/net/3c507.cdev->pa_alen  = sizeof(unsigned long);
dev445drivers/net/3c507.cel16_open(struct device *dev)
dev447drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev450drivers/net/3c507.cinit_82586_mem(dev);
dev452drivers/net/3c507.cdev->tbusy = 0;
dev453drivers/net/3c507.cdev->interrupt = 0;
dev454drivers/net/3c507.cdev->start = 1;
dev459drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev461drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev462drivers/net/3c507.cint ioaddr = dev->base_addr;
dev463drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev465drivers/net/3c507.cif (dev->tbusy) {
dev468drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev472drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev479drivers/net/3c507.cinit_82586_mem(dev);
dev487drivers/net/3c507.cdev->tbusy=0;
dev488drivers/net/3c507.cdev->trans_start = jiffies;
dev495drivers/net/3c507.cdev_tint(dev);
dev501drivers/net/3c507.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev502drivers/net/3c507.cskb->dev = dev;
dev509drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev510drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev517drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev518drivers/net/3c507.cdev->trans_start = jiffies;
dev537drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev543drivers/net/3c507.cif (dev == NULL) {
dev547drivers/net/3c507.cdev->interrupt = 1;
dev549drivers/net/3c507.cioaddr = dev->base_addr;
dev550drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev551drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev556drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev573drivers/net/3c507.cdev->tbusy = 0;
dev594drivers/net/3c507.cel16_rx(dev);
dev600drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev603drivers/net/3c507.cdev->name, status);
dev610drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev616drivers/net/3c507.cdev->name, status);
dev617drivers/net/3c507.cinit_rx_bufs(dev);
dev635drivers/net/3c507.cel16_close(struct device *dev)
dev637drivers/net/3c507.cint ioaddr = dev->base_addr;
dev638drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev640drivers/net/3c507.cdev->tbusy = 1;
dev641drivers/net/3c507.cdev->start = 0;
dev653drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev663drivers/net/3c507.cel16_get_stats(struct device *dev)
dev665drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev674drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev676drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev685drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev713drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev720drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev722drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev723drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev724drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev735drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev738drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev741drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev742drivers/net/3c507.csizeof(dev->dev_addr));
dev748drivers/net/3c507.cinit_rx_bufs(dev);
dev762drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev773drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev779drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev781drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev782drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev784drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev807drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev817drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev821drivers/net/3c507.cdev->tbusy = 0;
dev825drivers/net/3c507.cel16_rx(struct device *dev)
dev827drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev828drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev835drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev839drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev845drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev865drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev872drivers/net/3c507.cskb->dev = dev;
dev881drivers/net/3c507.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev894drivers/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;
dev170drivers/net/3c509.cif (dev->base_addr != 0
dev171drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev186drivers/net/3c509.cdev->base_addr = ioaddr;
dev187drivers/net/3c509.cdev->irq = irq;
dev188drivers/net/3c509.cdev->if_port = if_port;
dev189drivers/net/3c509.csnarf_region(dev->base_addr, 16);
dev194drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev199drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev200drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev203drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev204drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev210drivers/net/3c509.cdev->open = &el3_open;
dev211drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev212drivers/net/3c509.cdev->stop = &el3_close;
dev213drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev215drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev220drivers/net/3c509.cdev->buffs[i] = NULL;
dev222drivers/net/3c509.cdev->hard_header  = eth_header;
dev223drivers/net/3c509.cdev->add_arp    = eth_add_arp;
dev224drivers/net/3c509.cdev->queue_xmit    = dev_queue_xmit;
dev225drivers/net/3c509.cdev->rebuild_header = eth_rebuild_header;
dev226drivers/net/3c509.cdev->type_trans    = eth_type_trans;
dev228drivers/net/3c509.cdev->type      = ARPHRD_ETHER;
dev229drivers/net/3c509.cdev->hard_header_len = ETH_HLEN;
dev230drivers/net/3c509.cdev->mtu      = 1500; /* eth_mtu */
dev231drivers/net/3c509.cdev->addr_len    = ETH_ALEN;
dev233drivers/net/3c509.cdev->broadcast[i]=0xff;
dev237drivers/net/3c509.cdev->flags      = IFF_BROADCAST;
dev238drivers/net/3c509.cdev->family      = AF_INET;
dev239drivers/net/3c509.cdev->pa_addr    = 0;
dev240drivers/net/3c509.cdev->pa_brdaddr    = 0;
dev241drivers/net/3c509.cdev->pa_mask    = 0;
dev242drivers/net/3c509.cdev->pa_alen    = sizeof(unsigned long);
dev286drivers/net/3c509.cel3_open(struct device *dev)
dev288drivers/net/3c509.cint ioaddr = dev->base_addr;
dev291drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt)) {
dev297drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev298drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev303drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev306drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + 8);
dev312drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev314drivers/net/3c509.cif (dev->if_port == 3)
dev317drivers/net/3c509.celse if (dev->if_port == 0) {
dev331drivers/net/3c509.cdev->interrupt = 0;
dev332drivers/net/3c509.cdev->tbusy = 0;
dev333drivers/net/3c509.cdev->start = 1;
dev338drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev344drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev346drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev347drivers/net/3c509.cint ioaddr = dev->base_addr;
dev350drivers/net/3c509.cif (dev->tbusy) {
dev351drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev355drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev356drivers/net/3c509.cdev->trans_start = jiffies;
dev360drivers/net/3c509.cdev->tbusy = 0;
dev364drivers/net/3c509.cdev_tint(dev);
dev369drivers/net/3c509.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev370drivers/net/3c509.cskb->dev = dev;
dev381drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev389drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev400drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev401drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev409drivers/net/3c509.cdev->trans_start = jiffies;
dev411drivers/net/3c509.cdev->tbusy=0;
dev442drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev446drivers/net/3c509.cif (dev == NULL) {
dev451drivers/net/3c509.cif (dev->interrupt)
dev452drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev453drivers/net/3c509.cdev->interrupt = 1;
dev455drivers/net/3c509.cioaddr = dev->base_addr;
dev459drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev464drivers/net/3c509.cel3_rx(dev);
dev471drivers/net/3c509.cdev->tbusy = 0;
dev475drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev479drivers/net/3c509.cdev->name, status);
dev489drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev493drivers/net/3c509.cdev->interrupt = 0;
dev499drivers/net/3c509.cel3_get_stats(struct device *dev)
dev501drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev504drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev514drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev516drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev543drivers/net/3c509.cel3_rx(struct device *dev)
dev545drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev546drivers/net/3c509.cint ioaddr = dev->base_addr;
dev579drivers/net/3c509.cskb->dev = dev;
dev592drivers/net/3c509.cIN_SKBUFF,dev)== 0){
dev605drivers/net/3c509.cprintk("%s: receive buffers full.\n", dev->name);
dev611drivers/net/3c509.cdev->name, sksize);
dev635drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev637drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev648drivers/net/3c509.cel3_close(struct device *dev)
dev650drivers/net/3c509.cint ioaddr = dev->base_addr;
dev653drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev655drivers/net/3c509.cdev->tbusy = 1;
dev656drivers/net/3c509.cdev->start = 0;
dev665drivers/net/3c509.cif (dev->if_port == 3)
dev668drivers/net/3c509.celse if (dev->if_port == 0) {
dev674drivers/net/3c509.cfree_irq(dev->irq);
dev681drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev683drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev93drivers/net/8390.cint ei_open(struct device *dev);  /* Put into the device structure. */
dev96drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev97drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev98drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev101drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp);
dev102drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev105drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev114drivers/net/8390.cint ei_open(struct device *dev)
dev116drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev119drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev123drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev124drivers/net/8390.cNS8390_init(dev, 1);
dev125drivers/net/8390.cdev->start = 1;
dev130drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev132drivers/net/8390.cint e8390_base = dev->base_addr;
dev133drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev141drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev143drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev149drivers/net/8390.cdev->name, txsr, isr);
dev152drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq);
dev155drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name);
dev159drivers/net/8390.cei_reset_8390(dev);
dev160drivers/net/8390.cNS8390_init(dev, 1);
dev161drivers/net/8390.cdev->trans_start = jiffies;
dev168drivers/net/8390.cdev_tint(dev);
dev172drivers/net/8390.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev173drivers/net/8390.cskb->dev = dev;
dev184drivers/net/8390.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev185drivers/net/8390.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev202drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev209drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev214drivers/net/8390.cdev->name);
dev216drivers/net/8390.cdev->tbusy = 1;
dev220drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev222drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev223drivers/net/8390.cdev->trans_start = jiffies;
dev232drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev234drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev235drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev236drivers/net/8390.cdev->trans_start = jiffies;
dev237drivers/net/8390.cdev->tbusy = 1;
dev255drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev260drivers/net/8390.cif (dev == NULL) {
dev264drivers/net/8390.ce8390_base = dev->base_addr;
dev265drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev266drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev272drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev277drivers/net/8390.cdev->interrupt = 1;
dev283drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev294drivers/net/8390.cei_rx_overrun(dev);
dev297drivers/net/8390.cei_receive(dev);
dev301drivers/net/8390.cei_tx_intr(dev);
dev303drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev318drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev322drivers/net/8390.cdev->interrupt = 0;
dev328drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev330drivers/net/8390.cint e8390_base = dev->base_addr;
dev332drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev343drivers/net/8390.cdev->tbusy = 0;
dev345drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev346drivers/net/8390.cdev->trans_start = jiffies;
dev357drivers/net/8390.cdev->tbusy = 0;
dev359drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev360drivers/net/8390.cdev->trans_start = jiffies;
dev368drivers/net/8390.cdev->name, ei_local->lasttx);
dev371drivers/net/8390.cdev->tbusy = 0;
dev392drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev394drivers/net/8390.cint e8390_base = dev->base_addr;
dev395drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev418drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev424drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev447drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev458drivers/net/8390.cdev->name, sksize);
dev465drivers/net/8390.cskb->dev = dev;
dev467drivers/net/8390.cei_block_input(dev, pkt_len, (char *) skb->data,
dev476drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev485drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x..", dev->name,
dev507drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev509drivers/net/8390.cint e8390_base = dev->base_addr;
dev511drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev517drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev530drivers/net/8390.cdev->name);
dev531drivers/net/8390.cNS8390_init(dev, 1);
dev536drivers/net/8390.cei_receive(dev);
dev544drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev546drivers/net/8390.cshort ioaddr = dev->base_addr;
dev547drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev564drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev566drivers/net/8390.cshort ioaddr = dev->base_addr;
dev580drivers/net/8390.cint ethdev_init(struct device *dev)
dev587drivers/net/8390.cif (dev->priv == NULL) {
dev590drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev591drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev592drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev599drivers/net/8390.cif (dev->open == NULL)
dev600drivers/net/8390.cdev->open = &ei_open;
dev602drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev603drivers/net/8390.cdev->get_stats  = get_stats;
dev605drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev609drivers/net/8390.cdev->buffs[i] = NULL;
dev611drivers/net/8390.cdev->hard_header  = eth_header;
dev612drivers/net/8390.cdev->add_arp    = eth_add_arp;
dev613drivers/net/8390.cdev->queue_xmit    = dev_queue_xmit;
dev614drivers/net/8390.cdev->rebuild_header  = eth_rebuild_header;
dev615drivers/net/8390.cdev->type_trans    = eth_type_trans;
dev617drivers/net/8390.cdev->type    = ARPHRD_ETHER;
dev618drivers/net/8390.cdev->hard_header_len = ETH_HLEN;
dev619drivers/net/8390.cdev->mtu    = 1500; /* eth_mtu */
dev620drivers/net/8390.cdev->addr_len  = ETH_ALEN;
dev622drivers/net/8390.cdev->broadcast[i]=0xff;
dev626drivers/net/8390.cdev->flags    = IFF_BROADCAST;
dev627drivers/net/8390.cdev->family    = AF_INET;
dev628drivers/net/8390.cdev->pa_addr  = 0;
dev629drivers/net/8390.cdev->pa_brdaddr  = 0;
dev630drivers/net/8390.cdev->pa_mask  = 0;
dev631drivers/net/8390.cdev->pa_alen  = sizeof(unsigned long);
dev639drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev641drivers/net/8390.cint e8390_base = dev->base_addr;
dev642drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev671drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev681drivers/net/8390.cdev->tbusy = 0;
dev682drivers/net/8390.cdev->interrupt = 0;
dev697drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev700drivers/net/8390.cint e8390_base = dev->base_addr;
dev707drivers/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)
dev246drivers/net/Space.cextern int loopback_init(struct device *dev);
dev114drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev116drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev118drivers/net/at1700.cstatic int net_open(struct device *dev);
dev119drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev121drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev122drivers/net/at1700.cstatic int net_close(struct device *dev);
dev123drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev125drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev136drivers/net/at1700.cat1700_probe(struct device *dev)
dev139drivers/net/at1700.cshort *port, base_addr = dev->base_addr;
dev142drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev150drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev165drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev170drivers/net/at1700.cunsigned short *station_address = (unsigned short *)dev->dev_addr;
dev201drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev204drivers/net/at1700.cdev->base_addr = ioaddr;
dev205drivers/net/at1700.cdev->irq = irq;
dev206drivers/net/at1700.cirq2dev_map[irq] = dev;
dev224drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev225drivers/net/at1700.cprintk(" %s interface (%04x).\n", porttype[(dev->if_port>>3) & 3],
dev232drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev245drivers/net/at1700.coutb(dev->if_port, MODE13);
dev254drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev255drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev257drivers/net/at1700.cdev->open    = net_open;
dev258drivers/net/at1700.cdev->stop    = net_close;
dev259drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev260drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev262drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev268drivers/net/at1700.cdev->buffs[i] = NULL;
dev270drivers/net/at1700.cdev->hard_header  = eth_header;
dev271drivers/net/at1700.cdev->add_arp    = eth_add_arp;
dev272drivers/net/at1700.cdev->queue_xmit    = dev_queue_xmit;
dev273drivers/net/at1700.cdev->rebuild_header  = eth_rebuild_header;
dev274drivers/net/at1700.cdev->type_trans    = eth_type_trans;
dev276drivers/net/at1700.cdev->type    = ARPHRD_ETHER;
dev277drivers/net/at1700.cdev->hard_header_len = ETH_HLEN;
dev278drivers/net/at1700.cdev->mtu    = 1500; /* eth_mtu */
dev279drivers/net/at1700.cdev->addr_len  = ETH_ALEN;
dev281drivers/net/at1700.cdev->broadcast[i]=0xff;
dev285drivers/net/at1700.cdev->flags    = IFF_BROADCAST;
dev286drivers/net/at1700.cdev->family    = AF_INET;
dev287drivers/net/at1700.cdev->pa_addr  = 0;
dev288drivers/net/at1700.cdev->pa_brdaddr  = 0;
dev289drivers/net/at1700.cdev->pa_mask  = 0;
dev290drivers/net/at1700.cdev->pa_alen  = sizeof(unsigned long);
dev336drivers/net/at1700.cstatic int net_open(struct device *dev)
dev338drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev339drivers/net/at1700.cint ioaddr = dev->base_addr;
dev347drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev369drivers/net/at1700.cdev->tbusy = 0;
dev370drivers/net/at1700.cdev->interrupt = 0;
dev371drivers/net/at1700.cdev->start = 1;
dev377drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev379drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev380drivers/net/at1700.cint ioaddr = dev->base_addr;
dev382drivers/net/at1700.cif (dev->tbusy) {
dev385drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev388drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev392drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev401drivers/net/at1700.cdev->tbusy=0;
dev402drivers/net/at1700.cdev->trans_start = jiffies;
dev409drivers/net/at1700.cdev_tint(dev);
dev415drivers/net/at1700.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev416drivers/net/at1700.cskb->dev = dev;
dev424drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev425drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev444drivers/net/at1700.cdev->trans_start = jiffies;
dev447drivers/net/at1700.cdev->tbusy = 0;
dev464drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev468drivers/net/at1700.cif (dev == NULL) {
dev472drivers/net/at1700.cdev->interrupt = 1;
dev474drivers/net/at1700.cioaddr = dev->base_addr;
dev475drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev480drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev483drivers/net/at1700.cnet_rx(dev);
dev492drivers/net/at1700.cdev->trans_start = jiffies;
dev493drivers/net/at1700.cdev->tbusy = 0;
dev499drivers/net/at1700.cdev->tbusy = 0;
dev509drivers/net/at1700.cnet_rx(struct device *dev)
dev511drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev512drivers/net/at1700.cint ioaddr = dev->base_addr;
dev520drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev542drivers/net/at1700.cdev->name, pkt_len);
dev550drivers/net/at1700.cdev->name, pkt_len);
dev558drivers/net/at1700.cskb->dev = dev;
dev564drivers/net/at1700.cprintk("%s: Rxed packet of length %d: ", dev->name, pkt_len);
dev574drivers/net/at1700.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev599drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev605drivers/net/at1700.cstatic int net_close(struct device *dev)
dev607drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev608drivers/net/at1700.cint ioaddr = dev->base_addr;
dev612drivers/net/at1700.cdev->tbusy = 1;
dev613drivers/net/at1700.cdev->start = 0;
dev629drivers/net/at1700.cnet_get_stats(struct device *dev)
dev631drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev648drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev650drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev132drivers/net/atp.cextern int atp_probe(struct device *dev);
dev134drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
dev135drivers/net/atp.cstatic void init_dev(struct device *dev);
dev136drivers/net/atp.cstatic void get_node_ID(struct device *dev);
dev138drivers/net/atp.cstatic int net_open(struct device *dev);
dev139drivers/net/atp.cstatic void hardware_init(struct device *dev);
dev142drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev144drivers/net/atp.cstatic void net_rx(struct device *dev);
dev146drivers/net/atp.cstatic int net_close(struct device *dev);
dev147drivers/net/atp.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev149drivers/net/atp.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev160drivers/net/atp.catp_init(struct device *dev)
dev163drivers/net/atp.cint base_addr = dev->base_addr;
dev166drivers/net/atp.creturn atp_probe1(dev, base_addr);
dev175drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
dev182drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
dev212drivers/net/atp.cdev->irq = 7;
dev214drivers/net/atp.cdev->irq = 5;
dev218drivers/net/atp.cdev->base_addr = ioaddr;
dev221drivers/net/atp.cget_node_ID(dev);
dev224drivers/net/atp.c"%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr,
dev225drivers/net/atp.cdev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev226drivers/net/atp.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev235drivers/net/atp.cinit_dev(dev);
dev236drivers/net/atp.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev237drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev241drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev246drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev247drivers/net/atp.cif (dev->mem_end & 0xf)
dev248drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev250drivers/net/atp.cdev->open    = net_open;
dev251drivers/net/atp.cdev->stop    = net_close;
dev252drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev253drivers/net/atp.cdev->get_stats  = net_get_stats;
dev255drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev263drivers/net/atp.cstatic void init_dev(struct device *dev)
dev268drivers/net/atp.cdev->buffs[i] = NULL;
dev270drivers/net/atp.cdev->hard_header  = eth_header;
dev271drivers/net/atp.cdev->add_arp    = eth_add_arp;
dev272drivers/net/atp.cdev->queue_xmit    = dev_queue_xmit;
dev273drivers/net/atp.cdev->rebuild_header = eth_rebuild_header;
dev274drivers/net/atp.cdev->type_trans    = eth_type_trans;
dev276drivers/net/atp.cdev->type      = ARPHRD_ETHER;
dev277drivers/net/atp.cdev->hard_header_len = ETH_HLEN;
dev278drivers/net/atp.cdev->mtu      = 1500; /* eth_mtu */
dev279drivers/net/atp.cdev->addr_len    = ETH_ALEN;
dev281drivers/net/atp.cdev->broadcast[i]=0xff;
dev285drivers/net/atp.cdev->flags      = IFF_BROADCAST;
dev286drivers/net/atp.cdev->family      = AF_INET;
dev287drivers/net/atp.cdev->pa_addr    = 0;
dev288drivers/net/atp.cdev->pa_brdaddr    = 0;
dev289drivers/net/atp.cdev->pa_mask    = 0;
dev290drivers/net/atp.cdev->pa_alen    = sizeof(unsigned long);
dev294drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev296drivers/net/atp.cshort ioaddr = dev->base_addr;
dev308drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev356drivers/net/atp.cstatic int net_open(struct device *dev)
dev362drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev363drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev364drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt)) {
dev368drivers/net/atp.chardware_init(dev);
dev369drivers/net/atp.cdev->start = 1;
dev375drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev377drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev378drivers/net/atp.cint ioaddr = dev->base_addr;
dev384drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev389drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev407drivers/net/atp.cdev->tbusy = 0;
dev408drivers/net/atp.cdev->interrupt = 0;
dev449drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev451drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev452drivers/net/atp.cint ioaddr = dev->base_addr;
dev454drivers/net/atp.cif (dev->tbusy) {
dev457drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev460drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev465drivers/net/atp.chardware_init(dev);
dev466drivers/net/atp.cdev->tbusy=0;
dev467drivers/net/atp.cdev->trans_start = jiffies;
dev474drivers/net/atp.cdev_tint(dev);
dev480drivers/net/atp.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev481drivers/net/atp.cskb->dev = dev;
dev489drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev490drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev504drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev515drivers/net/atp.cdev->trans_start = jiffies;
dev533drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev538drivers/net/atp.cif (dev == NULL) {
dev542drivers/net/atp.cdev->interrupt = 1;
dev544drivers/net/atp.cioaddr = dev->base_addr;
dev545drivers/net/atp.clp = (struct net_local *)dev->priv;
dev554drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev571drivers/net/atp.cnet_rx(dev);
dev576drivers/net/atp.cnet_rx(dev);
dev577drivers/net/atp.cdev->last_rx = jiffies;
dev591drivers/net/atp.chardware_init(dev);
dev607drivers/net/atp.cdev->tbusy = 0;
dev612drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev615drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev616drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev619drivers/net/atp.chardware_init(dev);
dev631drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev644drivers/net/atp.cdev->interrupt = 0;
dev650drivers/net/atp.cstatic void net_rx(struct device *dev)
dev652drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev653drivers/net/atp.cint ioaddr = dev->base_addr;
dev662drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev671drivers/net/atp.cdev->name, rx_head.rx_status);
dev672drivers/net/atp.chardware_init(dev);
dev682drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev689drivers/net/atp.cskb->dev = dev;
dev691drivers/net/atp.cread_block(ioaddr, pkt_len, skb->data, dev->if_port);
dev706drivers/net/atp.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev741drivers/net/atp.cnet_close(struct device *dev)
dev743drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev744drivers/net/atp.cint ioaddr = dev->base_addr;
dev746drivers/net/atp.cdev->tbusy = 1;
dev747drivers/net/atp.cdev->start = 0;
dev755drivers/net/atp.cfree_irq(dev->irq);
dev756drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev767drivers/net/atp.cnet_get_stats(struct device *dev)
dev769drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev781drivers/net/atp.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev783drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev784drivers/net/atp.cshort ioaddr = dev->base_addr;
dev219drivers/net/d_link.cstatic int    d_link_read_status(struct device *dev);
dev220drivers/net/d_link.cstatic unsigned  char  d_link_read_byte(unsigned char type, struct device *dev);
dev223drivers/net/d_link.cstatic int  d_link_open(struct device *dev);
dev224drivers/net/d_link.cstatic int  d_link_close(struct device *dev);
dev225drivers/net/d_link.cstatic struct netstats *get_stats(struct device *dev);
dev226drivers/net/d_link.cstatic int  d_link_start_xmit(struct sk_buff *skb, struct device *dev);
dev230drivers/net/d_link.cstatic int  d_link_tx_intr(struct device *dev, int irq_status);
dev231drivers/net/d_link.cstatic void  d_link_rx_intr(struct device *dev);
dev234drivers/net/d_link.cstatic void  trigger_interrupt(struct device *dev);
dev235drivers/net/d_link.cint    d_link_init(struct device *dev);
dev236drivers/net/d_link.cstatic void  adapter_init(struct device *dev);
dev286drivers/net/d_link.cd_link_read_status(struct device *dev)
dev298drivers/net/d_link.cd_link_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev316drivers/net/d_link.cd_link_open(struct device *dev)
dev321drivers/net/d_link.cprintk ("%s: unable to get IRQ %d\n", dev->name, D_LINK_IRQ);
dev324drivers/net/d_link.cirq2dev_map[D_LINK_IRQ] = dev;
dev326drivers/net/d_link.cadapter_init(dev);
dev346drivers/net/d_link.cd_link_close(struct device *dev)
dev357drivers/net/d_link.cdev->start = 0;
dev364drivers/net/d_link.cget_stats(struct device *dev)
dev366drivers/net/d_link.creturn (struct netstats *)(dev->priv);
dev370drivers/net/d_link.ctrigger_interrupt(struct device *dev)
dev384drivers/net/d_link.cd_link_start_xmit(struct sk_buff *skb, struct device *dev)
dev398drivers/net/d_link.cdev_tint(dev);
dev404drivers/net/d_link.cif(dev->rebuild_header(skb->data, dev)) {
dev405drivers/net/d_link.cskb->dev = dev;
dev412drivers/net/d_link.ctickssofar = jiffies - dev->trans_start;
dev419drivers/net/d_link.cdev->name,
dev424drivers/net/d_link.cadapter_init(dev);
dev444drivers/net/d_link.cdev->trans_start = jiffies;
dev445drivers/net/d_link.cdev->tbusy = 0;  /* allow more packets into adapter */
dev451drivers/net/d_link.cdev->tbusy = !free_tx_pages;
dev471drivers/net/d_link.cstruct device  *dev = irq2dev_map[irq];
dev477drivers/net/d_link.cif ((dev == NULL) || (dev->start == 0) || (D_LINK_IRQ != irq)) {
dev478drivers/net/d_link.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev482drivers/net/d_link.cdev->interrupt = 1;
dev484drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev490drivers/net/d_link.cd_link_rx_intr(dev);
dev496drivers/net/d_link.cretrig = d_link_tx_intr(dev, irq_status);
dev500drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev509drivers/net/d_link.cdev->interrupt = 0;
dev513drivers/net/d_link.ctrigger_interrupt(dev);
dev520drivers/net/d_link.cd_link_tx_intr(struct device *dev, int irq_status)
dev536drivers/net/d_link.c((struct netstats *)(dev->priv))->tx_packets++;
dev537drivers/net/d_link.cdev->tbusy = 0;
dev542drivers/net/d_link.cdev->trans_start = jiffies;
dev556drivers/net/d_link.cd_link_rx_intr(struct device *dev)
dev567drivers/net/d_link.csize = d_link_read_byte(RX_LEN, dev);  /* low byte */
dev568drivers/net/d_link.csize += (d_link_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev578drivers/net/d_link.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev585drivers/net/d_link.cdev->name, sksize);
dev599drivers/net/d_link.c*buffer = d_link_read_byte(READ_DATA, dev);
dev601drivers/net/d_link.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev603drivers/net/d_link.cif (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev))
dev604drivers/net/d_link.cprintk("%s: receive buffers full.\n", dev->name);
dev613drivers/net/d_link.cd_link_init(struct device *dev)
dev617drivers/net/d_link.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev625drivers/net/d_link.c(void)d_link_read_status(dev);
dev628drivers/net/d_link.cif (d_link_read_status(dev) & 0xf0) {
dev641drivers/net/d_link.cdev->dev_addr[i] = d_link_read_byte(READ_DATA, dev);
dev642drivers/net/d_link.cdev->broadcast[i] = 0xff;
dev646drivers/net/d_link.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev648drivers/net/d_link.cdev->dev_addr[0] = 0x00;
dev649drivers/net/d_link.cdev->dev_addr[1] = 0x80;
dev650drivers/net/d_link.cdev->dev_addr[2] = 0xc8;
dev651drivers/net/d_link.cdev->dev_addr[3] &= 0x0f;
dev652drivers/net/d_link.cdev->dev_addr[3] |= 0x70;
dev658drivers/net/d_link.cprintk(", Ethernet Address: %2.2X", dev->dev_addr[0]);
dev660drivers/net/d_link.cprintk(":%2.2X",dev->dev_addr[i]);
dev664drivers/net/d_link.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev665drivers/net/d_link.cmemset(dev->priv, 0, sizeof(struct netstats));
dev668drivers/net/d_link.cdev->buffs[i] = NULL;
dev670drivers/net/d_link.cdev->get_stats = get_stats;
dev671drivers/net/d_link.cdev->hard_header = eth_header;
dev672drivers/net/d_link.cdev->add_arp = eth_add_arp;
dev673drivers/net/d_link.cdev->queue_xmit = dev_queue_xmit;
dev674drivers/net/d_link.cdev->rebuild_header = eth_rebuild_header;
dev675drivers/net/d_link.cdev->type_trans = eth_type_trans;
dev677drivers/net/d_link.cdev->open = d_link_open;
dev678drivers/net/d_link.cdev->stop = d_link_close;
dev679drivers/net/d_link.cdev->hard_start_xmit = &d_link_start_xmit;
dev682drivers/net/d_link.cdev->type = ARPHRD_ETHER;
dev683drivers/net/d_link.cdev->hard_header_len = ETH_HLEN;
dev684drivers/net/d_link.cdev->mtu = 1500; /* eth_mtu */
dev685drivers/net/d_link.cdev->addr_len  = ETH_ALEN;
dev688drivers/net/d_link.cdev->flags = IFF_BROADCAST;
dev689drivers/net/d_link.cdev->family = AF_INET;
dev690drivers/net/d_link.cdev->pa_addr = 0;
dev691drivers/net/d_link.cdev->pa_brdaddr = 0;
dev692drivers/net/d_link.cdev->pa_mask = 0;
dev693drivers/net/d_link.cdev->pa_alen = sizeof(unsigned long);
dev700drivers/net/d_link.cadapter_init(struct device *dev)
dev705drivers/net/d_link.cdev->tbusy = 0;    /* Transmit busy...  */
dev706drivers/net/d_link.cdev->interrupt = 0;
dev707drivers/net/d_link.cdev->start = 1;
dev721drivers/net/d_link.cd_link_put_byte(dev->dev_addr[i]);
dev253drivers/net/depca.cstatic int depca_open(struct device *dev);
dev254drivers/net/depca.cstatic int depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev256drivers/net/depca.cstatic int depca_close(struct device *dev);
dev257drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev259drivers/net/depca.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev265drivers/net/depca.cstatic int depca_probe1(struct device *dev, short ioaddr);
dev266drivers/net/depca.cstatic void depca_init_ring(struct device *dev);
dev267drivers/net/depca.cstatic int depca_rx(struct device *dev);
dev268drivers/net/depca.cstatic int depca_tx(struct device *dev);
dev270drivers/net/depca.cstatic void LoadCSRs(struct device *dev);
dev271drivers/net/depca.cstatic int InitRestartDepca(struct device *dev);
dev289drivers/net/depca.cint depca_probe(struct device *dev)
dev292drivers/net/depca.cint base_addr = dev->base_addr;
dev297drivers/net/depca.cstatus = depca_probe1(dev, base_addr);
dev317drivers/net/depca.cwhile (dev->next != (struct device *)NULL) {
dev318drivers/net/depca.cif (dev->next->base_addr == 0xffe0) break;
dev319drivers/net/depca.cdev = dev->next;         /* walk through eth device list */
dev328drivers/net/depca.cif (dev->next == (struct device *)NULL) {
dev329drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev341drivers/net/depca.cif ((dev->next != (struct device *)NULL) &&
dev343drivers/net/depca.cdev = dev->next;         /* point to the new device */
dev344drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev345drivers/net/depca.csprintf(dev->name,"eth%d", num_eth); /* New device name */
dev346drivers/net/depca.cdev->base_addr = ioaddr; /* assign the io address */
dev347drivers/net/depca.cdev->next = (struct device *)NULL; /* mark the end of list */
dev348drivers/net/depca.cdev->init = &depca_probe;/* initialisation routine */
dev351drivers/net/depca.ceth0 = dev;                /* remember the first device */
dev352drivers/net/depca.cstatus = depca_probe1(dev, ioaddr);
dev358drivers/net/depca.cif (eth0) dev = eth0;             /* restore the first device */
dev361drivers/net/depca.cif (status) dev->base_addr = base_addr;
dev367drivers/net/depca.cdepca_probe1(struct device *dev, short ioaddr)
dev408drivers/net/depca.cdev->base_addr = ioaddr;
dev410drivers/net/depca.cprintk("%s: DEPCA at %#3x is a %s, ", dev->name, ioaddr, name);
dev429drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev431drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev496drivers/net/depca.cdev->priv = (void *)((mem_start + 0x07) & ~0x07);      
dev497drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev498drivers/net/depca.cmemset(dev->priv, 0, sizeof(struct depca_private));
dev501drivers/net/depca.cmem_start = ((((unsigned long)dev->priv + 
dev544drivers/net/depca.cdepca_init_ring(dev);
dev549drivers/net/depca.cLoadCSRs(dev);
dev558drivers/net/depca.cdev->dma = 0;
dev562drivers/net/depca.cif (dev->irq < 2) {
dev568drivers/net/depca.cdev->irq = autoirq_report(1);
dev569drivers/net/depca.cif (dev->irq) {
dev570drivers/net/depca.cprintk(" and probed IRQ%d.\n", dev->irq);
dev576drivers/net/depca.cprintk(". Assigned IRQ%d.\n", dev->irq);
dev587drivers/net/depca.cdev->open = &depca_open;
dev588drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev589drivers/net/depca.cdev->stop = &depca_close;
dev590drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev592drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev595drivers/net/depca.cdev->mem_start = 0;
dev599drivers/net/depca.cdev->buffs[i] = NULL;
dev602drivers/net/depca.cdev->hard_header     = eth_header;
dev603drivers/net/depca.cdev->add_arp       = eth_add_arp;
dev604drivers/net/depca.cdev->queue_xmit       = dev_queue_xmit;
dev605drivers/net/depca.cdev->rebuild_header  = eth_rebuild_header;
dev606drivers/net/depca.cdev->type_trans       = eth_type_trans;
dev608drivers/net/depca.cdev->type       = ARPHRD_ETHER;
dev609drivers/net/depca.cdev->hard_header_len = ETH_HLEN;
dev610drivers/net/depca.cdev->mtu       = 1500; /* eth_mtu */
dev611drivers/net/depca.cdev->addr_len       = ETH_ALEN;
dev613drivers/net/depca.cfor (i = 0; i < dev->addr_len; i++) {
dev614drivers/net/depca.cdev->broadcast[i]=0xff;
dev618drivers/net/depca.cdev->flags       = IFF_BROADCAST;
dev619drivers/net/depca.cdev->family       = AF_INET;
dev620drivers/net/depca.cdev->pa_addr       = 0;
dev621drivers/net/depca.cdev->pa_brdaddr       = 0;
dev622drivers/net/depca.cdev->pa_mask       = 0;
dev623drivers/net/depca.cdev->pa_alen       = sizeof(unsigned long);
dev634drivers/net/depca.cdepca_open(struct device *dev)
dev636drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev637drivers/net/depca.cint i,nicsr,ioaddr = dev->base_addr;
dev639drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt)) {
dev640drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev644drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev655drivers/net/depca.cdepca_init_ring(dev);                 /* initialize the descriptor rings */
dev656drivers/net/depca.cLoadCSRs(dev);
dev659drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev704drivers/net/depca.cdev->tbusy = 0;                         
dev705drivers/net/depca.cdev->interrupt = 0;
dev706drivers/net/depca.cdev->start = 1;
dev708drivers/net/depca.cInitRestartDepca(dev);                /* ignore the return status */
dev720drivers/net/depca.cdepca_init_ring(struct device *dev)
dev722drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev739drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev754drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev756drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev757drivers/net/depca.cint ioaddr = dev->base_addr;
dev761drivers/net/depca.cif (dev->tbusy) {
dev762drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev768drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev770drivers/net/depca.cdepca_init_ring(dev);
dev771drivers/net/depca.cLoadCSRs(dev);
dev772drivers/net/depca.cInitRestartDepca(dev);
dev773drivers/net/depca.cdev->tbusy=0;
dev774drivers/net/depca.cdev->trans_start = jiffies;
dev780drivers/net/depca.cdev_tint(dev);
dev785drivers/net/depca.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev786drivers/net/depca.cskb->dev = dev;
dev798drivers/net/depca.cprintk("%s: depca_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev804drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev805drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev848drivers/net/depca.cdev->trans_start = jiffies;
dev859drivers/net/depca.cdev->tbusy=0;
dev886drivers/net/depca.cdev->name, entry, (unsigned long) &lp->tx_ring[entry],
dev889drivers/net/depca.cdev->name, pkt[0], pkt[1], pkt[2], pkt[5], pkt[6],
dev896drivers/net/depca.cdev->tbusy=0;
dev914drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev918drivers/net/depca.cif (dev == NULL) {
dev922drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev923drivers/net/depca.cioaddr = dev->base_addr;
dev926drivers/net/depca.cif (dev->interrupt)
dev927drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev929drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev944drivers/net/depca.cdev->name, csr0, inw(DEPCA_DATA));
dev947drivers/net/depca.cdepca_rx(dev);
dev950drivers/net/depca.cdepca_tx(dev);
dev958drivers/net/depca.cdev->name, inw(DEPCA_ADDR),
dev966drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev971drivers/net/depca.cdepca_rx(struct device *dev)
dev973drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev993drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1000drivers/net/depca.cskb->dev = dev;
dev1012drivers/net/depca.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev1037drivers/net/depca.cdepca_tx(struct device *dev)
dev1039drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1044drivers/net/depca.cdev->name, dirty_tx, (lp->cur_tx & lp->rmask));
dev1076drivers/net/depca.cdev->name, dirty_tx,
dev1084drivers/net/depca.cdepca_close(struct device *dev)
dev1086drivers/net/depca.cint ioaddr = dev->base_addr;
dev1088drivers/net/depca.cdev->start = 0;
dev1089drivers/net/depca.cdev->tbusy = 1;
dev1095drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1104drivers/net/depca.cfree_irq(dev->irq);
dev1106drivers/net/depca.cirq2dev_map[dev->irq] = 0;
dev1111drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1113drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1114drivers/net/depca.cint ioaddr = dev->base_addr;
dev1125drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1127drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1128drivers/net/depca.cint ioaddr = dev->base_addr;
dev1142drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1147drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1154drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1156drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1172drivers/net/depca.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1174drivers/net/depca.cshort ioaddr = dev->base_addr;
dev1175drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev286drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev288drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev289drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev290drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev292drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev293drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev294drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev296drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev300drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev301drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev302drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev312drivers/net/eexpress.cexpress_probe(struct device *dev)
dev316drivers/net/eexpress.cint base_addr = dev->base_addr;
dev319drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev338drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev345drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev350drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev367drivers/net/eexpress.cdev->base_addr = ioaddr;
dev370drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev371drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev382drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev383drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev385drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev394drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev395drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev401drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev402drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev404drivers/net/eexpress.cdev->open    = eexp_open;
dev405drivers/net/eexpress.cdev->stop    = eexp_close;
dev406drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev407drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev409drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev415drivers/net/eexpress.cdev->buffs[i] = NULL;
dev417drivers/net/eexpress.cdev->hard_header  = eth_header;
dev418drivers/net/eexpress.cdev->add_arp  = eth_add_arp;
dev419drivers/net/eexpress.cdev->queue_xmit = dev_queue_xmit;
dev420drivers/net/eexpress.cdev->rebuild_header = eth_rebuild_header;
dev421drivers/net/eexpress.cdev->type_trans = eth_type_trans;
dev423drivers/net/eexpress.cdev->type    = ARPHRD_ETHER;
dev424drivers/net/eexpress.cdev->hard_header_len = ETH_HLEN;
dev425drivers/net/eexpress.cdev->mtu    = 1500; /* eth_mtu */
dev426drivers/net/eexpress.cdev->addr_len  = ETH_ALEN;
dev428drivers/net/eexpress.cdev->broadcast[i]=0xff;
dev432drivers/net/eexpress.cdev->flags    = IFF_BROADCAST;
dev433drivers/net/eexpress.cdev->family    = AF_INET;
dev434drivers/net/eexpress.cdev->pa_addr  = 0;
dev435drivers/net/eexpress.cdev->pa_brdaddr = 0;
dev436drivers/net/eexpress.cdev->pa_mask  = 0;
dev437drivers/net/eexpress.cdev->pa_alen  = sizeof(unsigned long);
dev447drivers/net/eexpress.ceexp_open(struct device *dev)
dev449drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev451drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev454drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev456drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev457drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt)) {
dev462drivers/net/eexpress.cinit_82586_mem(dev);
dev465drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev467drivers/net/eexpress.cdev->tbusy = 0;
dev468drivers/net/eexpress.cdev->interrupt = 0;
dev469drivers/net/eexpress.cdev->start = 1;
dev474drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev476drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev477drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev479drivers/net/eexpress.cif (dev->tbusy) {
dev482drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev486drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev494drivers/net/eexpress.cinit_82586_mem(dev);
dev502drivers/net/eexpress.cdev->tbusy=0;
dev503drivers/net/eexpress.cdev->trans_start = jiffies;
dev510drivers/net/eexpress.cdev_tint(dev);
dev516drivers/net/eexpress.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev517drivers/net/eexpress.cskb->dev = dev;
dev524drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev525drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev531drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev532drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev533drivers/net/eexpress.cdev->trans_start = jiffies;
dev535drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev553drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev558drivers/net/eexpress.cif (dev == NULL) {
dev562drivers/net/eexpress.cdev->interrupt = 1;
dev564drivers/net/eexpress.cioaddr = dev->base_addr;
dev565drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev570drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev574drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev588drivers/net/eexpress.cdev->tbusy = 0;
dev609drivers/net/eexpress.ceexp_rx(dev);
dev615drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev619drivers/net/eexpress.cdev->name, status);
dev634drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev642drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
dev653drivers/net/eexpress.cinit_rx_bufs(dev);
dev663drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev667drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev672drivers/net/eexpress.ceexp_close(struct device *dev)
dev674drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev676drivers/net/eexpress.cdev->tbusy = 1;
dev677drivers/net/eexpress.cdev->start = 0;
dev686drivers/net/eexpress.cfree_irq(dev->irq);
dev688drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev698drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev700drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev715drivers/net/eexpress.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev717drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev781drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev783drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev784drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev799drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
dev809drivers/net/eexpress.cinit_rx_bufs(dev);
dev823drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev833drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev839drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev)
dev841drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev842drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev880drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev882drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev883drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev920drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev925drivers/net/eexpress.cdev->tbusy = 0;
dev929drivers/net/eexpress.ceexp_rx(struct device *dev)
dev931drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev932drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev954drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev974drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev981drivers/net/eexpress.cskb->dev = dev;
dev991drivers/net/eexpress.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev1007drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev1021drivers/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);
dev47drivers/net/lance.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev209drivers/net/lance.cstatic int lance_open(struct device *dev);
dev210drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev211drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev212drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev214drivers/net/lance.cstatic int lance_close(struct device *dev);
dev215drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev217drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev241drivers/net/lance.cstruct device *dev;
dev261drivers/net/lance.cdev = init_etherdev(0, sizeof(struct lance_private)
dev265drivers/net/lance.cprintk("%s: LANCE at %#3x,", dev->name, ioaddr);
dev270drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev272drivers/net/lance.cdev->base_addr = ioaddr;
dev276drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev277drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev278drivers/net/lance.clp->rx_buffs = (long)dev->priv + sizeof(struct lance_private);
dev300drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev316drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev317drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev318drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev321drivers/net/lance.cif (dev->mem_start & 0x07)
dev322drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev323drivers/net/lance.celse if (dev->dma == 0)
dev324drivers/net/lance.cdev->dma = LANCE_DMA;
dev328drivers/net/lance.cif (dev->irq < 2) {
dev335drivers/net/lance.cdev->irq = autoirq_report(1);
dev336drivers/net/lance.cif (dev->irq)
dev338drivers/net/lance.cdev->irq, dev->dma);
dev344drivers/net/lance.cprintk(" assigned IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev358drivers/net/lance.cdev->open = &lance_open;
dev359drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev360drivers/net/lance.cdev->stop = &lance_close;
dev361drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev363drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev371drivers/net/lance.clance_open(struct device *dev)
dev373drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev374drivers/net/lance.cint ioaddr = dev->base_addr;
dev377drivers/net/lance.cif (request_irq(dev->irq, &lance_interrupt)) {
dev381drivers/net/lance.cif (request_dma(dev->dma)) {
dev382drivers/net/lance.cfree_irq(dev->irq);
dev385drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev391drivers/net/lance.cenable_dma(dev->dma);
dev392drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev406drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev409drivers/net/lance.clance_init_ring(dev);
dev422drivers/net/lance.cdev->tbusy = 0;
dev423drivers/net/lance.cdev->interrupt = 0;
dev424drivers/net/lance.cdev->start = 1;
dev433drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev440drivers/net/lance.clance_init_ring(struct device *dev)
dev442drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev460drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev468drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev470drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev471drivers/net/lance.cint ioaddr = dev->base_addr;
dev475drivers/net/lance.cif (dev->tbusy) {
dev476drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev481drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev500drivers/net/lance.clance_init_ring(dev);
dev503drivers/net/lance.cdev->tbusy=0;
dev504drivers/net/lance.cdev->trans_start = jiffies;
dev510drivers/net/lance.cdev_tint(dev);
dev515drivers/net/lance.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev516drivers/net/lance.cskb->dev = dev;
dev527drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev534drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev535drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev559drivers/net/lance.cdev->name, (int)(skb->data));
dev578drivers/net/lance.cdev->trans_start = jiffies;
dev581drivers/net/lance.cdev->tbusy=0;
dev591drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev595drivers/net/lance.cif (dev == NULL) {
dev600drivers/net/lance.cioaddr = dev->base_addr;
dev601drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev602drivers/net/lance.cif (dev->interrupt)
dev603drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev605drivers/net/lance.cdev->interrupt = 1;
dev607drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev608drivers/net/lance.ccsr0 = inw(dev->base_addr + LANCE_DATA);
dev611drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev615drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev618drivers/net/lance.clance_rx(dev);
dev672drivers/net/lance.cif (dev->tbusy  &&  dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
dev674drivers/net/lance.cdev->tbusy = 0;
dev687drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev688drivers/net/lance.coutw(0x7f40, dev->base_addr + LANCE_DATA);
dev692drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev693drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev695drivers/net/lance.cdev->interrupt = 0;
dev700drivers/net/lance.clance_rx(struct device *dev)
dev702drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev728drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev735drivers/net/lance.cskb->dev = dev;
dev743drivers/net/lance.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev763drivers/net/lance.clance_close(struct device *dev)
dev765drivers/net/lance.cint ioaddr = dev->base_addr;
dev766drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev768drivers/net/lance.cdev->start = 0;
dev769drivers/net/lance.cdev->tbusy = 1;
dev778drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev784drivers/net/lance.cdisable_dma(dev->dma);
dev786drivers/net/lance.cfree_irq(dev->irq);
dev787drivers/net/lance.cfree_dma(dev->dma);
dev789drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev795drivers/net/lance.clance_get_stats(struct device *dev)
dev797drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev798drivers/net/lance.cshort ioaddr = dev->base_addr;
dev819drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev821drivers/net/lance.cshort ioaddr = dev->base_addr;
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);
dev95drivers/net/net_init.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev101drivers/net/net_init.cif (dev == NULL) {
dev105drivers/net/net_init.cdev = (struct device *)*mem_startp;
dev108drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev109drivers/net/net_init.cmemset(dev, 0, sizeof(alloc_size));
dev110drivers/net/net_init.cdev->name = (char *)(dev + 1);
dev112drivers/net/net_init.cdev->priv = dev->name + sizeof("eth%d ");
dev116drivers/net/net_init.cif (dev->name  &&  dev->name[0] == '\0')
dev117drivers/net/net_init.csprintf(dev->name, "eth%d", next_ethdev_number++);
dev120drivers/net/net_init.cdev->buffs[i] = NULL;
dev122drivers/net/net_init.cdev->hard_header  = eth_header;
dev123drivers/net/net_init.cdev->add_arp    = eth_add_arp;
dev124drivers/net/net_init.cdev->queue_xmit    = dev_queue_xmit;
dev125drivers/net/net_init.cdev->rebuild_header  = eth_rebuild_header;
dev126drivers/net/net_init.cdev->type_trans    = eth_type_trans;
dev128drivers/net/net_init.cdev->type      = ARPHRD_ETHER;
dev129drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev130drivers/net/net_init.cdev->mtu      = 1500; /* eth_mtu */
dev131drivers/net/net_init.cdev->addr_len    = ETH_ALEN;
dev133drivers/net/net_init.cdev->broadcast[i]=0xff;
dev137drivers/net/net_init.cdev->flags      = IFF_BROADCAST;
dev138drivers/net/net_init.cdev->family      = AF_INET;
dev139drivers/net/net_init.cdev->pa_addr    = 0;
dev140drivers/net/net_init.cdev->pa_brdaddr    = 0;
dev141drivers/net/net_init.cdev->pa_mask    = 0;
dev142drivers/net/net_init.cdev->pa_alen    = sizeof(unsigned long);
dev149drivers/net/net_init.c(*old_devp)->next = dev;
dev150drivers/net/net_init.cdev->next = 0;
dev152drivers/net/net_init.creturn dev;
dev136drivers/net/plip.cextern int plip_probe(int ioaddr, struct device *dev);
dev137drivers/net/plip.cstatic int plip_open(struct device *dev);
dev138drivers/net/plip.cstatic int plip_close(struct device *dev);
dev139drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev140drivers/net/plip.cstatic int plip_header (unsigned char *buff, struct device *dev,
dev150drivers/net/plip.cstatic void plip_device_clear(struct device *dev);
dev151drivers/net/plip.cstatic void plip_receiver_error(struct device *dev);
dev152drivers/net/plip.cstatic void plip_set_physicaladdr(struct device *dev, unsigned long ipaddr);
dev154drivers/net/plip.cstatic int plip_send_enethdr(struct device *dev, struct ethhdr *eth);
dev155drivers/net/plip.cstatic int plip_rebuild_enethdr(struct device *dev, struct ethhdr *eth,
dev160drivers/net/plip.cstatic int plip_receive_packet(struct device *dev);
dev161drivers/net/plip.cstatic int plip_send_packet(struct device *dev, unsigned char *buf, int length);
dev162drivers/net/plip.cstatic int plip_send_start(struct device *dev, struct ethhdr *eth);
dev164drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev167drivers/net/plip.cplip_init(struct device *dev)
dev169drivers/net/plip.cint port_base = dev->base_addr;
dev188drivers/net/plip.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev189drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct netstats));
dev192drivers/net/plip.cdev->buffs[i] = NULL;
dev193drivers/net/plip.cdev->hard_header = &plip_header;
dev194drivers/net/plip.cdev->add_arp = eth_add_arp;
dev195drivers/net/plip.cdev->queue_xmit = dev_queue_xmit;
dev196drivers/net/plip.cdev->rebuild_header = eth_rebuild_header;
dev197drivers/net/plip.cdev->type_trans = eth_type_trans;
dev199drivers/net/plip.cdev->open = &plip_open;
dev200drivers/net/plip.cdev->stop = &plip_close;
dev201drivers/net/plip.cdev->hard_start_xmit = &plip_tx_packet;
dev202drivers/net/plip.cdev->get_stats = &plip_get_stats;
dev205drivers/net/plip.cdev->type = ARPHRD_ETHER;
dev206drivers/net/plip.cdev->hard_header_len = ETH_HLEN;
dev207drivers/net/plip.cdev->mtu = PLIP_MTU;  /* PLIP may later negotiate max pkt size */
dev208drivers/net/plip.cdev->addr_len = ETH_ALEN;
dev209drivers/net/plip.cfor (i = 0; i < dev->addr_len; i++) {
dev210drivers/net/plip.cdev->broadcast[i]=0xff;
dev211drivers/net/plip.cdev->dev_addr[i] = 0;
dev214drivers/net/plip.cdev->name, dev->base_addr, dev->irq);
dev229drivers/net/plip.cplip_open(struct device *dev)
dev231drivers/net/plip.cif (dev->irq == 0)
dev232drivers/net/plip.cdev->irq = 7;
dev234drivers/net/plip.cif (request_irq(dev->irq , &plip_interrupt) != 0) {
dev236drivers/net/plip.cPRINTK(("%s: couldn't get IRQ %d.\n", dev->name, dev->irq));
dev240drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev242drivers/net/plip.cplip_device_clear(dev);
dev243drivers/net/plip.cdev->tbusy = 0;
dev244drivers/net/plip.cdev->interrupt = 0;
dev245drivers/net/plip.cdev->start = 1;
dev251drivers/net/plip.cplip_close(struct device *dev)
dev253drivers/net/plip.cdev->tbusy = 1;
dev254drivers/net/plip.cdev->start = 0;
dev256drivers/net/plip.cfree_irq(dev->irq);
dev257drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev259drivers/net/plip.coutb(0x00, dev->base_addr);    /* Release the interrupt. */
dev264drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev268drivers/net/plip.cif (dev->tbusy || dev->interrupt) {  /* Do timeouts, to avoid hangs. */
dev269drivers/net/plip.cint tickssofar = jiffies - dev->trans_start;
dev272drivers/net/plip.cprintk("%s: transmit timed out\n", dev->name);
dev274drivers/net/plip.cplip_device_clear(dev);
dev282drivers/net/plip.cdev_tint(dev);
dev288drivers/net/plip.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev289drivers/net/plip.cskb->dev = dev;
dev295drivers/net/plip.cdev->trans_start = jiffies;
dev296drivers/net/plip.cret_val = plip_send_packet(dev, skb->data, skb->len);
dev299drivers/net/plip.cdev->tbusy = 0;
dev305drivers/net/plip.cplip_header (unsigned char *buff, struct device *dev,
dev309drivers/net/plip.cif (dev->dev_addr[0] == 0) {
dev311drivers/net/plip.cplip_set_physicaladdr(dev, h_source);
dev313drivers/net/plip.creturn eth_header(buff, dev, type, h_dest, h_source, len);
dev317drivers/net/plip.cplip_device_clear(struct device *dev)
dev319drivers/net/plip.cdev->interrupt = 0;
dev320drivers/net/plip.cdev->tbusy = 0;
dev321drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev322drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev326drivers/net/plip.cplip_receiver_error(struct device *dev)
dev328drivers/net/plip.cdev->interrupt = 0;
dev329drivers/net/plip.cdev->tbusy = 0;
dev330drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev331drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev335drivers/net/plip.cget_byte(struct device *dev)
dev341drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev345drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev352drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev354drivers/net/plip.coutb(0x11, dev->base_addr + PAR_DATA);
dev358drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev365drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev368drivers/net/plip.coutb(0x01, dev->base_addr + PAR_DATA);
dev383drivers/net/plip.cstruct device *dev = irq2dev_map[irq];
dev386drivers/net/plip.cif (dev == NULL) {
dev390drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev391drivers/net/plip.cif (dev->tbusy || dev->interrupt) return;
dev392drivers/net/plip.cdev->interrupt = 1;
dev393drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL);  /* Disable the rx interrupt. */
dev395drivers/net/plip.cPRINTK2(("%s: interrupt.  ", dev->name));
dev400drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0xc0) {
dev403drivers/net/plip.cdev->name, inb(dev->base_addr + PAR_STATUS)));
dev404drivers/net/plip.cplip_device_clear(dev);
dev409drivers/net/plip.cif (plip_receive_packet(dev)) {
dev412drivers/net/plip.cplip_receiver_error(dev);
dev414drivers/net/plip.cplip_device_clear(dev);
dev419drivers/net/plip.cplip_receive_packet(struct device *dev)
dev428drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev430drivers/net/plip.coutb(1, dev->base_addr + PAR_DATA);    /* Ack: 'Ready' */
dev434drivers/net/plip.cplip_type = get_byte(dev);
dev436drivers/net/plip.clength = get_byte(dev) << 8;
dev437drivers/net/plip.clength |= get_byte(dev);
dev444drivers/net/plip.c*eth_p = get_byte(dev);
dev452drivers/net/plip.ch_dest = get_byte(dev);
dev453drivers/net/plip.ch_source = get_byte(dev);
dev454drivers/net/plip.ctype = get_byte(dev) << 8;
dev455drivers/net/plip.ctype |= get_byte(dev);
dev456drivers/net/plip.cplip_rebuild_enethdr(dev, &eth, h_dest, h_source, type);
dev460drivers/net/plip.cPRINTK(("%s: wrong header octet\n", dev->name));
dev463drivers/net/plip.cif (length > dev->mtu || length < 8) {
dev464drivers/net/plip.cPRINTK2(("%s: bogus packet size %d.\n", dev->name, length));
dev477drivers/net/plip.cdev->name, sksize));
dev495drivers/net/plip.cunsigned char new_byte = get_byte(dev);
dev500drivers/net/plip.cif (checksum != get_byte(dev)) {
dev504drivers/net/plip.c} else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) {
dev505drivers/net/plip.cprintk("%s: rcv buff full.\n", dev->name);
dev515drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev517drivers/net/plip.cwhile ( (inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0x80 ) {
dev530drivers/net/plip.cstatic int send_byte(struct device *dev, unsigned char val)
dev534drivers/net/plip.cif (!(inb(dev->base_addr+PAR_STATUS) & 0x08)) {
dev539drivers/net/plip.coutb(val, dev->base_addr); /* this makes data bits more stable */
dev540drivers/net/plip.coutb(0x10 | val, dev->base_addr);
dev542drivers/net/plip.cwhile( inb(dev->base_addr+PAR_STATUS) & 0x80 )
dev547drivers/net/plip.coutb(0x10 | (val >> 4), dev->base_addr);
dev548drivers/net/plip.coutb(val >> 4, dev->base_addr);
dev550drivers/net/plip.cwhile( (inb(dev->base_addr+PAR_STATUS) & 0x80) == 0 )
dev572drivers/net/plip.cplip_send_start(struct device *dev, struct ethhdr *eth)
dev577drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev582drivers/net/plip.cwhile ( ((status = inb(dev->base_addr+PAR_STATUS)) & 0x08) == 0 ) {
dev583drivers/net/plip.cdev->tbusy = 1;
dev584drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL); /* Disable my rx intr. */
dev585drivers/net/plip.coutb(0x08, dev->base_addr + PAR_DATA);   /* Trigger remote rx intr. */
dev595drivers/net/plip.cif (plip_receive_packet(dev)) {
dev598drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev600drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev608drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev614drivers/net/plip.cplip_device_clear(dev);
dev617drivers/net/plip.cdev->name));
dev626drivers/net/plip.cplip_send_packet(struct device *dev, unsigned char *buf, int length)
dev633drivers/net/plip.cdev->name, length, buf[0], buf[1], buf[2], buf[3], buf[4]));
dev634drivers/net/plip.cif (length > dev->mtu) {
dev635drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, length);
dev638drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev644drivers/net/plip.cwhile ( (i = (inb(dev->base_addr+PAR_STATUS) & 0xe8)) != 0x80 ) {
dev663drivers/net/plip.cif (plip_send_start(dev, (struct ethhdr *)buf) < 0)
dev680drivers/net/plip.csend_byte(dev, plip_type); /* send header octet */
dev690drivers/net/plip.csend_byte(dev, length >> 8); send_byte(dev, length);
dev698drivers/net/plip.cplip_send_enethdr(dev, (struct ethhdr*)buf);
dev702drivers/net/plip.csend_byte(dev, *buf);
dev709drivers/net/plip.cif (send_byte(dev, buf[i]) < 0) {
dev714drivers/net/plip.csend_byte(dev, checksum & 0xff);
dev720drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev723drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xe8) != 0x80) {
dev731drivers/net/plip.cif (inb(dev->base_addr + PAR_STATUS) & 0x10) {
dev736drivers/net/plip.cplip_device_clear(dev);
dev746drivers/net/plip.cplip_set_physicaladdr(struct device *dev, unsigned long ipaddr)
dev753drivers/net/plip.cunsigned char *addr = dev->dev_addr;
dev757drivers/net/plip.cPRINTK2(("%s: set physical address to %08x\n", dev->name, ipaddr));
dev779drivers/net/plip.cplip_send_enethdr(struct device *dev, struct ethhdr *eth)
dev781drivers/net/plip.csend_byte(dev, eth->h_dest[ETH_ALEN-1]);
dev782drivers/net/plip.csend_byte(dev, eth->h_source[ETH_ALEN-1]);
dev783drivers/net/plip.csend_byte(dev, eth->h_proto >> 8);
dev784drivers/net/plip.csend_byte(dev, eth->h_proto);
dev789drivers/net/plip.cplip_rebuild_enethdr(struct device *dev, struct ethhdr *eth,
dev794drivers/net/plip.cmemcpy(eth->h_dest, dev->dev_addr, ETH_ALEN-1);
dev796drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, ETH_ALEN-1);
dev823drivers/net/plip.cplip_get_stats(struct device *dev)
dev825drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev105drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev107drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, short ioaddr);
dev108drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev109drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev111drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev112drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev113drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev115drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev119drivers/net/skeleton.c#define tx_done(dev) 1
dev121drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev131drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev134drivers/net/skeleton.cint base_addr = dev->base_addr;
dev137drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev147drivers/net/skeleton.cdev->base_addr = ioaddr;
dev148drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev152drivers/net/skeleton.cdev->base_addr = base_addr;
dev156drivers/net/skeleton.cint netcard_probe1(struct device *dev, short ioaddr)
dev171drivers/net/skeleton.cprintk("%s: %s found at %#3x, IRQ %d.\n", dev->name,
dev172drivers/net/skeleton.c"network card", dev->base_addr, dev->irq);
dev179drivers/net/skeleton.cif (dev->irq == -1)
dev181drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev185drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev187drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev188drivers/net/skeleton.c} else if (dev->irq == 2)
dev191drivers/net/skeleton.cdev->irq = 9;
dev193drivers/net/skeleton.c{   int irqval = request_irq(dev->irq, &net_interrupt);
dev195drivers/net/skeleton.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev196drivers/net/skeleton.cdev->irq, irqval);
dev209drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev210drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev212drivers/net/skeleton.cdev->open    = net_open;
dev213drivers/net/skeleton.cdev->stop    = net_close;
dev214drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev215drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev217drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev223drivers/net/skeleton.cdev->buffs[i] = NULL;
dev225drivers/net/skeleton.cdev->hard_header  = eth_header;
dev226drivers/net/skeleton.cdev->add_arp    = eth_add_arp;
dev227drivers/net/skeleton.cdev->queue_xmit    = dev_queue_xmit;
dev228drivers/net/skeleton.cdev->rebuild_header  = eth_rebuild_header;
dev229drivers/net/skeleton.cdev->type_trans    = eth_type_trans;
dev231drivers/net/skeleton.cdev->type      = ARPHRD_ETHER;
dev232drivers/net/skeleton.cdev->hard_header_len = ETH_HLEN;
dev233drivers/net/skeleton.cdev->mtu      = 1500; /* eth_mtu */
dev234drivers/net/skeleton.cdev->addr_len    = ETH_ALEN;
dev236drivers/net/skeleton.cdev->broadcast[i]=0xff;
dev240drivers/net/skeleton.cdev->flags      = IFF_BROADCAST;
dev241drivers/net/skeleton.cdev->family      = AF_INET;
dev242drivers/net/skeleton.cdev->pa_addr    = 0;
dev243drivers/net/skeleton.cdev->pa_brdaddr    = 0;
dev244drivers/net/skeleton.cdev->pa_mask    = 0;
dev245drivers/net/skeleton.cdev->pa_alen    = sizeof(unsigned long);
dev259drivers/net/skeleton.cnet_open(struct device *dev)
dev261drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev262drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev266drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt)) {
dev272drivers/net/skeleton.cif (request_dma(dev->dma)) {
dev273drivers/net/skeleton.cfree_irq(dev->irq);
dev276drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev283drivers/net/skeleton.cdev->tbusy = 0;
dev284drivers/net/skeleton.cdev->interrupt = 0;
dev285drivers/net/skeleton.cdev->start = 1;
dev290drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev292drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev293drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev295drivers/net/skeleton.cif (dev->tbusy) {
dev298drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev301drivers/net/skeleton.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev302drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev304drivers/net/skeleton.cchipset_init(dev, 1);
dev305drivers/net/skeleton.cdev->tbusy=0;
dev306drivers/net/skeleton.cdev->trans_start = jiffies;
dev313drivers/net/skeleton.cdev_tint(dev);
dev319drivers/net/skeleton.cif (!skb->arp  &&  dev->rebuild_header(skb->data, dev)) {
dev320drivers/net/skeleton.cskb->dev = dev;
dev328drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev329drivers/net/skeleton.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev335drivers/net/skeleton.cdev->trans_start = jiffies;
dev353drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev357drivers/net/skeleton.cif (dev == NULL) {
dev361drivers/net/skeleton.cdev->interrupt = 1;
dev363drivers/net/skeleton.cioaddr = dev->base_addr;
dev364drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev370drivers/net/skeleton.cnet_rx(dev);
dev374drivers/net/skeleton.cdev->tbusy = 0;
dev388drivers/net/skeleton.cnet_rx(struct device *dev)
dev390drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev391drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev414drivers/net/skeleton.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev421drivers/net/skeleton.cskb->dev = dev;
dev424drivers/net/skeleton.cmemcpy(skb->data, (void*)dev->rmem_start,
dev433drivers/net/skeleton.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev451drivers/net/skeleton.cnet_close(struct device *dev)
dev453drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev458drivers/net/skeleton.cdev->tbusy = 1;
dev459drivers/net/skeleton.cdev->start = 0;
dev463drivers/net/skeleton.cdisable_dma(dev->dma);
dev468drivers/net/skeleton.cfree_irq(dev->irq);
dev469drivers/net/skeleton.cfree_dma(dev->dma);
dev471drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev482drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev484drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev485drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev503drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev505drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev133drivers/net/slip.csl_initialize(struct slip *sl, struct device *dev)
dev149drivers/net/slip.csl->line    = dev->base_addr;
dev151drivers/net/slip.csl->dev    = dev;
dev161drivers/net/slip.cdev->rmem_end    = (unsigned long) NULL;
dev162drivers/net/slip.cdev->rmem_start  = (unsigned long) NULL;
dev163drivers/net/slip.cdev->mem_end    = (unsigned long) NULL;
dev164drivers/net/slip.cdev->mem_start  = (unsigned long) NULL;
dev229drivers/net/slip.cstruct device *dev=sl->dev;
dev234drivers/net/slip.csl->mtu=dev->mtu;
dev235drivers/net/slip.cl=(dev->mtu *2);
dev254drivers/net/slip.cdev->mtu=omtu;
dev266drivers/net/slip.ctf=(unsigned char *)sl->dev->mem_start;
dev267drivers/net/slip.csl->dev->mem_start=(unsigned long)tb;
dev268drivers/net/slip.csl->dev->mem_end=(unsigned long) (sl->dev->mem_start + l);
dev269drivers/net/slip.crf=(unsigned char *)sl->dev->rmem_start;
dev270drivers/net/slip.csl->dev->rmem_start=(unsigned long)rb;
dev271drivers/net/slip.csl->dev->rmem_end=(unsigned long) (sl->dev->rmem_start + l);
dev273drivers/net/slip.csl->xbuff = (unsigned char *) sl->dev->mem_start;
dev274drivers/net/slip.csl->rbuff = (unsigned char *) sl->dev->rmem_start;
dev275drivers/net/slip.csl->rend  = (unsigned char *) sl->dev->rmem_end;
dev337drivers/net/slip.csl->dev->tbusy = 1;
dev351drivers/net/slip.csl->dev->tbusy = 0;
dev409drivers/net/slip.cDPRINTF((DBG_SLIP, "<< \"%s\" recv:\r\n", sl->dev->name));
dev417drivers/net/slip.cdone = dev_rint(sl->rbuff, count, 0, sl->dev);
dev431drivers/net/slip.cdev_tint(sl->dev);
dev443drivers/net/slip.cDPRINTF((DBG_SLIP, ">> \"%s\" sent:\r\n", sl->dev->name));
dev447drivers/net/slip.cif(sl->mtu != sl->dev->mtu)  /* Someone has been ifconfigging */
dev530drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev537drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev540drivers/net/slip.cdev->name, skb, sl->sending));
dev558drivers/net/slip.cif(!skb->arp && dev->rebuild_header(skb->data,dev))
dev560drivers/net/slip.cskb->dev=dev;
dev587drivers/net/slip.csl_type_trans (struct sk_buff *skb, struct device *dev)
dev590drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev600drivers/net/slip.csl_header(unsigned char *buff, struct device *dev, unsigned short type,
dev604drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev606drivers/net/slip.creturn ax25_encapsulate_ip(buff,dev,type,daddr,saddr,len);
dev615drivers/net/slip.csl_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev618drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev621drivers/net/slip.carp_add(addr,((char *) skb->data)+8,dev);
dev628drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev)
dev631drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev634drivers/net/slip.creturn ax25_rebuild_header(buff,dev);
dev642drivers/net/slip.csl_open(struct device *dev)
dev648drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev653drivers/net/slip.csl->dev = dev;
dev663drivers/net/slip.cl = (dev->mtu * 2);
dev678drivers/net/slip.csl->mtu    = dev->mtu;
dev679drivers/net/slip.csl->dev->mem_start  = (unsigned long) p;
dev680drivers/net/slip.csl->dev->mem_end  = (unsigned long) (sl->dev->mem_start + l);
dev687drivers/net/slip.csl->dev->rmem_start  = (unsigned long) p;
dev688drivers/net/slip.csl->dev->rmem_end  = (unsigned long) (sl->dev->rmem_start + l);
dev690drivers/net/slip.csl->xbuff    = (unsigned char *) sl->dev->mem_start;
dev691drivers/net/slip.csl->rbuff    = (unsigned char *) sl->dev->rmem_start;
dev692drivers/net/slip.csl->rend    = (unsigned char *) sl->dev->rmem_end;
dev701drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev709drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev710drivers/net/slip.ckfree((unsigned char *)sl->dev->rmem_start);
dev716drivers/net/slip.cdev->flags|=IFF_UP;
dev718drivers/net/slip.cif(dev->pa_addr==0)
dev719drivers/net/slip.cdev->pa_addr=ntohl(0xC0000001);
dev727drivers/net/slip.csl_close(struct device *dev)
dev731drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev744drivers/net/slip.csl_initialize(sl, dev);
dev768drivers/net/slip.cif(sl->mtu!=sl->dev->mtu)  /* Argh! mtu change time! - costs us the packet part received at the change */
dev829drivers/net/slip.ctty->line, sl->dev->name));
dev844drivers/net/slip.c(void) sl_open(sl->dev);
dev846drivers/net/slip.ctty->line, sl->dev->name));
dev854drivers/net/slip.csl_get_stats(struct device *dev)
dev861drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev901drivers/net/slip.c(void) dev_close(sl->dev);
dev903drivers/net/slip.ctty->line, sl->dev->name));
dev1078drivers/net/slip.cint sl_set_mac_address(struct device *dev, void *addr)
dev1083drivers/net/slip.cmemcpy_fromfs(dev->dev_addr,addr,7);  /* addr is an AX.25 shifted ASCII mac address */
dev1108drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1120drivers/net/slip.csl->dev->addr_len=7;  /* sizeof an AX.25 addr */
dev1121drivers/net/slip.csl->dev->hard_header_len=17;  /* We don't do digipeaters */
dev1122drivers/net/slip.csl->dev->type=3;    /* AF_AX25 not an AF_INET device */
dev1126drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1127drivers/net/slip.csl->dev->hard_header_len=0;
dev1128drivers/net/slip.csl->dev->type=0;
dev1134drivers/net/slip.creturn sl_set_mac_address(sl->dev,arg);
dev1145drivers/net/slip.cslip_init(struct device *dev)
dev1154drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev1178drivers/net/slip.csl_initialize(sl, dev);
dev1189drivers/net/slip.cdev->mtu    = SL_MTU;
dev1190drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1191drivers/net/slip.cdev->open    = sl_open;
dev1192drivers/net/slip.cdev->stop    = sl_close;
dev1193drivers/net/slip.cdev->hard_header  = sl_header;
dev1194drivers/net/slip.cdev->add_arp    = sl_add_arp;
dev1195drivers/net/slip.cdev->type_trans  = sl_type_trans;
dev1196drivers/net/slip.cdev->get_stats  = sl_get_stats;
dev1199drivers/net/slip.cdev->set_mac_address  = sl_set_mac_address;
dev1202drivers/net/slip.cdev->hard_header_len  = 0;
dev1203drivers/net/slip.cdev->addr_len    = 0;
dev1204drivers/net/slip.cdev->type    = 0;
dev1206drivers/net/slip.cmemcpy(dev->broadcast,ax25_bcast,7);    /* Only activated in AX.25 mode */
dev1207drivers/net/slip.cmemcpy(dev->dev_addr,ax25_test,7);    /*    ""      ""       ""    "" */
dev1209drivers/net/slip.cdev->queue_xmit  = dev_queue_xmit;
dev1210drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1212drivers/net/slip.cdev->buffs[i] = NULL;
dev1215drivers/net/slip.cdev->flags    = 0;
dev1216drivers/net/slip.cdev->family    = AF_INET;
dev1217drivers/net/slip.cdev->pa_addr    = 0;
dev1218drivers/net/slip.cdev->pa_brdaddr  = 0;
dev1219drivers/net/slip.cdev->pa_mask    = 0;
dev1220drivers/net/slip.cdev->pa_alen    = sizeof(unsigned long);
dev39drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev76drivers/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);
dev963drivers/scsi/aha152x.cint aha152x_biosparam( int size, int dev, int *info_array )
dev974drivers/scsi/aha152x.cprintk("dev=%x, size=%d, ", dev, size);
dev902drivers/scsi/aha1542.cint aha1542_biosparam(int size, int dev, int * ip)
dev908drivers/scsi/aha1542.cdisk = rscsi_disks[MINOR(dev) >> 4].device;
dev494drivers/scsi/aha1740.cint aha1740_biosparam(int size, int dev, int* ip)
dev366drivers/scsi/constants.cint dev = SCpnt->request.dev;
dev400drivers/scsi/constants.cprintk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]);
dev402drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev430drivers/scsi/constants.cprintk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]);
dev433drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev1399drivers/scsi/fdomain.cint fdomain_16x0_biosparam( int size, int dev, int *info_array )
dev1440drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev396drivers/scsi/pas16.cint pas16_biosparam(int size, int dev, int * ip)
dev183drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev195drivers/scsi/scsi.cint dev, lun, type;
dev210drivers/scsi/scsi.cfor (dev = 0; dev < 8; ++dev)
dev211drivers/scsi/scsi.cif (shpnt->this_id != dev)
dev223drivers/scsi/scsi.cscsi_devices[NR_SCSI_DEVICES].id = dev;
dev239drivers/scsi/scsi.cSCmd.target = dev;
dev242drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev254drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev256drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev289drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev296drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev361drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev366drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev372drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev444drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev451drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev540drivers/scsi/scsi.cif (req && req->dev <= 0)
dev547drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev582drivers/scsi/scsi.creq->dev = -1;
dev585drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev607drivers/scsi/scsi.cint dev = -1;
dev621drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev631drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev637drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev641drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev651drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev680drivers/scsi/scsi.creq->dev = -1;
dev684drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1360drivers/scsi/scsi.cif ((SCpnt1->request.dev > 0) &&
dev1616drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev461drivers/scsi/scsi.hreq->dev,req->sector);
dev486drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev493drivers/scsi/scsi.hreq->dev = -1;
dev509drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev49drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev55drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev61drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
dev62drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
dev70drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");  \
dev71drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev80drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev203drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
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;  /* Mark as not busy */
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 */
dev211drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev233drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev237drivers/scsi/scsi_ioctl.cif ((cmd != 0 && dev->index > NR_SCSI_DEVICES))
dev243drivers/scsi/scsi_ioctl.cput_fs_long(dev->id + (dev->lun << 8) + 
dev244drivers/scsi/scsi_ioctl.c(dev->host->host_no << 16), (unsigned long *) arg);
dev248drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev249drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev250drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev254drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev255drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev256drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev259drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev262drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev264drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev266drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev269drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev272drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev274drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev277drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev280drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev283drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev296drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev301drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev15drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev16drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev144drivers/scsi/sd.cprintk("sd%d : rw_intr(%d, %d)\n", MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
dev156drivers/scsi/sd.cprintk("sd%d : %d sectors remain.\n", MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors);
dev199drivers/scsi/sd.cMINOR(SCpnt->request.dev));
dev251drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev262drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev266drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev283drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev284drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev293drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev294drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev295drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev318drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev339drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev357drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index);
dev362drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev382drivers/scsi/sd.cint dev, block, this_count;
dev388drivers/scsi/sd.cif(SCpnt->request.dev <= 0) {
dev393drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev398drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev401drivers/scsi/sd.cif (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev407drivers/scsi/sd.cblock += sd[dev].start_sect;
dev408drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev410drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev421drivers/scsi/sd.cprintk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block);
dev427drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev479drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev557drivers/scsi/sd.cprintk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(SCpnt->request.dev),
dev564drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev571drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev576drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev608drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev612drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev654drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev688drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev697drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev713drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev722drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev747drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev757drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev759drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev762drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev770drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev930drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev937drivers/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,
dev64drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev66drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1603drivers/scsi/seagate.cint seagate_st0x_biosparam(int size, int dev, int* ip) {
dev1610drivers/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;
dev213drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev222drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
dev223drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev247drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
dev248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
dev249drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
dev295drivers/scsi/sr.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev304drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev322drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index);
dev327drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
dev348drivers/scsi/sr.cunsigned int dev, block, realcount;
dev355drivers/scsi/sr.cif(SCpnt->request.dev <= 0) {
dev360drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
dev365drivers/scsi/sr.cif (dev >= NR_SR)
dev373drivers/scsi/sr.cif (!scsi_CDs[dev].use)
dev381drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
dev434drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev562drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev569drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev571drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev576drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev593drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev616drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev637drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev660drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev670drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe);
dev672drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev675drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev683drivers/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);
dev382drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev123drivers/scsi/st.cint dev = SCpnt->request.dev;
dev131drivers/scsi/st.cprintk("st%d: Error: %x\n", dev, result);
dev144drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev151drivers/scsi/st.cprintk("st%d: Recovered %s error (%d).\n", dev, stp,
dev152drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev166drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < NR_ST && st_nbr >= 0) {
dev188drivers/scsi/st.cSCpnt->request.dev = -1;
dev190drivers/scsi/st.cSCpnt->request.dev = 0xffff;
dev204drivers/scsi/st.cwrite_behind_check(int dev)
dev209drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev234drivers/scsi/st.cflush_write_buffer(int dev)
dev240drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev244drivers/scsi/st.cwrite_behind_check(dev);
dev247drivers/scsi/st.cprintk("st%d: Async write error %x.\n", dev,
dev265drivers/scsi/st.cprintk("st%d: Flushing %d bytes.\n", dev, transfer);
dev277drivers/scsi/st.cSCpnt->request.dev = dev;
dev282drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev285drivers/scsi/st.cprintk("st%d: Error on flush.\n", dev);
dev300drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev311drivers/scsi/st.cint dev;
dev316drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev317drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev321drivers/scsi/st.creturn flush_write_buffer(dev);
dev353drivers/scsi/st.cint dev;
dev360drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev361drivers/scsi/st.cif (dev >= NR_ST)
dev363drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev365drivers/scsi/st.cprintk("st%d: Device already in use.\n", dev);
dev374drivers/scsi/st.cprintk("st%d: No free buffers.\n", dev);
dev393drivers/scsi/st.cprintk("st%d: Tape request not allocated", dev);
dev400drivers/scsi/st.cSCpnt->request.dev = dev;
dev406drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev413drivers/scsi/st.cSCpnt->request.dev = dev;
dev419drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev425drivers/scsi/st.cprintk("st%d: No tape.\n", dev);
dev427drivers/scsi/st.cprintk("st%d: Error %x.\n", dev, SCpnt->result);
dev430drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev437drivers/scsi/st.cSCpnt->request.dev = dev;
dev442drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev450drivers/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev457drivers/scsi/st.cprintk("st%d: Can't read block limits.\n", dev);
dev465drivers/scsi/st.cSCpnt->request.dev = dev;
dev470drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev474drivers/scsi/st.cprintk("st%d: No Mode Sense.\n", dev);
dev479drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev482drivers/scsi/st.cprintk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev,
dev495drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev500drivers/scsi/st.cprintk("st%d: Blocksize %d too large for buffer.\n", dev,
dev523drivers/scsi/st.cprintk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev531drivers/scsi/st.cprintk( "st%d: Write protected\n", dev);
dev543drivers/scsi/st.cint dev;
dev550drivers/scsi/st.cdev = MINOR(inode->i_rdev);
dev551drivers/scsi/st.crewind = (dev & 0x80) == 0;
dev552drivers/scsi/st.cdev = dev & 127;
dev553drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev557drivers/scsi/st.cresult = flush_write_buffer(dev);
dev560drivers/scsi/st.cprintk("st%d: File length %d bytes.\n", dev, filp->f_pos);
dev570drivers/scsi/st.cSCpnt->request.dev = dev;
dev575drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev578drivers/scsi/st.cprintk("st%d: Error on write filemark.\n", dev);
dev580drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev584drivers/scsi/st.cprintk("st%d: Buffer flushed, EOF written\n", dev);
dev610drivers/scsi/st.cint dev;
dev618drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev619drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev622drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev642drivers/scsi/st.cwrite_behind_check(dev);
dev645drivers/scsi/st.cprintk("st%d: Async write error %x.\n", dev,
dev713drivers/scsi/st.cSCpnt->request.dev = dev;
dev719drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev723drivers/scsi/st.cprintk("st%d: Error on write:\n", dev);
dev745drivers/scsi/st.cdev, transfer);
dev752drivers/scsi/st.cprintk("st%d: EOM with lost data.\n", dev);
dev759drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev783drivers/scsi/st.cSCpnt->request.dev = -1;
dev807drivers/scsi/st.cSCpnt->request.dev = dev;
dev815drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev825drivers/scsi/st.cint dev;
dev832drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev833drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev836drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev853drivers/scsi/st.cprintk("st%d: EOF flag up. Bytes %d\n", dev,
dev883drivers/scsi/st.cSCpnt->request.dev = dev;
dev889drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev896drivers/scsi/st.cprintk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev,
dev923drivers/scsi/st.cprintk("st%d: Incorrect block size.\n", dev);
dev924drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev937drivers/scsi/st.cprintk("st%d: EOM detected (%d bytes read).\n", dev,
dev952drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev958drivers/scsi/st.cprintk("st%d: Tape error while reading.\n", dev);
dev960drivers/scsi/st.cSCpnt->request.dev = -1;
dev969drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev982drivers/scsi/st.cprintk("st%d: EOF up. Left %d, needed %d.\n", dev,
dev997drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1010drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1021drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1029drivers/scsi/st.cdev = dev & 127;
dev1030drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1042drivers/scsi/st.cprintk("st%d: Spacing tape forward over %d filemarks.\n", dev,
dev1058drivers/scsi/st.cprintk("st%d: Spacing tape backward over %d filemarks.\n", dev, (-ltmp));
dev1068drivers/scsi/st.cprintk("st%d: Spacing tape forward %d blocks.\n", dev,
dev1083drivers/scsi/st.cprintk("st%d: Spacing tape backward %d blocks.\n", dev, (-ltmp));
dev1095drivers/scsi/st.cprintk("st%d: Writing %d filemarks.\n", dev,
dev1106drivers/scsi/st.cprintk("st%d: Rewinding tape.\n", dev);
dev1116drivers/scsi/st.cprintk("st%d: Unloading tape.\n", dev);
dev1121drivers/scsi/st.cprintk("st%d: No op on tape.\n", dev);
dev1133drivers/scsi/st.cprintk("st%d: Retensioning tape.\n", dev);
dev1140drivers/scsi/st.cprintk("st%d: Spacing to end of recorded medium.\n", dev);
dev1149drivers/scsi/st.cprintk("st%d: Erasing tape.\n", dev);
dev1173drivers/scsi/st.cprintk("st%d: Seeking tape to block %d.\n", dev, arg);
dev1185drivers/scsi/st.cprintk("st%d: Illegal block size.\n", dev);
dev1212drivers/scsi/st.cprintk("st%d: Setting block size to %d bytes.\n", dev,
dev1217drivers/scsi/st.cprintk("st%d: Setting density code to %x.\n", dev,
dev1220drivers/scsi/st.cprintk("st%d: Setting drive buffer code to %d.\n", dev,
dev1225drivers/scsi/st.cprintk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in);
dev1231drivers/scsi/st.cSCpnt->request.dev = dev;
dev1236drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1240drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1286drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1294drivers/scsi/st.cdev = dev & 127;
dev1295drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1298drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1337drivers/scsi/st.cprintk("st%d: get tape position.\n", dev);
dev1362drivers/scsi/st.cSCpnt->request.dev = dev;
dev1368drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1373drivers/scsi/st.cprintk("st%d: Can't read tape position.\n", dev);
dev1391drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev295drivers/scsi/t128.cint t128_biosparam(int size, int dev, int * ip)
dev973drivers/scsi/ultrastor.cint ultrastor_biosparam(int size, int dev, int * dkinfo)
dev610drivers/scsi/wd7000.cint wd7000_biosparam(int size, int dev, int* ip)
dev52drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev56drivers/sound/audio.cint      dev_type = dev & 0x0f;
dev59drivers/sound/audio.cdev = dev >> 4;
dev66drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev69drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SAMPLESIZE, bits, 1) != bits)
dev71drivers/sound/audio.caudio_release (dev, file);
dev75drivers/sound/audio.cwr_buff_no[dev] = -1;
dev76drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev82drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev86drivers/sound/audio.cdev = dev >> 4;
dev89drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev91drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev93drivers/sound/audio.cwr_buff_no[dev] = -1;
dev96drivers/sound/audio.cDMAbuf_release (dev, mode);
dev125drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev129drivers/sound/audio.cint      dev_type = dev & 0x0f;
dev131drivers/sound/audio.cdev = dev >> 4;
dev136drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /* Direction changed */
dev138drivers/sound/audio.cwr_buff_no[dev] = -1;
dev141drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev145drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev147drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev149drivers/sound/audio.cwr_buff_no[dev] = -1;
dev156drivers/sound/audio.cif (wr_buff_no[dev] < 0)  /* There is no incomplete buffers */
dev158drivers/sound/audio.cif ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev], &wr_buff_size[dev])) < 0)
dev159drivers/sound/audio.creturn wr_buff_no[dev];
dev160drivers/sound/audio.cwr_buff_ptr[dev] = 0;
dev164drivers/sound/audio.cif (l > (wr_buff_size[dev] - wr_buff_ptr[dev]))
dev165drivers/sound/audio.cl = (wr_buff_size[dev] - wr_buff_ptr[dev]);
dev167drivers/sound/audio.cif (!dsp_devs[dev]->copy_from_user)
dev169drivers/sound/audio.cCOPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l);
dev172drivers/sound/audio.cdsp_devs[dev]->copy_from_user (dev,
dev173drivers/sound/audio.cwr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l);
dev184drivers/sound/audio.ctranslate_bytes (ulaw_dsp, &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
dev189drivers/sound/audio.cwr_buff_ptr[dev] += l;
dev191drivers/sound/audio.cif (wr_buff_ptr[dev] >= wr_buff_size[dev])
dev193drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0)
dev196drivers/sound/audio.cwr_buff_no[dev] = -1;
dev205drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev210drivers/sound/audio.cint      dev_type = dev & 0x0f;
dev212drivers/sound/audio.cdev = dev >> 4;
dev216drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev218drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev220drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev222drivers/sound/audio.cwr_buff_no[dev] = -1;
dev226drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev230drivers/sound/audio.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l)) < 0)
dev250drivers/sound/audio.cDMAbuf_rmchars (dev, buff_no, l);
dev260drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev263drivers/sound/audio.cint      dev_type = dev & 0x0f;
dev264drivers/sound/audio.cdev = dev >> 4;
dev269drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev271drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev273drivers/sound/audio.cwr_buff_no[dev] = -1;
dev275drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev279drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev281drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev283drivers/sound/audio.cwr_buff_no[dev] = -1;
dev289drivers/sound/audio.cwr_buff_no[dev] = -1;
dev290drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev297drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev311drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev317drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev323drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev329drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev333drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev340drivers/sound/audio.caudio_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev61drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev62drivers/sound/dev_table.hvoid (*close) (int dev);
dev63drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev65drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev67drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local);
dev68drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev69drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev70drivers/sound/dev_table.hvoid (*reset) (int dev);
dev71drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev72drivers/sound/dev_table.hint (*has_output_drained)(int dev);
dev73drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev78drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev86drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev87drivers/sound/dev_table.hvoid (*close) (int dev);
dev88drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev89drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int velocity);
dev90drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev91drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev92drivers/sound/dev_table.hvoid (*reset) (int dev);
dev93drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev94drivers/sound/dev_table.hint (*load_patch) (int dev, int format, snd_rw_buf *addr,
dev96drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev97drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev98drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev99drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev104drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev105drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev106drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev108drivers/sound/dev_table.hvoid (*close) (int dev);
dev109drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev110drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev111drivers/sound/dev_table.hint (*start_read) (int dev);
dev112drivers/sound/dev_table.hint (*end_read) (int dev);
dev113drivers/sound/dev_table.hvoid (*kick)(int dev);
dev114drivers/sound/dev_table.hint (*command) (int dev, unsigned char data);
dev115drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev122drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev123drivers/sound/dev_table.hvoid (*close) (int dev);
dev124drivers/sound/dev_table.hint (*write) (int dev, snd_rw_buf *data);
dev125drivers/sound/dev_table.hint (*read)  (int dev, snd_rw_buf *data);
dev100drivers/sound/dmabuf.creorganize_buffers (int dev)
dev109drivers/sound/dmabuf.csr = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev110drivers/sound/dmabuf.cnc = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev111drivers/sound/dmabuf.csz = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev115drivers/sound/dmabuf.cprintk ("SOUND: Invalid PCM parameters[%d] sr=%d, nc=%d, sz=%d\n", dev, sr, nc, sz);
dev129drivers/sound/dmabuf.cbsz = sound_buffsizes[dev];
dev134drivers/sound/dmabuf.cif (sound_buffcounts[dev] == 1 && bsz == sound_buffsizes[dev])
dev137drivers/sound/dmabuf.cif (dev_subdivision[dev] == 0)
dev138drivers/sound/dmabuf.cdev_subdivision[dev] = 1;  /* Default value */
dev140drivers/sound/dmabuf.cbsz /= dev_subdivision[dev];  /* Use smaller buffers */
dev144drivers/sound/dmabuf.cwhile ((sound_buffsizes[dev]*sound_buffcounts[dev])/bsz > MAX_SUB_BUFFERS)
dev147drivers/sound/dmabuf.cdev_buffsize[dev] = bsz;
dev154drivers/sound/dmabuf.cfor (i = 0; i < snd_raw_count[dev]; i++)
dev158drivers/sound/dmabuf.cwhile ((p + bsz) <= sound_buffsizes[dev])
dev160drivers/sound/dmabuf.cdev_buf[dev][n] = snd_raw_buf[dev][i] + p;
dev161drivers/sound/dmabuf.cdev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p;
dev167drivers/sound/dmabuf.cdev_nbufs[dev] = n;
dev169drivers/sound/dmabuf.cfor (i = 0; i < dev_nbufs[dev]; i++)
dev171drivers/sound/dmabuf.cdev_counts[dev][i] = 0;
dev174drivers/sound/dmabuf.cbufferalloc_done[dev] = 1;
dev178drivers/sound/dmabuf.cdma_init_buffers(int dev)
dev180drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev181drivers/sound/dmabuf.cdev_underrun[dev] = 0;
dev183drivers/sound/dmabuf.cdev_busy[dev] = 1;
dev185drivers/sound/dmabuf.cbufferalloc_done[dev] = 0;
dev187drivers/sound/dmabuf.cdev_active[dev] = dev_qlen[dev] = dev_qtail[dev] = dev_qhead[dev] = 0;
dev188drivers/sound/dmabuf.cdev_needs_restart[dev] = dev_started[dev] = 0;
dev189drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev193drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev197drivers/sound/dmabuf.cif (dev >= num_dspdevs)
dev199drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev203drivers/sound/dmabuf.cif (dev_busy[dev])
dev206drivers/sound/dmabuf.cif (!dsp_devs[dev])
dev208drivers/sound/dmabuf.cprintk ("DSP device %d not initialized\n", dev);
dev213drivers/sound/dmabuf.csound_dma_malloc(dev);
dev216drivers/sound/dmabuf.cif (snd_raw_buf[dev][0] == NULL)
dev219drivers/sound/dmabuf.cif ((retval = dsp_devs[dev]->open (dev, mode)) < 0)
dev222drivers/sound/dmabuf.cdev_modes[dev] = mode;
dev223drivers/sound/dmabuf.cdev_subdivision[dev] = 0;
dev225drivers/sound/dmabuf.cdma_init_buffers(dev);
dev226drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1);
dev227drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1);
dev228drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1);
dev234drivers/sound/dmabuf.cdma_reset (int dev)
dev240drivers/sound/dmabuf.cdsp_devs[dev]->reset (dev);
dev241drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev243drivers/sound/dmabuf.cif ((retval = dsp_devs[dev]->open (dev, dev_modes[dev])) < 0)
dev247drivers/sound/dmabuf.cdma_init_buffers(dev);
dev248drivers/sound/dmabuf.creorganize_buffers(dev);
dev252drivers/sound/dmabuf.cdma_sync (int dev)
dev258drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_OUTPUT)
dev265drivers/sound/dmabuf.cwhile ((!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev266drivers/sound/dmabuf.cdmabuf_interrupted[dev]) && !timed_out)
dev267drivers/sound/dmabuf.c&& dev_qlen[dev])
dev269drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ);
dev281drivers/sound/dmabuf.cif (dsp_devs[dev]->has_output_drained)  /* Device has hidden buffers */
dev283drivers/sound/dmabuf.cwhile (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev284drivers/sound/dmabuf.cdmabuf_interrupted[dev])
dev285drivers/sound/dmabuf.c&& !dsp_devs[dev]->has_output_drained (dev))
dev287drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ / 4);
dev292drivers/sound/dmabuf.creturn dev_qlen[dev];
dev296drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev299drivers/sound/dmabuf.cif (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev300drivers/sound/dmabuf.cdmabuf_interrupted[dev])
dev301drivers/sound/dmabuf.c&& (dma_mode[dev] == DMODE_OUTPUT))
dev303drivers/sound/dmabuf.cdma_sync (dev);
dev307drivers/sound/dmabuf.csound_dma_free(dev);
dev310drivers/sound/dmabuf.cdsp_devs[dev]->reset (dev);
dev312drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev314drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev315drivers/sound/dmabuf.cdev_busy[dev] = 0;
dev321drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev327drivers/sound/dmabuf.cif (!dev_qlen[dev])
dev329drivers/sound/dmabuf.cif (dev_needs_restart[dev])
dev331drivers/sound/dmabuf.cdma_reset(dev);
dev332drivers/sound/dmabuf.cdev_needs_restart[dev] = 0;
dev335drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_OUTPUT) /* Was output -> direction change */
dev337drivers/sound/dmabuf.cdma_sync(dev);
dev338drivers/sound/dmabuf.cdma_reset(dev);
dev339drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev342drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev343drivers/sound/dmabuf.creorganize_buffers (dev);
dev345drivers/sound/dmabuf.cif (!dma_mode[dev])
dev349drivers/sound/dmabuf.cif ((err = dsp_devs[dev]->prepare_for_input (dev,
dev350drivers/sound/dmabuf.cdev_buffsize[dev], dev_nbufs[dev])) < 0)
dev355drivers/sound/dmabuf.cdma_mode[dev] = DMODE_INPUT;
dev358drivers/sound/dmabuf.cif (!dev_active[dev])
dev360drivers/sound/dmabuf.cdsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]], 
dev361drivers/sound/dmabuf.cdev_buffsize[dev], 0,
dev362drivers/sound/dmabuf.c!sound_dma_automode[dev] || 
dev363drivers/sound/dmabuf.c!dev_started[dev]);
dev364drivers/sound/dmabuf.cdev_active[dev] = 1;
dev365drivers/sound/dmabuf.cdev_started[dev] = 1;
dev369drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev370drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev374drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev381drivers/sound/dmabuf.cif (!dev_qlen[dev])
dev384drivers/sound/dmabuf.c*buf = &dev_buf[dev][dev_qhead[dev]][dev_counts[dev][dev_qhead[dev]]];
dev385drivers/sound/dmabuf.c*len = dev_buffsize[dev] - dev_counts[dev][dev_qhead[dev]];
dev387drivers/sound/dmabuf.creturn dev_qhead[dev];
dev391drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev393drivers/sound/dmabuf.cint             p = dev_counts[dev][dev_qhead[dev]] + c;
dev395drivers/sound/dmabuf.cif (p >= dev_buffsize[dev])
dev397drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]] = 0;
dev398drivers/sound/dmabuf.cdev_qlen[dev]--;
dev399drivers/sound/dmabuf.cdev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev];
dev402drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]] = p;
dev408drivers/sound/dmabuf.cDMAbuf_read (int dev, snd_rw_buf * user_buf, int count)
dev418drivers/sound/dmabuf.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &c)) < 0)
dev426drivers/sound/dmabuf.cif ((err = DMAbuf_rmchars (dev, buff_no, c)) < 0)
dev433drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev438drivers/sound/dmabuf.cdma_reset (dev);
dev443drivers/sound/dmabuf.cdma_sync (dev);
dev444drivers/sound/dmabuf.cdma_reset (dev);
dev449drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev450drivers/sound/dmabuf.creorganize_buffers (dev);
dev452drivers/sound/dmabuf.creturn IOCTL_OUT (arg, dev_buffsize[dev]);
dev461drivers/sound/dmabuf.cfact = dev_subdivision[dev];
dev466drivers/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);
dev487drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev492drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_INPUT)  /* Was input -> Direction change */
dev494drivers/sound/dmabuf.cdma_reset(dev);
dev495drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev498drivers/sound/dmabuf.cif (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]);
dev568drivers/sound/dmabuf.cdev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev];
dev570drivers/sound/dmabuf.cif (!dev_active[dev])
dev572drivers/sound/dmabuf.cdev_active[dev] = 1;
dev573drivers/sound/dmabuf.cdsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]], 
dev574drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]], 0, 
dev575drivers/sound/dmabuf.c!sound_dma_automode[dev] || !dev_started[dev]);  
dev576drivers/sound/dmabuf.cdev_started[dev] = 1; 
dev583drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev585drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev597drivers/sound/dmabuf.cif (sound_dma_automode[dev])
dev605drivers/sound/dmabuf.cset_dma_addr (chan, snd_raw_buf_phys[dev][0]);
dev606drivers/sound/dmabuf.cset_dma_count (chan, sound_buffsizes[dev]);
dev612drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev615drivers/sound/dmabuf.csnd_raw_buf_phys[dev][0],
dev616drivers/sound/dmabuf.csound_buffsizes[dev],
dev621drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev628drivers/sound/dmabuf.csnd_raw_buf_phys[dev][0], count);
dev695drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev699drivers/sound/dmabuf.cdev_qlen[dev]--;
dev700drivers/sound/dmabuf.cdev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev];
dev701drivers/sound/dmabuf.cdev_active[dev] = 0;
dev703drivers/sound/dmabuf.cif (dev_qlen[dev])
dev705drivers/sound/dmabuf.cdsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]], 
dev706drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]], 1, 
dev707drivers/sound/dmabuf.c!sound_dma_automode[dev]);
dev708drivers/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] = 1;
dev719drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev721drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev727drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev731drivers/sound/dmabuf.cif (!dev_busy[dev])
dev733drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev735drivers/sound/dmabuf.celse if (dev_qlen[dev] == (dev_nbufs[dev] - 1))
dev738drivers/sound/dmabuf.cdev_underrun[dev]++;
dev739drivers/sound/dmabuf.cdsp_devs[dev]->halt_xfer (dev);
dev740drivers/sound/dmabuf.cdev_active[dev] = 0;
dev741drivers/sound/dmabuf.cdev_needs_restart[dev] = 1;
dev745drivers/sound/dmabuf.cdev_qlen[dev]++;
dev746drivers/sound/dmabuf.cdev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev];
dev748drivers/sound/dmabuf.cdsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]], 
dev749drivers/sound/dmabuf.cdev_buffsize[dev], 1,
dev750drivers/sound/dmabuf.c!sound_dma_automode[dev]);
dev751drivers/sound/dmabuf.cdev_active[dev] = 1;
dev755drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev757drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev763drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev766drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev785drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev787drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev810drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev816drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev822drivers/sound/dmabuf.cDMAbuf_read (int dev, snd_rw_buf * user_buf, int count)
dev828drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev834drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev840drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev846drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev852drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev864drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev888drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev894drivers/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)
dev999drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev1029drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev1071drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev1073drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int velocity)
dev1092drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev1142drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev1298drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1361drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1580drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1592drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1615drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1619drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1635drivers/sound/gus_wave.cguswave_reset (int dev)
dev1647drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1669drivers/sound/gus_wave.cguswave_close (int dev)
dev1679drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, snd_rw_buf * addr,
dev1955drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1961drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev1988drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev2170drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev2232drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2237drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2268drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2468drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2505drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2510drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2535drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2566drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2572drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2573drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2577drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2585drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2591drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2609drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2629drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2660drivers/sound/gus_wave.cgus_has_output_drained (int dev)
dev2666drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2734drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2751drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev3010drivers/sound/gus_wave.cgus_mixer_ioctl (int dev, unsigned int cmd, unsigned int 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);
dev119drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev120drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev121drivers/sound/mpu401.cvoid            (*output) (int dev)
dev140drivers/sound/mpu401.cmpu401_close (int dev)
dev146drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev180drivers/sound/mpu401.cmpu401_command (int dev, unsigned char midi_byte)
dev186drivers/sound/mpu401.cmpu401_start_read (int dev)
dev192drivers/sound/mpu401.cmpu401_end_read (int dev)
dev198drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, unsigned arg)
dev204drivers/sound/mpu401.cmpu401_kick (int dev)
dev209drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev78drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int velocity);
dev118drivers/sound/opl3.copl3_ioctl (int dev,
dev136drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev236drivers/sound/opl3.copl3_kill_note (int dev, int voice, int velocity)
dev282drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev428drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev652drivers/sound/opl3.copl3_reset (int dev)
dev673drivers/sound/opl3.copl3_kill_note (dev, i, 64);
dev691drivers/sound/opl3.copl3_open (int dev, int mode)
dev706drivers/sound/opl3.copl3_close (int dev)
dev713drivers/sound/opl3.copl3_reset (dev);
dev717drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev722drivers/sound/opl3.copl3_load_patch (int dev, int format, snd_rw_buf * addr,
dev746drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev757drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev823drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev867drivers/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;
dev59drivers/sound/sb16_dsp.cstatic int sb16_dsp_open (int dev, int mode);
dev60drivers/sound/sb16_dsp.cstatic void sb16_dsp_close (int dev);
dev61drivers/sound/sb16_dsp.cstatic void sb16_dsp_output_block (int dev, unsigned long buf, int count,int intrflag, int dma_restart);
dev62drivers/sound/sb16_dsp.cstatic void sb16_dsp_start_input (int dev, unsigned long buf, int count,int intrflag, int dma_restart);
dev63drivers/sound/sb16_dsp.cstatic int sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg,int local);
dev64drivers/sound/sb16_dsp.cstatic int sb16_dsp_prepare_for_input (int dev, int bsize, int bcount);
dev65drivers/sound/sb16_dsp.cstatic int sb16_dsp_prepare_for_output (int dev, int bsize, int bcount);
dev66drivers/sound/sb16_dsp.cstatic void sb16_dsp_reset (int dev);
dev67drivers/sound/sb16_dsp.cstatic void sb16_dsp_halt (int dev);
dev202drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg,int local)
dev251drivers/sound/sb16_dsp.csb16_dsp_open (int dev, int mode)
dev294drivers/sound/sb16_dsp.csb16_dsp_close (int dev)
dev313drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count,int intrflag, int dma_restart)
dev325drivers/sound/sb16_dsp.cint pos,chan=sound_dsp_dmachan[dev];
dev335drivers/sound/sb16_dsp.cif (sound_dma_automode[dev] &&
dev346drivers/sound/sb16_dsp.csb16_dsp_halt(dev);
dev347drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev367drivers/sound/sb16_dsp.csb16_dsp_start_input (int dev, unsigned long buf, int count,int intrflag, int dma_restart)
dev379drivers/sound/sb16_dsp.cint pos,chan=sound_dsp_dmachan[dev];
dev389drivers/sound/sb16_dsp.cif (sound_dma_automode[dev] &&
dev400drivers/sound/sb16_dsp.csb16_dsp_halt(dev);
dev401drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev422drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev431drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev447drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev460drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev59drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev116drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev117drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev118drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev136drivers/sound/sb16_midi.csb16midi_close (int dev)
dev142drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev176drivers/sound/sb16_midi.csb16midi_command (int dev, unsigned char midi_byte)
dev182drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev188drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev194drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev200drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev205drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev319drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count, 
dev328drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev330drivers/sound/sb_dsp.cif (sound_dsp_dmachan[dev] > 3)
dev363drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev374drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev376drivers/sound/sb_dsp.cif (sound_dsp_dmachan[dev] > 3)
dev416drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev435drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev452drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev491drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev521drivers/sound/sb_dsp.cif (!DMAbuf_open_dma (dev))
dev536drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev538drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev547drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev601drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev59drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev60drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev61drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev116drivers/sound/sb_midi.csb_midi_close (int dev)
dev128drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev150drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev161drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev172drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev109drivers/sound/sb_mixer.cchange_bits(unsigned char *regval, int dev, int chn, int newval)
dev114drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits)-1;
dev117drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs-(*iomap)[dev][LEFT_CHN].nbits+1;
dev124drivers/sound/sb_mixer.csb_mixer_get(int dev)
dev126drivers/sound/sb_mixer.cif (!((1<<dev) & supported_devices)) 
dev129drivers/sound/sb_mixer.creturn levels[dev];
dev133drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev144drivers/sound/sb_mixer.cif (dev > 31) return RET_ERROR(EINVAL);
dev146drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev149drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev155drivers/sound/sb_mixer.cchange_bits(&val, dev, LEFT_CHN, left);
dev157drivers/sound/sb_mixer.clevels[dev] = left|(left << 8);
dev159drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs) /* Change register */
dev162drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev170drivers/sound/sb_mixer.cchange_bits(&val, dev, RIGHT_CHN, right);
dev173drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev256drivers/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)
dev81drivers/sound/sequencer.cdev = dev >> 4;
dev83drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev84drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev108drivers/sound/sequencer.csequencer_midi_output (int dev)
dev134drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev149drivers/sound/sequencer.cevent[2] = dev;
dev156drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev163drivers/sound/sequencer.cdev = dev >> 4;
dev165drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev170drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev171drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev184drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev185drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev188drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev191drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev222drivers/sound/sequencer.cint             dev = event[2];
dev224drivers/sound/sequencer.cif (dev >= num_midis)
dev226drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev232drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev236drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev240drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev293drivers/sound/sequencer.cint             dev = q[2];
dev295drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev298drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev304drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[5]);
dev311drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev315drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev319drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev323drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev327drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev409drivers/sound/sequencer.cint             dev;
dev411drivers/sound/sequencer.cdev = q[2];
dev413drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev426drivers/sound/sequencer.cmidi_written[dev] = 1;
dev465drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev469drivers/sound/sequencer.cdev = dev >> 4;
dev472drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev480drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev484drivers/sound/sequencer.cdev--;
dev485drivers/sound/sequencer.cif (pmgr_present[dev])
dev487drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev490drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev580drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev585drivers/sound/sequencer.cdev = dev >> 4;
dev587drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev589drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev591drivers/sound/sequencer.cdev--;
dev592drivers/sound/sequencer.cpmgr_release (dev);
dev593drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev644drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev658drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev709drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev715drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev721drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev732drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev740drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev764drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev780drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev788drivers/sound/sequencer.cdev = IOCTL_IN (arg);
dev789drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev792drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev795drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev796drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev798drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev811drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev813drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev816drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev819drivers/sound/sequencer.creturn IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev825drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev827drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev830drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev833drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev841drivers/sound/sequencer.cint             dev;
dev844drivers/sound/sequencer.cdev = inf.device;
dev846drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev849drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev852drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev859drivers/sound/sequencer.cint             dev;
dev862drivers/sound/sequencer.cdev = inf.device;
dev864drivers/sound/sequencer.cif (dev < 0 || dev >= num_midis)
dev867drivers/sound/sequencer.cIOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf));
dev875drivers/sound/sequencer.cint             dev, err;
dev880drivers/sound/sequencer.cdev = inf->device;
dev882drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev888drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev894drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev909drivers/sound/sequencer.cint             dev, err;
dev914drivers/sound/sequencer.cdev = inf->device;
dev916drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev922drivers/sound/sequencer.cif (!pmgr_present[dev])
dev928drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev944drivers/sound/sequencer.cif (dev)    /* Patch manager */
dev957drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev976drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev978drivers/sound/sequencer.cdev = dev >> 4;
dev1104drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1110drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1116drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1122drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1126drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1133drivers/sound/sequencer.csequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev1145drivers/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,
dev197drivers/sound/sound_calls.hint pmgr_open(int dev);
dev198drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev199drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev200drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev201drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev202drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev216drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count)
dev218drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev220drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev229drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev233drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev238drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev242drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev249drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count)
dev252drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev254drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev258drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev264drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev275drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev278drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev280drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev282drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev286drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev303drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev309drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev317drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev322drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev326drivers/sound/sound_switch.csbc_devices[dev].usecount++;
dev333drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev336drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev338drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev351drivers/sound/sound_switch.csequencer_release (dev, file);
dev356drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev363drivers/sound/sound_switch.caudio_release (dev, file);
dev367drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev370drivers/sound/sound_switch.csbc_devices[dev].usecount--;
dev375drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev378drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev380drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev388drivers/sound/sound_switch.cif ((dev >> 4) >= num_mixers)
dev391drivers/sound/sound_switch.creturn mixer_devs[dev >> 4]->ioctl (dev >> 4, cmd, arg);
dev395drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev401drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev406drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev62drivers/sound/soundcard.cint             dev;
dev64drivers/sound/soundcard.cdev = inode->i_rdev;
dev65drivers/sound/soundcard.cdev = MINOR (dev);
dev67drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev73drivers/sound/soundcard.cint             dev;
dev75drivers/sound/soundcard.cdev = inode->i_rdev;
dev76drivers/sound/soundcard.cdev = MINOR (dev);
dev78drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev90drivers/sound/soundcard.cint             dev;
dev92drivers/sound/soundcard.cdev = inode->i_rdev;
dev93drivers/sound/soundcard.cdev = MINOR (dev);
dev95drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev101drivers/sound/soundcard.cfiles[dev].mode = 0;
dev104drivers/sound/soundcard.cfiles[dev].mode = OPEN_READWRITE;
dev106drivers/sound/soundcard.cfiles[dev].mode = OPEN_READ;
dev108drivers/sound/soundcard.cfiles[dev].mode = OPEN_WRITE;
dev110drivers/sound/soundcard.creturn sound_open_sw (dev, &files[dev]);
dev116drivers/sound/soundcard.cint             dev;
dev118drivers/sound/soundcard.cdev = inode->i_rdev;
dev119drivers/sound/soundcard.cdev = MINOR (dev);
dev121drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev128drivers/sound/soundcard.cint             dev;
dev130drivers/sound/soundcard.cdev = inode->i_rdev;
dev131drivers/sound/soundcard.cdev = MINOR (dev);
dev133drivers/sound/soundcard.creturn sound_ioctl_sw (dev, &files[dev], cmd, arg);
dev139drivers/sound/soundcard.cint             dev;
dev141drivers/sound/soundcard.cdev = inode->i_rdev;
dev142drivers/sound/soundcard.cdev = MINOR (dev);
dev144drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev146drivers/sound/soundcard.cswitch (dev & 0x0f)
dev149drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev281drivers/sound/soundcard.cint             i, dev;
dev291drivers/sound/soundcard.cfor (dev = 0; dev < num_dspdevs; dev++)  /* Enumerate devices */
dev292drivers/sound/soundcard.cif (sound_buffcounts[dev] > 0 && sound_dsp_dmachan[dev] > 0)
dev294drivers/sound/soundcard.cif (sound_dma_automode[dev])
dev295drivers/sound/soundcard.csound_buffcounts[dev] = 1;
dev297drivers/sound/soundcard.cif (sound_dsp_dmachan[dev] > 3 && sound_buffsizes[dev] > 65536)
dev304drivers/sound/soundcard.cif (sound_buffsizes[dev] > dma_pagesize)
dev305drivers/sound/soundcard.csound_buffsizes[dev] = dma_pagesize;
dev306drivers/sound/soundcard.csound_buffsizes[dev] &= 0xfffff000;  /* Truncate to n*4k */
dev307drivers/sound/soundcard.cif (sound_buffsizes[dev] < 4096)
dev308drivers/sound/soundcard.csound_buffsizes[dev] = 4096;
dev312drivers/sound/soundcard.cfor (snd_raw_count[dev] = 0; snd_raw_count[dev] < sound_buffcounts[dev]; snd_raw_count[dev]++)
dev314drivers/sound/soundcard.cstart_addr = mem_ptr - sound_buffsizes[dev];
dev315drivers/sound/soundcard.cif (!valid_dma_page (start_addr, sound_buffsizes[dev], dma_pagesize))
dev319drivers/sound/soundcard.cend_addr = start_addr + sound_buffsizes[dev] - 1;
dev321drivers/sound/soundcard.csnd_raw_buf[dev][snd_raw_count[dev]] = (char *) start_addr;
dev322drivers/sound/soundcard.csnd_raw_buf_phys[dev][snd_raw_count[dev]] = start_addr;
dev25fs/block_dev.cunsigned int dev;
dev29fs/block_dev.cdev = inode->i_rdev;
dev31fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev32fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev44fs/block_dev.cif (blk_size[MAJOR(dev)])
dev45fs/block_dev.csize = (blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev55fs/block_dev.cbh = getblk(dev, block, blocksize);
dev57fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev92fs/block_dev.cunsigned int dev;
dev95fs/block_dev.cdev = inode->i_rdev;
dev97fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev98fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev107fs/block_dev.cif (blk_size[MAJOR(dev)])
dev108fs/block_dev.csize = blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev127fs/block_dev.cblocks += read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev147fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev92fs/buffer.cstatic int sync_buffers(dev_t dev, int wait)
dev106fs/buffer.cif (dev && bh->b_dev != dev)
dev150fs/buffer.cvoid sync_dev(dev_t dev)
dev152fs/buffer.csync_buffers(dev, 0);
dev153fs/buffer.csync_supers(dev);
dev154fs/buffer.csync_inodes(dev);
dev155fs/buffer.csync_buffers(dev, 0);
dev158fs/buffer.cint fsync_dev(dev_t dev)
dev160fs/buffer.csync_buffers(dev, 0);
dev161fs/buffer.csync_supers(dev);
dev162fs/buffer.csync_inodes(dev);
dev163fs/buffer.creturn sync_buffers(dev, 1);
dev191fs/buffer.cvoid invalidate_buffers(dev_t dev)
dev198fs/buffer.cif (bh->b_dev != dev)
dev201fs/buffer.cif (bh->b_dev == dev)
dev220fs/buffer.cvoid check_disk_change(dev_t dev)
dev225fs/buffer.cswitch(MAJOR(dev)){
dev227fs/buffer.cif (!(bh = getblk(dev,0,1024)))
dev235fs/buffer.ci = check_scsidisk_media_change(dev, 0);
dev241fs/buffer.ci = check_cdrom_media_change(dev, 0);
dev247fs/buffer.ci = check_cdu31a_media_change(dev, 0);
dev253fs/buffer.ci = check_mcd_media_change(dev, 0);
dev264fs/buffer.cMAJOR(dev), MINOR(dev));
dev266fs/buffer.cif (super_blocks[i].s_dev == dev)
dev268fs/buffer.cinvalidate_inodes(dev);
dev269fs/buffer.cinvalidate_buffers(dev);
dev274fs/buffer.cif (MAJOR(dev) == SCSI_DISK_MAJOR)
dev275fs/buffer.crevalidate_scsidisk(dev, 0);
dev279fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%NR_HASH)
dev280fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev357fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
dev361fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev362fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
dev367fs/buffer.cMAJOR(dev), MINOR(dev));
dev380fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
dev385fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev389fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
dev395fs/buffer.cvoid set_blocksize(dev_t dev, int size)
dev400fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev408fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev409fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev412fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev414fs/buffer.csync_buffers(dev, 2);
dev415fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev423fs/buffer.cif (bh->b_dev != dev)
dev429fs/buffer.cif (bh->b_dev == dev && bh->b_size != size)
dev447fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
dev454fs/buffer.cbh = get_hash_table(dev, block, size);
dev505fs/buffer.cif (find_buffer(dev,block,size))
dev514fs/buffer.cbh->b_dev=dev;
dev538fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev542fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev544fs/buffer.cMAJOR(dev), MINOR(dev));
dev562fs/buffer.cstruct buffer_head * breada(dev_t dev,int first, ...)
dev571fs/buffer.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev572fs/buffer.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev574fs/buffer.cif (!(bh = getblk(dev, first, blocksize))) {
dev576fs/buffer.cMAJOR(dev), MINOR(dev));
dev582fs/buffer.ctmp = getblk(dev, first, blocksize);
dev700fs/buffer.cdev_t dev, int *b, int size)
dev720fs/buffer.cfirst = get_hash_table(dev, block, size);
dev741fs/buffer.cdev_t dev, int b[], int size)
dev757fs/buffer.cif (find_buffer(dev, block, size))
dev768fs/buffer.cbh->b_dev = dev;
dev805fs/buffer.cdev_t dev, int *b, int size)
dev813fs/buffer.cbh = get_hash_table(dev, block, size);
dev815fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev816fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev831fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot)
dev838fs/buffer.cwhere = try_to_share_buffers(address,dev,b,size);
dev846fs/buffer.cbh[i] = getblk(dev, b[i], 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;
dev238fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno);
dev249fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev255fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino);
dev256fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino,
dev258fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev260fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev262fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp);
dev263fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev338fs/hpfs/hpfs_fs.cdev_t dev;
dev361fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev362fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev368fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev372fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev376fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev491fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev837fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno)
dev843fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1538fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev1544fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1568fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino)
dev1574fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1585fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp)
dev1594fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1606fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev1616fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1628fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev1638fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1650fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp)
dev1654fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1664fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev1679fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev,
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)
dev212fs/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;
dev678fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev680fs/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)
dev411fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev416fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev434fs/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)
dev394fs/proc/array.cdev_t dev;
dev425fs/proc/array.cdev = map->vm_inode->i_dev;
dev428fs/proc/array.cdev = 0;
dev434fs/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);
dev71fs/super.cvoid sync_supers(dev_t dev)
dev78fs/super.cif (dev && sb->s_dev != dev)
dev83fs/super.cif (dev && (dev != sb->s_dev))
dev90fs/super.cstatic struct super_block * get_super(dev_t dev)
dev94fs/super.cif (!dev)
dev98fs/super.cif (s->s_dev == dev) {
dev100fs/super.cif (s->s_dev == dev)
dev108fs/super.cvoid put_super(dev_t dev)
dev112fs/super.cif (dev == ROOT_DEV) {
dev114fs/super.cMAJOR(dev), MINOR(dev));
dev117fs/super.cif (!(sb = get_super(dev)))
dev121fs/super.cMAJOR(dev), MINOR(dev));
dev128fs/super.cstatic struct super_block * read_super(dev_t dev,char *name,int flags,
dev134fs/super.cif (!dev)
dev136fs/super.ccheck_disk_change(dev);
dev137fs/super.cs = get_super(dev);
dev142fs/super.cMAJOR(dev), MINOR(dev), name);
dev151fs/super.cs->s_dev = dev;
dev157fs/super.cs->s_dev = dev;
dev190fs/super.cstatic void put_unnamed_dev(dev_t dev)
dev192fs/super.cif (!dev)
dev194fs/super.cif (!unnamed_dev_in_use[dev]) {
dev196fs/super.cMAJOR(dev), MINOR(dev));
dev199fs/super.cunnamed_dev_in_use[dev] = 0;
dev202fs/super.cstatic int do_umount(dev_t dev)
dev207fs/super.cif (dev==ROOT_DEV) {
dev210fs/super.cif (!(sb=get_super(dev)))
dev213fs/super.cfsync_dev(dev);
dev220fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev224fs/super.cMAJOR(dev), MINOR(dev));
dev225fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev234fs/super.cput_super(dev);
dev252fs/super.cdev_t dev;
dev266fs/super.cdev = inode->i_rdev;
dev276fs/super.cdev = inode->i_sb->s_dev;
dev279fs/super.cdummy_inode.i_rdev = dev;
dev282fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev286fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev287fs/super.cfops = get_blkfops(MAJOR(dev));
dev290fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev291fs/super.cput_unnamed_dev(dev);
dev297fs/super.cfsync_dev(dev);
dev310fs/super.cstatic int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data)
dev327fs/super.cif (!fs_may_mount(dev)) {
dev331fs/super.csb = read_super(dev,type,flags,data,0);
dev433fs/super.cdev_t dev;
dev472fs/super.cdev = inode->i_rdev;
dev473fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev478fs/super.cif (!(dev = get_unnamed_dev()))
dev482fs/super.cfops = get_blkfops(MAJOR(dev));
dev499fs/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;
dev346include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev347include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev348include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev360include/linux/fs.hextern void check_disk_change(dev_t dev);
dev361include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev362include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev364include/linux/fs.hextern void sync_inodes(dev_t dev);
dev365include/linux/fs.hextern void sync_dev(dev_t dev);
dev366include/linux/fs.hextern int fsync_dev(dev_t dev);
dev367include/linux/fs.hextern void sync_supers(dev_t dev);
dev375include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev384include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev385include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev387include/linux/fs.hextern void ll_rw_page(int rw, int dev, int nr, char * buffer);
dev388include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev390include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev391include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev392include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot);
dev393include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block,...);
dev394include/linux/fs.hextern void put_super(dev_t dev);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
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)))
dev511include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev534include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev638include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev639include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev642include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev643include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev647include/linux/soundcard.h#define SEQ_START_NOTE(dev, voice, note, vol)  {_SEQ_NEEDBUF(8);\
dev650include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev658include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, voice, note, vol)  {_SEQ_NEEDBUF(8);\
dev661include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev669include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, voice, pressure)  {_SEQ_NEEDBUF(8);\
dev672include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev680include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos)  {_SEQ_NEEDBUF(8);\
dev683include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev691include/linux/soundcard.h#define SEQ_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev694include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev701include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev702include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev703include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_EXPRESSION, value)
dev704include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_MAIN_VOLUME, value)
dev712include/linux/soundcard.h#define SEQ_SET_PATCH(dev, voice, patch)  {_SEQ_NEEDBUF(8);\
dev715include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev352include/linux/sysv_fs.hsysv_bread (struct super_block *sb, int dev, unsigned int block, char* * data)
dev356include/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);
dev47net/ddi.cregister struct ddi_device *dev;
dev50net/ddi.cdev = devices;
dev51net/ddi.cwhile (dev->title != NULL) {
dev52net/ddi.cif (strncmp(dev->name, id, DDI_MAXNAME) == 0) {
dev53net/ddi.cPRINTK (("OK at 0x%X\n", dev));
dev54net/ddi.creturn(dev);
dev56net/ddi.cdev++;
dev72net/ddi.cstruct ddi_device *dev;
dev84net/ddi.cdev = devices;
dev85net/ddi.cwhile (dev->title != NULL) {
dev86net/ddi.c(*dev->init)(dev);
dev87net/ddi.cdev++;
dev243net/inet/arp.cif (skb->arp || !skb->dev->rebuild_header(skb->data, skb->dev)) {
dev245net/inet/arp.cskb->dev->queue_xmit(skb, skb->dev, 0);
dev279net/inet/arp.carp_response(struct arphdr *arp1, struct device *dev,  int addrtype)
dev304net/inet/arp.cdev->hard_header_len, GFP_ATOMIC);
dev312net/inet/arp.c(2 * arp1->ar_pln) + dev->hard_header_len;
dev314net/inet/arp.chlen = dev->hard_header(skb->data, dev, ETH_P_ARP, src, dst, skb->len);
dev334net/inet/arp.cmemcpy(ptr2, dev->dev_addr, arp2->ar_hln);
dev353net/inet/arp.cdev->queue_xmit(skb, dev, 0);
dev510net/inet/arp.carp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev524net/inet/arp.cif (arp->ar_hln != dev->addr_len || dev->type != NET16(arp->ar_hrd)) 
dev526net/inet/arp.cDPRINTF((DBG_ARP,"ARP: Bad packet received on device \"%s\" !\n", dev->name));
dev532net/inet/arp.cif (((arp->ar_pro != NET16(0x00CC) && dev->type==3) || (arp->ar_pro != NET16(ETH_P_IP) && dev->type!=3) ) || arp->ar_pln != 4) 
dev535net/inet/arp.cDPRINTF((DBG_ARP,"ARP: Non-IP request on device \"%s\" !\n", dev->name));
dev605net/inet/arp.cret = arp_response(arp, dev, addr_hint);
dev613net/inet/arp.carp_send(unsigned long paddr, struct device *dev, unsigned long saddr)
dev621net/inet/arp.cDPRINTF((DBG_ARP, "dev=%s, ", dev->name));
dev625net/inet/arp.csizeof(struct arphdr) + (2 * dev->addr_len) +
dev626net/inet/arp.cdev->hard_header_len +
dev637net/inet/arp.cdev->hard_header_len + (2 * dev->addr_len) + 8;
dev640net/inet/arp.cskb->dev = dev;
dev643net/inet/arp.ctmp = dev->hard_header(skb->data, dev, ETH_P_ARP, 0, saddr, skb->len);
dev649net/inet/arp.carp->ar_hrd = htons(dev->type);
dev650net/inet/arp.cif(dev->type!=3)  /* AX.25 */
dev654net/inet/arp.carp->ar_hln = dev->addr_len;
dev659net/inet/arp.cmemcpy(ptr, dev->dev_addr, arp->ar_hln);
dev670net/inet/arp.cdev->queue_xmit(skb, dev, 0);
dev676net/inet/arp.carp_find(unsigned char *haddr, unsigned long paddr, struct device *dev,
dev683net/inet/arp.cDPRINTF((DBG_ARP, "dev=%s, saddr=%s)\n", dev->name, in_ntoa(saddr)));
dev687net/inet/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev690net/inet/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev704net/inet/arp.cmemcpy(haddr, apt->ha, dev->addr_len);
dev720net/inet/arp.carp_send(paddr, dev, saddr);
dev728net/inet/arp.carp_add(unsigned long addr, unsigned char *haddr, struct device *dev)
dev734net/inet/arp.cDPRINTF((DBG_ARP, "%d, %d)\n", dev->hard_header_len, dev->type));
dev747net/inet/arp.cmemcpy(apt->ha, haddr , dev->addr_len);
dev750net/inet/arp.carp_create(addr, haddr, dev->addr_len, dev->type);
dev756net/inet/arp.carp_add_broad(unsigned long addr, struct device *dev)
dev760net/inet/arp.carp_add(addr, dev->broadcast, dev);
dev52net/inet/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev55net/inet/arp.hstruct device *dev, unsigned long saddr);
dev57net/inet/arp.hstruct device *dev);
dev58net/inet/arp.hextern void  arp_add_broad(unsigned long addr, struct device *dev);
dev199net/inet/dev.cstruct device *dev;
dev213net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev214net/inet/dev.cif (!(dev->flags & IFF_UP))
dev216net/inet/dev.cif ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/)
dev219net/inet/dev.cif (addr == dev->pa_addr)
dev222net/inet/dev.cif ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr)
dev225net/inet/dev.cif (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) {
dev226net/inet/dev.cif ((addr & ~dev->pa_mask) == 0)
dev228net/inet/dev.cif ((addr & ~dev->pa_mask) == ~dev->pa_mask)
dev232net/inet/dev.cif (((addr ^ dev->pa_addr) & mask) == 0) {
dev254net/inet/dev.cstruct device *dev;
dev256net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev257net/inet/dev.cif (dev->flags & IFF_LOOPBACK) return(dev->pa_addr);
dev344net/inet/dev.cstruct device *dev;
dev346net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev347net/inet/dev.cif (strcmp(dev->name, name) == 0) 
dev348net/inet/dev.creturn(dev);
dev357net/inet/dev.cstruct device *dev;
dev359net/inet/dev.cfor (dev = dev_base; dev; dev = dev->next) {
dev360net/inet/dev.cif (!(dev->flags & IFF_UP))
dev362net/inet/dev.cif (!(dev->flags & IFF_POINTOPOINT))
dev364net/inet/dev.cif (addr != dev->pa_dstaddr)
dev366net/inet/dev.creturn dev;
dev368net/inet/dev.cfor (dev = dev_base; dev; dev = dev->next) {
dev369net/inet/dev.cif (!(dev->flags & IFF_UP))
dev371net/inet/dev.cif (dev->flags & IFF_POINTOPOINT)
dev373net/inet/dev.cif (dev->pa_mask & (addr ^ dev->pa_addr))
dev375net/inet/dev.creturn dev;
dev383net/inet/dev.cdev_open(struct device *dev)
dev387net/inet/dev.cif (dev->open) 
dev388net/inet/dev.cret = dev->open(dev);
dev390net/inet/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev398net/inet/dev.cdev_close(struct device *dev)
dev400net/inet/dev.cif (dev->flags != 0) {
dev402net/inet/dev.cdev->flags = 0;
dev403net/inet/dev.cif (dev->stop) 
dev404net/inet/dev.cdev->stop(dev);
dev405net/inet/dev.crt_flush(dev);
dev406net/inet/dev.cdev->pa_addr = 0;
dev407net/inet/dev.cdev->pa_dstaddr = 0;
dev408net/inet/dev.cdev->pa_brdaddr = 0;
dev409net/inet/dev.cdev->pa_mask = 0;
dev414net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev427net/inet/dev.cdev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev434net/inet/dev.cskb, dev, pri));
dev436net/inet/dev.cif (dev == NULL) {
dev443net/inet/dev.cskb->dev = dev;
dev446net/inet/dev.cdev->hard_start_xmit(NULL, dev);
dev460net/inet/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev466net/inet/dev.cpri, dev->buffs[pri]));
dev472net/inet/dev.cskb_queue_head(&dev->buffs[pri],skb);
dev474net/inet/dev.cskb_queue_tail(&dev->buffs[pri],skb);
dev523net/inet/dev.cdev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev531net/inet/dev.cif (dev == NULL || buff == NULL || len <= 0) return(1);
dev545net/inet/dev.cdev->name);
dev557net/inet/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev564net/inet/dev.cif ((unsigned long) buff == dev->rmem_end)
dev565net/inet/dev.cbuff = (unsigned char *) dev->rmem_start;
dev569net/inet/dev.cskb->dev = dev;
dev582net/inet/dev.cstruct device *dev;
dev584net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev585net/inet/dev.cif (!dev->tbusy) {
dev586net/inet/dev.cdev_tint(dev);
dev632net/inet/dev.cskb->h.raw = skb->data + skb->dev->hard_header_len;
dev633net/inet/dev.cskb->len -= skb->dev->hard_header_len;
dev644net/inet/dev.ctype = skb->dev->type_trans(skb, skb->dev);
dev681net/inet/dev.cptype->func(skb2, skb->dev, ptype);
dev711net/inet/dev.cvoid dev_tint(struct device *dev)
dev717net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev722net/inet/dev.cdev->queue_xmit(skb,dev,-i - 1);
dev723net/inet/dev.cif (dev->tbusy)
dev736net/inet/dev.cstruct device *dev;
dev750net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev751net/inet/dev.cif(!(dev->flags & IFF_UP))
dev754net/inet/dev.cstrcpy(ifr.ifr_name, dev->name);
dev755net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev756net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev773net/inet/dev.cchar *sprintf_stats(char *buffer, struct device *dev)
dev776net/inet/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev780net/inet/dev.cdev->name,
dev791net/inet/dev.cpos += sprintf(pos, "%6s: No statistics available.\n", dev->name);
dev801net/inet/dev.cstruct device *dev;
dev807net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev808net/inet/dev.cpos = sprintf_stats(pos, dev);
dev829net/inet/dev.cstruct device *dev;
dev839net/inet/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) return(-EINVAL);
dev843net/inet/dev.cifr.ifr_flags = dev->flags;
dev849net/inet/dev.cint old_flags = dev->flags;
dev850net/inet/dev.cdev->flags = ifr.ifr_flags & (
dev855net/inet/dev.cif ( (old_flags & IFF_PROMISC) && ((dev->flags & IFF_PROMISC) == 0))
dev856net/inet/dev.cdev->set_multicast_list(dev,0,NULL);
dev857net/inet/dev.cif ( (dev->flags & IFF_PROMISC) && ((old_flags & IFF_PROMISC) == 0))
dev858net/inet/dev.cdev->set_multicast_list(dev,-1,NULL);
dev859net/inet/dev.cif ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) {
dev860net/inet/dev.cret = dev_close(dev);
dev863net/inet/dev.cret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP))
dev864net/inet/dev.c? dev_open(dev) : 0;
dev866net/inet/dev.cdev->flags&=~IFF_UP;  /* Didnt open so down the if */
dev872net/inet/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev874net/inet/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev881net/inet/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev883net/inet/dev.cdev->family = ifr.ifr_addr.sa_family;
dev884net/inet/dev.cdev->pa_mask = get_mask(dev->pa_addr);
dev885net/inet/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev890net/inet/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev892net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev899net/inet/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev905net/inet/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev907net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev914net/inet/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev920net/inet/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev922net/inet/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev934net/inet/dev.cdev->pa_mask = mask;
dev939net/inet/dev.cifr.ifr_metric = dev->metric;
dev944net/inet/dev.cdev->metric = ifr.ifr_metric;
dev948net/inet/dev.cifr.ifr_mtu = dev->mtu;
dev953net/inet/dev.cdev->mtu = ifr.ifr_mtu;
dev965net/inet/dev.cmemcpy(ifr.ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev981net/inet/dev.cstruct ddi_device *dev;
dev1019net/inet/dev.cdev = ddi_map(iflink.id);
dev1020net/inet/dev.cif (dev == NULL)
dev1025net/inet/dev.cdev->name, iflink.stream);
dev1038net/inet/dev.cstruct device *dev, *dev2;
dev1046net/inet/dev.cfor (dev = dev_base; dev != NULL; dev=dev->next) {
dev1047net/inet/dev.cif (dev->init && dev->init(dev)) {
dev1048net/inet/dev.cif (dev2 == NULL) dev_base = dev->next;
dev1049net/inet/dev.celse dev2->next = dev->next;
dev1051net/inet/dev.cdev2 = dev;
dev76net/inet/dev.hint        (*init)(struct device *dev);
dev83net/inet/dev.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev117net/inet/dev.hint        (*open)(struct device *dev);
dev118net/inet/dev.hint        (*stop)(struct device *dev);
dev120net/inet/dev.hstruct device *dev);
dev122net/inet/dev.hstruct device *dev,
dev129net/inet/dev.hstruct device *dev);
dev131net/inet/dev.hstruct device *dev, int pri);
dev132net/inet/dev.hint        (*rebuild_header)(void *eth, struct device *dev);
dev134net/inet/dev.hstruct device *dev);
dev136net/inet/dev.hvoid        (*set_multicast_list)(struct device *dev,
dev139net/inet/dev.hint        (*set_mac_address)(struct device *dev, void *addr);
dev173net/inet/dev.hextern int    dev_open(struct device *dev);
dev174net/inet/dev.hextern int    dev_close(struct device *dev);
dev175net/inet/dev.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev181net/inet/dev.hstruct device * dev);
dev185net/inet/dev.hextern void    dev_tint(struct device *dev);
dev98net/inet/eth.ceth_header(unsigned char *buff, struct device *dev, unsigned short type,
dev111net/inet/eth.cif (dev->flags & IFF_LOOPBACK) {
dev113net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev114net/inet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev115net/inet/eth.creturn(dev->hard_header_len);
dev121net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev122net/inet/eth.cmemcpy(eth->h_dest, dev->broadcast, dev->addr_len);
dev123net/inet/eth.creturn(dev->hard_header_len);
dev128net/inet/eth.cif (arp_find(eth->h_dest, daddr, dev, dev->pa_addr)) 
dev133net/inet/eth.creturn(-dev->hard_header_len);
dev137net/inet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);  /* This was missing causing chaos if the
dev140net/inet/eth.creturn(dev->hard_header_len);
dev147net/inet/eth.ceth_rebuild_header(void *buff, struct device *dev)
dev159net/inet/eth.cif (arp_find(eth->h_dest, dst, dev, dev->pa_addr /* src */)) return(1);
dev160net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev167net/inet/eth.ceth_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev172net/inet/eth.carp_add(addr, eth->h_source, dev);
dev178net/inet/eth.ceth_type_trans(struct sk_buff *skb, struct device *dev)
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);
dev81net/inet/icmp.cicmp_send(struct sk_buff *skb_in, int type, int code, struct device *dev)
dev90net/inet/icmp.cskb_in, type, code, dev));
dev93net/inet/icmp.clen = sizeof(struct sk_buff) + dev->hard_header_len +
dev107net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
dev110net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
dev111net/inet/icmp.c&dev, IPPROTO_ICMP, NULL, len, skb_in->ip_hdr->tos,255);
dev134net/inet/icmp.cip_queue_xmit(NULL, dev, skb, 1);
dev204net/inet/icmp.cicmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev)
dev215net/inet/icmp.cip, 0, icmph->un.gateway, dev);
dev220net/inet/icmp.cip, 0, icmph->un.gateway, dev);
dev238net/inet/icmp.cicmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev246net/inet/icmp.csize = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len;
dev259net/inet/icmp.coffset = ip_build_header(skb2, daddr, saddr, &dev,
dev281net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev290net/inet/icmp.cicmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev302net/inet/icmp.cicmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev310net/inet/icmp.csize = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len;
dev323net/inet/icmp.coffset = ip_build_header(skb2, daddr, saddr, &dev,
dev343net/inet/icmp.cmemcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask));
dev348net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev357net/inet/icmp.cicmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt,
dev394net/inet/icmp.cicmp_redirect(icmph, skb1, dev);
dev397net/inet/icmp.cicmp_echo(icmph, skb1, dev, saddr, daddr, len, opt);
dev404net/inet/icmp.cicmp_info(icmph, skb1, dev, saddr, daddr, len, opt);
dev411net/inet/icmp.cicmp_address(icmph, skb1, dev, saddr, daddr, len, opt);
dev27net/inet/icmp.hstruct device *dev);
dev28net/inet/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev187net/inet/ip.cip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev,
dev196net/inet/ip.cif (dev->hard_header) {
dev197net/inet/ip.cmac = dev->hard_header(ptr, dev, ETH_P_IP, daddr, saddr, len);
dev203net/inet/ip.cskb->dev = dev;
dev216net/inet/ip.cstruct device **dev, int type, struct options *opt, int len, int tos, int ttl)
dev231net/inet/ip.cskb, saddr, daddr, *dev, type, opt, len));
dev236net/inet/ip.cif (*dev == NULL) {
dev241net/inet/ip.c*dev = rt->rt_dev;
dev257net/inet/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev261net/inet/ip.cskb->dev = *dev;
dev652net/inet/ip.cICMP_EXC_FRAGTIME, qp->dev);
dev666net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev708net/inet/ip.cqp->dev = dev;
dev821net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev857net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) {
dev869net/inet/ip.cptr = skb->data + dev->hard_header_len + ihl;
dev977net/inet/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev988net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
dev995net/inet/ip.chlen += dev->hard_header_len;
dev996net/inet/ip.cmtu = (dev->mtu - hlen);
dev1001net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
dev1009net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
dev1012net/inet/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); 
dev1058net/inet/ip.cskb2->h.raw+=dev->hard_header_len; 
dev1071net/inet/ip.cip_queue_xmit(sk, dev, skb2, 1);
dev1082net/inet/ip.cip_forward(struct sk_buff *skb, struct device *dev, int is_frag)
dev1096net/inet/ip.cif(dev->flags&IFF_PROMISC)
dev1098net/inet/ip.cif(memcmp((char *)&skb[1],dev->dev_addr,dev->addr_len))
dev1115net/inet/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev);
dev1131net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev);
dev1150net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev);
dev1158net/inet/ip.cif (dev == dev2)
dev1212net/inet/ip.cip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1253net/inet/ip.cip_forward(skb, dev, is_frag);
dev1270net/inet/ip.cskb=ip_defrag(iph,skb,dev);
dev1280net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1343net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
dev1357net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1374net/inet/ip.cip_queue_xmit(struct sock *sk, struct device *dev, 
dev1381net/inet/ip.cif (dev == NULL) {
dev1387net/inet/ip.cskb->dev = dev;
dev1392net/inet/ip.cptr += dev->hard_header_len;
dev1395net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
dev1397net/inet/ip.cif(skb->len > dev->mtu)
dev1400net/inet/ip.cip_fragment(sk,skb,dev,0);
dev1436net/inet/ip.cif (dev->flags & IFF_UP) {
dev1438net/inet/ip.cdev->queue_xmit(skb, dev, sk->priority);
dev1441net/inet/ip.cdev->queue_xmit(skb, dev, SOPRI_NORMAL);
dev1454net/inet/ip.cstruct device *dev;
dev1461net/inet/ip.cdev = skb->dev;
dev1463net/inet/ip.cif(dev==NULL)
dev1480net/inet/ip.cif (dev->rebuild_header(skb->data, dev)) {
dev1492net/inet/ip.cif (dev->flags & IFF_UP) {
dev1494net/inet/ip.cdev->queue_xmit(skb, dev, sk->priority);
dev58net/inet/ip.hstruct device *dev;    /* Device - for icmp replies */
dev71net/inet/ip.hstruct device **dev, int type,
dev75net/inet/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev78net/inet/ip.hstruct device *dev, struct sk_buff *skb,
dev47net/inet/loopback.cloopback_xmit(struct sk_buff *skb, struct device *dev)
dev49net/inet/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev52net/inet/loopback.cDPRINTF((DBG_LOOPB, "loopback_xmit(dev=%X, skb=%X)\n", dev, skb));
dev53net/inet/loopback.cif (skb == NULL || dev == NULL) return(0);
dev56net/inet/loopback.cif (dev->tbusy != 0) {
dev61net/inet/loopback.cdev->tbusy = 1;
dev64net/inet/loopback.cdone = dev_rint(skb->data, skb->len, 0, dev);
dev68net/inet/loopback.cdone = dev_rint(NULL, 0, 0, dev);
dev72net/inet/loopback.cdev->tbusy = 0;
dev93net/inet/loopback.cget_stats(struct device *dev)
dev95net/inet/loopback.creturn (struct enet_statistics *)dev->priv;
dev100net/inet/loopback.cloopback_init(struct device *dev)
dev102net/inet/loopback.cdev->mtu    = 2000;      /* MTU      */
dev103net/inet/loopback.cdev->tbusy    = 0;
dev104net/inet/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev105net/inet/loopback.cdev->open    = NULL;
dev107net/inet/loopback.cdev->hard_header  = eth_header;
dev108net/inet/loopback.cdev->add_arp    = NULL;
dev109net/inet/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev110net/inet/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev111net/inet/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev112net/inet/loopback.cdev->type_trans  = eth_type_trans;
dev113net/inet/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev115net/inet/loopback.cdev->hard_header_length = 0;
dev116net/inet/loopback.cdev->add_arp    = NULL;
dev117net/inet/loopback.cdev->addr_len    = 0;
dev118net/inet/loopback.cdev->type    = 0;      /* loopback_type (0)  */
dev119net/inet/loopback.cdev->hard_header  = NULL;
dev120net/inet/loopback.cdev->type_trans  = NULL;
dev121net/inet/loopback.cdev->rebuild_header  = NULL;
dev123net/inet/loopback.cdev->queue_xmit  = dev_queue_xmit;
dev126net/inet/loopback.cdev->flags    = IFF_LOOPBACK;
dev127net/inet/loopback.cdev->family    = AF_INET;
dev128net/inet/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev129net/inet/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev130net/inet/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev131net/inet/loopback.cdev->pa_alen    = sizeof(unsigned long);
dev132net/inet/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev133net/inet/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev134net/inet/loopback.cdev->get_stats = get_stats;
dev59net/inet/packet.cpacket_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev64net/inet/packet.cskb->dev = dev;
dev65net/inet/packet.cskb->len += dev->hard_header_len;
dev90net/inet/packet.cstruct device *dev;
dev114net/inet/packet.cdev = dev_get(saddr.sa_data);
dev115net/inet/packet.cif (dev == NULL) {
dev118net/inet/packet.cif(len>dev->mtu)
dev138net/inet/packet.cif (dev->flags & IFF_UP) dev->queue_xmit(skb, dev, sk->priority);
dev224net/inet/packet.caddr.sa_family = skb->dev->type;
dev225net/inet/packet.cmemcpy(addr.sa_data,skb->dev->name, 14);
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,
dev94net/inet/raw.craw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev102net/inet/raw.cskb, dev, opt, daddr, len, saddr, redo, protocol));
dev119net/inet/raw.cskb->dev = dev;
dev144net/inet/raw.cstruct device *dev=NULL;
dev221net/inet/raw.csin.sin_addr.s_addr, &dev,
dev248net/inet/raw.cif(dev!=NULL && skb->len > 4095)
dev255net/inet/raw.csk->prot->queue_xmit(sk, dev, skb, 1);
dev26net/inet/raw.hextern int  raw_rcv(struct sk_buff *skb, struct device *dev,
dev95net/inet/route.cvoid rt_flush(struct device *dev)
dev101net/inet/route.cDPRINTF((DBG_RT, "RT: flushing for dev 0x%08lx (%s)\n", (long)dev, dev->name));
dev106net/inet/route.cif (r->rt_dev != dev) {
dev135net/inet/route.cstatic unsigned long guess_mask(unsigned long dst, struct device * dev)
dev142net/inet/route.cif ((dst ^ dev->pa_addr) & mask)
dev144net/inet/route.creturn dev->pa_mask;
dev167net/inet/route.cunsigned long gw, struct device *dev)
dev176net/inet/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) {
dev177net/inet/route.cmask = dev->pa_mask;
dev184net/inet/route.cmask = guess_mask(dst, dev);
dev187net/inet/route.cif (gw == dev->pa_addr)
dev191net/inet/route.cif (dev != get_gw_dev(gw))
dev205net/inet/route.crt->rt_dev = dev;
dev208net/inet/route.crt->rt_mtu = dev->mtu;
dev258net/inet/route.cstruct device * dev = NULL;
dev265net/inet/route.cdev = dev_get(devname);
dev267net/inet/route.cif (!dev)
dev282net/inet/route.cif (!dev && (flags & RTF_GATEWAY)) {
dev287net/inet/route.cdev = dev2;
dev304net/inet/route.cif (!dev)
dev305net/inet/route.cdev = get_gw_dev(gw);
dev306net/inet/route.c} else if (!dev)
dev307net/inet/route.cdev = dev_check(daddr);
dev309net/inet/route.cif (dev == NULL)
dev312net/inet/route.crt_add(flags, daddr, mask, gw, dev);
dev40net/inet/route.hextern void    rt_flush(struct device *dev);
dev42net/inet/route.hunsigned long gw, struct device *dev);
dev49net/inet/skbuff.hstruct device      *dev;
dev390net/inet/sock.cskb->dev = NULL;
dev1761net/inet/sock.cif (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt,
dev202net/inet/sock.hstruct device **dev, int type,
dev208net/inet/sock.hstruct device *dev, struct sk_buff *skb,
dev213net/inet/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev647net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev706net/inet/tcp.cstruct device *dev = NULL;
dev733net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev778net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev819net/inet/tcp.cstruct device *dev = NULL;
dev1016net/inet/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1026net/inet/tcp.cskb->dev = dev;
dev1101net/inet/tcp.cstruct device *dev = NULL;
dev1131net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1158net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1457net/inet/tcp.cstruct device *dev = NULL;
dev1490net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev1508net/inet/tcp.cbuff->dev = dev;
dev1533net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev1583net/inet/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev1602net/inet/tcp.cbuff->dev = dev;
dev1607net/inet/tcp.ctmp = prot->build_header(buff, saddr, daddr, &dev, IPPROTO_TCP, opt,
dev1646net/inet/tcp.cprot->queue_xmit(NULL, dev, buff, 1);
dev1724net/inet/tcp.cstruct options *opt, struct device *dev)
dev1735net/inet/tcp.csk, skb, daddr, saddr, opt, dev));
dev1744net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev1847net/inet/tcp.cif ((saddr ^ daddr) & dev->pa_mask)
dev1854net/inet/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE);
dev1876net/inet/tcp.ctmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &dev,
dev1921net/inet/tcp.cnewsk->prot->queue_xmit(newsk, dev, buff, 0);
dev1943net/inet/tcp.cstruct device *dev=NULL;
dev2031net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2050net/inet/tcp.cbuff->dev = dev;
dev2068net/inet/tcp.cprot->queue_xmit(sk, dev, buff, 0);
dev2135net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev2574net/inet/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev2859net/inet/tcp.cunsigned long saddr, struct device *dev)
dev2862net/inet/tcp.csk, th, saddr, dev));
dev2960net/inet/tcp.cstruct device *dev=NULL;
dev3012net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3044net/inet/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
dev3051net/inet/tcp.csk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE);
dev3068net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev3078net/inet/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev3118net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev3132net/inet/tcp.ctcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev3153net/inet/tcp.cif (!dev) {
dev3191net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev3272net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
dev3316net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl);
dev3344net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
dev3364net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3377net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3386net/inet/tcp.ctcp_reset(daddr, saddr, th, prot, opt,dev);
dev3398net/inet/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev);
dev3408net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
dev3432net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
dev3455net/inet/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3480net/inet/tcp.csk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev3527net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
dev3550net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
dev3566net/inet/tcp.cstruct device *dev=NULL;
dev3588net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3621net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev120net/inet/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev220net/inet/udp.cstruct device *dev;
dev249net/inet/udp.cdev = NULL;
dev251net/inet/udp.csaddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len));
dev253net/inet/udp.c&dev, IPPROTO_UDP, sk->opt, skb->mem_len,sk->ip_tos,sk->ip_ttl);
dev261net/inet/udp.csaddr = dev->pa_addr;
dev265net/inet/udp.cskb->dev = dev;
dev272net/inet/udp.cif (len > dev->mtu) {
dev277net/inet/udp.cprintk("UDP: send: length %d > mtu %d (ignored)\n", len, dev->mtu);
dev296net/inet/udp.csk->prot->queue_xmit(sk, dev, skb, 1);
dev547net/inet/udp.cudp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev560net/inet/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev);
dev580net/inet/udp.cskb->dev = dev;
dev43net/inet/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,