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,
dev761drivers/block/hd.cstatic int revalidate_hddisk(int dev, int maxusage)
dev769drivers/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;
dev551drivers/block/mcd.cunsigned int block,dev;
dev555drivers/block/mcd.cif (!(CURRENT) || CURRENT->dev < 0) return;
dev557drivers/block/mcd.cdev = MINOR(CURRENT->dev);
dev40drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev2431drivers/block/sbpcd.cint dev;
dev2439drivers/block/sbpcd.cif ((CURRENT==NULL)||(CURRENT->dev<0)) return;
dev2442drivers/block/sbpcd.cdev = MINOR(CURRENT->dev);
dev2443drivers/block/sbpcd.cif ( (dev<0) || (dev>=NR_SBPCD) )
dev2445drivers/block/sbpcd.cprintk("SBPCD: do_request: bad device: %d\n", dev);
dev2448drivers/block/sbpcd.cswitch_drive(dev);
dev193drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev195drivers/block/xd.cif (dev < xd_drives) {
dev196drivers/block/xd.cwhile (!xd_valid[dev])
dev199drivers/block/xd.cxd_access[dev]++;
dev217drivers/block/xd.cif (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) {
dev218drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
dev239drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev)),err;
dev241drivers/block/xd.cif (inode && (dev < xd_drives))
dev247drivers/block/xd.cput_fs_byte(xd_info[dev].heads,(char *) &geometry->heads);
dev248drivers/block/xd.cput_fs_byte(xd_info[dev].sectors,(char *) &geometry->sectors);
dev249drivers/block/xd.cput_fs_word(xd_info[dev].cylinders,(short *) &geometry->cylinders);
dev287drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev289drivers/block/xd.cif (dev < xd_drives) {
dev290drivers/block/xd.csync_dev(dev);
dev291drivers/block/xd.cxd_access[dev]--;
dev296drivers/block/xd.cstatic int xd_reread_partitions(int dev)
dev298drivers/block/xd.cint target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition;
dev1813drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev1820drivers/char/tpqic02.cMINOR(dev), buf, count, filp->f_pos, flags);
dev1983drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev1989drivers/char/tpqic02.cMINOR(dev), buf, count, filp->f_pos, flags);
dev2129drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2136drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2137drivers/char/tpqic02.cprintk("tape_qic02_open: dev=%x, flags=%x     ", dev, flags);
dev2140drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2187drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2198drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2237drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2240drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2242drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2248drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2292drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2294drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2295drivers/char/tpqic02.cprintk("tape_qic02_release: dev=%x\n", dev);
dev2312drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
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;
dev493drivers/char/tty_ioctl.cif (tty == termios_tty && current->tty != dev)
dev533drivers/char/tty_ioctl.cif ((current->tty != dev) && !suser())
dev550drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev))
dev573drivers/char/tty_ioctl.cif (IS_A_CONSOLE(dev)) {
dev583drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev))
dev585drivers/char/tty_ioctl.celse if (IS_A_PTY_SLAVE(dev))
dev598drivers/char/tty_ioctl.cif (current->tty != dev)
dev612drivers/char/tty_ioctl.cretval = check_change(tty, dev);
dev636drivers/char/tty_ioctl.cif (!IS_A_PTY_MASTER(dev))
dev651drivers/char/tty_ioctl.cretval = check_change(tty, dev);
dev53drivers/net/3c501.cint el1_probe(struct device *dev);
dev54drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev55drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev57drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev58drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev59drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev60drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev61drivers/net/3c501.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev127drivers/net/3c501.cel1_probe(struct device *dev)
dev134drivers/net/3c501.celdev = dev;    /* Store for debugging. */
dev135drivers/net/3c501.cel_base = dev->base_addr;
dev160drivers/net/3c501.cif (dev->irq < 2) {
dev173drivers/net/3c501.cprintk("%s: 3c501 probe failed to detect IRQ line.\n", dev->name);
dev176drivers/net/3c501.cdev->irq = autoirq;
dev181drivers/net/3c501.cdev->base_addr = el_base;
dev182drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev183drivers/net/3c501.cif (dev->mem_start & 0xf)
dev184drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev187drivers/net/3c501.cdev->name, dev->base_addr, autoirq ? "auto":"assigned ", dev->irq);
dev193drivers/net/3c501.cdev->open = &el_open;
dev194drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev195drivers/net/3c501.cdev->stop = &el1_close;
dev196drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev197drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev199drivers/net/3c501.cether_setup(dev);
dev206drivers/net/3c501.cel_open(struct device *dev)
dev210drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev212drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt)) {
dev217drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev219drivers/net/3c501.cel_reset(dev);
dev221drivers/net/3c501.cdev->start = 1;
dev230drivers/net/3c501.cel_start_xmit(struct sk_buff *skb, struct device *dev)
dev233drivers/net/3c501.cif (dev->tbusy) {
dev234drivers/net/3c501.cif (jiffies - dev->trans_start < 20) {
dev241drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev244drivers/net/3c501.cel_reset(dev);
dev251drivers/net/3c501.cdev->tbusy = 0;
dev252drivers/net/3c501.cdev->trans_start = jiffies;
dev256drivers/net/3c501.cdev_tint(dev);
dev264drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev265drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev281drivers/net/3c501.cdev->trans_start = jiffies;
dev299drivers/net/3c501.cstruct device *dev = eldev;
dev308drivers/net/3c501.cioaddr = dev->base_addr;
dev313drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev314drivers/net/3c501.cif (dev->interrupt)
dev315drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev316drivers/net/3c501.cdev->interrupt = 1;
dev318drivers/net/3c501.cif (dev->tbusy) {
dev327drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev329drivers/net/3c501.cdev->tbusy = 0;
dev334drivers/net/3c501.cdev->name);
dev344drivers/net/3c501.cdev->interrupt = 0;
dev351drivers/net/3c501.cdev->tbusy = 0;
dev371drivers/net/3c501.cdev->name, rxsr);
dev382drivers/net/3c501.cdev->interrupt = 0;
dev390drivers/net/3c501.cel_receive(struct device *dev)
dev402drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev411drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev416drivers/net/3c501.cskb->dev = dev;
dev427drivers/net/3c501.cel_reset(struct device *dev)
dev436drivers/net/3c501.coutb(dev->dev_addr[i], el_base + i);
dev445drivers/net/3c501.cdev->interrupt = 0;
dev446drivers/net/3c501.cdev->tbusy = 0;
dev451drivers/net/3c501.cel1_close(struct device *dev)
dev453drivers/net/3c501.cint ioaddr = dev->base_addr;
dev456drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev458drivers/net/3c501.cdev->tbusy = 1;
dev459drivers/net/3c501.cdev->start = 0;
dev462drivers/net/3c501.cfree_irq(dev->irq);
dev464drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev470drivers/net/3c501.cel1_get_stats(struct device *dev)
dev482drivers/net/3c501.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev34drivers/net/3c503.cint el2_probe(struct device *dev);
dev35drivers/net/3c503.cint el2_pio_autoprobe(struct device *dev);
dev36drivers/net/3c503.cint el2probe1(int ioaddr, struct device *dev);
dev38drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev39drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev40drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev41drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev42drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev44drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev59drivers/net/3c503.cel2_probe(struct device *dev)
dev62drivers/net/3c503.cshort ioaddr = dev->base_addr;
dev67drivers/net/3c503.creturn ! el2probe1(ioaddr, dev);
dev82drivers/net/3c503.cif (el2probe1(ports[i], dev))
dev86drivers/net/3c503.creturn el2_pio_autoprobe(dev);
dev95drivers/net/3c503.cel2_pio_autoprobe(struct device *dev)
dev107drivers/net/3c503.c&& el2probe1(ports[i], dev))
dev117drivers/net/3c503.cel2probe1(int ioaddr, struct device *dev)
dev120drivers/net/3c503.cunsigned char *station_addr = dev->dev_addr;
dev153drivers/net/3c503.cethdev_init(dev);
dev157drivers/net/3c503.cdev->base_addr = ioaddr;
dev169drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev173drivers/net/3c503.cdev->mem_start = 0;
dev175drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev182drivers/net/3c503.cint *mem_base = (int *)dev->mem_start;
dev190drivers/net/3c503.cdev->mem_start = 0;
dev201drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev202drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev214drivers/net/3c503.cif (dev->irq == 2)
dev215drivers/net/3c503.cdev->irq = 9;
dev216drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev218drivers/net/3c503.cdev->irq);
dev219drivers/net/3c503.cdev->irq = 0;
dev222drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev224drivers/net/3c503.cdev->start = 0;
dev225drivers/net/3c503.cdev->open = &el2_open;
dev226drivers/net/3c503.cdev->stop = &el2_close;
dev228drivers/net/3c503.cif (dev->mem_start)
dev230drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev233drivers/net/3c503.cdev->name, ei_status.name);
dev241drivers/net/3c503.cel2_open(struct device *dev)
dev244drivers/net/3c503.cif (dev->irq < 2) {
dev256drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt) == 0)
dev265drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt)) {
dev269drivers/net/3c503.cel2_init_card(dev);
dev270drivers/net/3c503.creturn ei_open(dev);
dev274drivers/net/3c503.cel2_close(struct device *dev)
dev276drivers/net/3c503.cfree_irq(dev->irq);
dev277drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev278drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev281drivers/net/3c503.cNS8390_init(dev, 0);
dev291drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev294drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev301drivers/net/3c503.cel2_init_card(dev);
dev307drivers/net/3c503.cel2_init_card(struct device *dev)
dev322drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev327drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev337drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev346drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev347drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev352drivers/net/3c503.cdev->name, (int) dest_addr);
dev370drivers/net/3c503.cdev->name, i, count, boguscount);
dev381drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev384drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev388drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev390drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev392drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev393drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev395drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev396drivers/net/3c503.creturn dev->rmem_start + count;
dev398drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev414drivers/net/3c503.cdev->name, i, count, boguscount);
dev6drivers/net/3c503.h#define EL2H (dev->base_addr + 0x400)
dev7drivers/net/3c503.h#define EL2L (dev->base_addr)
dev152drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev187drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev268drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev270drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, short ioaddr);
dev271drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev272drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev274drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev275drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev276drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev278drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev279drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev289drivers/net/3c507.cel16_probe(struct device *dev)
dev293drivers/net/3c507.cint base_addr = dev->base_addr;
dev297drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev317drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev328drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev336drivers/net/3c507.cint el16_probe1(struct device *dev, short ioaddr)
dev340drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev355drivers/net/3c507.cdev->base_addr = ioaddr;
dev359drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev360drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev363drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev364drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev367drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev368drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev382drivers/net/3c507.cdev->mem_start = base;
dev383drivers/net/3c507.cdev->mem_end = base + size;
dev387drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev388drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev390drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev391drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev397drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev398drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev400drivers/net/3c507.cdev->open    = el16_open;
dev401drivers/net/3c507.cdev->stop    = el16_close;
dev402drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev403drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev405drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev413drivers/net/3c507.cel16_open(struct device *dev)
dev415drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev418drivers/net/3c507.cinit_82586_mem(dev);
dev420drivers/net/3c507.cdev->tbusy = 0;
dev421drivers/net/3c507.cdev->interrupt = 0;
dev422drivers/net/3c507.cdev->start = 1;
dev427drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev429drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev430drivers/net/3c507.cint ioaddr = dev->base_addr;
dev431drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev433drivers/net/3c507.cif (dev->tbusy) {
dev436drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev440drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev447drivers/net/3c507.cinit_82586_mem(dev);
dev455drivers/net/3c507.cdev->tbusy=0;
dev456drivers/net/3c507.cdev->trans_start = jiffies;
dev463drivers/net/3c507.cdev_tint(dev);
dev468drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev469drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev476drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev477drivers/net/3c507.cdev->trans_start = jiffies;
dev496drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev502drivers/net/3c507.cif (dev == NULL) {
dev506drivers/net/3c507.cdev->interrupt = 1;
dev508drivers/net/3c507.cioaddr = dev->base_addr;
dev509drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev510drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev515drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev532drivers/net/3c507.cdev->tbusy = 0;
dev553drivers/net/3c507.cel16_rx(dev);
dev559drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev562drivers/net/3c507.cdev->name, status);
dev569drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev575drivers/net/3c507.cdev->name, status);
dev576drivers/net/3c507.cinit_rx_bufs(dev);
dev594drivers/net/3c507.cel16_close(struct device *dev)
dev596drivers/net/3c507.cint ioaddr = dev->base_addr;
dev597drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev599drivers/net/3c507.cdev->tbusy = 1;
dev600drivers/net/3c507.cdev->start = 0;
dev612drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev622drivers/net/3c507.cel16_get_stats(struct device *dev)
dev624drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev633drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev635drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev644drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev672drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev679drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev681drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev682drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev683drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev694drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev697drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev700drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev701drivers/net/3c507.csizeof(dev->dev_addr));
dev707drivers/net/3c507.cinit_rx_bufs(dev);
dev721drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev732drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev738drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev740drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev741drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev743drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev766drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev776drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev780drivers/net/3c507.cdev->tbusy = 0;
dev784drivers/net/3c507.cel16_rx(struct device *dev)
dev786drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev787drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev794drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev798drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev804drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev822drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev827drivers/net/3c507.cskb->dev = dev;
dev840drivers/net/3c507.c*(short*)(dev->mem_start + rx_tail + 2) = 0x0000;
dev71drivers/net/3c509.cstatic int el3_open(struct device *dev);
dev72drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
dev74drivers/net/3c509.cstatic void update_stats(int addr, struct device *dev);
dev75drivers/net/3c509.cstatic struct enet_statistics *el3_get_stats(struct device *dev);
dev76drivers/net/3c509.cstatic int el3_rx(struct device *dev);
dev77drivers/net/3c509.cstatic int el3_close(struct device *dev);
dev79drivers/net/3c509.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev84drivers/net/3c509.cint el3_probe(struct device *dev)
dev88drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev166drivers/net/3c509.cif (dev->base_addr != 0
dev167drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev182drivers/net/3c509.cdev->base_addr = ioaddr;
dev183drivers/net/3c509.cdev->irq = irq;
dev184drivers/net/3c509.cdev->if_port = if_port;
dev185drivers/net/3c509.csnarf_region(dev->base_addr, 16);
dev190drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev195drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev196drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev199drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev200drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev206drivers/net/3c509.cdev->open = &el3_open;
dev207drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev208drivers/net/3c509.cdev->stop = &el3_close;
dev209drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev211drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev215drivers/net/3c509.cether_setup(dev);
dev258drivers/net/3c509.cel3_open(struct device *dev)
dev260drivers/net/3c509.cint ioaddr = dev->base_addr;
dev263drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt)) {
dev269drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev270drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev275drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev278drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + 8);
dev284drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev286drivers/net/3c509.cif (dev->if_port == 3)
dev289drivers/net/3c509.celse if (dev->if_port == 0) {
dev303drivers/net/3c509.cdev->interrupt = 0;
dev304drivers/net/3c509.cdev->tbusy = 0;
dev305drivers/net/3c509.cdev->start = 1;
dev310drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev316drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev318drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev319drivers/net/3c509.cint ioaddr = dev->base_addr;
dev322drivers/net/3c509.cif (dev->tbusy) {
dev323drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev327drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev328drivers/net/3c509.cdev->trans_start = jiffies;
dev332drivers/net/3c509.cdev->tbusy = 0;
dev336drivers/net/3c509.cdev_tint(dev);
dev345drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev353drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev364drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev365drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev373drivers/net/3c509.cdev->trans_start = jiffies;
dev375drivers/net/3c509.cdev->tbusy=0;
dev406drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev410drivers/net/3c509.cif (dev == NULL) {
dev415drivers/net/3c509.cif (dev->interrupt)
dev416drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev417drivers/net/3c509.cdev->interrupt = 1;
dev419drivers/net/3c509.cioaddr = dev->base_addr;
dev423drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev428drivers/net/3c509.cel3_rx(dev);
dev435drivers/net/3c509.cdev->tbusy = 0;
dev439drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev443drivers/net/3c509.cdev->name, status);
dev453drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev457drivers/net/3c509.cdev->interrupt = 0;
dev463drivers/net/3c509.cel3_get_stats(struct device *dev)
dev465drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev468drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev478drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev480drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev507drivers/net/3c509.cel3_rx(struct device *dev)
dev509drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev510drivers/net/3c509.cint ioaddr = dev->base_addr;
dev540drivers/net/3c509.cskb->dev = dev;
dev553drivers/net/3c509.cIN_SKBUFF,dev)== 0){
dev566drivers/net/3c509.cprintk("%s: receive buffers full.\n", dev->name);
dev572drivers/net/3c509.cdev->name, pkt_len);
dev596drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev598drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev609drivers/net/3c509.cel3_close(struct device *dev)
dev611drivers/net/3c509.cint ioaddr = dev->base_addr;
dev614drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev616drivers/net/3c509.cdev->tbusy = 1;
dev617drivers/net/3c509.cdev->start = 0;
dev626drivers/net/3c509.cif (dev->if_port == 3)
dev629drivers/net/3c509.celse if (dev->if_port == 0) {
dev635drivers/net/3c509.cfree_irq(dev->irq);
dev642drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev644drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev88drivers/net/8390.cint ei_open(struct device *dev);  /* Put into the device structure. */
dev91drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev92drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev93drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev96drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp);
dev97drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev100drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev109drivers/net/8390.cint ei_open(struct device *dev)
dev111drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev114drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev118drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev119drivers/net/8390.cNS8390_init(dev, 1);
dev120drivers/net/8390.cdev->start = 1;
dev125drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev127drivers/net/8390.cint e8390_base = dev->base_addr;
dev128drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev136drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev138drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev144drivers/net/8390.cdev->name, txsr, isr);
dev147drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq);
dev150drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name);
dev155drivers/net/8390.cei_reset_8390(dev);
dev156drivers/net/8390.cNS8390_init(dev, 1);
dev157drivers/net/8390.cdev->trans_start = jiffies;
dev164drivers/net/8390.cdev_tint(dev);
dev173drivers/net/8390.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev174drivers/net/8390.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev191drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev198drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev203drivers/net/8390.cdev->name);
dev205drivers/net/8390.cdev->tbusy = 1;
dev209drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev211drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev212drivers/net/8390.cdev->trans_start = jiffies;
dev221drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev223drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev224drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev225drivers/net/8390.cdev->trans_start = jiffies;
dev226drivers/net/8390.cdev->tbusy = 1;
dev244drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev249drivers/net/8390.cif (dev == NULL) {
dev253drivers/net/8390.ce8390_base = dev->base_addr;
dev254drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev255drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev261drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev266drivers/net/8390.cdev->interrupt = 1;
dev272drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev283drivers/net/8390.cei_rx_overrun(dev);
dev286drivers/net/8390.cei_receive(dev);
dev290drivers/net/8390.cei_tx_intr(dev);
dev292drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev307drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev311drivers/net/8390.cdev->interrupt = 0;
dev317drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev319drivers/net/8390.cint e8390_base = dev->base_addr;
dev321drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev332drivers/net/8390.cdev->tbusy = 0;
dev334drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev335drivers/net/8390.cdev->trans_start = jiffies;
dev346drivers/net/8390.cdev->tbusy = 0;
dev348drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev349drivers/net/8390.cdev->trans_start = jiffies;
dev357drivers/net/8390.cdev->name, ei_local->lasttx);
dev360drivers/net/8390.cdev->tbusy = 0;
dev381drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev383drivers/net/8390.cint e8390_base = dev->base_addr;
dev384drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev407drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev413drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev436drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev446drivers/net/8390.cdev->name, pkt_len);
dev451drivers/net/8390.cskb->dev = dev;
dev453drivers/net/8390.cei_block_input(dev, pkt_len, (char *) skb->data,
dev462drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev471drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x..", dev->name,
dev493drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev495drivers/net/8390.cint e8390_base = dev->base_addr;
dev497drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev503drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev516drivers/net/8390.cdev->name);
dev517drivers/net/8390.cNS8390_init(dev, 1);
dev522drivers/net/8390.cei_receive(dev);
dev530drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev532drivers/net/8390.cshort ioaddr = dev->base_addr;
dev533drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev550drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev552drivers/net/8390.cshort ioaddr = dev->base_addr;
dev566drivers/net/8390.cint ethdev_init(struct device *dev)
dev571drivers/net/8390.cif (dev->priv == NULL) {
dev574drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev575drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev576drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev583drivers/net/8390.cif (dev->open == NULL)
dev584drivers/net/8390.cdev->open = &ei_open;
dev586drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev587drivers/net/8390.cdev->get_stats  = get_stats;
dev589drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev592drivers/net/8390.cether_setup(dev);
dev600drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev602drivers/net/8390.cint e8390_base = dev->base_addr;
dev603drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev632drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev642drivers/net/8390.cdev->tbusy = 0;
dev643drivers/net/8390.cdev->interrupt = 0;
dev658drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev661drivers/net/8390.cint e8390_base = dev->base_addr;
dev668drivers/net/8390.cdev->name);
dev23drivers/net/8390.hextern int ethif_init(struct device *dev);
dev24drivers/net/8390.hextern int ethdev_init(struct device *dev);
dev25drivers/net/8390.hextern void NS8390_init(struct device *dev, int startp);
dev26drivers/net/8390.hextern int ei_open(struct device *dev);
dev64drivers/net/8390.h#define ei_status (*(struct ei_device *)(dev->priv))
dev40drivers/net/Space.cextern int ultra_probe(struct device *dev);
dev41drivers/net/Space.cextern int wd_probe(struct device *dev);
dev42drivers/net/Space.cextern int el2_probe(struct device *dev);
dev43drivers/net/Space.cextern int ne_probe(struct device *dev);
dev44drivers/net/Space.cextern int hp_probe(struct device *dev);
dev62drivers/net/Space.cethif_probe(struct device *dev)
dev64drivers/net/Space.cshort base_addr = dev->base_addr;
dev71drivers/net/Space.c&& ultra_probe(dev)
dev74drivers/net/Space.c&& wd_probe(dev)
dev77drivers/net/Space.c&& el2_probe(dev)
dev80drivers/net/Space.c&& ne_probe(dev)
dev83drivers/net/Space.c&& hp_probe(dev)
dev86drivers/net/Space.c&& at1500_probe(dev)
dev89drivers/net/Space.c&& at1700_probe(dev)
dev92drivers/net/Space.c&& el3_probe(dev)
dev95drivers/net/Space.c&& znet_probe(dev)
dev98drivers/net/Space.c&& express_probe(dev)
dev101drivers/net/Space.c&& depca_probe(dev)
dev104drivers/net/Space.c&& el1_probe(dev)
dev107drivers/net/Space.c&& el16_probe(dev)
dev110drivers/net/Space.c&& elplus_probe(dev)
dev113drivers/net/Space.c&& ac3200_probe(dev)
dev116drivers/net/Space.c&& e2100_probe(dev)
dev246drivers/net/Space.cextern int loopback_init(struct device *dev);
dev108drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev110drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev112drivers/net/at1700.cstatic int net_open(struct device *dev);
dev113drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev115drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev116drivers/net/at1700.cstatic int net_close(struct device *dev);
dev117drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev118drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev128drivers/net/at1700.cat1700_probe(struct device *dev)
dev131drivers/net/at1700.cshort *port, base_addr = dev->base_addr;
dev134drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev142drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev157drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev162drivers/net/at1700.cunsigned short *station_address = (unsigned short *)dev->dev_addr;
dev193drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev196drivers/net/at1700.cdev->base_addr = ioaddr;
dev197drivers/net/at1700.cdev->irq = irq;
dev198drivers/net/at1700.cirq2dev_map[irq] = dev;
dev216drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev217drivers/net/at1700.cprintk(" %s interface (%04x).\n", porttype[(dev->if_port>>3) & 3],
dev224drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev237drivers/net/at1700.coutb(dev->if_port, MODE13);
dev246drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev247drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev249drivers/net/at1700.cdev->open    = net_open;
dev250drivers/net/at1700.cdev->stop    = net_close;
dev251drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev252drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev253drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev257drivers/net/at1700.cether_setup(dev);
dev302drivers/net/at1700.cstatic int net_open(struct device *dev)
dev304drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev305drivers/net/at1700.cint ioaddr = dev->base_addr;
dev313drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev335drivers/net/at1700.cdev->tbusy = 0;
dev336drivers/net/at1700.cdev->interrupt = 0;
dev337drivers/net/at1700.cdev->start = 1;
dev343drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev345drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev346drivers/net/at1700.cint ioaddr = dev->base_addr;
dev348drivers/net/at1700.cif (dev->tbusy) {
dev351drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev354drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev358drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev367drivers/net/at1700.cdev->tbusy=0;
dev368drivers/net/at1700.cdev->trans_start = jiffies;
dev375drivers/net/at1700.cdev_tint(dev);
dev381drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev382drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev401drivers/net/at1700.cdev->trans_start = jiffies;
dev404drivers/net/at1700.cdev->tbusy = 0;
dev421drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev425drivers/net/at1700.cif (dev == NULL) {
dev429drivers/net/at1700.cdev->interrupt = 1;
dev431drivers/net/at1700.cioaddr = dev->base_addr;
dev432drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev437drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev440drivers/net/at1700.cnet_rx(dev);
dev449drivers/net/at1700.cdev->trans_start = jiffies;
dev450drivers/net/at1700.cdev->tbusy = 0;
dev456drivers/net/at1700.cdev->tbusy = 0;
dev466drivers/net/at1700.cnet_rx(struct device *dev)
dev468drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev469drivers/net/at1700.cint ioaddr = dev->base_addr;
dev477drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev498drivers/net/at1700.cdev->name, pkt_len);
dev506drivers/net/at1700.cdev->name, pkt_len);
dev512drivers/net/at1700.cskb->dev = dev;
dev518drivers/net/at1700.cprintk("%s: Rxed packet of length %d: ", dev->name, pkt_len);
dev544drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev550drivers/net/at1700.cstatic int net_close(struct device *dev)
dev552drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev553drivers/net/at1700.cint ioaddr = dev->base_addr;
dev557drivers/net/at1700.cdev->tbusy = 1;
dev558drivers/net/at1700.cdev->start = 0;
dev574drivers/net/at1700.cnet_get_stats(struct device *dev)
dev576drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev592drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev594drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev131drivers/net/atp.cextern int atp_probe(struct device *dev);
dev133drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
dev134drivers/net/atp.cstatic void get_node_ID(struct device *dev);
dev136drivers/net/atp.cstatic int net_open(struct device *dev);
dev137drivers/net/atp.cstatic void hardware_init(struct device *dev);
dev140drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev142drivers/net/atp.cstatic void net_rx(struct device *dev);
dev144drivers/net/atp.cstatic int net_close(struct device *dev);
dev145drivers/net/atp.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev146drivers/net/atp.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev156drivers/net/atp.catp_init(struct device *dev)
dev159drivers/net/atp.cint base_addr = dev->base_addr;
dev162drivers/net/atp.creturn atp_probe1(dev, base_addr);
dev171drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
dev178drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
dev208drivers/net/atp.cdev->irq = 7;
dev210drivers/net/atp.cdev->irq = 5;
dev214drivers/net/atp.cdev->base_addr = ioaddr;
dev217drivers/net/atp.cget_node_ID(dev);
dev220drivers/net/atp.c"%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr,
dev221drivers/net/atp.cdev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev222drivers/net/atp.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev231drivers/net/atp.cether_setup(dev);
dev232drivers/net/atp.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev233drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev237drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev242drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev243drivers/net/atp.cif (dev->mem_end & 0xf)
dev244drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev246drivers/net/atp.cdev->open    = net_open;
dev247drivers/net/atp.cdev->stop    = net_close;
dev248drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev249drivers/net/atp.cdev->get_stats  = net_get_stats;
dev250drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev256drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev258drivers/net/atp.cshort ioaddr = dev->base_addr;
dev270drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev318drivers/net/atp.cstatic int net_open(struct device *dev)
dev324drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev325drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev326drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt)) {
dev330drivers/net/atp.chardware_init(dev);
dev331drivers/net/atp.cdev->start = 1;
dev337drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev339drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev340drivers/net/atp.cint ioaddr = dev->base_addr;
dev346drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev351drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev369drivers/net/atp.cdev->tbusy = 0;
dev370drivers/net/atp.cdev->interrupt = 0;
dev411drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev413drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev414drivers/net/atp.cint ioaddr = dev->base_addr;
dev416drivers/net/atp.cif (dev->tbusy) {
dev419drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev422drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev427drivers/net/atp.chardware_init(dev);
dev428drivers/net/atp.cdev->tbusy=0;
dev429drivers/net/atp.cdev->trans_start = jiffies;
dev436drivers/net/atp.cdev_tint(dev);
dev442drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev443drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev457drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev468drivers/net/atp.cdev->trans_start = jiffies;
dev486drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev491drivers/net/atp.cif (dev == NULL) {
dev495drivers/net/atp.cdev->interrupt = 1;
dev497drivers/net/atp.cioaddr = dev->base_addr;
dev498drivers/net/atp.clp = (struct net_local *)dev->priv;
dev507drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev524drivers/net/atp.cnet_rx(dev);
dev529drivers/net/atp.cnet_rx(dev);
dev530drivers/net/atp.cdev->last_rx = jiffies;
dev544drivers/net/atp.chardware_init(dev);
dev560drivers/net/atp.cdev->tbusy = 0;
dev565drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev568drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev569drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev572drivers/net/atp.chardware_init(dev);
dev584drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev597drivers/net/atp.cdev->interrupt = 0;
dev603drivers/net/atp.cstatic void net_rx(struct device *dev)
dev605drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev606drivers/net/atp.cint ioaddr = dev->base_addr;
dev615drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev624drivers/net/atp.cdev->name, rx_head.rx_status);
dev625drivers/net/atp.chardware_init(dev);
dev634drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev639drivers/net/atp.cskb->dev = dev;
dev641drivers/net/atp.cread_block(ioaddr, pkt_len, skb->data, dev->if_port);
dev682drivers/net/atp.cnet_close(struct device *dev)
dev684drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev685drivers/net/atp.cint ioaddr = dev->base_addr;
dev687drivers/net/atp.cdev->tbusy = 1;
dev688drivers/net/atp.cdev->start = 0;
dev696drivers/net/atp.cfree_irq(dev->irq);
dev697drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev708drivers/net/atp.cnet_get_stats(struct device *dev)
dev710drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev721drivers/net/atp.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev723drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev724drivers/net/atp.cshort ioaddr = dev->base_addr;
dev210drivers/net/d_link.cstatic int    d_link_read_status(struct device *dev);
dev211drivers/net/d_link.cstatic unsigned  char  d_link_read_byte(unsigned char type, struct device *dev);
dev214drivers/net/d_link.cstatic int  d_link_open(struct device *dev);
dev215drivers/net/d_link.cstatic int  d_link_close(struct device *dev);
dev216drivers/net/d_link.cstatic struct netstats *get_stats(struct device *dev);
dev217drivers/net/d_link.cstatic int  d_link_start_xmit(struct sk_buff *skb, struct device *dev);
dev221drivers/net/d_link.cstatic int  d_link_tx_intr(struct device *dev, int irq_status);
dev222drivers/net/d_link.cstatic void  d_link_rx_intr(struct device *dev);
dev225drivers/net/d_link.cstatic void  trigger_interrupt(struct device *dev);
dev226drivers/net/d_link.cint    d_link_init(struct device *dev);
dev227drivers/net/d_link.cstatic void  adapter_init(struct device *dev);
dev277drivers/net/d_link.cd_link_read_status(struct device *dev)
dev289drivers/net/d_link.cd_link_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev307drivers/net/d_link.cd_link_open(struct device *dev)
dev312drivers/net/d_link.cprintk ("%s: unable to get IRQ %d\n", dev->name, D_LINK_IRQ);
dev315drivers/net/d_link.cirq2dev_map[D_LINK_IRQ] = dev;
dev317drivers/net/d_link.cadapter_init(dev);
dev340drivers/net/d_link.cd_link_close(struct device *dev)
dev351drivers/net/d_link.cdev->start = 0;
dev359drivers/net/d_link.cget_stats(struct device *dev)
dev361drivers/net/d_link.creturn (struct netstats *)(dev->priv);
dev365drivers/net/d_link.ctrigger_interrupt(struct device *dev)
dev379drivers/net/d_link.cd_link_start_xmit(struct sk_buff *skb, struct device *dev)
dev393drivers/net/d_link.cdev_tint(dev);
dev398drivers/net/d_link.ctickssofar = jiffies - dev->trans_start;
dev405drivers/net/d_link.cdev->name,
dev410drivers/net/d_link.cadapter_init(dev);
dev430drivers/net/d_link.cdev->trans_start = jiffies;
dev431drivers/net/d_link.cdev->tbusy = 0;  /* allow more packets into adapter */
dev437drivers/net/d_link.cdev->tbusy = !free_tx_pages;
dev457drivers/net/d_link.cstruct device  *dev = irq2dev_map[irq];
dev463drivers/net/d_link.cif ((dev == NULL) || (dev->start == 0) || (D_LINK_IRQ != irq)) {
dev464drivers/net/d_link.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev468drivers/net/d_link.cdev->interrupt = 1;
dev470drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev476drivers/net/d_link.cd_link_rx_intr(dev);
dev482drivers/net/d_link.cretrig = d_link_tx_intr(dev, irq_status);
dev486drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev495drivers/net/d_link.cdev->interrupt = 0;
dev499drivers/net/d_link.ctrigger_interrupt(dev);
dev506drivers/net/d_link.cd_link_tx_intr(struct device *dev, int irq_status)
dev522drivers/net/d_link.c((struct netstats *)(dev->priv))->tx_packets++;
dev523drivers/net/d_link.cdev->tbusy = 0;
dev528drivers/net/d_link.cdev->trans_start = jiffies;
dev542drivers/net/d_link.cd_link_rx_intr(struct device *dev)
dev552drivers/net/d_link.csize = d_link_read_byte(RX_LEN, dev);  /* low byte */
dev553drivers/net/d_link.csize += (d_link_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev563drivers/net/d_link.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev569drivers/net/d_link.cdev->name, size);
dev581drivers/net/d_link.c*buffer = d_link_read_byte(READ_DATA, dev);
dev583drivers/net/d_link.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev585drivers/net/d_link.cif (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev))
dev586drivers/net/d_link.cprintk("%s: receive buffers full.\n", dev->name);
dev595drivers/net/d_link.cd_link_init(struct device *dev)
dev599drivers/net/d_link.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev607drivers/net/d_link.c(void)d_link_read_status(dev);
dev610drivers/net/d_link.cif (d_link_read_status(dev) & 0xf0) {
dev623drivers/net/d_link.cdev->dev_addr[i] = d_link_read_byte(READ_DATA, dev);
dev624drivers/net/d_link.cdev->broadcast[i] = 0xff;
dev628drivers/net/d_link.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev630drivers/net/d_link.cdev->dev_addr[0] = 0x00;
dev631drivers/net/d_link.cdev->dev_addr[1] = 0x80;
dev632drivers/net/d_link.cdev->dev_addr[2] = 0xc8;
dev633drivers/net/d_link.cdev->dev_addr[3] &= 0x0f;
dev634drivers/net/d_link.cdev->dev_addr[3] |= 0x70;
dev640drivers/net/d_link.cprintk(", Ethernet Address: %2.2X", dev->dev_addr[0]);
dev642drivers/net/d_link.cprintk(":%2.2X",dev->dev_addr[i]);
dev646drivers/net/d_link.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev647drivers/net/d_link.cmemset(dev->priv, 0, sizeof(struct netstats));
dev648drivers/net/d_link.cdev->get_stats = get_stats;
dev650drivers/net/d_link.cdev->open = d_link_open;
dev651drivers/net/d_link.cdev->stop = d_link_close;
dev652drivers/net/d_link.cdev->hard_start_xmit = &d_link_start_xmit;
dev654drivers/net/d_link.cether_setup(dev);
dev661drivers/net/d_link.cadapter_init(struct device *dev)
dev666drivers/net/d_link.cdev->tbusy = 0;    /* Transmit busy...  */
dev667drivers/net/d_link.cdev->interrupt = 0;
dev668drivers/net/d_link.cdev->start = 1;
dev682drivers/net/d_link.cd_link_put_byte(dev->dev_addr[i]);
dev266drivers/net/depca.cstatic int depca_open(struct device *dev);
dev267drivers/net/depca.cstatic int depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev269drivers/net/depca.cstatic int depca_close(struct device *dev);
dev270drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev272drivers/net/depca.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev278drivers/net/depca.cstatic int depca_probe1(struct device *dev, short ioaddr);
dev279drivers/net/depca.cstatic void depca_init_ring(struct device *dev);
dev280drivers/net/depca.cstatic int depca_rx(struct device *dev);
dev281drivers/net/depca.cstatic int depca_tx(struct device *dev);
dev283drivers/net/depca.cstatic void LoadCSRs(struct device *dev);
dev284drivers/net/depca.cstatic int InitRestartDepca(struct device *dev);
dev318drivers/net/depca.cint depca_probe(struct device *dev)
dev321drivers/net/depca.cint base_addr = dev->base_addr;
dev328drivers/net/depca.cstatus = depca_probe1(dev, base_addr);
dev349drivers/net/depca.cwhile (dev->next != (struct device *)NULL) {
dev350drivers/net/depca.cif (dev->next->base_addr == 0xffe0) break;
dev351drivers/net/depca.cdev = dev->next;         /* walk through eth device list */
dev360drivers/net/depca.cif (dev->next == (struct device *)NULL) {
dev361drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev373drivers/net/depca.cif ((dev->next != (struct device *)NULL) &&
dev375drivers/net/depca.cdev = dev->next;         /* point to the new device */
dev376drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev377drivers/net/depca.csprintf(dev->name,"eth%d", num_eth); /* New device name */
dev378drivers/net/depca.cdev->base_addr = ioaddr; /* assign the io address */
dev379drivers/net/depca.cdev->next = (struct device *)NULL; /* mark the end of list */
dev380drivers/net/depca.cdev->init = &depca_probe;/* initialisation routine */
dev383drivers/net/depca.ceth0 = dev;                /* remember the first device */
dev384drivers/net/depca.cstatus = depca_probe1(dev, ioaddr);
dev390drivers/net/depca.cif (eth0) dev = eth0;             /* restore the first device */
dev393drivers/net/depca.cif (status) dev->base_addr = base_addr;
dev399drivers/net/depca.cdepca_probe1(struct device *dev, short ioaddr)
dev441drivers/net/depca.cdev->base_addr = ioaddr;
dev443drivers/net/depca.cprintk("%s: DEPCA at %#3x is a %s, ", dev->name, ioaddr, name);
dev462drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev464drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev540drivers/net/depca.cdev->priv = (void *)((mem_start + 0x07) & ~0x07);      
dev541drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev542drivers/net/depca.cmemset(dev->priv, 0, sizeof(struct depca_private));
dev545drivers/net/depca.cmem_start = ((((unsigned long)dev->priv + 
dev588drivers/net/depca.cdepca_init_ring(dev);
dev593drivers/net/depca.cLoadCSRs(dev);
dev607drivers/net/depca.cdev->dma = 0;
dev611drivers/net/depca.cif (dev->irq < 2) {
dev617drivers/net/depca.cdev->irq = autoirq_report(1);
dev618drivers/net/depca.cif (dev->irq) {
dev619drivers/net/depca.cprintk(" and probed IRQ%d.\n", dev->irq);
dev625drivers/net/depca.cprintk(". Assigned IRQ%d.\n", dev->irq);
dev636drivers/net/depca.cdev->open = &depca_open;
dev637drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev638drivers/net/depca.cdev->stop = &depca_close;
dev639drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev641drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev644drivers/net/depca.cdev->mem_start = 0;
dev647drivers/net/depca.cether_setup(dev);
dev658drivers/net/depca.cdepca_open(struct device *dev)
dev660drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev661drivers/net/depca.cint i,nicsr,ioaddr = dev->base_addr;
dev663drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt)) {
dev664drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev668drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev680drivers/net/depca.cdepca_init_ring(dev);                 /* initialize the descriptor rings */
dev681drivers/net/depca.cLoadCSRs(dev);
dev684drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev729drivers/net/depca.cdev->tbusy = 0;                         
dev730drivers/net/depca.cdev->interrupt = 0;
dev731drivers/net/depca.cdev->start = 1;
dev733drivers/net/depca.cInitRestartDepca(dev);                /* ignore the return status */
dev746drivers/net/depca.cdepca_init_ring(struct device *dev)
dev748drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev765drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev780drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev782drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev783drivers/net/depca.cint ioaddr = dev->base_addr;
dev787drivers/net/depca.cif (dev->tbusy) {
dev788drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev794drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev796drivers/net/depca.cdepca_init_ring(dev);
dev797drivers/net/depca.cLoadCSRs(dev);
dev798drivers/net/depca.cInitRestartDepca(dev);
dev799drivers/net/depca.cdev->tbusy=0;
dev800drivers/net/depca.cdev->trans_start = jiffies;
dev806drivers/net/depca.cdev_tint(dev);
dev816drivers/net/depca.cprintk("%s: depca_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev822drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev823drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev866drivers/net/depca.cdev->trans_start = jiffies;
dev877drivers/net/depca.cdev->tbusy=0;
dev904drivers/net/depca.cdev->name, entry, (unsigned long) &lp->tx_ring[entry],
dev907drivers/net/depca.cdev->name, pkt[0], pkt[1], pkt[2], pkt[5], pkt[6],
dev914drivers/net/depca.cdev->tbusy=0;
dev932drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev936drivers/net/depca.cif (dev == NULL) {
dev940drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev941drivers/net/depca.cioaddr = dev->base_addr;
dev945drivers/net/depca.cif (dev->interrupt)
dev946drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev948drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev963drivers/net/depca.cdev->name, csr0, inw(DEPCA_DATA));
dev966drivers/net/depca.cdepca_rx(dev);
dev969drivers/net/depca.cdepca_tx(dev);
dev977drivers/net/depca.cdev->name, inw(DEPCA_ADDR),
dev985drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev990drivers/net/depca.cdepca_rx(struct device *dev)
dev992drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1034drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1039drivers/net/depca.cskb->dev = dev;
dev1071drivers/net/depca.cdepca_tx(struct device *dev)
dev1073drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1078drivers/net/depca.cdev->name, dirty_tx, (lp->cur_tx & lp->rmask));
dev1110drivers/net/depca.cdev->name, dirty_tx,
dev1118drivers/net/depca.cdepca_close(struct device *dev)
dev1120drivers/net/depca.cint ioaddr = dev->base_addr;
dev1122drivers/net/depca.cdev->start = 0;
dev1123drivers/net/depca.cdev->tbusy = 1;
dev1129drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1138drivers/net/depca.cfree_irq(dev->irq);
dev1140drivers/net/depca.cirq2dev_map[dev->irq] = 0;
dev1145drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1147drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1148drivers/net/depca.cint ioaddr = dev->base_addr;
dev1159drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1161drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1162drivers/net/depca.cint ioaddr = dev->base_addr;
dev1176drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1181drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1188drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1190drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1206drivers/net/depca.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1208drivers/net/depca.cshort ioaddr = dev->base_addr;
dev1209drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev281drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev283drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev284drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev285drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev287drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev288drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev289drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev290drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev293drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev294drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev295drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev305drivers/net/eexpress.cexpress_probe(struct device *dev)
dev309drivers/net/eexpress.cint base_addr = dev->base_addr;
dev312drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev331drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev338drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev343drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev360drivers/net/eexpress.cdev->base_addr = ioaddr;
dev363drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev364drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev375drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev376drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev378drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev387drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev388drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev394drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev395drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev397drivers/net/eexpress.cdev->open    = eexp_open;
dev398drivers/net/eexpress.cdev->stop    = eexp_close;
dev399drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev400drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev401drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev405drivers/net/eexpress.cether_setup(dev);
dev415drivers/net/eexpress.ceexp_open(struct device *dev)
dev417drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev419drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev422drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev424drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev425drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt)) {
dev430drivers/net/eexpress.cinit_82586_mem(dev);
dev433drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev435drivers/net/eexpress.cdev->tbusy = 0;
dev436drivers/net/eexpress.cdev->interrupt = 0;
dev437drivers/net/eexpress.cdev->start = 1;
dev442drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev444drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev445drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev447drivers/net/eexpress.cif (dev->tbusy) {
dev450drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev454drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev462drivers/net/eexpress.cinit_82586_mem(dev);
dev470drivers/net/eexpress.cdev->tbusy=0;
dev471drivers/net/eexpress.cdev->trans_start = jiffies;
dev478drivers/net/eexpress.cdev_tint(dev);
dev483drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev484drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev490drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev491drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev492drivers/net/eexpress.cdev->trans_start = jiffies;
dev494drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev512drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev517drivers/net/eexpress.cif (dev == NULL) {
dev521drivers/net/eexpress.cdev->interrupt = 1;
dev523drivers/net/eexpress.cioaddr = dev->base_addr;
dev524drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev529drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev533drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev547drivers/net/eexpress.cdev->tbusy = 0;
dev568drivers/net/eexpress.ceexp_rx(dev);
dev574drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev578drivers/net/eexpress.cdev->name, status);
dev593drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev601drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
dev612drivers/net/eexpress.cinit_rx_bufs(dev);
dev622drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev626drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev631drivers/net/eexpress.ceexp_close(struct device *dev)
dev633drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev635drivers/net/eexpress.cdev->tbusy = 1;
dev636drivers/net/eexpress.cdev->start = 0;
dev645drivers/net/eexpress.cfree_irq(dev->irq);
dev647drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev657drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev659drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev673drivers/net/eexpress.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev675drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev738drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev740drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev741drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev756drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
dev766drivers/net/eexpress.cinit_rx_bufs(dev);
dev780drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev790drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev796drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev)
dev798drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev799drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev837drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev839drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev840drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev877drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev882drivers/net/eexpress.cdev->tbusy = 0;
dev886drivers/net/eexpress.ceexp_rx(struct device *dev)
dev888drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev889drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev911drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev929drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev934drivers/net/eexpress.cskb->dev = dev;
dev951drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev965drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
dev48drivers/net/hp.cint hp_probe(struct device *dev);
dev49drivers/net/hp.cint hpprobe1(struct device *dev, int ioaddr);
dev51drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev52drivers/net/hp.cstatic int hp_block_input(struct device *dev, int count,
dev54drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev56drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev67drivers/net/hp.cint hp_probe(struct device *dev)
dev70drivers/net/hp.cshort ioaddr = dev->base_addr;
dev73drivers/net/hp.creturn hpprobe1(dev, ioaddr);
dev80drivers/net/hp.cif (hpprobe1(dev, *port) == 0) {
dev87drivers/net/hp.cint hpprobe1(struct device *dev, int ioaddr)
dev91drivers/net/hp.cunsigned char *station_addr = dev->dev_addr;
dev115drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev121drivers/net/hp.cif (dev->irq < 2) {
dev135drivers/net/hp.cdev->irq = *irqp;
dev145drivers/net/hp.cif (dev->irq == 2)
dev146drivers/net/hp.cdev->irq = 9;
dev147drivers/net/hp.cif (irqaction(dev->irq, &ei_sigaction)) {
dev148drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev157drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev159drivers/net/hp.cethdev_init(dev);
dev170drivers/net/hp.chp_init_card(dev);
dev176drivers/net/hp.chp_reset_8390(struct device *dev)
dev178drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev192drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev204drivers/net/hp.chp_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev206drivers/net/hp.cint nic_base = dev->base_addr;
dev232drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev239drivers/net/hp.chp_block_output(struct device *dev, int count,
dev242drivers/net/hp.cint nic_base = dev->base_addr;
dev289drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev297drivers/net/hp.chp_init_card(struct device *dev)
dev299drivers/net/hp.cint irq = dev->irq;
dev300drivers/net/hp.cNS8390_init(dev, 0);
dev302drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev41drivers/net/lance.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev203drivers/net/lance.cstatic int lance_open(struct device *dev);
dev204drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev205drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev206drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev208drivers/net/lance.cstatic int lance_close(struct device *dev);
dev209drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev211drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev235drivers/net/lance.cstruct device *dev;
dev255drivers/net/lance.cdev = init_etherdev(0, sizeof(struct lance_private)
dev259drivers/net/lance.cprintk("%s: LANCE at %#3x,", dev->name, ioaddr);
dev264drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev266drivers/net/lance.cdev->base_addr = ioaddr;
dev270drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev271drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev272drivers/net/lance.clp->rx_buffs = (long)dev->priv + sizeof(struct lance_private);
dev294drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev310drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev311drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev312drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev315drivers/net/lance.cif (dev->mem_start & 0x07)
dev316drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev317drivers/net/lance.celse if (dev->dma == 0)
dev318drivers/net/lance.cdev->dma = LANCE_DMA;
dev322drivers/net/lance.cif (dev->irq < 2) {
dev329drivers/net/lance.cdev->irq = autoirq_report(1);
dev330drivers/net/lance.cif (dev->irq)
dev332drivers/net/lance.cdev->irq, dev->dma);
dev338drivers/net/lance.cprintk(" assigned IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev352drivers/net/lance.cdev->open = &lance_open;
dev353drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev354drivers/net/lance.cdev->stop = &lance_close;
dev355drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev356drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev363drivers/net/lance.clance_open(struct device *dev)
dev365drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev366drivers/net/lance.cint ioaddr = dev->base_addr;
dev369drivers/net/lance.cif (request_irq(dev->irq, &lance_interrupt)) {
dev373drivers/net/lance.cif (request_dma(dev->dma)) {
dev374drivers/net/lance.cfree_irq(dev->irq);
dev377drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev383drivers/net/lance.cenable_dma(dev->dma);
dev384drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev398drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev401drivers/net/lance.clance_init_ring(dev);
dev414drivers/net/lance.cdev->tbusy = 0;
dev415drivers/net/lance.cdev->interrupt = 0;
dev416drivers/net/lance.cdev->start = 1;
dev425drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev432drivers/net/lance.clance_init_ring(struct device *dev)
dev434drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev452drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev460drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev462drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev463drivers/net/lance.cint ioaddr = dev->base_addr;
dev467drivers/net/lance.cif (dev->tbusy) {
dev468drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev473drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev492drivers/net/lance.clance_init_ring(dev);
dev495drivers/net/lance.cdev->tbusy=0;
dev496drivers/net/lance.cdev->trans_start = jiffies;
dev502drivers/net/lance.cdev_tint(dev);
dev511drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev518drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev519drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev543drivers/net/lance.cdev->name, (int)(skb->data));
dev562drivers/net/lance.cdev->trans_start = jiffies;
dev565drivers/net/lance.cdev->tbusy=0;
dev575drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev579drivers/net/lance.cif (dev == NULL) {
dev584drivers/net/lance.cioaddr = dev->base_addr;
dev585drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev586drivers/net/lance.cif (dev->interrupt)
dev587drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev589drivers/net/lance.cdev->interrupt = 1;
dev591drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev592drivers/net/lance.ccsr0 = inw(dev->base_addr + LANCE_DATA);
dev595drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev599drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev602drivers/net/lance.clance_rx(dev);
dev656drivers/net/lance.cif (dev->tbusy  &&  dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
dev658drivers/net/lance.cdev->tbusy = 0;
dev671drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev672drivers/net/lance.coutw(0x7f40, dev->base_addr + LANCE_DATA);
dev676drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev677drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev679drivers/net/lance.cdev->interrupt = 0;
dev684drivers/net/lance.clance_rx(struct device *dev)
dev686drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev711drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev716drivers/net/lance.cskb->dev = dev;
dev735drivers/net/lance.clance_close(struct device *dev)
dev737drivers/net/lance.cint ioaddr = dev->base_addr;
dev738drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev740drivers/net/lance.cdev->start = 0;
dev741drivers/net/lance.cdev->tbusy = 1;
dev750drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev756drivers/net/lance.cdisable_dma(dev->dma);
dev758drivers/net/lance.cfree_irq(dev->irq);
dev759drivers/net/lance.cfree_dma(dev->dma);
dev761drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev767drivers/net/lance.clance_get_stats(struct device *dev)
dev769drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev770drivers/net/lance.cshort ioaddr = dev->base_addr;
dev790drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev792drivers/net/lance.cshort ioaddr = dev->base_addr;
dev42drivers/net/loopback.cloopback_xmit(struct sk_buff *skb, struct device *dev)
dev44drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev47drivers/net/loopback.cDPRINTF((DBG_LOOPB, "loopback_xmit(dev=%X, skb=%X)\n", dev, skb));
dev48drivers/net/loopback.cif (skb == NULL || dev == NULL) return(0);
dev51drivers/net/loopback.cif (dev->tbusy != 0) {
dev56drivers/net/loopback.cdev->tbusy = 1;
dev59drivers/net/loopback.cdone = dev_rint(skb->data, skb->len, 0, dev);
dev63drivers/net/loopback.cdone = dev_rint(NULL, 0, 0, dev);
dev67drivers/net/loopback.cdev->tbusy = 0;
dev88drivers/net/loopback.cget_stats(struct device *dev)
dev90drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev95drivers/net/loopback.cloopback_init(struct device *dev)
dev99drivers/net/loopback.cdev->mtu    = 2000;      /* MTU      */
dev100drivers/net/loopback.cdev->tbusy    = 0;
dev101drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev102drivers/net/loopback.cdev->open    = NULL;
dev104drivers/net/loopback.cdev->hard_header  = eth_header;
dev105drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev106drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev107drivers/net/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev108drivers/net/loopback.cdev->type_trans  = eth_type_trans;
dev109drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev111drivers/net/loopback.cdev->hard_header_length = 0;
dev112drivers/net/loopback.cdev->addr_len    = 0;
dev113drivers/net/loopback.cdev->type    = 0;      /* loopback_type (0)  */
dev114drivers/net/loopback.cdev->hard_header  = NULL;
dev115drivers/net/loopback.cdev->type_trans  = NULL;
dev116drivers/net/loopback.cdev->rebuild_header  = NULL;
dev120drivers/net/loopback.cdev->flags    = IFF_LOOPBACK;
dev121drivers/net/loopback.cdev->family    = AF_INET;
dev122drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev123drivers/net/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev124drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev125drivers/net/loopback.cdev->pa_alen    = sizeof(unsigned long);
dev126drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev127drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev128drivers/net/loopback.cdev->get_stats = get_stats;
dev132drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev32drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev42drivers/net/ne.cint ne_probe(struct device *dev);
dev43drivers/net/ne.cstatic int neprobe1(int ioaddr, struct device *dev, int verbose);
dev45drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev46drivers/net/ne.cstatic int ne_block_input(struct device *dev, int count,
dev48drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev73drivers/net/ne.cint ne_probe(struct device *dev)
dev76drivers/net/ne.cshort ioaddr = dev->base_addr;
dev81drivers/net/ne.creturn ! neprobe1(ioaddr, dev, 1);
dev88drivers/net/ne.cif (inb_p(*port) != 0xff && neprobe1(*port, dev, 0)) {
dev89drivers/net/ne.cdev->base_addr = *port;
dev93drivers/net/ne.cdev->base_addr = ioaddr;
dev97drivers/net/ne.cstatic int neprobe1(int ioaddr, struct device *dev, int verbose)
dev173drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev203drivers/net/ne.cif (dev->irq < 2) {
dev210drivers/net/ne.cdev->irq = autoirq_report(0);
dev212drivers/net/ne.cprintk(" autoirq is %d", dev->irq);
dev213drivers/net/ne.c} else if (dev->irq == 2)
dev216drivers/net/ne.cdev->irq = 9;
dev221drivers/net/ne.cint irqval = irqaction (dev->irq, &ei_sigaction);
dev223drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev228drivers/net/ne.cdev->base_addr = ioaddr;
dev234drivers/net/ne.cethdev_init(dev);
dev236drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev255drivers/net/ne.cNS8390_init(dev, 0);
dev256drivers/net/ne.creturn dev->base_addr;
dev262drivers/net/ne.cne_reset_8390(struct device *dev)
dev274drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev285drivers/net/ne.cne_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev288drivers/net/ne.cint nic_base = dev->base_addr;
dev294drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock);
dev330drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev337drivers/net/ne.cne_block_output(struct device *dev, int count,
dev352drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock);
dev405drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev77drivers/net/net_init.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev83drivers/net/net_init.cif (dev == NULL) {
dev87drivers/net/net_init.cdev = (struct device *)*mem_startp;
dev90drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev91drivers/net/net_init.cmemset(dev, 0, sizeof(alloc_size));
dev92drivers/net/net_init.cdev->name = (char *)(dev + 1);
dev94drivers/net/net_init.cdev->priv = dev->name + sizeof("eth%d ");
dev98drivers/net/net_init.cif (dev->name  &&  dev->name[0] == '\0')
dev99drivers/net/net_init.csprintf(dev->name, "eth%d", next_ethdev_number++);
dev102drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev104drivers/net/net_init.cdev->hard_header  = eth_header;
dev105drivers/net/net_init.cdev->rebuild_header  = eth_rebuild_header;
dev106drivers/net/net_init.cdev->type_trans    = eth_type_trans;
dev108drivers/net/net_init.cdev->type      = ARPHRD_ETHER;
dev109drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev110drivers/net/net_init.cdev->mtu      = 1500; /* eth_mtu */
dev111drivers/net/net_init.cdev->addr_len    = ETH_ALEN;
dev113drivers/net/net_init.cdev->broadcast[i]=0xff;
dev117drivers/net/net_init.cdev->flags      = IFF_BROADCAST;
dev118drivers/net/net_init.cdev->family      = AF_INET;
dev119drivers/net/net_init.cdev->pa_addr    = 0;
dev120drivers/net/net_init.cdev->pa_brdaddr    = 0;
dev121drivers/net/net_init.cdev->pa_mask    = 0;
dev122drivers/net/net_init.cdev->pa_alen    = sizeof(unsigned long);
dev129drivers/net/net_init.c(*old_devp)->next = dev;
dev130drivers/net/net_init.cdev->next = 0;
dev132drivers/net/net_init.creturn dev;
dev135drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev141drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev143drivers/net/net_init.cdev->hard_header  = eth_header;
dev144drivers/net/net_init.cdev->rebuild_header = eth_rebuild_header;
dev145drivers/net/net_init.cdev->type_trans = eth_type_trans;
dev147drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev148drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev149drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev150drivers/net/net_init.cdev->addr_len  = ETH_ALEN;
dev152drivers/net/net_init.cdev->broadcast[i]=0xff;
dev156drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev157drivers/net/net_init.cdev->family    = AF_INET;
dev158drivers/net/net_init.cdev->pa_addr  = 0;
dev159drivers/net/net_init.cdev->pa_brdaddr = 0;
dev160drivers/net/net_init.cdev->pa_mask  = 0;
dev161drivers/net/net_init.cdev->pa_alen  = sizeof(unsigned long);
dev135drivers/net/plip.cextern int plip_probe(int ioaddr, struct device *dev);
dev136drivers/net/plip.cstatic int plip_open(struct device *dev);
dev137drivers/net/plip.cstatic int plip_close(struct device *dev);
dev138drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev139drivers/net/plip.cstatic int plip_header (unsigned char *buff, struct device *dev,
dev149drivers/net/plip.cstatic void plip_device_clear(struct device *dev);
dev150drivers/net/plip.cstatic void plip_receiver_error(struct device *dev);
dev151drivers/net/plip.cstatic void plip_set_physicaladdr(struct device *dev, unsigned long ipaddr);
dev155drivers/net/plip.cstatic int plip_receive_packet(struct device *dev);
dev156drivers/net/plip.cstatic int plip_send_packet(struct device *dev, unsigned char *buf, int length);
dev157drivers/net/plip.cstatic int plip_send_start(struct device *dev, struct ethhdr *eth);
dev159drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev162drivers/net/plip.cplip_init(struct device *dev)
dev164drivers/net/plip.cint port_base = dev->base_addr;
dev183drivers/net/plip.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev184drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct netstats));
dev187drivers/net/plip.cskb_queue_head_init(&dev->buffs[i]);
dev189drivers/net/plip.cdev->hard_header = &plip_header;
dev190drivers/net/plip.cdev->rebuild_header = eth_rebuild_header;
dev191drivers/net/plip.cdev->type_trans = eth_type_trans;
dev193drivers/net/plip.cdev->open = &plip_open;
dev194drivers/net/plip.cdev->stop = &plip_close;
dev195drivers/net/plip.cdev->hard_start_xmit = &plip_tx_packet;
dev196drivers/net/plip.cdev->get_stats = &plip_get_stats;
dev199drivers/net/plip.cdev->type = ARPHRD_ETHER;
dev200drivers/net/plip.cdev->hard_header_len = ETH_HLEN;
dev201drivers/net/plip.cdev->mtu = PLIP_MTU;  /* PLIP may later negotiate max pkt size */
dev202drivers/net/plip.cdev->addr_len = ETH_ALEN;
dev203drivers/net/plip.cfor (i = 0; i < dev->addr_len; i++) {
dev204drivers/net/plip.cdev->broadcast[i]=0xff;
dev205drivers/net/plip.cdev->dev_addr[i] = 0;
dev208drivers/net/plip.cdev->name, dev->base_addr, dev->irq);
dev223drivers/net/plip.cplip_open(struct device *dev)
dev225drivers/net/plip.cif (dev->irq == 0)
dev226drivers/net/plip.cdev->irq = 7;
dev228drivers/net/plip.cif (request_irq(dev->irq , &plip_interrupt) != 0) {
dev230drivers/net/plip.cPRINTK(("%s: couldn't get IRQ %d.\n", dev->name, dev->irq));
dev234drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev236drivers/net/plip.cplip_device_clear(dev);
dev237drivers/net/plip.cdev->tbusy = 0;
dev238drivers/net/plip.cdev->interrupt = 0;
dev239drivers/net/plip.cdev->start = 1;
dev245drivers/net/plip.cplip_close(struct device *dev)
dev247drivers/net/plip.cdev->tbusy = 1;
dev248drivers/net/plip.cdev->start = 0;
dev250drivers/net/plip.cfree_irq(dev->irq);
dev251drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev253drivers/net/plip.coutb(0x00, dev->base_addr);    /* Release the interrupt. */
dev258drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev262drivers/net/plip.cif (dev->tbusy || dev->interrupt) {  /* Do timeouts, to avoid hangs. */
dev263drivers/net/plip.cint tickssofar = jiffies - dev->trans_start;
dev266drivers/net/plip.cprintk("%s: transmit timed out\n", dev->name);
dev268drivers/net/plip.cplip_device_clear(dev);
dev276drivers/net/plip.cdev_tint(dev);
dev280drivers/net/plip.cdev->trans_start = jiffies;
dev281drivers/net/plip.cret_val = plip_send_packet(dev, skb->data, skb->len);
dev284drivers/net/plip.cdev->tbusy = 0;
dev290drivers/net/plip.cplip_header (unsigned char *buff, struct device *dev,
dev294drivers/net/plip.cif (dev->dev_addr[0] == 0) {
dev296drivers/net/plip.cplip_set_physicaladdr(dev, dev->pa_addr);
dev298drivers/net/plip.creturn eth_header(buff, dev, type, daddr, saddr, len, skb);
dev302drivers/net/plip.cplip_device_clear(struct device *dev)
dev304drivers/net/plip.cdev->interrupt = 0;
dev305drivers/net/plip.cdev->tbusy = 0;
dev306drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev307drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev311drivers/net/plip.cplip_receiver_error(struct device *dev)
dev313drivers/net/plip.cdev->interrupt = 0;
dev314drivers/net/plip.cdev->tbusy = 0;
dev315drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev316drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev320drivers/net/plip.cget_byte(struct device *dev)
dev326drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev330drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev337drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev339drivers/net/plip.coutb(0x10, dev->base_addr + PAR_DATA);
dev343drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev350drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev353drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev368drivers/net/plip.cstruct device *dev = irq2dev_map[irq];
dev371drivers/net/plip.cif (dev == NULL) {
dev375drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev376drivers/net/plip.cif (dev->tbusy || dev->interrupt) return;
dev377drivers/net/plip.cdev->interrupt = 1;
dev378drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL);  /* Disable the rx interrupt. */
dev380drivers/net/plip.cPRINTK2(("%s: interrupt.  ", dev->name));
dev385drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0xc0) {
dev388drivers/net/plip.cdev->name, inb(dev->base_addr + PAR_STATUS)));
dev389drivers/net/plip.cplip_device_clear(dev);
dev394drivers/net/plip.cif (plip_receive_packet(dev)) {
dev397drivers/net/plip.cplip_receiver_error(dev);
dev399drivers/net/plip.cplip_device_clear(dev);
dev404drivers/net/plip.cplip_receive_packet(struct device *dev)
dev412drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev414drivers/net/plip.coutb(1, dev->base_addr + PAR_DATA);    /* Ack: 'Ready' */
dev419drivers/net/plip.clength = get_byte(dev);
dev420drivers/net/plip.clength |= get_byte(dev) << 8;
dev425drivers/net/plip.c*eth_p = get_byte(dev);
dev429drivers/net/plip.cif (length > dev->mtu || length < 8) {
dev430drivers/net/plip.cPRINTK2(("%s: bogus packet size %d.\n", dev->name, length));
dev441drivers/net/plip.cdev->name,length));
dev457drivers/net/plip.cunsigned char new_byte = get_byte(dev);
dev462drivers/net/plip.cif (checksum != get_byte(dev)) {
dev466drivers/net/plip.c} else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) {
dev467drivers/net/plip.cprintk("%s: rcv buff full.\n", dev->name);
dev477drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev479drivers/net/plip.cwhile ( (inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0x80 ) {
dev492drivers/net/plip.cstatic int send_byte(struct device *dev, unsigned char val)
dev497drivers/net/plip.coutb((val & 0xf), dev->base_addr); /* this makes data bits more stable */
dev499drivers/net/plip.coutb(0x10 | (val & 0xf), dev->base_addr);
dev501drivers/net/plip.cwhile( inb(dev->base_addr+PAR_STATUS) & 0x80 )
dev506drivers/net/plip.coutb(0x10 | (val >> 4), dev->base_addr);
dev507drivers/net/plip.coutb(val >> 4, dev->base_addr);
dev509drivers/net/plip.cwhile( (inb(dev->base_addr+PAR_STATUS) & 0x80) == 0 )
dev531drivers/net/plip.cplip_send_start(struct device *dev, struct ethhdr *eth)
dev536drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev541drivers/net/plip.cwhile ( ((status = inb(dev->base_addr+PAR_STATUS)) & 0x08) == 0 ) {
dev542drivers/net/plip.cdev->tbusy = 1;
dev543drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL); /* Disable my rx intr. */
dev544drivers/net/plip.coutb(0x08, dev->base_addr + PAR_DATA);   /* Trigger remote rx intr. */
dev554drivers/net/plip.cif (plip_receive_packet(dev)) {
dev557drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev559drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev567drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev573drivers/net/plip.cplip_device_clear(dev);
dev576drivers/net/plip.cdev->name));
dev585drivers/net/plip.cplip_send_packet(struct device *dev, unsigned char *buf, int length)
dev591drivers/net/plip.cdev->name, length, buf[0], buf[1], buf[2], buf[3], buf[4]));
dev592drivers/net/plip.cif (length > dev->mtu) {
dev593drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, length);
dev596drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev602drivers/net/plip.cwhile ( (i = (inb(dev->base_addr+PAR_STATUS) & 0xe8)) != 0x80 ) {
dev621drivers/net/plip.cif (plip_send_start(dev, (struct ethhdr *)buf) < 0)
dev630drivers/net/plip.csend_byte(dev, length); 
dev631drivers/net/plip.csend_byte(dev, length >> 8);
dev639drivers/net/plip.csend_byte(dev, *buf);
dev645drivers/net/plip.cif (send_byte(dev, buf[i]) < 0) {
dev650drivers/net/plip.csend_byte(dev, checksum & 0xff);
dev656drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev659drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xe8) != 0x80) {
dev667drivers/net/plip.cif (inb(dev->base_addr + PAR_STATUS) & 0x10) {
dev672drivers/net/plip.cplip_device_clear(dev);
dev682drivers/net/plip.cplip_set_physicaladdr(struct device *dev, unsigned long ipaddr)
dev689drivers/net/plip.cunsigned char *addr = dev->dev_addr;
dev693drivers/net/plip.cPRINTK2(("%s: set physical address to %08x\n", dev->name, ipaddr));
dev736drivers/net/plip.cplip_get_stats(struct device *dev)
dev738drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev99drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev101drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, short ioaddr);
dev102drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev103drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev105drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev106drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev107drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev108drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev111drivers/net/skeleton.c#define tx_done(dev) 1
dev113drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev123drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev126drivers/net/skeleton.cint base_addr = dev->base_addr;
dev129drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev139drivers/net/skeleton.cdev->base_addr = ioaddr;
dev140drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev144drivers/net/skeleton.cdev->base_addr = base_addr;
dev148drivers/net/skeleton.cint netcard_probe1(struct device *dev, short ioaddr)
dev163drivers/net/skeleton.cprintk("%s: %s found at %#3x, IRQ %d.\n", dev->name,
dev164drivers/net/skeleton.c"network card", dev->base_addr, dev->irq);
dev171drivers/net/skeleton.cif (dev->irq == -1)
dev173drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev177drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev179drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev180drivers/net/skeleton.c} else if (dev->irq == 2)
dev183drivers/net/skeleton.cdev->irq = 9;
dev185drivers/net/skeleton.c{   int irqval = request_irq(dev->irq, &net_interrupt);
dev187drivers/net/skeleton.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev188drivers/net/skeleton.cdev->irq, irqval);
dev201drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev202drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev204drivers/net/skeleton.cdev->open    = net_open;
dev205drivers/net/skeleton.cdev->stop    = net_close;
dev206drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev207drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev208drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev212drivers/net/skeleton.cether_setup(dev);
dev226drivers/net/skeleton.cnet_open(struct device *dev)
dev228drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev229drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev233drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt)) {
dev239drivers/net/skeleton.cif (request_dma(dev->dma)) {
dev240drivers/net/skeleton.cfree_irq(dev->irq);
dev243drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev250drivers/net/skeleton.cdev->tbusy = 0;
dev251drivers/net/skeleton.cdev->interrupt = 0;
dev252drivers/net/skeleton.cdev->start = 1;
dev257drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev259drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev260drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev262drivers/net/skeleton.cif (dev->tbusy) {
dev265drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev268drivers/net/skeleton.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev269drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev271drivers/net/skeleton.cchipset_init(dev, 1);
dev272drivers/net/skeleton.cdev->tbusy=0;
dev273drivers/net/skeleton.cdev->trans_start = jiffies;
dev280drivers/net/skeleton.cdev_tint(dev);
dev286drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev287drivers/net/skeleton.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev293drivers/net/skeleton.cdev->trans_start = jiffies;
dev311drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev315drivers/net/skeleton.cif (dev == NULL) {
dev319drivers/net/skeleton.cdev->interrupt = 1;
dev321drivers/net/skeleton.cioaddr = dev->base_addr;
dev322drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev328drivers/net/skeleton.cnet_rx(dev);
dev332drivers/net/skeleton.cdev->tbusy = 0;
dev346drivers/net/skeleton.cnet_rx(struct device *dev)
dev348drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev349drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev371drivers/net/skeleton.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev376drivers/net/skeleton.cskb->dev = dev;
dev379drivers/net/skeleton.cmemcpy(skb->data, (void*)dev->rmem_start,
dev397drivers/net/skeleton.cnet_close(struct device *dev)
dev399drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev400drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev404drivers/net/skeleton.cdev->tbusy = 1;
dev405drivers/net/skeleton.cdev->start = 0;
dev409drivers/net/skeleton.cdisable_dma(dev->dma);
dev414drivers/net/skeleton.cfree_irq(dev->irq);
dev415drivers/net/skeleton.cfree_dma(dev->dma);
dev417drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev428drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev430drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev431drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev448drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev450drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev140drivers/net/slip.csl_initialize(struct slip *sl, struct device *dev)
dev156drivers/net/slip.csl->line    = dev->base_addr;
dev158drivers/net/slip.csl->dev    = dev;
dev168drivers/net/slip.cdev->rmem_end    = (unsigned long) NULL;
dev169drivers/net/slip.cdev->rmem_start  = (unsigned long) NULL;
dev170drivers/net/slip.cdev->mem_end    = (unsigned long) NULL;
dev171drivers/net/slip.cdev->mem_start  = (unsigned long) NULL;
dev236drivers/net/slip.cstruct device *dev=sl->dev;
dev241drivers/net/slip.csl->mtu=dev->mtu;
dev242drivers/net/slip.cl=(dev->mtu *2);
dev261drivers/net/slip.cdev->mtu=omtu;
dev273drivers/net/slip.ctf=(unsigned char *)sl->dev->mem_start;
dev274drivers/net/slip.csl->dev->mem_start=(unsigned long)tb;
dev275drivers/net/slip.csl->dev->mem_end=(unsigned long) (sl->dev->mem_start + l);
dev276drivers/net/slip.crf=(unsigned char *)sl->dev->rmem_start;
dev277drivers/net/slip.csl->dev->rmem_start=(unsigned long)rb;
dev278drivers/net/slip.csl->dev->rmem_end=(unsigned long) (sl->dev->rmem_start + l);
dev280drivers/net/slip.csl->xbuff = (unsigned char *) sl->dev->mem_start;
dev281drivers/net/slip.csl->rbuff = (unsigned char *) sl->dev->rmem_start;
dev282drivers/net/slip.csl->rend  = (unsigned char *) sl->dev->rmem_end;
dev344drivers/net/slip.csl->dev->tbusy = 1;
dev358drivers/net/slip.csl->dev->tbusy = 0;
dev417drivers/net/slip.cDPRINTF((DBG_SLIP, "<< \"%s\" recv:\r\n", sl->dev->name));
dev425drivers/net/slip.cdone = dev_rint(sl->rbuff, count, 0, sl->dev);
dev439drivers/net/slip.cdev_tint(sl->dev);
dev451drivers/net/slip.cDPRINTF((DBG_SLIP, ">> \"%s\" sent:\r\n", sl->dev->name));
dev455drivers/net/slip.cif(sl->mtu != sl->dev->mtu)  /* Someone has been ifconfigging */
dev503drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev510drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev513drivers/net/slip.cdev->name, skb, sl->sending));
dev532drivers/net/slip.cif(!skb->arp && dev->rebuild_header(skb->data,dev))
dev534drivers/net/slip.cskb->dev=dev;
dev569drivers/net/slip.csl_type_trans (struct sk_buff *skb, struct device *dev)
dev572drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev582drivers/net/slip.csl_header(unsigned char *buff, struct device *dev, unsigned short type,
dev586drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev588drivers/net/slip.creturn ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb);
dev597drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev601drivers/net/slip.cstruct slip *sl=&sl_ctrl[dev->base_addr];
dev604drivers/net/slip.creturn ax25_rebuild_header(buff,dev,raddr, skb);
dev612drivers/net/slip.csl_open(struct device *dev)
dev618drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev623drivers/net/slip.csl->dev = dev;
dev633drivers/net/slip.cl = (dev->mtu * 2);
dev648drivers/net/slip.csl->mtu    = dev->mtu;
dev649drivers/net/slip.csl->dev->mem_start  = (unsigned long) p;
dev650drivers/net/slip.csl->dev->mem_end  = (unsigned long) (sl->dev->mem_start + l);
dev657drivers/net/slip.csl->dev->rmem_start  = (unsigned long) p;
dev658drivers/net/slip.csl->dev->rmem_end  = (unsigned long) (sl->dev->rmem_start + l);
dev660drivers/net/slip.csl->xbuff    = (unsigned char *) sl->dev->mem_start;
dev661drivers/net/slip.csl->rbuff    = (unsigned char *) sl->dev->rmem_start;
dev662drivers/net/slip.csl->rend    = (unsigned char *) sl->dev->rmem_end;
dev671drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev679drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev680drivers/net/slip.ckfree((unsigned char *)sl->dev->rmem_start);
dev686drivers/net/slip.cdev->flags|=IFF_UP;
dev688drivers/net/slip.cif(dev->pa_addr==0)
dev689drivers/net/slip.cdev->pa_addr=ntohl(0xC0000001);
dev697drivers/net/slip.csl_close(struct device *dev)
dev701drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev714drivers/net/slip.csl_initialize(sl, dev);
dev738drivers/net/slip.cif(sl->mtu!=sl->dev->mtu)  /* Argh! mtu change time! - costs us the packet part received at the change */
dev776drivers/net/slip.ctty->line, sl->dev->name));
dev791drivers/net/slip.c(void) sl_open(sl->dev);
dev793drivers/net/slip.ctty->line, sl->dev->name));
dev801drivers/net/slip.csl_get_stats(struct device *dev)
dev808drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev848drivers/net/slip.c(void) dev_close(sl->dev);
dev850drivers/net/slip.ctty->line, sl->dev->name));
dev1025drivers/net/slip.cint sl_set_mac_address(struct device *dev, void *addr)
dev1030drivers/net/slip.cmemcpy_fromfs(dev->dev_addr,addr,7);  /* addr is an AX.25 shifted ASCII mac address */
dev1034drivers/net/slip.cstatic int sl_set_dev_mac_address(struct device *dev, void *addr)
dev1036drivers/net/slip.cmemcpy(dev->dev_addr,addr,7);
dev1061drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1073drivers/net/slip.csl->dev->addr_len=7;  /* sizeof an AX.25 addr */
dev1074drivers/net/slip.csl->dev->hard_header_len=17;  /* We don't do digipeaters */
dev1075drivers/net/slip.csl->dev->type=3;    /* AF_AX25 not an AF_INET device */
dev1079drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1080drivers/net/slip.csl->dev->hard_header_len=0;
dev1081drivers/net/slip.csl->dev->type=0;
dev1087drivers/net/slip.creturn sl_set_mac_address(sl->dev,arg);
dev1098drivers/net/slip.cslip_init(struct device *dev)
dev1107drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev1133drivers/net/slip.csl_initialize(sl, dev);
dev1144drivers/net/slip.cdev->mtu    = SL_MTU;
dev1145drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1146drivers/net/slip.cdev->open    = sl_open;
dev1147drivers/net/slip.cdev->stop    = sl_close;
dev1148drivers/net/slip.cdev->hard_header  = sl_header;
dev1149drivers/net/slip.cdev->type_trans  = sl_type_trans;
dev1150drivers/net/slip.cdev->get_stats  = sl_get_stats;
dev1153drivers/net/slip.cdev->set_mac_address  = sl_set_dev_mac_address;
dev1156drivers/net/slip.cdev->hard_header_len  = 0;
dev1157drivers/net/slip.cdev->addr_len    = 0;
dev1158drivers/net/slip.cdev->type    = 0;
dev1160drivers/net/slip.cmemcpy(dev->broadcast,ax25_bcast,7);    /* Only activated in AX.25 mode */
dev1161drivers/net/slip.cmemcpy(dev->dev_addr,ax25_test,7);    /*    ""      ""       ""    "" */
dev1163drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1165drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1168drivers/net/slip.cdev->flags    = 0;
dev1169drivers/net/slip.cdev->family    = AF_INET;
dev1170drivers/net/slip.cdev->pa_addr    = 0;
dev1171drivers/net/slip.cdev->pa_brdaddr  = 0;
dev1172drivers/net/slip.cdev->pa_mask    = 0;
dev1173drivers/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);
dev960drivers/scsi/aha152x.cint aha152x_biosparam( int size, int dev, int *info_array )
dev963drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%x, size=%d, ", dev, size);
dev925drivers/scsi/aha1542.cint aha1542_biosparam(int size, int dev, int * ip)
dev931drivers/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]);
dev1472drivers/scsi/fdomain.cint fdomain_16x0_biosparam( int size, int dev, int *info_array )
dev1519drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev396drivers/scsi/pas16.cint pas16_biosparam(int size, int dev, int * ip)
dev185drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev197drivers/scsi/scsi.cint dev, lun, type;
dev212drivers/scsi/scsi.cfor (dev = 0; dev < 8; ++dev)
dev213drivers/scsi/scsi.cif (shpnt->this_id != dev)
dev225drivers/scsi/scsi.cscsi_devices[NR_SCSI_DEVICES].id = dev;
dev241drivers/scsi/scsi.cSCmd.target = dev;
dev244drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev256drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev258drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev291drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev298drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev363drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev368drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev374drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev446drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev453drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev542drivers/scsi/scsi.cif (req && req->dev <= 0)
dev549drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev585drivers/scsi/scsi.creq->dev = -1;
dev589drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev611drivers/scsi/scsi.cint dev = -1;
dev625drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev635drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev641drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev645drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev655drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev685drivers/scsi/scsi.creq->dev = -1;
dev690drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1366drivers/scsi/scsi.cif ((SCpnt1->request.dev > 0) &&
dev1623drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev462drivers/scsi/scsi.hreq->dev,req->sector);
dev487drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev494drivers/scsi/scsi.hreq->dev = -1;
dev510drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev65drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev71drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev77drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
dev78drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
dev86drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");  \
dev87drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev96drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev221drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
dev544drivers/scsi/scsi_debug.cint scsi_debug_biosparam(int size, int dev, int* info){
dev79drivers/scsi/scsi_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev89drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev94drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev->index, 1);
dev99drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev102drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev108drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev112drivers/scsi/scsi_ioctl.cif(dev->removable){
dev117drivers/scsi/scsi_ioctl.cif (dev->removable){
dev118drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev125drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev126drivers/scsi/scsi_ioctl.cdev->id,
dev127drivers/scsi/scsi_ioctl.cdev->lun,
dev137drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;
dev142drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev174drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev178drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev->index, 1);
dev183drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev186drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev204drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev215drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev235drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev239drivers/scsi/scsi_ioctl.cif ((cmd != 0 && dev->index > NR_SCSI_DEVICES))
dev245drivers/scsi/scsi_ioctl.cput_fs_long(dev->id + (dev->lun << 8) + 
dev246drivers/scsi/scsi_ioctl.c(dev->host->host_no << 16), (unsigned long *) arg);
dev250drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev251drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev252drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev256drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev257drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev258drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev261drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev264drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev266drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev268drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev271drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev274drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev276drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev279drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev282drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev285drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev298drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev303drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev16drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev17drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev148drivers/scsi/sd.cprintk("sd%d : rw_intr(%d, %d)\n", MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
dev160drivers/scsi/sd.cprintk("sd%d : %d sectors remain.\n", MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors);
dev203drivers/scsi/sd.cMINOR(SCpnt->request.dev));
dev255drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev266drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev270drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev287drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev288drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev297drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev298drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev299drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev322drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev343drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev361drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index);
dev366drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev384drivers/scsi/sd.cint dev, block, this_count;
dev393drivers/scsi/sd.cif(SCpnt->request.dev <= 0) {
dev398drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev403drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev406drivers/scsi/sd.cif (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev412drivers/scsi/sd.cblock += sd[dev].start_sect;
dev413drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev415drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev426drivers/scsi/sd.cprintk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block);
dev432drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev512drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev674drivers/scsi/sd.cprintk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(SCpnt->request.dev),
dev681drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev688drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev693drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev725drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev728drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev773drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev807drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev816drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev832drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev841drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev866drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev876drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev878drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev881drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev889drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1051drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev1058drivers/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
dev19drivers/scsi/sd_ioctl.cint dev = inode->i_rdev;
dev31drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev36drivers/scsi/sd_ioctl.chost->hostt->bios_param(rscsi_disks[MINOR(dev) >> 4].capacity,
dev37drivers/scsi/sd_ioctl.cdev,
dev70drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev72drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
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, 
dev638drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev661drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev671drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe);
dev673drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev676drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev684drivers/scsi/sr.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev19drivers/scsi/sr_ioctl.cextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev27drivers/scsi/sr_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev52drivers/scsi/sr_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev55drivers/scsi/sr_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev87drivers/scsi/sr_ioctl.cSCpnt->request.dev = -1; /* Deallocate */
dev97drivers/scsi/sr_ioctl.cint dev = inode->i_rdev;
dev100drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev394drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
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)
dev626drivers/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;
dev30fs/block_dev.cunsigned int dev;
dev34fs/block_dev.cdev = inode->i_rdev;
dev36fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev37fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev51fs/block_dev.cif (blk_size[MAJOR(dev)])
dev52fs/block_dev.csize = (blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev64fs/block_dev.cbh = getblk(dev, block, blocksize);
dev66fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev71fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev72fs/block_dev.cbh = getblk(dev, block, blocksize);
dev76fs/block_dev.c!read_ahead[MAJOR(dev)]) {
dev79fs/block_dev.cbh = bread(dev,block,blocksize);
dev82fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2;
dev91fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev93fs/block_dev.cbhlist[i] = getblk (dev, block+i, blocksize);
dev139fs/block_dev.cunsigned int dev;
dev142fs/block_dev.cdev = inode->i_rdev;
dev144fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev145fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev154fs/block_dev.cif (blk_size[MAJOR(dev)])
dev155fs/block_dev.csize = blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev176fs/block_dev.cif(blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev177fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev203fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev206fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev157fs/buffer.cstatic int sync_buffers(dev_t dev, int wait)
dev181fs/buffer.cif (dev && bh->b_dev != dev)
dev228fs/buffer.cvoid sync_dev(dev_t dev)
dev230fs/buffer.csync_buffers(dev, 0);
dev231fs/buffer.csync_supers(dev);
dev232fs/buffer.csync_inodes(dev);
dev233fs/buffer.csync_buffers(dev, 0);
dev236fs/buffer.cint fsync_dev(dev_t dev)
dev238fs/buffer.csync_buffers(dev, 0);
dev239fs/buffer.csync_supers(dev);
dev240fs/buffer.csync_inodes(dev);
dev241fs/buffer.creturn sync_buffers(dev, 1);
dev269fs/buffer.cvoid invalidate_buffers(dev_t dev)
dev279fs/buffer.cif (bh->b_dev != dev)
dev282fs/buffer.cif (bh->b_dev == dev)
dev303fs/buffer.cvoid check_disk_change(dev_t dev)
dev308fs/buffer.cswitch(MAJOR(dev)){
dev310fs/buffer.cif (!(bh = getblk(dev,0,1024)))
dev318fs/buffer.ci = check_scsidisk_media_change(dev, 0);
dev324fs/buffer.ci = check_cdrom_media_change(dev, 0);
dev330fs/buffer.ci = check_cdu31a_media_change(dev, 0);
dev336fs/buffer.ci = check_mcd_media_change(dev, 0);
dev347fs/buffer.cMAJOR(dev), MINOR(dev));
dev349fs/buffer.cif (super_blocks[i].s_dev == dev)
dev351fs/buffer.cinvalidate_inodes(dev);
dev352fs/buffer.cinvalidate_buffers(dev);
dev357fs/buffer.cif (MAJOR(dev) == SCSI_DISK_MAJOR)
dev358fs/buffer.crevalidate_scsidisk(dev, 0);
dev362fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash)
dev363fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev499fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
dev503fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev504fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
dev509fs/buffer.cMAJOR(dev), MINOR(dev));
dev522fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
dev527fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev531fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
dev537fs/buffer.cvoid set_blocksize(dev_t dev, int size)
dev542fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev550fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev551fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev554fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev556fs/buffer.csync_buffers(dev, 2);
dev557fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev567fs/buffer.cif (bh->b_dev != dev)
dev573fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev775fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
dev787fs/buffer.cbh = get_hash_table(dev, block, size);
dev797fs/buffer.cif (find_buffer(dev,block,size))
dev811fs/buffer.cbh->b_dev=dev;
dev887fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev891fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev893fs/buffer.cMAJOR(dev), MINOR(dev));
dev914fs/buffer.cstruct buffer_head * breada(dev_t dev, int block, int bufsize,
dev926fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev936fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev937fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev944fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1071fs/buffer.cdev_t dev, int *b, int size)
dev1091fs/buffer.cfirst = get_hash_table(dev, block, size);
dev1112fs/buffer.cdev_t dev, int b[], int size)
dev1129fs/buffer.cif (find_buffer(dev, block, size))
dev1142fs/buffer.cbh->b_dev = dev;
dev1182fs/buffer.cdev_t dev, int *b, int size)
dev1190fs/buffer.cbh = get_hash_table(dev, block, size);
dev1192fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev1193fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev1208fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot)
dev1215fs/buffer.cwhere = try_to_share_buffers(address,dev,b,size);
dev1223fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1511fs/buffer.cdev_t dev, unsigned int starting_block)
dev1540fs/buffer.cp->b_dev=dev;
dev1563fs/buffer.cstatic int reassign_cluster(dev_t dev, 
dev1580fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1590fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
dev1608fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1621fs/buffer.cbh->b_dev = dev;
dev1647fs/buffer.cunsigned long generate_cluster(dev_t dev, int b[], int size)
dev1653fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1663fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1668fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1670fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev189fs/ext/freelists.cdev_t dev;
dev211fs/ext/freelists.cdev = inode->i_dev;
dev229fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev62fs/ext/inode.cint dev = s->s_dev,block;
dev65fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev66fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev91fs/ext/inode.cdev);
dev97fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev108fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev118fs/ext/inode.cs->s_dev = dev;
dev26fs/ext2/dcache.cunsigned short dev;
dev55fs/ext2/dcache.c#define hash(dev,dir)  ((dev ^ dir) % HASH_QUEUES)
dev84fs/ext2/dcache.cstatic struct dir_cache_entry * find_name (int queue, unsigned short dev,
dev90fs/ext2/dcache.cfor (p = queue_head[queue]; p != NULL && (p->dev != dev ||
dev109fs/ext2/dcache.cp->dev, p->dir, p->name);
dev179fs/ext2/dcache.cvoid ext2_dcache_invalidate (unsigned short dev)
dev188fs/ext2/dcache.cif (p->dev == dev) {
dev190fs/ext2/dcache.cremove_from_queue (hash (p->dev, p->dir), p);
dev203fs/ext2/dcache.cunsigned long ext2_dcache_lookup (unsigned short dev, unsigned long dir,
dev217fs/ext2/dcache.cprintk ("dcache_lookup (%04x, %lu, %s, %d)\n", dev, dir, our_name, len);
dev219fs/ext2/dcache.cqueue = hash (dev, dir);
dev220fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, our_name, len))) {
dev253fs/ext2/dcache.cvoid ext2_dcache_add (unsigned short dev, unsigned long dir, const char * name,
dev263fs/ext2/dcache.cdev, dir, name, len, ino);
dev267fs/ext2/dcache.cqueue = hash (dev, dir);
dev268fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, name, len))) {
dev291fs/ext2/dcache.cremove_from_queue (hash (p->dev, p->dir), p);
dev294fs/ext2/dcache.cp->dev = dev;
dev313fs/ext2/dcache.cvoid ext2_dcache_remove (unsigned short dev, unsigned long dir,
dev322fs/ext2/dcache.cprintk ("dcache_remove (%04x, %lu, %s, %d)\n", dev, dir, name, len);
dev326fs/ext2/dcache.cqueue = hash (dev, dir);
dev327fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, name, len))) {
dev362fs/ext2/super.cint dev = sb->s_dev;
dev377fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev378fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev401fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev412fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev415fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev488fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev497fs/ext2/super.cdev);
dev526fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev559fs/ext2/super.csb->s_dev = dev;
dev239fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno);
dev250fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev256fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino);
dev257fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino,
dev259fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev261fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev263fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp);
dev264fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev339fs/hpfs/hpfs_fs.cdev_t dev;
dev362fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev363fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev369fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev373fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev377fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev492fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev838fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno)
dev844fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1539fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev1545fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1569fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino)
dev1575fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1586fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp)
dev1595fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1607fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev1617fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1629fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev1639fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1651fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp)
dev1655fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1665fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev1680fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX);
dev1685fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1690fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1695fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev24fs/inode.cstatic inline int const hashfn(dev_t dev, unsigned int i)
dev26fs/inode.creturn (dev ^ i) % NR_IHASH;
dev29fs/inode.cstatic inline struct inode_hash_entry * const hash(dev_t dev, int i)
dev31fs/inode.creturn hash_table + hashfn(dev, i);
dev162fs/inode.cint fs_may_mount(dev_t dev)
dev171fs/inode.cif (inode->i_dev != dev)
dev180fs/inode.cint fs_may_umount(dev_t dev, struct inode * mount_root)
dev187fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev196fs/inode.cint fs_may_remount_ro(dev_t dev)
dev204fs/inode.cfile->f_inode->i_dev != dev)
dev269fs/inode.cvoid invalidate_inodes(dev_t dev)
dev278fs/inode.cif (inode->i_dev != dev)
dev281fs/inode.cprintk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev));
dev288fs/inode.cvoid sync_inodes(dev_t dev)
dev295fs/inode.cif (dev && inode->i_dev != dev)
dev219fs/isofs/dir.ccache.dev = inode->i_dev;
dev130fs/isofs/inode.cint dev=s->s_dev;
dev154fs/isofs/inode.cset_blocksize(dev, blocksize);
dev161fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), blocksize))) {
dev164fs/isofs/inode.cdev, iso_blknum);
dev257fs/isofs/inode.cs->s_dev = dev;
dev679fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev681fs/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)
dev417fs/proc/array.cdev_t dev;
dev448fs/proc/array.cdev = map->vm_inode->i_dev;
dev451fs/proc/array.cdev = 0;
dev457fs/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;
dev31include/linux/etherdevice.hextern int    eth_header(unsigned char *buff, struct device *dev,
dev35include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev37include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev353include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev354include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev355include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev398include/linux/fs.hextern void check_disk_change(dev_t dev);
dev399include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev400include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev402include/linux/fs.hextern void sync_inodes(dev_t dev);
dev403include/linux/fs.hextern void sync_dev(dev_t dev);
dev404include/linux/fs.hextern int fsync_dev(dev_t dev);
dev405include/linux/fs.hextern void sync_supers(dev_t dev);
dev413include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev422include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev423include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev425include/linux/fs.hextern void ll_rw_page(int rw, int dev, int nr, char * buffer);
dev426include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev428include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev429include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev430include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot);
dev431include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block, int size, 
dev433include/linux/fs.hextern void put_super(dev_t dev);
dev434include/linux/fs.hunsigned long generate_cluster(dev_t dev, int b[], int size);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev195include/linux/iso_fs.hdev_t dev;  /* And this matches */
dev211include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev113include/linux/msdos_fs.hstatic inline struct buffer_head *msdos_sread(int dev,int sector,void **start)
dev117include/linux/msdos_fs.hif (!(bh = bread(dev,sector >> 1, 1024)))
dev77include/linux/netdevice.hint        (*init)(struct device *dev);
dev84include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev118include/linux/netdevice.hint        (*open)(struct device *dev);
dev119include/linux/netdevice.hint        (*stop)(struct device *dev);
dev121include/linux/netdevice.hstruct device *dev);
dev123include/linux/netdevice.hstruct device *dev,
dev129include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev132include/linux/netdevice.hstruct device *dev);
dev134include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev,
dev137include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev171include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev172include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev173include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev179include/linux/netdevice.hstruct device * dev);
dev183include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev191include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev48include/linux/skbuff.hstruct device      *dev;
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);
dev73net/inet/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev249net/inet/arp.cstatic void arp_send(int type, unsigned long dest_ip, struct device *dev,
dev260net/inet/arp.cif(dev->flags&IFF_NOARP)
dev267net/inet/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev268net/inet/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev274net/inet/arp.cskb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4);
dev276net/inet/arp.cskb->dev = dev;
dev283net/inet/arp.cdev->hard_header(skb->data,dev,ETH_P_ARP,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb);
dev286net/inet/arp.carp = (struct arphdr *) (skb->data + dev->hard_header_len);
dev287net/inet/arp.carp->ar_hrd = htons(dev->type);
dev289net/inet/arp.carp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP);
dev293net/inet/arp.carp->ar_hln = dev->addr_len;
dev299net/inet/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev300net/inet/arp.carp_ptr+=dev->addr_len;
dev304net/inet/arp.cmemcpy(arp_ptr, dest_hw, dev->addr_len);
dev306net/inet/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev307net/inet/arp.carp_ptr+=dev->addr_len;
dev310net/inet/arp.cdev_queue_xmit(skb, dev, 0);
dev344net/inet/arp.cstruct device *dev = entry->dev;
dev351net/inet/arp.carp_send(ARPOP_REQUEST, ip, dev, dev->pa_addr, NULL,
dev352net/inet/arp.cdev->dev_addr);
dev408net/inet/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev412net/inet/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev414net/inet/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev464net/inet/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev484net/inet/arp.cif (arp->ar_hln != dev->addr_len || dev->type != ntohs(arp->ar_hrd) || dev->flags&IFF_NOARP)
dev495net/inet/arp.c(arp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev497net/inet/arp.c(arp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev510net/inet/arp.carp_ptr+=dev->addr_len;
dev514net/inet/arp.carp_ptr+=dev->addr_len;
dev537net/inet/arp.cmemcpy(ha, proxy_entry->ha, dev->addr_len);
dev556net/inet/arp.centry->htype = dev->type;  /* Not good but we have no choice */
dev604net/inet/arp.centry->dev = skb->dev;
dev623net/inet/arp.carp_send(ARPOP_REPLY, sip, dev, tip, sha,
dev624net/inet/arp.c(addr_hint == IS_MYADDR)? dev->dev_addr : ha);
dev635net/inet/arp.cint arp_find(unsigned char *haddr, unsigned long paddr, struct device *dev,
dev645net/inet/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev649net/inet/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev685net/inet/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev701net/inet/arp.centry->hlen = dev->addr_len;
dev702net/inet/arp.centry->htype = dev->type;
dev704net/inet/arp.cmemset(entry->ha, 0, dev->addr_len);
dev707net/inet/arp.centry->dev = dev;
dev729net/inet/arp.carp_send(ARPOP_REQUEST, paddr, dev, saddr, NULL, dev->dev_addr);
dev908net/inet/arp.centry->dev = rt->rt_dev;
dev7net/inet/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev10net/inet/arp.hstruct device *dev, unsigned long saddr, struct sk_buff *skb);
dev229net/inet/dev.cstruct device *dev;
dev231net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev233net/inet/dev.cif (strcmp(dev->name, name) == 0)
dev234net/inet/dev.creturn(dev);
dev244net/inet/dev.cint dev_open(struct device *dev)
dev251net/inet/dev.cif (dev->open) 
dev252net/inet/dev.cret = dev->open(dev);
dev259net/inet/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev274net/inet/dev.cint dev_close(struct device *dev)
dev280net/inet/dev.cif (dev->flags != 0) 
dev283net/inet/dev.cdev->flags = 0;
dev287net/inet/dev.cif (dev->stop) 
dev288net/inet/dev.cdev->stop(dev);
dev292net/inet/dev.cip_rt_flush(dev);
dev296net/inet/dev.cdev->pa_addr = 0;
dev297net/inet/dev.cdev->pa_dstaddr = 0;
dev298net/inet/dev.cdev->pa_brdaddr = 0;
dev299net/inet/dev.cdev->pa_mask = 0;
dev306net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev320net/inet/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev328net/inet/dev.cskb, dev, pri));
dev330net/inet/dev.cif (dev == NULL) 
dev338net/inet/dev.cskb->dev = dev;
dev350net/inet/dev.cdev->hard_start_xmit(NULL, dev);
dev377net/inet/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev384net/inet/dev.cskb_queue_tail(dev->buffs + pri,skb);
dev385net/inet/dev.cskb = skb_dequeue(dev->buffs + pri);
dev389net/inet/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev397net/inet/dev.cskb_queue_head(dev->buffs + pri,skb);
dev469net/inet/dev.cint dev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev477net/inet/dev.cif (dev == NULL || buff == NULL || len <= 0) 
dev498net/inet/dev.cdev->name);
dev514net/inet/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev521net/inet/dev.cif ((unsigned long) buff == dev->rmem_end)
dev522net/inet/dev.cbuff = (unsigned char *) dev->rmem_start;
dev531net/inet/dev.cskb->dev = dev;
dev548net/inet/dev.cstruct device *dev;
dev550net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev552net/inet/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev556net/inet/dev.cdev_tint(dev);
dev642net/inet/dev.cskb->h.raw = skb->data + skb->dev->hard_header_len;
dev643net/inet/dev.cskb->len -= skb->dev->hard_header_len;
dev656net/inet/dev.ctype = skb->dev->type_trans(skb, skb->dev);
dev717net/inet/dev.cptype->func(skb2, skb->dev, ptype);
dev759net/inet/dev.cvoid dev_tint(struct device *dev)
dev774net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev780net/inet/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev784net/inet/dev.cif (dev->tbusy)
dev801net/inet/dev.cstruct device *dev;
dev830net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev832net/inet/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev835net/inet/dev.cstrcpy(ifr.ifr_name, dev->name);
dev836net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev837net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev876net/inet/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev878net/inet/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev883net/inet/dev.cdev->name,
dev894net/inet/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev911net/inet/dev.cstruct device *dev;
dev921net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev923net/inet/dev.csize = sprintf_stats(buffer+len, dev);
dev968net/inet/dev.cstruct device *dev;
dev985net/inet/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) 
dev991net/inet/dev.cifr.ifr_flags = dev->flags;
dev997net/inet/dev.cint old_flags = dev->flags;
dev998net/inet/dev.cdev->flags = ifr.ifr_flags & (
dev1006net/inet/dev.cif ( (old_flags & IFF_PROMISC) && ((dev->flags & IFF_PROMISC) == 0))
dev1007net/inet/dev.cdev->set_multicast_list(dev,0,NULL);
dev1013net/inet/dev.cif ( (dev->flags & IFF_PROMISC) && ((old_flags & IFF_PROMISC) == 0))
dev1014net/inet/dev.cdev->set_multicast_list(dev,-1,NULL);
dev1020net/inet/dev.cif ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) 
dev1022net/inet/dev.cret = dev_close(dev);
dev1030net/inet/dev.cret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP))
dev1031net/inet/dev.c? dev_open(dev) : 0;
dev1036net/inet/dev.cdev->flags&=~IFF_UP;  /* Didnt open so down the if */
dev1043net/inet/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1045net/inet/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1053net/inet/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1055net/inet/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1056net/inet/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1057net/inet/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1063net/inet/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1065net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1073net/inet/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1080net/inet/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1082net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1090net/inet/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1097net/inet/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1099net/inet/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1116net/inet/dev.cdev->pa_mask = mask;
dev1123net/inet/dev.cifr.ifr_metric = dev->metric;
dev1129net/inet/dev.cdev->metric = ifr.ifr_metric;
dev1134net/inet/dev.cifr.ifr_mtu = dev->mtu;
dev1147net/inet/dev.cdev->mtu = ifr.ifr_mtu;
dev1163net/inet/dev.cmemcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev1169net/inet/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1170net/inet/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1176net/inet/dev.cif(dev->set_mac_address==NULL)
dev1178net/inet/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1180net/inet/dev.cret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data);
dev1270net/inet/dev.cstruct device *dev, *dev2;
dev1280net/inet/dev.cfor (dev = dev_base; dev != NULL; dev=dev->next) 
dev1282net/inet/dev.cif (dev->init && dev->init(dev)) 
dev1289net/inet/dev.cdev_base = dev->next;
dev1291net/inet/dev.cdev2->next = dev->next;
dev1295net/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);
dev117net/inet/devinet.cstruct device *dev;
dev143net/inet/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev145net/inet/devinet.cif (!(dev->flags & IFF_UP))
dev152net/inet/devinet.cif ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/)
dev158net/inet/devinet.cif (addr == dev->pa_addr)
dev164net/inet/devinet.cif ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr)
dev170net/inet/devinet.cif (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) 
dev172net/inet/devinet.cif ((addr & ~dev->pa_mask) == 0)
dev174net/inet/devinet.cif ((addr & ~dev->pa_mask) == ~dev->pa_mask)
dev182net/inet/devinet.cif (((addr ^ dev->pa_addr) & mask) == 0) 
dev206net/inet/devinet.cstruct device *dev;
dev208net/inet/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev210net/inet/devinet.cif (dev->flags & IFF_LOOPBACK) 
dev211net/inet/devinet.creturn(dev->pa_addr);
dev225net/inet/devinet.cstruct device *dev;
dev227net/inet/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev229net/inet/devinet.cif (!(dev->flags & IFF_UP))
dev231net/inet/devinet.cif (!(dev->flags & IFF_POINTOPOINT))
dev233net/inet/devinet.cif (addr != dev->pa_dstaddr)
dev235net/inet/devinet.creturn dev;
dev237net/inet/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev239net/inet/devinet.cif (!(dev->flags & IFF_UP))
dev241net/inet/devinet.cif (dev->flags & IFF_POINTOPOINT)
dev243net/inet/devinet.cif (dev->pa_mask & (addr ^ dev->pa_addr))
dev245net/inet/devinet.creturn dev;
dev80net/inet/eth.cint eth_header(unsigned char *buff, struct device *dev, unsigned short type,
dev101net/inet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev103net/inet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev109net/inet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev111net/inet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev112net/inet/eth.creturn(dev->hard_header_len);
dev117net/inet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev118net/inet/eth.creturn dev->hard_header_len;
dev121net/inet/eth.creturn -dev->hard_header_len;
dev131net/inet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev143net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev151net/inet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev161net/inet/eth.cunsigned short eth_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);
dev106net/inet/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, struct device *dev)
dev116net/inet/icmp.cskb_in, type, code, dev));
dev122net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
dev180net/inet/icmp.clen = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) +
dev194net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
dev231net/inet/icmp.cip_queue_xmit(NULL, dev, skb, 1);
dev317net/inet/icmp.cstruct device *dev, unsigned long source)
dev340net/inet/icmp.cip, 0, icmph->un.gateway, dev);
dev356net/inet/icmp.cip, 0, icmph->un.gateway, dev);
dev380net/inet/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev392net/inet/icmp.csize = dev->hard_header_len + 64 + len;
dev434net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev447net/inet/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev458net/inet/icmp.csize = dev->hard_header_len + 64 + len;
dev512net/inet/icmp.cip_queue_xmit((struct sock *) NULL, dev, skb2, 1);
dev524net/inet/icmp.cstatic void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev537net/inet/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev549net/inet/icmp.csize = dev->hard_header_len + 64 + len;
dev590net/inet/icmp.cmemcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask));
dev595net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev606net/inet/icmp.cint icmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt,
dev670net/inet/icmp.cicmp_redirect(icmph, skb1, dev, saddr);
dev674net/inet/icmp.cicmp_echo(icmph, skb1, dev, saddr, daddr, len, opt);
dev682net/inet/icmp.cicmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt);
dev690net/inet/icmp.cicmp_info(icmph, skb1, dev, saddr, daddr, len, opt);
dev698net/inet/icmp.cicmp_address(icmph, skb1, dev, saddr, daddr, len, opt);
dev29net/inet/icmp.hstruct device *dev);
dev30net/inet/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev226net/inet/ip.cstatic int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr)
dev230net/inet/ip.cskb->dev = dev;
dev232net/inet/ip.cif (dev->hard_header) 
dev238net/inet/ip.cmac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb);
dev257net/inet/ip.cstruct device **dev, int type, struct options *opt, int len, int tos, int ttl)
dev277net/inet/ip.cskb, saddr, daddr, *dev, type, opt, len));
dev285net/inet/ip.cif (*dev == NULL) 
dev297net/inet/ip.c*dev = rt->rt_dev;
dev338net/inet/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev346net/inet/ip.cskb->dev = *dev;
dev768net/inet/ip.cICMP_EXC_FRAGTIME, qp->dev);
dev784net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev795net/inet/ip.cskb->dev = qp->dev;
dev836net/inet/ip.cqp->dev = dev;
dev966net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev1013net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
dev1033net/inet/ip.cptr = skb->data + dev->hard_header_len + ihl;
dev1163net/inet/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev1177net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
dev1187net/inet/ip.chlen += dev->hard_header_len;    /* Total header size */
dev1188net/inet/ip.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev1193net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
dev1204net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
dev1208net/inet/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); 
dev1221net/inet/ip.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev);
dev1301net/inet/ip.cskb2->h.raw+=dev->hard_header_len; 
dev1323net/inet/ip.cip_queue_xmit(sk, dev, skb2, 1);
dev1336net/inet/ip.cstatic void ip_forward(struct sk_buff *skb, struct device *dev, int is_frag)
dev1350net/inet/ip.cif(dev->flags&IFF_PROMISC)
dev1352net/inet/ip.cif(memcmp((char *)&skb[1],dev->dev_addr,dev->addr_len))
dev1378net/inet/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev);
dev1404net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev);
dev1433net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev);
dev1455net/inet/ip.cif (dev == dev2)
dev1536net/inet/ip.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1629net/inet/ip.cip_forward(skb, dev, is_frag);
dev1652net/inet/ip.cskb=ip_defrag(iph,skb,dev);
dev1660net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1730net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
dev1746net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1762net/inet/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev, 
dev1773net/inet/ip.cif (dev == NULL) 
dev1786net/inet/ip.cskb->dev = dev;
dev1800net/inet/ip.cptr += dev->hard_header_len;
dev1803net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
dev1811net/inet/ip.cif(skb->len > dev->mtu)
dev1813net/inet/ip.cip_fragment(sk,skb,dev,0);
dev1890net/inet/ip.cif (dev->flags & IFF_UP) 
dev1899net/inet/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev1903net/inet/ip.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1924net/inet/ip.cstruct device *dev;
dev1933net/inet/ip.cdev = skb->dev;
dev1946net/inet/ip.cif (dev->rebuild_header(skb->data, dev, skb->raddr, NULL)) 
dev1961net/inet/ip.cif (dev->flags & IFF_UP) 
dev1977net/inet/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev62net/inet/ip.hstruct device *dev;    /* Device - for icmp replies */
dev75net/inet/ip.hstruct device **dev, int type,
dev79net/inet/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev82net/inet/ip.hstruct device *dev, struct sk_buff *skb,
dev212net/inet/ipx.cstruct device *dev;
dev234net/inet/ipx.crt->dev=rt1->dev;
dev238net/inet/ipx.cdev=dev_get(r->ipx_device);
dev239net/inet/ipx.cif(dev==NULL)
dev242net/inet/ipx.cif(dev->addr_len>6)
dev244net/inet/ipx.cif(dev->addr_len<2)
dev257net/inet/ipx.crt->dev=dev;
dev322net/inet/ipx.crt->router_node[3], rt->router_node[4], rt->router_node[5], rt->flags, rt->dev->name);
dev593net/inet/ipx.cmemcpy(sk->ipx_source_addr.node,rt->dev->dev_addr,rt->dev->addr_len);
dev695net/inet/ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev704net/inet/ipx.cbuff+=dev->hard_header_len;
dev717net/inet/ipx.cif(htons(ipx->ipx_pktsize)<sizeof(ipx_packet)+dev->hard_header_len)
dev731net/inet/ipx.cif(memcmp(dev->dev_addr,ipx->ipx_dest.node,dev->addr_len)!=0
dev732net/inet/ipx.c&& memcmp(ipx_broadcast_node,ipx->ipx_dest.node,dev->addr_len)!=0)
dev760net/inet/ipx.cif(rt->dev->hard_header_len!=dev->hard_header_len)
dev775net/inet/ipx.cipx=(ipx_packet *)(buff+dev->hard_header_len);
dev787net/inet/ipx.cdev->hard_header(buff, dev, 
dev794net/inet/ipx.cdev_queue_xmit(skb2,dev,SOPRI_NORMAL);
dev835net/inet/ipx.cstruct device *dev;
dev892net/inet/ipx.cdev=rt->dev;
dev894net/inet/ipx.csize+=dev->hard_header_len;
dev919net/inet/ipx.cskb->dev=rt->dev;
dev921net/inet/ipx.cdev->hard_header(skb->data,skb->dev,
dev931net/inet/ipx.cipx=(ipx_packet *)skb->data+skb->dev->hard_header_len;
dev946net/inet/ipx.cif(dev->flags&IFF_LOOPBACK)
dev948net/inet/ipx.cipx_rcv(skb,dev,NULL);
dev950net/inet/ipx.cdev_queue_xmit(skb,dev,SOPRI_NORMAL);
dev49net/inet/ipx.hstruct device *dev;
dev60net/inet/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev65net/inet/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev82net/inet/packet.cskb->dev = dev;
dev83net/inet/packet.cskb->len += dev->hard_header_len;
dev126net/inet/packet.cstruct device *dev;
dev169net/inet/packet.cdev = dev_get(saddr.sa_data);
dev170net/inet/packet.cif (dev == NULL) 
dev180net/inet/packet.cif(len>dev->mtu)
dev214net/inet/packet.cif (dev->flags & IFF_UP) 
dev215net/inet/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev365net/inet/packet.caddr.sa_family = skb->dev->type;
dev366net/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,
dev96net/inet/raw.craw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev104net/inet/raw.cskb, dev, opt, daddr, len, saddr, redo, protocol));
dev126net/inet/raw.cskb->dev = dev;
dev153net/inet/raw.cstruct device *dev=NULL;
dev247net/inet/raw.csin.sin_addr.s_addr, &dev,
dev278net/inet/raw.csk->prot->queue_xmit(sk, dev, skb, 1);
dev26net/inet/raw.hextern int  raw_rcv(struct sk_buff *skb, struct device *dev,
dev127net/inet/route.cvoid ip_rt_flush(struct device *dev)
dev133net/inet/route.cDPRINTF((DBG_RT, "RT: flushing for dev 0x%08lx (%s)\n", (long)dev, dev->name));
dev138net/inet/route.cif (r->rt_dev != dev) {
dev173net/inet/route.cstatic unsigned long guess_mask(unsigned long dst, struct device * dev)
dev180net/inet/route.cif ((dst ^ dev->pa_addr) & mask)
dev182net/inet/route.creturn dev->pa_mask;
dev219net/inet/route.cunsigned long gw, struct device *dev)
dev240net/inet/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev242net/inet/route.cmask = dev->pa_mask;
dev251net/inet/route.cmask = guess_mask(dst, dev);
dev259net/inet/route.cif (gw == dev->pa_addr)
dev268net/inet/route.cif (dev != get_gw_dev(gw))
dev289net/inet/route.crt->rt_dev = dev;
dev292net/inet/route.crt->rt_mtu = dev->mtu;
dev374net/inet/route.cstruct device * dev = NULL;
dev386net/inet/route.cdev = dev_get(devname);
dev388net/inet/route.cif (!dev)
dev415net/inet/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev423net/inet/route.cdev = dev2;
dev453net/inet/route.cif (!dev)
dev454net/inet/route.cdev = get_gw_dev(gw);
dev456net/inet/route.celse if (!dev)
dev457net/inet/route.cdev = ip_dev_check(daddr);
dev463net/inet/route.cif (dev == NULL)
dev470net/inet/route.cip_rt_add(flags, daddr, mask, gw, dev);
dev43net/inet/route.hextern void    ip_rt_flush(struct device *dev);
dev45net/inet/route.hunsigned long gw, struct device *dev);
dev515net/inet/skbuff.cn->dev=skb->dev;
dev362net/inet/sock.cskb->dev = NULL;
dev1682net/inet/sock.cif (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt,
dev203net/inet/sock.hstruct device **dev, int type,
dev209net/inet/sock.hstruct device *dev, struct sk_buff *skb,
dev214net/inet/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev608net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev667net/inet/tcp.cstruct device *dev = NULL;
dev697net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev749net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev789net/inet/tcp.cstruct device *dev = NULL;
dev1042net/inet/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1054net/inet/tcp.cskb->dev = dev;
dev1140net/inet/tcp.cstruct device *dev = NULL;
dev1175net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1203net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1511net/inet/tcp.cstruct device *dev = NULL;
dev1556net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev1577net/inet/tcp.cbuff->dev = dev;
dev1608net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev1662net/inet/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev1681net/inet/tcp.cbuff->dev = dev;
dev1734net/inet/tcp.cprot->queue_xmit(NULL, dev, buff, 1);
dev1813net/inet/tcp.cstruct options *opt, struct device *dev)
dev1825net/inet/tcp.csk, skb, daddr, saddr, opt, dev));
dev1834net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev1940net/inet/tcp.cif ((saddr ^ daddr) & dev->pa_mask)
dev1947net/inet/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE);
dev2015net/inet/tcp.cnewsk->prot->queue_xmit(newsk, dev, buff, 0);
dev2037net/inet/tcp.cstruct device *dev=NULL;
dev2137net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2158net/inet/tcp.cbuff->dev = dev;
dev2182net/inet/tcp.cprot->queue_xmit(sk, dev, buff, 0);
dev2241net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev2675net/inet/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev2927net/inet/tcp.cunsigned long saddr, struct device *dev)
dev2930net/inet/tcp.csk, th, saddr, dev));
dev3034net/inet/tcp.cstruct device *dev=NULL;
dev3110net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3145net/inet/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
dev3155net/inet/tcp.csk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE);
dev3178net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev3190net/inet/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev3233net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev3244net/inet/tcp.ctcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev3256net/inet/tcp.cif (!dev) 
dev3298net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev3370net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) {
dev3412net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl);
dev3440net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
dev3460net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3473net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3487net/inet/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev);
dev3506net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) 
dev3548net/inet/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev3576net/inet/tcp.csk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev3625net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
dev3648net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
dev3664net/inet/tcp.cstruct device *dev=NULL;
dev3687net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3721net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev119net/inet/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev257net/inet/udp.cstruct device *dev;
dev293net/inet/udp.cdev = NULL;
dev295net/inet/udp.csaddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len));
dev297net/inet/udp.c&dev, IPPROTO_UDP, sk->opt, skb->mem_len,sk->ip_tos,sk->ip_ttl);
dev315net/inet/udp.cskb->dev = dev;
dev345net/inet/udp.csk->prot->queue_xmit(sk, dev, skb, 1);
dev650net/inet/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev671net/inet/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev);
dev692net/inet/udp.cskb->dev = dev;
dev43net/inet/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,