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; }
dev204drivers/block/blk.h#define CURRENT_DEV DEVICE_NR(CURRENT->dev)
dev246drivers/block/blk.h(unsigned long)req->dev, req->sector);
dev268drivers/block/blk.hDEVICE_OFF(req->dev);
dev276drivers/block/blk.hreq->dev = -1;
dev292drivers/block/blk.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev848drivers/block/cdu31a.cunsigned int dev;
dev869drivers/block/cdu31a.cif (!(CURRENT) || CURRENT->dev < 0)
dev875drivers/block/cdu31a.cdev = MINOR(CURRENT->dev);
dev878drivers/block/cdu31a.cif (dev != 0)
dev1142drivers/block/cdu31a.cunsigned int dev;
dev1153drivers/block/cdu31a.cdev = MINOR(inode->i_rdev) >> 6;
dev1154drivers/block/cdu31a.cif (dev != 0)
dev239drivers/block/floppy.c(CURRENT->dev))
dev682drivers/block/floppy.cint drive = MINOR(CURRENT->dev);
dev1000drivers/block/floppy.cif (CURRENT && CURRENT->dev < 0) return;
dev1014drivers/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;
dev289drivers/block/hd.cint dev;
dev293drivers/block/hd.cdev = MINOR(CURRENT->dev) >> 6;
dev296drivers/block/hd.crecalibrate[dev] = 1;
dev300drivers/block/hd.crecalibrate[dev] = 1;
dev350drivers/block/hd.cMINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> 
dev451drivers/block/hd.cunsigned int block,dev;
dev455drivers/block/hd.cif (CURRENT && CURRENT->dev < 0) return;
dev463drivers/block/hd.cdev = MINOR(CURRENT->dev);
dev466drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) {
dev469drivers/block/hd.cblock, hd[dev].nr_sects);
dev474drivers/block/hd.cblock += hd[dev].start_sect;
dev475drivers/block/hd.cdev >>= 6;
dev476drivers/block/hd.csec = block % hd_info[dev].sect + 1;
dev477drivers/block/hd.ctrack = block / hd_info[dev].sect;
dev478drivers/block/hd.chead = track % hd_info[dev].head;
dev479drivers/block/hd.ccyl = track / hd_info[dev].head;
dev482drivers/block/hd.cdev, cyl, head, sec, CURRENT->buffer);
dev494drivers/block/hd.cif (recalibrate[dev]) {
dev495drivers/block/hd.crecalibrate[dev] = 0;
dev496drivers/block/hd.chd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr);
dev503drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
dev516drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr);
dev529drivers/block/hd.cint dev, err;
dev533drivers/block/hd.cdev = MINOR(inode->i_rdev) >> 6;
dev534drivers/block/hd.cif (dev >= NR_HD)
dev542drivers/block/hd.cput_fs_byte(hd_info[dev].head,
dev544drivers/block/hd.cput_fs_byte(hd_info[dev].sect,
dev546drivers/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));
dev77drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, int dev)
dev93drivers/block/ll_rw_blk.cif (req->dev < 0)
dev99drivers/block/ll_rw_blk.creq->dev = dev;
dev108drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, int dev)
dev112drivers/block/ll_rw_blk.cwhile ((req = get_request(n, dev)) == NULL)
dev121drivers/block/ll_rw_blk.cint is_read_only(int dev)
dev125drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev126drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev131drivers/block/ll_rw_blk.cvoid set_device_ro(int dev,int flag)
dev135drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev136drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev147drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
dev155drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev156drivers/block/ll_rw_blk.cdev->current_request = req;
dev157drivers/block/ll_rw_blk.c(dev->request_fn)();
dev171drivers/block/ll_rw_blk.cif (scsi_major(MAJOR(req->dev)))
dev172drivers/block/ll_rw_blk.c(dev->request_fn)();
dev234drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev248drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev301drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, int dev, int page, char * buffer)
dev304drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev307drivers/block/ll_rw_blk.cprintk("Trying to read nonexistent block-device %04x (%d)\n",dev,page*8);
dev312drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev313drivers/block/ll_rw_blk.cprintk("Can't page to read-only device 0x%X\n",dev);
dev317drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev344drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev354drivers/block/ll_rw_blk.cdev = NULL;
dev356drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev357drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev394drivers/block/ll_rw_blk.cif (!dev->current_request && nr > 1) {
dev395drivers/block/ll_rw_blk.cdev->current_request = &plug;
dev396drivers/block/ll_rw_blk.cplug.dev = -1;
dev409drivers/block/ll_rw_blk.cdev->current_request = plug.next;
dev410drivers/block/ll_rw_blk.c(dev->request_fn)();
dev423drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
dev428drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev439drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev440drivers/block/ll_rw_blk.cprintk("Can't swap to read-only device 0x%X\n",dev);
dev449drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev472drivers/block/ll_rw_blk.creq->dev = -1;
dev537drivers/block/mcd.cunsigned int block,dev;
dev541drivers/block/mcd.cif (!(CURRENT) || CURRENT->dev < 0) return;
dev543drivers/block/mcd.cdev = MINOR(CURRENT->dev);
dev40drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev160drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev162drivers/block/xd.cif (dev < xd_drives) {
dev163drivers/block/xd.cwhile (!xd_valid[dev])
dev166drivers/block/xd.cxd_access[dev]++;
dev184drivers/block/xd.cif (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) {
dev185drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
dev204drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev)),err;
dev206drivers/block/xd.cif (inode && (dev < xd_drives))
dev211drivers/block/xd.cput_fs_byte(xd_info[dev].heads,(char *) &geometry->heads);
dev212drivers/block/xd.cput_fs_byte(xd_info[dev].sectors,(char *) &geometry->sectors);
dev213drivers/block/xd.cput_fs_word(xd_info[dev].cylinders,(short *) &geometry->cylinders);
dev243drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev245drivers/block/xd.cif (dev < xd_drives) {
dev246drivers/block/xd.csync_dev(dev);
dev247drivers/block/xd.cxd_access[dev]--;
dev252drivers/block/xd.cstatic int xd_reread_partitions(int dev)
dev254drivers/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)) {
dev250drivers/char/tty_io.cint dev;
dev254drivers/char/tty_io.cdev = 0x0400 + tty->line;
dev258drivers/char/tty_io.cif (filp->f_rdev != dev)
dev996drivers/char/tty_io.cint i, dev;
dev999drivers/char/tty_io.cdev = file->f_rdev;
dev1000drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1001drivers/char/tty_io.cprintk("tty_read: bad pseudo-major nr #%d\n", MAJOR(dev));
dev1004drivers/char/tty_io.cdev = MINOR(dev);
dev1005drivers/char/tty_io.ctty = TTY_TABLE(dev);
dev1010drivers/char/tty_io.c(current->tty == dev) &&
dev1029drivers/char/tty_io.cint dev, i, is_console;
dev1032drivers/char/tty_io.cdev = file->f_rdev;
dev1034drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1038drivers/char/tty_io.cdev = MINOR(dev);
dev1042drivers/char/tty_io.ctty = TTY_TABLE(dev);
dev1046drivers/char/tty_io.c(current->tty == dev) && (tty->pgrp != current->pgrp)) {
dev1068drivers/char/tty_io.cstatic int init_dev(int dev)
dev1075drivers/char/tty_io.co_dev = PTY_OTHER(dev);
dev1081drivers/char/tty_io.cif (IS_A_PTY_MASTER(dev) && tty_table[dev] && tty_table[dev]->count)
dev1084drivers/char/tty_io.cif (!tty_table[dev] && !tty) {
dev1087drivers/char/tty_io.cinitialize_tty_struct(dev, tty);
dev1090drivers/char/tty_io.cif (!tty_termios[dev] && !tp) {
dev1095drivers/char/tty_io.cinitialize_termios(dev, tp);
dev1098drivers/char/tty_io.cif (!termios_locked[dev] && !ltp) {
dev1106drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1134drivers/char/tty_io.cif (!tty_termios[dev]) {
dev1135drivers/char/tty_io.ctty_termios[dev] = tp;
dev1138drivers/char/tty_io.cif (!tty_table[dev]) {
dev1139drivers/char/tty_io.ctty->termios = tty_termios[dev];
dev1140drivers/char/tty_io.ctty_table[dev] = tty;
dev1143drivers/char/tty_io.cif (!termios_locked[dev]) {
dev1144drivers/char/tty_io.ctermios_locked[dev] = ltp;
dev1147drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1161drivers/char/tty_io.ctty_table[dev]->link = tty_table[o_dev];
dev1162drivers/char/tty_io.ctty_table[o_dev]->link = tty_table[dev];
dev1164drivers/char/tty_io.ctty_table[dev]->count++;
dev1165drivers/char/tty_io.cif (IS_A_PTY_MASTER(dev))
dev1189drivers/char/tty_io.cstatic void release_dev(int dev, struct file * filp)
dev1195drivers/char/tty_io.ctty = tty_table[dev];
dev1196drivers/char/tty_io.ctp = tty_termios[dev];
dev1200drivers/char/tty_io.cprintk("release_dev: tty_table[%d] was NULL\n", dev);
dev1204drivers/char/tty_io.cprintk("release_dev: tty_termios[%d] was NULL\n", dev);
dev1207drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1208drivers/char/tty_io.co_tty = tty_table[PTY_OTHER(dev)];
dev1209drivers/char/tty_io.co_tp = tty_termios[PTY_OTHER(dev)];
dev1211drivers/char/tty_io.cprintk("release_dev: pty pair(%d) was NULL\n", dev);
dev1215drivers/char/tty_io.cprintk("release_dev: pty pair(%d) termios was NULL\n", dev);
dev1226drivers/char/tty_io.cif (IS_A_PTY_MASTER(dev)) {
dev1229drivers/char/tty_io.cdev, tty->count);
dev1235drivers/char/tty_io.cdev, tty->count);
dev1257drivers/char/tty_io.ctty_table[PTY_OTHER(dev)] = NULL;
dev1258drivers/char/tty_io.ctty_termios[PTY_OTHER(dev)] = NULL;
dev1261drivers/char/tty_io.ctty_table[dev] = NULL;
dev1262drivers/char/tty_io.cif (IS_A_PTY(dev)) {
dev1263drivers/char/tty_io.ctty_termios[dev] = NULL;
dev1362drivers/char/tty_io.cint dev;
dev1364drivers/char/tty_io.cdev = filp->f_rdev;
dev1365drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1369drivers/char/tty_io.cdev = MINOR(filp->f_rdev);
dev1370drivers/char/tty_io.cif (!dev) {
dev1374drivers/char/tty_io.crelease_dev(dev, filp);
dev1379drivers/char/tty_io.cint dev;
dev1382drivers/char/tty_io.cdev = filp->f_rdev;
dev1383drivers/char/tty_io.cif (MAJOR(dev) != TTY_MAJOR) {
dev1387drivers/char/tty_io.cdev = MINOR(filp->f_rdev);
dev1388drivers/char/tty_io.ctty = TTY_TABLE(dev);
dev1390drivers/char/tty_io.cprintk("tty_select: tty struct for dev %d was NULL\n", dev);
dev416drivers/char/tty_ioctl.cint dev;
dev424drivers/char/tty_ioctl.cdev = MINOR(file->f_rdev);
dev425drivers/char/tty_ioctl.ctty = TTY_TABLE(dev);
dev428drivers/char/tty_ioctl.cif (IS_A_PTY(dev))
dev429drivers/char/tty_ioctl.cother_tty = tty_table[PTY_OTHER(dev)];
dev433drivers/char/tty_ioctl.ctermios_dev = dev;
dev434drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev)) {
dev436drivers/char/tty_ioctl.ctermios_dev = PTY_OTHER(dev);
dev503drivers/char/tty_ioctl.ccurrent->tty = dev;
dev547drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev))
dev571drivers/char/tty_ioctl.cif (IS_A_CONSOLE(dev)) {
dev581drivers/char/tty_ioctl.cif (IS_A_PTY_MASTER(dev))
dev583drivers/char/tty_ioctl.celse if (IS_A_PTY_SLAVE(dev))
dev623drivers/char/tty_ioctl.cif (!IS_A_PTY_MASTER(dev))
dev63drivers/net/3c501.cint el1_probe(struct device *dev);
dev64drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev65drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev67drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev68drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev69drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev70drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev72drivers/net/3c501.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev139drivers/net/3c501.cel1_probe(struct device *dev)
dev146drivers/net/3c501.celdev = dev;    /* Store for debugging. */
dev147drivers/net/3c501.cel_base = dev->base_addr;
dev172drivers/net/3c501.cif (dev->irq < 2) {
dev185drivers/net/3c501.cprintk("%s: 3c501 probe failed to detect IRQ line.\n", dev->name);
dev188drivers/net/3c501.cdev->irq = autoirq;
dev193drivers/net/3c501.cdev->base_addr = el_base;
dev194drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev195drivers/net/3c501.cif (dev->mem_start & 0xf)
dev196drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev199drivers/net/3c501.cdev->name, dev->base_addr, autoirq ? "auto":"assigned ", dev->irq);
dev205drivers/net/3c501.cdev->open = &el_open;
dev206drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev207drivers/net/3c501.cdev->stop = &el1_close;
dev208drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev210drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev215drivers/net/3c501.cdev->buffs[i] = NULL;
dev217drivers/net/3c501.cdev->hard_header  = eth_header;
dev218drivers/net/3c501.cdev->add_arp  = eth_add_arp;
dev219drivers/net/3c501.cdev->queue_xmit  = dev_queue_xmit;
dev220drivers/net/3c501.cdev->rebuild_header  = eth_rebuild_header;
dev221drivers/net/3c501.cdev->type_trans  = eth_type_trans;
dev223drivers/net/3c501.cdev->type    = ARPHRD_ETHER;
dev224drivers/net/3c501.cdev->hard_header_len = ETH_HLEN;
dev225drivers/net/3c501.cdev->mtu    = 1500; /* eth_mtu */
dev226drivers/net/3c501.cdev->addr_len  = ETH_ALEN;
dev228drivers/net/3c501.cdev->broadcast[i]=0xff;
dev232drivers/net/3c501.cdev->flags    = IFF_BROADCAST;
dev233drivers/net/3c501.cdev->family    = AF_INET;
dev234drivers/net/3c501.cdev->pa_addr  = 0;
dev235drivers/net/3c501.cdev->pa_brdaddr  = 0;
dev236drivers/net/3c501.cdev->pa_mask  = 0;
dev237drivers/net/3c501.cdev->pa_alen  = sizeof(unsigned long);
dev244drivers/net/3c501.cel_open(struct device *dev)
dev248drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev250drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt)) {
dev255drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev257drivers/net/3c501.cel_reset(dev);
dev259drivers/net/3c501.cdev->start = 1;
dev268drivers/net/3c501.cel_start_xmit(struct sk_buff *skb, struct device *dev)
dev271drivers/net/3c501.cif (dev->tbusy) {
dev272drivers/net/3c501.cif (jiffies - dev->trans_start < 20) {
dev279drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev282drivers/net/3c501.cel_reset(dev);
dev289drivers/net/3c501.cdev->tbusy = 0;
dev290drivers/net/3c501.cdev->trans_start = jiffies;
dev294drivers/net/3c501.cdev_tint(dev);
dev299drivers/net/3c501.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev300drivers/net/3c501.cskb->dev = dev;
dev310drivers/net/3c501.cprintk("%s: el_start_xmit(%d)...", dev->name, skb->len);
dev313drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev314drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev330drivers/net/3c501.cdev->trans_start = jiffies;
dev348drivers/net/3c501.cstruct device *dev = eldev;
dev357drivers/net/3c501.cioaddr = dev->base_addr;
dev362drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev363drivers/net/3c501.cif (dev->interrupt)
dev364drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev365drivers/net/3c501.cdev->interrupt = 1;
dev367drivers/net/3c501.cif (dev->tbusy) {
dev376drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev378drivers/net/3c501.cdev->tbusy = 0;
dev383drivers/net/3c501.cdev->name);
dev393drivers/net/3c501.cdev->interrupt = 0;
dev400drivers/net/3c501.cdev->tbusy = 0;
dev420drivers/net/3c501.cdev->name, rxsr);
dev431drivers/net/3c501.cdev->interrupt = 0;
dev439drivers/net/3c501.cel_receive(struct device *dev)
dev451drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev461drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev468drivers/net/3c501.cskb->dev = dev;
dev476drivers/net/3c501.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev488drivers/net/3c501.cel_reset(struct device *dev)
dev497drivers/net/3c501.coutb(dev->dev_addr[i], el_base + i);
dev506drivers/net/3c501.cdev->interrupt = 0;
dev507drivers/net/3c501.cdev->tbusy = 0;
dev512drivers/net/3c501.cel1_close(struct device *dev)
dev514drivers/net/3c501.cint ioaddr = dev->base_addr;
dev517drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev519drivers/net/3c501.cdev->tbusy = 1;
dev520drivers/net/3c501.cdev->start = 0;
dev523drivers/net/3c501.cfree_irq(dev->irq);
dev525drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev531drivers/net/3c501.cel1_get_stats(struct device *dev)
dev544drivers/net/3c501.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev33drivers/net/3c503.cint el2_probe(struct device *dev);
dev34drivers/net/3c503.cint el2_pio_autoprobe(struct device *dev);
dev35drivers/net/3c503.cint el2probe1(int ioaddr, struct device *dev);
dev37drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev38drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev39drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev40drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev41drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev43drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev58drivers/net/3c503.cel2_probe(struct device *dev)
dev61drivers/net/3c503.cshort ioaddr = dev->base_addr;
dev66drivers/net/3c503.creturn ! el2probe1(ioaddr, dev);
dev81drivers/net/3c503.cif (el2probe1(ports[i], dev))
dev85drivers/net/3c503.creturn el2_pio_autoprobe(dev);
dev94drivers/net/3c503.cel2_pio_autoprobe(struct device *dev)
dev106drivers/net/3c503.c&& el2probe1(ports[i], dev))
dev116drivers/net/3c503.cel2probe1(int ioaddr, struct device *dev)
dev119drivers/net/3c503.cunsigned char *station_addr = dev->dev_addr;
dev152drivers/net/3c503.cethdev_init(dev);
dev156drivers/net/3c503.cdev->base_addr = ioaddr;
dev168drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev172drivers/net/3c503.cdev->mem_start = 0;
dev174drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev181drivers/net/3c503.cint *mem_base = (int *)dev->mem_start;
dev189drivers/net/3c503.cdev->mem_start = 0;
dev200drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev201drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev205drivers/net/3c503.cdev->mem_start, dev->rmem_start, dev->mem_end, dev->rmem_end);
dev216drivers/net/3c503.cif (dev->irq == 2)
dev217drivers/net/3c503.cdev->irq = 9;
dev218drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev220drivers/net/3c503.cdev->irq);
dev221drivers/net/3c503.cdev->irq = 0;
dev224drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev226drivers/net/3c503.cdev->start = 0;
dev227drivers/net/3c503.cdev->open = &el2_open;
dev228drivers/net/3c503.cdev->stop = &el2_close;
dev230drivers/net/3c503.cif (dev->mem_start)
dev232drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev235drivers/net/3c503.cdev->name, ei_status.name);
dev243drivers/net/3c503.cel2_open(struct device *dev)
dev246drivers/net/3c503.cif (dev->irq < 2) {
dev258drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt) == 0)
dev267drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt)) {
dev271drivers/net/3c503.cel2_init_card(dev);
dev272drivers/net/3c503.creturn ei_open(dev);
dev276drivers/net/3c503.cel2_close(struct device *dev)
dev278drivers/net/3c503.cfree_irq(dev->irq);
dev279drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev280drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev283drivers/net/3c503.cNS8390_init(dev, 0);
dev293drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev296drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev303drivers/net/3c503.cel2_init_card(dev);
dev309drivers/net/3c503.cel2_init_card(struct device *dev)
dev324drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev329drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev339drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev348drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev349drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev354drivers/net/3c503.cdev->name, (int) dest_addr);
dev357drivers/net/3c503.cdev->name, (int) dest_addr);
dev375drivers/net/3c503.cdev->name, i, count, boguscount);
dev386drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev389drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev393drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev395drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev397drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev400drivers/net/3c503.cdev->name, dev->mem_start, ring_offset,
dev401drivers/net/3c503.cdev->mem_start + ring_offset);
dev402drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev404drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev405drivers/net/3c503.creturn dev->rmem_start + count;
dev409drivers/net/3c503.cdev->name, dev->mem_start, ring_offset,
dev410drivers/net/3c503.cdev->mem_start + ring_offset);
dev411drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev427drivers/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)
dev182drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev259drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev261drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, short ioaddr);
dev262drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev263drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev265drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev266drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev267drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev269drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev270drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev280drivers/net/3c507.cel16_probe(struct device *dev)
dev284drivers/net/3c507.cint base_addr = dev->base_addr;
dev288drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev308drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev319drivers/net/3c507.c&& el16_probe1(dev, *port) == 0)
dev327drivers/net/3c507.cint el16_probe1(struct device *dev, short ioaddr)
dev331drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev346drivers/net/3c507.cdev->base_addr = ioaddr;
dev350drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev351drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev354drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev355drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev358drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev359drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev375drivers/net/3c507.c"shared memory.\n", dev->name);
dev376drivers/net/3c507.cdev->mem_start = base;
dev377drivers/net/3c507.cdev->mem_end = base + size;
dev381drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev382drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev384drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#x-%#x.\n", dev->irq,
dev385drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev391drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev392drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev394drivers/net/3c507.cdev->open    = el16_open;
dev395drivers/net/3c507.cdev->stop    = el16_close;
dev396drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev397drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev402drivers/net/3c507.cdev->buffs[i] = NULL;
dev404drivers/net/3c507.cdev->hard_header  = eth_header;
dev405drivers/net/3c507.cdev->add_arp  = eth_add_arp;
dev406drivers/net/3c507.cdev->queue_xmit = dev_queue_xmit;
dev407drivers/net/3c507.cdev->rebuild_header = eth_rebuild_header;
dev408drivers/net/3c507.cdev->type_trans = eth_type_trans;
dev410drivers/net/3c507.cdev->type    = ARPHRD_ETHER;
dev411drivers/net/3c507.cdev->hard_header_len = ETH_HLEN;
dev412drivers/net/3c507.cdev->mtu    = 1500; /* eth_mtu */
dev413drivers/net/3c507.cdev->addr_len  = ETH_ALEN;
dev415drivers/net/3c507.cdev->broadcast[i]=0xff;
dev419drivers/net/3c507.cdev->flags    = IFF_BROADCAST;
dev420drivers/net/3c507.cdev->family    = AF_INET;
dev421drivers/net/3c507.cdev->pa_addr  = 0;
dev422drivers/net/3c507.cdev->pa_brdaddr = 0;
dev423drivers/net/3c507.cdev->pa_mask  = 0;
dev424drivers/net/3c507.cdev->pa_alen  = sizeof(unsigned long);
dev432drivers/net/3c507.cel16_open(struct device *dev)
dev434drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev437drivers/net/3c507.cinit_82586_mem(dev);
dev439drivers/net/3c507.cdev->tbusy = 0;
dev440drivers/net/3c507.cdev->interrupt = 0;
dev441drivers/net/3c507.cdev->start = 1;
dev446drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev448drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev449drivers/net/3c507.cint ioaddr = dev->base_addr;
dev450drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev452drivers/net/3c507.cif (dev->tbusy) {
dev455drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev459drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev466drivers/net/3c507.cinit_82586_mem(dev);
dev474drivers/net/3c507.cdev->tbusy=0;
dev475drivers/net/3c507.cdev->trans_start = jiffies;
dev482drivers/net/3c507.cdev_tint(dev);
dev488drivers/net/3c507.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev489drivers/net/3c507.cskb->dev = dev;
dev496drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev497drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev504drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev505drivers/net/3c507.cdev->trans_start = jiffies;
dev524drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev530drivers/net/3c507.cif (dev == NULL) {
dev534drivers/net/3c507.cdev->interrupt = 1;
dev536drivers/net/3c507.cioaddr = dev->base_addr;
dev537drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev538drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev543drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev560drivers/net/3c507.cdev->tbusy = 0;
dev581drivers/net/3c507.cel16_rx(dev);
dev587drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev590drivers/net/3c507.cdev->name, status);
dev597drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev603drivers/net/3c507.cdev->name, status);
dev604drivers/net/3c507.cinit_rx_bufs(dev);
dev622drivers/net/3c507.cel16_close(struct device *dev)
dev624drivers/net/3c507.cint ioaddr = dev->base_addr;
dev625drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev627drivers/net/3c507.cdev->tbusy = 1;
dev628drivers/net/3c507.cdev->start = 0;
dev640drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev650drivers/net/3c507.cel16_get_stats(struct device *dev)
dev652drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev661drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev663drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev671drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev699drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev706drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev708drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev709drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev710drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev718drivers/net/3c507.cmemcpy((void*)dev->mem_start+0xfff6, init_words, 10);
dev720drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev723drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev726drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev727drivers/net/3c507.csizeof(dev->dev_addr));
dev733drivers/net/3c507.cinit_rx_bufs(dev);
dev747drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev758drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev764drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev766drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev767drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev769drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev792drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev802drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev806drivers/net/3c507.cdev->tbusy = 0;
dev810drivers/net/3c507.cel16_rx(struct device *dev)
dev812drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev813drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev820drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev824drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev830drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev850drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev857drivers/net/3c507.cskb->dev = dev;
dev866drivers/net/3c507.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev879drivers/net/3c507.c*(short*)(dev->mem_start + rx_tail + 2) = 0x0000;
dev85drivers/net/3c509.cstatic int el3_open(struct device *dev);
dev86drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
dev88drivers/net/3c509.cstatic void update_stats(int addr, struct device *dev);
dev89drivers/net/3c509.cstatic struct enet_statistics *el3_get_stats(struct device *dev);
dev90drivers/net/3c509.cstatic int el3_rx(struct device *dev);
dev91drivers/net/3c509.cstatic int el3_close(struct device *dev);
dev93drivers/net/3c509.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev98drivers/net/3c509.cint el3_probe(struct device *dev)
dev102drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev181drivers/net/3c509.cif (dev->base_addr != 0
dev182drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev197drivers/net/3c509.cdev->base_addr = ioaddr;
dev198drivers/net/3c509.cdev->irq = irq;
dev199drivers/net/3c509.cdev->if_port = if_port;
dev200drivers/net/3c509.csnarf_region(dev->base_addr, 16);
dev205drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev210drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev211drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev214drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev215drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev221drivers/net/3c509.cdev->open = &el3_open;
dev222drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev223drivers/net/3c509.cdev->stop = &el3_close;
dev224drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev226drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev231drivers/net/3c509.cdev->buffs[i] = NULL;
dev233drivers/net/3c509.cdev->hard_header  = eth_header;
dev234drivers/net/3c509.cdev->add_arp    = eth_add_arp;
dev235drivers/net/3c509.cdev->queue_xmit    = dev_queue_xmit;
dev236drivers/net/3c509.cdev->rebuild_header = eth_rebuild_header;
dev237drivers/net/3c509.cdev->type_trans    = eth_type_trans;
dev239drivers/net/3c509.cdev->type      = ARPHRD_ETHER;
dev240drivers/net/3c509.cdev->hard_header_len = ETH_HLEN;
dev241drivers/net/3c509.cdev->mtu      = 1500; /* eth_mtu */
dev242drivers/net/3c509.cdev->addr_len    = ETH_ALEN;
dev244drivers/net/3c509.cdev->broadcast[i]=0xff;
dev248drivers/net/3c509.cdev->flags      = IFF_BROADCAST;
dev249drivers/net/3c509.cdev->family      = AF_INET;
dev250drivers/net/3c509.cdev->pa_addr    = 0;
dev251drivers/net/3c509.cdev->pa_brdaddr    = 0;
dev252drivers/net/3c509.cdev->pa_mask    = 0;
dev253drivers/net/3c509.cdev->pa_alen    = sizeof(unsigned long);
dev297drivers/net/3c509.cel3_open(struct device *dev)
dev299drivers/net/3c509.cint ioaddr = dev->base_addr;
dev302drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt)) {
dev308drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev309drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev314drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev317drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + 8);
dev323drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev325drivers/net/3c509.cif (dev->if_port == 3)
dev328drivers/net/3c509.celse if (dev->if_port == 0) {
dev342drivers/net/3c509.cdev->interrupt = 0;
dev343drivers/net/3c509.cdev->tbusy = 0;
dev344drivers/net/3c509.cdev->start = 1;
dev349drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev355drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev357drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev358drivers/net/3c509.cint ioaddr = dev->base_addr;
dev361drivers/net/3c509.cif (dev->tbusy) {
dev362drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev366drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev367drivers/net/3c509.cdev->trans_start = jiffies;
dev371drivers/net/3c509.cdev->tbusy = 0;
dev375drivers/net/3c509.cdev_tint(dev);
dev380drivers/net/3c509.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev381drivers/net/3c509.cskb->dev = dev;
dev392drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev400drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev411drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev412drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev420drivers/net/3c509.cdev->trans_start = jiffies;
dev422drivers/net/3c509.cdev->tbusy=0;
dev453drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev457drivers/net/3c509.cif (dev == NULL) {
dev462drivers/net/3c509.cif (dev->interrupt)
dev463drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev464drivers/net/3c509.cdev->interrupt = 1;
dev466drivers/net/3c509.cioaddr = dev->base_addr;
dev470drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev475drivers/net/3c509.cel3_rx(dev);
dev482drivers/net/3c509.cdev->tbusy = 0;
dev486drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev490drivers/net/3c509.cdev->name, status);
dev498drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev502drivers/net/3c509.cdev->interrupt = 0;
dev508drivers/net/3c509.cel3_get_stats(struct device *dev)
dev510drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev513drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev523drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev525drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev552drivers/net/3c509.cel3_rx(struct device *dev)
dev554drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev555drivers/net/3c509.cint ioaddr = dev->base_addr;
dev588drivers/net/3c509.cskb->dev = dev;
dev601drivers/net/3c509.cIN_SKBUFF,dev)== 0){
dev614drivers/net/3c509.cprintk("%s: receive buffers full.\n", dev->name);
dev620drivers/net/3c509.cdev->name, sksize);
dev644drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev646drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev657drivers/net/3c509.cel3_close(struct device *dev)
dev659drivers/net/3c509.cint ioaddr = dev->base_addr;
dev662drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev664drivers/net/3c509.cdev->tbusy = 1;
dev665drivers/net/3c509.cdev->start = 0;
dev674drivers/net/3c509.cif (dev->if_port == 3)
dev677drivers/net/3c509.celse if (dev->if_port == 0) {
dev683drivers/net/3c509.cfree_irq(dev->irq);
dev690drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev692drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev84drivers/net/8390.cint ei_open(struct device *dev);
dev87drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev88drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev89drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev92drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp);
dev93drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev96drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev105drivers/net/8390.cint ei_open(struct device *dev)
dev107drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev110drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev114drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev115drivers/net/8390.cNS8390_init(dev, 1);
dev120drivers/net/8390.cdev->tbusy = 0;
dev121drivers/net/8390.cdev->interrupt = 0;
dev122drivers/net/8390.cdev->start = 1;
dev127drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev129drivers/net/8390.cint e8390_base = dev->base_addr;
dev130drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev135drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev137drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev143drivers/net/8390.cdev->name, txsr, isr);
dev147drivers/net/8390.cprintk("%s: Possible IRQ conflict on IRQ%d?", dev->name, dev->irq);
dev149drivers/net/8390.cprintk("%s: Possible network cable problem?\n", dev->name);
dev151drivers/net/8390.cei_reset_8390(dev);
dev152drivers/net/8390.cNS8390_init(dev, 1);
dev160drivers/net/8390.cdev_tint(dev);
dev164drivers/net/8390.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev165drivers/net/8390.cskb->dev = dev;
dev177drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev182drivers/net/8390.cdev->name, ei_local->irqlock ? " during interrupt" : "");
dev189drivers/net/8390.ctmp_tbusy = set_bit(0, (void*)&dev->tbusy);
dev200drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev207drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev214drivers/net/8390.cdev->name);
dev217drivers/net/8390.cdev->tbusy = tmp_tbusy;
dev222drivers/net/8390.cdev->trans_start = jiffies;
dev223drivers/net/8390.cei_block_output(dev, length, (unsigned char *)(skb+1), output_page);
dev225drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev236drivers/net/8390.cdev->trans_start = jiffies;
dev237drivers/net/8390.cei_block_output(dev, length, (unsigned char *)(skb+1),
dev239drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev250drivers/net/8390.cdev->tbusy=tmp_tbusy;
dev260drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev265drivers/net/8390.cif (dev == NULL) {
dev269drivers/net/8390.ce8390_base = dev->base_addr;
dev270drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev271drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev277drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev282drivers/net/8390.cdev->interrupt = 1;
dev288drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev299drivers/net/8390.cei_rx_overrun(dev);
dev302drivers/net/8390.cei_receive(dev);
dev306drivers/net/8390.cei_tx_intr(dev);
dev308drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev323drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev327drivers/net/8390.cdev->interrupt = 0;
dev333drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev335drivers/net/8390.cint e8390_base = dev->base_addr;
dev337drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev348drivers/net/8390.cdev->tbusy = 0;
dev350drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev351drivers/net/8390.cdev->trans_start = jiffies;
dev362drivers/net/8390.cdev->tbusy = 0;
dev364drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev365drivers/net/8390.cdev->trans_start = jiffies;
dev373drivers/net/8390.cdev->name, ei_local->lasttx);
dev376drivers/net/8390.cdev->tbusy = 0;
dev402drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev404drivers/net/8390.cint e8390_base = dev->base_addr;
dev405drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev427drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev433drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev454drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next, rx_frame.count,
dev461drivers/net/8390.cdev->name, ei_local->current_page, next_frame,
dev469drivers/net/8390.cdev->name, ei_local->stat.rx_packets);
dev471drivers/net/8390.cei_reset_8390(dev);
dev472drivers/net/8390.cNS8390_init(dev, 1);
dev481drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next, rx_frame.count);
dev490drivers/net/8390.cdev->name, sksize);
dev497drivers/net/8390.cskb->dev = dev;
dev500drivers/net/8390.cei_block_input(dev, pkt_len, (char *)(skb+1),
dev506drivers/net/8390.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev)) {
dev518drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next, rx_frame.count);
dev526drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x..", dev->name, next_frame);
dev544drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev546drivers/net/8390.cint e8390_base = dev->base_addr;
dev548drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev554drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev566drivers/net/8390.cdev->name);
dev567drivers/net/8390.cNS8390_init(dev, 1);
dev572drivers/net/8390.cei_receive(dev);
dev580drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev582drivers/net/8390.cshort ioaddr = dev->base_addr;
dev583drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev600drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev602drivers/net/8390.cshort ioaddr = dev->base_addr;
dev616drivers/net/8390.cint ethdev_init(struct device *dev)
dev623drivers/net/8390.cif (dev->priv == NULL) {
dev626drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev627drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev628drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev635drivers/net/8390.cif (dev->open == NULL)
dev636drivers/net/8390.cdev->open = &ei_open;
dev638drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev639drivers/net/8390.cdev->get_stats  = get_stats;
dev641drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev645drivers/net/8390.cdev->buffs[i] = NULL;
dev647drivers/net/8390.cdev->hard_header  = eth_header;
dev648drivers/net/8390.cdev->add_arp    = eth_add_arp;
dev649drivers/net/8390.cdev->queue_xmit    = dev_queue_xmit;
dev650drivers/net/8390.cdev->rebuild_header  = eth_rebuild_header;
dev651drivers/net/8390.cdev->type_trans    = eth_type_trans;
dev653drivers/net/8390.cdev->type    = ARPHRD_ETHER;
dev654drivers/net/8390.cdev->hard_header_len = ETH_HLEN;
dev655drivers/net/8390.cdev->mtu    = 1500; /* eth_mtu */
dev656drivers/net/8390.cdev->addr_len  = ETH_ALEN;
dev658drivers/net/8390.cdev->broadcast[i]=0xff;
dev662drivers/net/8390.cdev->flags    = IFF_BROADCAST;
dev663drivers/net/8390.cdev->family    = AF_INET;
dev664drivers/net/8390.cdev->pa_addr  = 0;
dev665drivers/net/8390.cdev->pa_brdaddr  = 0;
dev666drivers/net/8390.cdev->pa_mask  = 0;
dev667drivers/net/8390.cdev->pa_alen  = sizeof(unsigned long);
dev675drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev677drivers/net/8390.cint e8390_base = dev->base_addr;
dev678drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev707drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev729drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev732drivers/net/8390.cint e8390_base = dev->base_addr;
dev739drivers/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)
dev249drivers/net/Space.cextern int loopback_init(struct device *dev);
dev112drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev114drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev116drivers/net/at1700.cstatic int net_open(struct device *dev);
dev117drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev119drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev120drivers/net/at1700.cstatic int net_close(struct device *dev);
dev121drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev123drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev134drivers/net/at1700.cat1700_probe(struct device *dev)
dev137drivers/net/at1700.cshort *port, base_addr = dev->base_addr;
dev140drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev152drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev159drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev164drivers/net/at1700.cunsigned short *station_address = (unsigned short *)dev->dev_addr;
dev192drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev195drivers/net/at1700.cdev->base_addr = ioaddr;
dev196drivers/net/at1700.cdev->irq = irq;
dev197drivers/net/at1700.cirq2dev_map[irq] = dev;
dev215drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev216drivers/net/at1700.cprintk(" %s interface (%04x).\n", porttype[(dev->if_port>>3) & 3],
dev223drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev236drivers/net/at1700.coutb(dev->if_port, MODE13);
dev245drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev246drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev248drivers/net/at1700.cdev->open    = net_open;
dev249drivers/net/at1700.cdev->stop    = net_close;
dev250drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev251drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev253drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev259drivers/net/at1700.cdev->buffs[i] = NULL;
dev261drivers/net/at1700.cdev->hard_header  = eth_header;
dev262drivers/net/at1700.cdev->add_arp    = eth_add_arp;
dev263drivers/net/at1700.cdev->queue_xmit    = dev_queue_xmit;
dev264drivers/net/at1700.cdev->rebuild_header  = eth_rebuild_header;
dev265drivers/net/at1700.cdev->type_trans    = eth_type_trans;
dev267drivers/net/at1700.cdev->type    = ARPHRD_ETHER;
dev268drivers/net/at1700.cdev->hard_header_len = ETH_HLEN;
dev269drivers/net/at1700.cdev->mtu    = 1500; /* eth_mtu */
dev270drivers/net/at1700.cdev->addr_len  = ETH_ALEN;
dev272drivers/net/at1700.cdev->broadcast[i]=0xff;
dev276drivers/net/at1700.cdev->flags    = IFF_BROADCAST;
dev277drivers/net/at1700.cdev->family    = AF_INET;
dev278drivers/net/at1700.cdev->pa_addr  = 0;
dev279drivers/net/at1700.cdev->pa_brdaddr  = 0;
dev280drivers/net/at1700.cdev->pa_mask  = 0;
dev281drivers/net/at1700.cdev->pa_alen  = sizeof(unsigned long);
dev327drivers/net/at1700.cstatic int net_open(struct device *dev)
dev329drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev330drivers/net/at1700.cint ioaddr = dev->base_addr;
dev338drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev360drivers/net/at1700.cdev->tbusy = 0;
dev361drivers/net/at1700.cdev->interrupt = 0;
dev362drivers/net/at1700.cdev->start = 1;
dev368drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev370drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev371drivers/net/at1700.cint ioaddr = dev->base_addr;
dev373drivers/net/at1700.cif (dev->tbusy) {
dev376drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev379drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev383drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev392drivers/net/at1700.cdev->tbusy=0;
dev393drivers/net/at1700.cdev->trans_start = jiffies;
dev400drivers/net/at1700.cdev_tint(dev);
dev406drivers/net/at1700.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev407drivers/net/at1700.cskb->dev = dev;
dev415drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev416drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev422drivers/net/at1700.cprintk("%s: Transmitting a packet of length %d.\n", dev->name,
dev439drivers/net/at1700.cdev->trans_start = jiffies;
dev442drivers/net/at1700.cdev->tbusy = 0;
dev459drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev463drivers/net/at1700.cif (dev == NULL) {
dev467drivers/net/at1700.cdev->interrupt = 1;
dev469drivers/net/at1700.cioaddr = dev->base_addr;
dev470drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev475drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev478drivers/net/at1700.cnet_rx(dev);
dev487drivers/net/at1700.cdev->trans_start = jiffies;
dev488drivers/net/at1700.cdev->tbusy = 0;
dev494drivers/net/at1700.cdev->tbusy = 0;
dev504drivers/net/at1700.cnet_rx(struct device *dev)
dev506drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev507drivers/net/at1700.cint ioaddr = dev->base_addr;
dev515drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev537drivers/net/at1700.cdev->name, pkt_len);
dev545drivers/net/at1700.cdev->name, pkt_len);
dev553drivers/net/at1700.cskb->dev = dev;
dev560drivers/net/at1700.cprintk("%s: Rxed packet of length %d: ", dev->name, pkt_len);
dev570drivers/net/at1700.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev595drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev601drivers/net/at1700.cstatic int net_close(struct device *dev)
dev603drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev604drivers/net/at1700.cint ioaddr = dev->base_addr;
dev608drivers/net/at1700.cdev->tbusy = 1;
dev609drivers/net/at1700.cdev->start = 0;
dev625drivers/net/at1700.cnet_get_stats(struct device *dev)
dev627drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev644drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev646drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev219drivers/net/d_link.cstatic int    d_link_read_status(struct device *dev);
dev220drivers/net/d_link.cstatic unsigned  char  d_link_read_byte(unsigned char type, struct device *dev);
dev223drivers/net/d_link.cstatic int  d_link_open(struct device *dev);
dev224drivers/net/d_link.cstatic int  d_link_close(struct device *dev);
dev225drivers/net/d_link.cstatic struct netstats *get_stats(struct device *dev);
dev226drivers/net/d_link.cstatic int  d_link_start_xmit(struct sk_buff *skb, struct device *dev);
dev230drivers/net/d_link.cstatic int  d_link_tx_intr(struct device *dev, int irq_status);
dev231drivers/net/d_link.cstatic void  d_link_rx_intr(struct device *dev);
dev234drivers/net/d_link.cstatic void  trigger_interrupt(struct device *dev);
dev235drivers/net/d_link.cint    d_link_init(struct device *dev);
dev236drivers/net/d_link.cstatic void  adapter_init(struct device *dev);
dev286drivers/net/d_link.cd_link_read_status(struct device *dev)
dev298drivers/net/d_link.cd_link_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev316drivers/net/d_link.cd_link_open(struct device *dev)
dev321drivers/net/d_link.cprintk ("%s: unable to get IRQ %d\n", dev->name, D_LINK_IRQ);
dev324drivers/net/d_link.cirq2dev_map[D_LINK_IRQ] = dev;
dev326drivers/net/d_link.cadapter_init(dev);
dev346drivers/net/d_link.cd_link_close(struct device *dev)
dev357drivers/net/d_link.cdev->start = 0;
dev364drivers/net/d_link.cget_stats(struct device *dev)
dev366drivers/net/d_link.creturn (struct netstats *)(dev->priv);
dev370drivers/net/d_link.ctrigger_interrupt(struct device *dev)
dev384drivers/net/d_link.cd_link_start_xmit(struct sk_buff *skb, struct device *dev)
dev398drivers/net/d_link.cdev_tint(dev);
dev404drivers/net/d_link.cif(dev->rebuild_header(skb + 1, dev)) {
dev405drivers/net/d_link.cskb->dev = dev;
dev412drivers/net/d_link.ctickssofar = jiffies - dev->trans_start;
dev419drivers/net/d_link.cdev->name,
dev424drivers/net/d_link.cadapter_init(dev);
dev444drivers/net/d_link.cdev->trans_start = jiffies;
dev445drivers/net/d_link.cdev->tbusy = 0;  /* allow more packets into adapter */
dev451drivers/net/d_link.cdev->tbusy = !free_tx_pages;
dev471drivers/net/d_link.cstruct device  *dev = irq2dev_map[irq];
dev477drivers/net/d_link.cif ((dev == NULL) || (dev->start == 0) || (D_LINK_IRQ != irq)) {
dev478drivers/net/d_link.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev482drivers/net/d_link.cdev->interrupt = 1;
dev484drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev490drivers/net/d_link.cd_link_rx_intr(dev);
dev496drivers/net/d_link.cretrig = d_link_tx_intr(dev, irq_status);
dev500drivers/net/d_link.cirq_status = d_link_read_status(dev);
dev509drivers/net/d_link.cdev->interrupt = 0;
dev513drivers/net/d_link.ctrigger_interrupt(dev);
dev520drivers/net/d_link.cd_link_tx_intr(struct device *dev, int irq_status)
dev536drivers/net/d_link.c((struct netstats *)(dev->priv))->tx_packets++;
dev537drivers/net/d_link.cdev->tbusy = 0;
dev542drivers/net/d_link.cdev->trans_start = jiffies;
dev556drivers/net/d_link.cd_link_rx_intr(struct device *dev)
dev567drivers/net/d_link.csize = d_link_read_byte(RX_LEN, dev);  /* low byte */
dev568drivers/net/d_link.csize += (d_link_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev578drivers/net/d_link.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev585drivers/net/d_link.cdev->name, sksize);
dev599drivers/net/d_link.c*buffer = d_link_read_byte(READ_DATA, dev);
dev601drivers/net/d_link.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev603drivers/net/d_link.cif (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev))
dev604drivers/net/d_link.cprintk("%s: receive buffers full.\n", dev->name);
dev613drivers/net/d_link.cd_link_init(struct device *dev)
dev617drivers/net/d_link.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev625drivers/net/d_link.c(void)d_link_read_status(dev);
dev628drivers/net/d_link.cif (d_link_read_status(dev) & 0xf0) {
dev641drivers/net/d_link.cdev->dev_addr[i] = d_link_read_byte(READ_DATA, dev);
dev642drivers/net/d_link.cdev->broadcast[i] = 0xff;
dev646drivers/net/d_link.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev648drivers/net/d_link.cdev->dev_addr[0] = 0x00;
dev649drivers/net/d_link.cdev->dev_addr[1] = 0x80;
dev650drivers/net/d_link.cdev->dev_addr[2] = 0xc8;
dev651drivers/net/d_link.cdev->dev_addr[3] &= 0x0f;
dev652drivers/net/d_link.cdev->dev_addr[3] |= 0x70;
dev658drivers/net/d_link.cprintk(", Ethernet Address: %2.2X", dev->dev_addr[0]);
dev660drivers/net/d_link.cprintk(":%2.2X",dev->dev_addr[i]);
dev664drivers/net/d_link.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev665drivers/net/d_link.cmemset(dev->priv, 0, sizeof(struct netstats));
dev668drivers/net/d_link.cdev->buffs[i] = NULL;
dev670drivers/net/d_link.cdev->get_stats = get_stats;
dev671drivers/net/d_link.cdev->hard_header = eth_header;
dev672drivers/net/d_link.cdev->add_arp = eth_add_arp;
dev673drivers/net/d_link.cdev->queue_xmit = dev_queue_xmit;
dev674drivers/net/d_link.cdev->rebuild_header = eth_rebuild_header;
dev675drivers/net/d_link.cdev->type_trans = eth_type_trans;
dev677drivers/net/d_link.cdev->open = d_link_open;
dev678drivers/net/d_link.cdev->stop = d_link_close;
dev679drivers/net/d_link.cdev->hard_start_xmit = &d_link_start_xmit;
dev682drivers/net/d_link.cdev->type = ARPHRD_ETHER;
dev683drivers/net/d_link.cdev->hard_header_len = ETH_HLEN;
dev684drivers/net/d_link.cdev->mtu = 1500; /* eth_mtu */
dev685drivers/net/d_link.cdev->addr_len  = ETH_ALEN;
dev688drivers/net/d_link.cdev->flags = IFF_BROADCAST;
dev689drivers/net/d_link.cdev->family = AF_INET;
dev690drivers/net/d_link.cdev->pa_addr = 0;
dev691drivers/net/d_link.cdev->pa_brdaddr = 0;
dev692drivers/net/d_link.cdev->pa_mask = 0;
dev693drivers/net/d_link.cdev->pa_alen = sizeof(unsigned long);
dev700drivers/net/d_link.cadapter_init(struct device *dev)
dev705drivers/net/d_link.cdev->tbusy = 0;    /* Transmit busy...  */
dev706drivers/net/d_link.cdev->interrupt = 0;
dev707drivers/net/d_link.cdev->start = 1;
dev721drivers/net/d_link.cd_link_put_byte(dev->dev_addr[i]);
dev286drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev288drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev289drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev290drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev292drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev293drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev294drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev296drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev300drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev301drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev302drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev312drivers/net/eexpress.cexpress_probe(struct device *dev)
dev316drivers/net/eexpress.cint base_addr = dev->base_addr;
dev319drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev337drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev344drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev349drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev366drivers/net/eexpress.cdev->base_addr = ioaddr;
dev369drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev370drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev381drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev382drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev384drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev393drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev394drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev400drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev401drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev403drivers/net/eexpress.cdev->open    = eexp_open;
dev404drivers/net/eexpress.cdev->stop    = eexp_close;
dev405drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev406drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev408drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev414drivers/net/eexpress.cdev->buffs[i] = NULL;
dev416drivers/net/eexpress.cdev->hard_header  = eth_header;
dev417drivers/net/eexpress.cdev->add_arp  = eth_add_arp;
dev418drivers/net/eexpress.cdev->queue_xmit = dev_queue_xmit;
dev419drivers/net/eexpress.cdev->rebuild_header = eth_rebuild_header;
dev420drivers/net/eexpress.cdev->type_trans = eth_type_trans;
dev422drivers/net/eexpress.cdev->type    = ARPHRD_ETHER;
dev423drivers/net/eexpress.cdev->hard_header_len = ETH_HLEN;
dev424drivers/net/eexpress.cdev->mtu    = 1500; /* eth_mtu */
dev425drivers/net/eexpress.cdev->addr_len  = ETH_ALEN;
dev427drivers/net/eexpress.cdev->broadcast[i]=0xff;
dev431drivers/net/eexpress.cdev->flags    = IFF_BROADCAST;
dev432drivers/net/eexpress.cdev->family    = AF_INET;
dev433drivers/net/eexpress.cdev->pa_addr  = 0;
dev434drivers/net/eexpress.cdev->pa_brdaddr = 0;
dev435drivers/net/eexpress.cdev->pa_mask  = 0;
dev436drivers/net/eexpress.cdev->pa_alen  = sizeof(unsigned long);
dev446drivers/net/eexpress.ceexp_open(struct device *dev)
dev448drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev450drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev453drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev455drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev456drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt)) {
dev461drivers/net/eexpress.cinit_82586_mem(dev);
dev464drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev466drivers/net/eexpress.cdev->tbusy = 0;
dev467drivers/net/eexpress.cdev->interrupt = 0;
dev468drivers/net/eexpress.cdev->start = 1;
dev473drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev475drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev476drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev478drivers/net/eexpress.cif (dev->tbusy) {
dev481drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev485drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev493drivers/net/eexpress.cinit_82586_mem(dev);
dev501drivers/net/eexpress.cdev->tbusy=0;
dev502drivers/net/eexpress.cdev->trans_start = jiffies;
dev509drivers/net/eexpress.cdev_tint(dev);
dev515drivers/net/eexpress.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev516drivers/net/eexpress.cskb->dev = dev;
dev523drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev524drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev530drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev531drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev532drivers/net/eexpress.cdev->trans_start = jiffies;
dev534drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev552drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev557drivers/net/eexpress.cif (dev == NULL) {
dev561drivers/net/eexpress.cdev->interrupt = 1;
dev563drivers/net/eexpress.cioaddr = dev->base_addr;
dev564drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev569drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev573drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev587drivers/net/eexpress.cdev->tbusy = 0;
dev608drivers/net/eexpress.ceexp_rx(dev);
dev614drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev617drivers/net/eexpress.cdev->name, status);
dev624drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev630drivers/net/eexpress.cdev->name, status);
dev631drivers/net/eexpress.cinit_rx_bufs(dev);
dev641drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev645drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev650drivers/net/eexpress.ceexp_close(struct device *dev)
dev652drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev654drivers/net/eexpress.cdev->tbusy = 1;
dev655drivers/net/eexpress.cdev->start = 0;
dev664drivers/net/eexpress.cfree_irq(dev->irq);
dev666drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev676drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev678drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev693drivers/net/eexpress.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev695drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev759drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev761drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev762drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev777drivers/net/eexpress.cport_write(ioaddr, dev->dev_addr, 3);
dev787drivers/net/eexpress.cinit_rx_bufs(dev);
dev801drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev811drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev818drivers/net/eexpress.cinit_rx_bufs(struct device *dev)
dev820drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev821drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev859drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev861drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev862drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev899drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev904drivers/net/eexpress.cdev->tbusy = 0;
dev908drivers/net/eexpress.ceexp_rx(struct device *dev)
dev910drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev911drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev933drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev953drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev960drivers/net/eexpress.cskb->dev = dev;
dev970drivers/net/eexpress.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev986drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev1000drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
dev44drivers/net/hp.cint hp_probe(struct device *dev);
dev45drivers/net/hp.cint hpprobe1(int ioaddr, struct device *dev);
dev47drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev48drivers/net/hp.cstatic int hp_block_input(struct device *dev, int count,
dev50drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev52drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev63drivers/net/hp.cint hp_probe(struct device *dev)
dev66drivers/net/hp.cshort ioaddr = dev->base_addr;
dev69drivers/net/hp.creturn ! hpprobe1(ioaddr, dev);
dev78drivers/net/hp.cif (inb_p(*port) != 0xff && hpprobe1(*port, dev)) {
dev82drivers/net/hp.cdev->base_addr = ioaddr;
dev86drivers/net/hp.cint hpprobe1(int ioaddr, struct device *dev)
dev89drivers/net/hp.cunsigned char *station_addr = dev->dev_addr;
dev99drivers/net/hp.cethdev_init(dev);
dev114drivers/net/hp.cprintk("%s: %s at %#3x,", dev->name, ei_status.name, ioaddr);
dev121drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev124drivers/net/hp.cif (dev->irq < 2) {
dev129drivers/net/hp.cif (request_irq (dev->irq = *irqp, NULL) != -EBUSY) {
dev132drivers/net/hp.coutb_p(irqmap[dev->irq] | HP_RUN, ioaddr + HP_CONFIGURE);
dev134drivers/net/hp.cif (dev->irq == autoirq_report(0)   /* It's a good IRQ line! */
dev135drivers/net/hp.c&& request_irq (dev->irq, &ei_interrupt) == 0) {
dev136drivers/net/hp.cprintk(" selecting IRQ %d.\n", dev->irq);
dev146drivers/net/hp.cif (dev->irq == 2)
dev147drivers/net/hp.cdev->irq = 9;
dev148drivers/net/hp.cif (irqaction(dev->irq, &ei_sigaction)) {
dev149drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev164drivers/net/hp.chp_init_card(dev);
dev165drivers/net/hp.creturn dev->base_addr;
dev169drivers/net/hp.chp_reset_8390(struct device *dev)
dev171drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev194drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev206drivers/net/hp.chp_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev208drivers/net/hp.cint nic_base = dev->base_addr;
dev234drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev241drivers/net/hp.chp_block_output(struct device *dev, int count,
dev244drivers/net/hp.cint nic_base = dev->base_addr;
dev291drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev299drivers/net/hp.chp_init_card(struct device *dev)
dev301drivers/net/hp.cint irq = dev->irq;
dev302drivers/net/hp.cNS8390_init(dev, 0);
dev304drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev48drivers/net/lance.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev210drivers/net/lance.cstatic int lance_open(struct device *dev);
dev211drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev212drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev213drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev215drivers/net/lance.cstatic int lance_close(struct device *dev);
dev216drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev218drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev243drivers/net/lance.cstruct device *dev;
dev263drivers/net/lance.cdev = init_etherdev(0, sizeof(struct lance_private)
dev267drivers/net/lance.cprintk("%s: LANCE at %#3x,", dev->name, ioaddr);
dev272drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev274drivers/net/lance.cdev->base_addr = ioaddr;
dev278drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev279drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev280drivers/net/lance.clp->rx_buffs = (long)dev->priv + sizeof(struct lance_private);
dev302drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev318drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev319drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev320drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev323drivers/net/lance.cif (dev->mem_start & 0x07)
dev324drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev325drivers/net/lance.celse if (dev->dma == 0)
dev326drivers/net/lance.cdev->dma = LANCE_DMA;
dev330drivers/net/lance.cif (dev->irq < 2) {
dev337drivers/net/lance.cdev->irq = autoirq_report(1);
dev338drivers/net/lance.cif (dev->irq)
dev339drivers/net/lance.cprintk(", probed IRQ %d, fixed at DMA %d.\n", dev->irq, dev->dma);
dev345drivers/net/lance.cprintk(" assigned IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev359drivers/net/lance.cdev->open = &lance_open;
dev360drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev361drivers/net/lance.cdev->stop = &lance_close;
dev362drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev364drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev372drivers/net/lance.clance_open(struct device *dev)
dev374drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev375drivers/net/lance.cint ioaddr = dev->base_addr;
dev378drivers/net/lance.cif (request_irq(dev->irq, &lance_interrupt)) {
dev382drivers/net/lance.cif (request_dma(dev->dma)) {
dev383drivers/net/lance.cfree_irq(dev->irq);
dev386drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev392drivers/net/lance.cenable_dma(dev->dma);
dev393drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev407drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev410drivers/net/lance.clance_init_ring(dev);
dev423drivers/net/lance.cdev->tbusy = 0;
dev424drivers/net/lance.cdev->interrupt = 0;
dev425drivers/net/lance.cdev->start = 1;
dev434drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev441drivers/net/lance.clance_init_ring(struct device *dev)
dev443drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev461drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev469drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev471drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev472drivers/net/lance.cint ioaddr = dev->base_addr;
dev476drivers/net/lance.cif (dev->tbusy) {
dev477drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev482drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev501drivers/net/lance.clance_init_ring(dev);
dev504drivers/net/lance.cdev->tbusy=0;
dev505drivers/net/lance.cdev->trans_start = jiffies;
dev511drivers/net/lance.cdev_tint(dev);
dev516drivers/net/lance.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev517drivers/net/lance.cskb->dev = dev;
dev528drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev535drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev536drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev560drivers/net/lance.cdev->name, (int)(skb+1));
dev575drivers/net/lance.cdev->trans_start = jiffies;
dev578drivers/net/lance.cdev->tbusy=0;
dev588drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev592drivers/net/lance.cif (dev == NULL) {
dev597drivers/net/lance.cioaddr = dev->base_addr;
dev598drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev599drivers/net/lance.cif (dev->interrupt)
dev600drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev602drivers/net/lance.cdev->interrupt = 1;
dev604drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev605drivers/net/lance.ccsr0 = inw(dev->base_addr + LANCE_DATA);
dev608drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev612drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev615drivers/net/lance.clance_rx(dev);
dev621drivers/net/lance.c&& dev->tbusy) {
dev623drivers/net/lance.cdev->tbusy = 0;
dev680drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev681drivers/net/lance.coutw(0x7f40, dev->base_addr + LANCE_DATA);
dev685drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev686drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev688drivers/net/lance.cdev->interrupt = 0;
dev693drivers/net/lance.clance_rx(struct device *dev)
dev695drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev716drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev723drivers/net/lance.cskb->dev = dev;
dev731drivers/net/lance.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev751drivers/net/lance.clance_close(struct device *dev)
dev753drivers/net/lance.cint ioaddr = dev->base_addr;
dev754drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev756drivers/net/lance.cdev->start = 0;
dev757drivers/net/lance.cdev->tbusy = 1;
dev766drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev772drivers/net/lance.cdisable_dma(dev->dma);
dev774drivers/net/lance.cfree_irq(dev->irq);
dev775drivers/net/lance.cfree_dma(dev->dma);
dev777drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev783drivers/net/lance.clance_get_stats(struct device *dev)
dev785drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev786drivers/net/lance.cshort ioaddr = dev->base_addr;
dev807drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev809drivers/net/lance.cshort ioaddr = dev->base_addr;
dev35drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev45drivers/net/ne.cint ne_probe(struct device *dev);
dev46drivers/net/ne.cstatic int neprobe1(int ioaddr, struct device *dev, int verbose);
dev48drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev49drivers/net/ne.cstatic int ne_block_input(struct device *dev, int count,
dev51drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev76drivers/net/ne.cint ne_probe(struct device *dev)
dev79drivers/net/ne.cshort ioaddr = dev->base_addr;
dev84drivers/net/ne.creturn ! neprobe1(ioaddr, dev, 1);
dev91drivers/net/ne.cif (inb_p(*port) != 0xff && neprobe1(*port, dev, 0)) {
dev92drivers/net/ne.cdev->base_addr = *port;
dev96drivers/net/ne.cdev->base_addr = ioaddr;
dev100drivers/net/ne.cstatic int neprobe1(int ioaddr, struct device *dev, int verbose)
dev177drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev206drivers/net/ne.cif (dev->irq < 2) {
dev213drivers/net/ne.cdev->irq = autoirq_report(0);
dev215drivers/net/ne.cprintk(" autoirq is %d", dev->irq);
dev216drivers/net/ne.c} else if (dev->irq == 2)
dev219drivers/net/ne.cdev->irq = 9;
dev224drivers/net/ne.cint irqval = irqaction (dev->irq, &ei_sigaction);
dev226drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev231drivers/net/ne.cdev->base_addr = ioaddr;
dev237drivers/net/ne.cethdev_init(dev);
dev239drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev258drivers/net/ne.cNS8390_init(dev, 0);
dev259drivers/net/ne.creturn dev->base_addr;
dev265drivers/net/ne.cne_reset_8390(struct device *dev)
dev277drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev288drivers/net/ne.cne_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev291drivers/net/ne.cint nic_base = dev->base_addr;
dev297drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock);
dev333drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev340drivers/net/ne.cne_block_output(struct device *dev, int count,
dev355drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock);
dev408drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev95drivers/net/net_init.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev101drivers/net/net_init.cif (dev == NULL) {
dev105drivers/net/net_init.cdev = (struct device *)*mem_startp;
dev108drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev109drivers/net/net_init.cmemset(dev, 0, sizeof(alloc_size));
dev110drivers/net/net_init.cdev->name = (char *)(dev + 1);
dev112drivers/net/net_init.cdev->priv = dev->name + sizeof("eth%d ");
dev116drivers/net/net_init.cif (dev->name  &&  dev->name[0] == '\0')
dev117drivers/net/net_init.csprintf(dev->name, "eth%d", next_ethdev_number++);
dev120drivers/net/net_init.cdev->buffs[i] = NULL;
dev122drivers/net/net_init.cdev->hard_header  = eth_header;
dev123drivers/net/net_init.cdev->add_arp    = eth_add_arp;
dev124drivers/net/net_init.cdev->queue_xmit    = dev_queue_xmit;
dev125drivers/net/net_init.cdev->rebuild_header  = eth_rebuild_header;
dev126drivers/net/net_init.cdev->type_trans    = eth_type_trans;
dev128drivers/net/net_init.cdev->type      = ARPHRD_ETHER;
dev129drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev130drivers/net/net_init.cdev->mtu      = 1500; /* eth_mtu */
dev131drivers/net/net_init.cdev->addr_len    = ETH_ALEN;
dev133drivers/net/net_init.cdev->broadcast[i]=0xff;
dev137drivers/net/net_init.cdev->flags      = IFF_BROADCAST;
dev138drivers/net/net_init.cdev->family      = AF_INET;
dev139drivers/net/net_init.cdev->pa_addr    = 0;
dev140drivers/net/net_init.cdev->pa_brdaddr    = 0;
dev141drivers/net/net_init.cdev->pa_mask    = 0;
dev142drivers/net/net_init.cdev->pa_alen    = sizeof(unsigned long);
dev149drivers/net/net_init.c(*old_devp)->next = dev;
dev150drivers/net/net_init.cdev->next = 0;
dev152drivers/net/net_init.creturn dev;
dev136drivers/net/plip.cextern int plip_probe(int ioaddr, struct device *dev);
dev137drivers/net/plip.cstatic int plip_open(struct device *dev);
dev138drivers/net/plip.cstatic int plip_close(struct device *dev);
dev139drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev140drivers/net/plip.cstatic int plip_header (unsigned char *buff, struct device *dev,
dev150drivers/net/plip.cstatic void plip_device_clear(struct device *dev);
dev151drivers/net/plip.cstatic void plip_receiver_error(struct device *dev);
dev152drivers/net/plip.cstatic void plip_set_physicaladdr(struct device *dev, unsigned long ipaddr);
dev154drivers/net/plip.cstatic int plip_send_enethdr(struct device *dev, struct ethhdr *eth);
dev155drivers/net/plip.cstatic int plip_rebuild_enethdr(struct device *dev, struct ethhdr *eth,
dev160drivers/net/plip.cstatic int plip_receive_packet(struct device *dev);
dev161drivers/net/plip.cstatic int plip_send_packet(struct device *dev, unsigned char *buf, int length);
dev162drivers/net/plip.cstatic int plip_send_start(struct device *dev, struct ethhdr *eth);
dev164drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev167drivers/net/plip.cplip_init(struct device *dev)
dev169drivers/net/plip.cint port_base = dev->base_addr;
dev188drivers/net/plip.cdev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL);
dev189drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct netstats));
dev192drivers/net/plip.cdev->buffs[i] = NULL;
dev193drivers/net/plip.cdev->hard_header = &plip_header;
dev194drivers/net/plip.cdev->add_arp = eth_add_arp;
dev195drivers/net/plip.cdev->queue_xmit = dev_queue_xmit;
dev196drivers/net/plip.cdev->rebuild_header = eth_rebuild_header;
dev197drivers/net/plip.cdev->type_trans = eth_type_trans;
dev199drivers/net/plip.cdev->open = &plip_open;
dev200drivers/net/plip.cdev->stop = &plip_close;
dev201drivers/net/plip.cdev->hard_start_xmit = &plip_tx_packet;
dev202drivers/net/plip.cdev->get_stats = &plip_get_stats;
dev205drivers/net/plip.cdev->type = ARPHRD_ETHER;
dev206drivers/net/plip.cdev->hard_header_len = ETH_HLEN;
dev207drivers/net/plip.cdev->mtu = PLIP_MTU;  /* PLIP may later negotiate max pkt size */
dev208drivers/net/plip.cdev->addr_len = ETH_ALEN;
dev209drivers/net/plip.cfor (i = 0; i < dev->addr_len; i++) {
dev210drivers/net/plip.cdev->broadcast[i]=0xff;
dev211drivers/net/plip.cdev->dev_addr[i] = 0;
dev214drivers/net/plip.cdev->name, dev->base_addr, dev->irq);
dev229drivers/net/plip.cplip_open(struct device *dev)
dev231drivers/net/plip.cif (dev->irq == 0)
dev232drivers/net/plip.cdev->irq = 7;
dev234drivers/net/plip.cif (request_irq(dev->irq , &plip_interrupt) != 0) {
dev236drivers/net/plip.cPRINTK(("%s: couldn't get IRQ %d.\n", dev->name, dev->irq));
dev240drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev242drivers/net/plip.cplip_device_clear(dev);
dev243drivers/net/plip.cdev->tbusy = 0;
dev244drivers/net/plip.cdev->interrupt = 0;
dev245drivers/net/plip.cdev->start = 1;
dev251drivers/net/plip.cplip_close(struct device *dev)
dev253drivers/net/plip.cdev->tbusy = 1;
dev254drivers/net/plip.cdev->start = 0;
dev256drivers/net/plip.cfree_irq(dev->irq);
dev257drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev259drivers/net/plip.coutb(0x00, dev->base_addr);    /* Release the interrupt. */
dev264drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev268drivers/net/plip.cif (dev->tbusy || dev->interrupt) {  /* Do timeouts, to avoid hangs. */
dev269drivers/net/plip.cint tickssofar = jiffies - dev->trans_start;
dev272drivers/net/plip.cprintk("%s: transmit timed out\n", dev->name);
dev274drivers/net/plip.cplip_device_clear(dev);
dev282drivers/net/plip.cdev_tint(dev);
dev288drivers/net/plip.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev289drivers/net/plip.cskb->dev = dev;
dev295drivers/net/plip.cdev->trans_start = jiffies;
dev296drivers/net/plip.cret_val = plip_send_packet(dev, (unsigned char *)(skb+1), skb->len);
dev299drivers/net/plip.cdev->tbusy = 0;
dev305drivers/net/plip.cplip_header (unsigned char *buff, struct device *dev,
dev309drivers/net/plip.cif (dev->dev_addr[0] == 0) {
dev311drivers/net/plip.cplip_set_physicaladdr(dev, h_source);
dev313drivers/net/plip.creturn eth_header(buff, dev, type, h_dest, h_source, len);
dev317drivers/net/plip.cplip_device_clear(struct device *dev)
dev319drivers/net/plip.cdev->interrupt = 0;
dev320drivers/net/plip.cdev->tbusy = 0;
dev321drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev322drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev326drivers/net/plip.cplip_receiver_error(struct device *dev)
dev328drivers/net/plip.cdev->interrupt = 0;
dev329drivers/net/plip.cdev->tbusy = 0;
dev330drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev331drivers/net/plip.coutb(0x10, dev->base_addr + PAR_CONTROL);    /* Enable the rx interrupt. */
dev335drivers/net/plip.cget_byte(struct device *dev)
dev341drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev345drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev352drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev354drivers/net/plip.coutb(0x11, dev->base_addr + PAR_DATA);
dev358drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev365drivers/net/plip.cval = inb(dev->base_addr + PAR_STATUS);
dev368drivers/net/plip.coutb(0x01, dev->base_addr + PAR_DATA);
dev383drivers/net/plip.cstruct device *dev = irq2dev_map[irq];
dev386drivers/net/plip.cif (dev == NULL) {
dev390drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev391drivers/net/plip.cif (dev->tbusy || dev->interrupt) return;
dev392drivers/net/plip.cdev->interrupt = 1;
dev393drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL);  /* Disable the rx interrupt. */
dev395drivers/net/plip.cPRINTK2(("%s: interrupt.  ", dev->name));
dev400drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0xc0) {
dev403drivers/net/plip.cdev->name, inb(dev->base_addr + PAR_STATUS)));
dev404drivers/net/plip.cplip_device_clear(dev);
dev409drivers/net/plip.cif (plip_receive_packet(dev)) {
dev412drivers/net/plip.cplip_receiver_error(dev);
dev414drivers/net/plip.cplip_device_clear(dev);
dev419drivers/net/plip.cplip_receive_packet(struct device *dev)
dev428drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev430drivers/net/plip.coutb(1, dev->base_addr + PAR_DATA);    /* Ack: 'Ready' */
dev434drivers/net/plip.cplip_type = get_byte(dev);
dev436drivers/net/plip.clength = get_byte(dev) << 8;
dev437drivers/net/plip.clength |= get_byte(dev);
dev444drivers/net/plip.c*eth_p = get_byte(dev);
dev452drivers/net/plip.ch_dest = get_byte(dev);
dev453drivers/net/plip.ch_source = get_byte(dev);
dev454drivers/net/plip.ctype = get_byte(dev) << 8;
dev455drivers/net/plip.ctype |= get_byte(dev);
dev456drivers/net/plip.cplip_rebuild_enethdr(dev, &eth, h_dest, h_source, type);
dev460drivers/net/plip.cPRINTK(("%s: wrong header octet\n", dev->name));
dev463drivers/net/plip.cif (length > dev->mtu || length < 8) {
dev464drivers/net/plip.cPRINTK2(("%s: bogus packet size %d.\n", dev->name, length));
dev477drivers/net/plip.cdev->name, sksize));
dev495drivers/net/plip.cunsigned char new_byte = get_byte(dev);
dev500drivers/net/plip.cif (checksum != get_byte(dev)) {
dev504drivers/net/plip.c} else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) {
dev505drivers/net/plip.cprintk("%s: rcv buff full.\n", dev->name);
dev515drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev517drivers/net/plip.cwhile ( (inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0x80 ) {
dev530drivers/net/plip.cstatic int send_byte(struct device *dev, unsigned char val)
dev534drivers/net/plip.cif (!(inb(dev->base_addr+PAR_STATUS) & 0x08)) {
dev539drivers/net/plip.coutb(val, dev->base_addr); /* this makes data bits more stable */
dev540drivers/net/plip.coutb(0x10 | val, dev->base_addr);
dev542drivers/net/plip.cwhile( inb(dev->base_addr+PAR_STATUS) & 0x80 )
dev547drivers/net/plip.coutb(0x10 | (val >> 4), dev->base_addr);
dev548drivers/net/plip.coutb(val >> 4, dev->base_addr);
dev550drivers/net/plip.cwhile( (inb(dev->base_addr+PAR_STATUS) & 0x80) == 0 )
dev572drivers/net/plip.cplip_send_start(struct device *dev, struct ethhdr *eth)
dev577drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev582drivers/net/plip.cwhile ( ((status = inb(dev->base_addr+PAR_STATUS)) & 0x08) == 0 ) {
dev583drivers/net/plip.cdev->tbusy = 1;
dev584drivers/net/plip.coutb(0x00, dev->base_addr + PAR_CONTROL); /* Disable my rx intr. */
dev585drivers/net/plip.coutb(0x08, dev->base_addr + PAR_DATA);   /* Trigger remote rx intr. */
dev595drivers/net/plip.cif (plip_receive_packet(dev)) {
dev598drivers/net/plip.coutb(0x02, dev->base_addr + PAR_DATA);
dev600drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev608drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev614drivers/net/plip.cplip_device_clear(dev);
dev617drivers/net/plip.cdev->name));
dev626drivers/net/plip.cplip_send_packet(struct device *dev, unsigned char *buf, int length)
dev633drivers/net/plip.cdev->name, length, buf[0], buf[1], buf[2], buf[3], buf[4]));
dev634drivers/net/plip.cif (length > dev->mtu) {
dev635drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, length);
dev638drivers/net/plip.clocalstats = (struct netstats*) dev->priv;
dev644drivers/net/plip.cwhile ( (i = (inb(dev->base_addr+PAR_STATUS) & 0xe8)) != 0x80 ) {
dev663drivers/net/plip.cif (plip_send_start(dev, (struct ethhdr *)buf) < 0)
dev680drivers/net/plip.csend_byte(dev, plip_type); /* send header octet */
dev690drivers/net/plip.csend_byte(dev, length >> 8); send_byte(dev, length);
dev698drivers/net/plip.cplip_send_enethdr(dev, (struct ethhdr*)buf);
dev702drivers/net/plip.csend_byte(dev, *buf);
dev709drivers/net/plip.cif (send_byte(dev, buf[i]) < 0) {
dev714drivers/net/plip.csend_byte(dev, checksum & 0xff);
dev720drivers/net/plip.coutb(0x00, dev->base_addr + PAR_DATA);
dev723drivers/net/plip.cwhile ((inb(dev->base_addr + PAR_STATUS) & 0xe8) != 0x80) {
dev731drivers/net/plip.cif (inb(dev->base_addr + PAR_STATUS) & 0x10) {
dev736drivers/net/plip.cplip_device_clear(dev);
dev746drivers/net/plip.cplip_set_physicaladdr(struct device *dev, unsigned long ipaddr)
dev753drivers/net/plip.cunsigned char *addr = dev->dev_addr;
dev757drivers/net/plip.cPRINTK2(("%s: set physical address to %08x\n", dev->name, ipaddr));
dev779drivers/net/plip.cplip_send_enethdr(struct device *dev, struct ethhdr *eth)
dev781drivers/net/plip.csend_byte(dev, eth->h_dest[ETH_ALEN-1]);
dev782drivers/net/plip.csend_byte(dev, eth->h_source[ETH_ALEN-1]);
dev783drivers/net/plip.csend_byte(dev, eth->h_proto >> 8);
dev784drivers/net/plip.csend_byte(dev, eth->h_proto);
dev789drivers/net/plip.cplip_rebuild_enethdr(struct device *dev, struct ethhdr *eth,
dev794drivers/net/plip.cmemcpy(eth->h_dest, dev->dev_addr, ETH_ALEN-1);
dev796drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, ETH_ALEN-1);
dev823drivers/net/plip.cplip_get_stats(struct device *dev)
dev825drivers/net/plip.cstruct netstats *localstats = (struct netstats*) dev->priv;
dev106drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev108drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, short ioaddr);
dev109drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev110drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev112drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev113drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev114drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev116drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev120drivers/net/skeleton.c#define tx_done(dev) 1
dev122drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev132drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev135drivers/net/skeleton.cint base_addr = dev->base_addr;
dev138drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev148drivers/net/skeleton.cdev->base_addr = ioaddr;
dev149drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev153drivers/net/skeleton.cdev->base_addr = base_addr;
dev157drivers/net/skeleton.cint netcard_probe1(struct device *dev, short ioaddr)
dev172drivers/net/skeleton.cprintk("%s: %s found at %#3x, IRQ %d.\n", dev->name,
dev173drivers/net/skeleton.c"network card", dev->base_addr, dev->irq);
dev180drivers/net/skeleton.cif (dev->irq == -1)
dev182drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev186drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev188drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev189drivers/net/skeleton.c} else if (dev->irq == 2)
dev192drivers/net/skeleton.cdev->irq = 9;
dev194drivers/net/skeleton.c{   int irqval = request_irq(dev->irq, &net_interrupt);
dev196drivers/net/skeleton.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev197drivers/net/skeleton.cdev->irq, irqval);
dev210drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev211drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev213drivers/net/skeleton.cdev->open    = net_open;
dev214drivers/net/skeleton.cdev->stop    = net_close;
dev215drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev216drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev218drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev224drivers/net/skeleton.cdev->buffs[i] = NULL;
dev226drivers/net/skeleton.cdev->hard_header  = eth_header;
dev227drivers/net/skeleton.cdev->add_arp    = eth_add_arp;
dev228drivers/net/skeleton.cdev->queue_xmit    = dev_queue_xmit;
dev229drivers/net/skeleton.cdev->rebuild_header  = eth_rebuild_header;
dev230drivers/net/skeleton.cdev->type_trans    = eth_type_trans;
dev232drivers/net/skeleton.cdev->type      = ARPHRD_ETHER;
dev233drivers/net/skeleton.cdev->hard_header_len = ETH_HLEN;
dev234drivers/net/skeleton.cdev->mtu      = 1500; /* eth_mtu */
dev235drivers/net/skeleton.cdev->addr_len    = ETH_ALEN;
dev237drivers/net/skeleton.cdev->broadcast[i]=0xff;
dev241drivers/net/skeleton.cdev->flags      = IFF_BROADCAST;
dev242drivers/net/skeleton.cdev->family      = AF_INET;
dev243drivers/net/skeleton.cdev->pa_addr    = 0;
dev244drivers/net/skeleton.cdev->pa_brdaddr    = 0;
dev245drivers/net/skeleton.cdev->pa_mask    = 0;
dev246drivers/net/skeleton.cdev->pa_alen    = sizeof(unsigned long);
dev260drivers/net/skeleton.cnet_open(struct device *dev)
dev262drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev263drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev267drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt)) {
dev273drivers/net/skeleton.cif (request_dma(dev->dma)) {
dev274drivers/net/skeleton.cfree_irq(dev->irq);
dev277drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev284drivers/net/skeleton.cdev->tbusy = 0;
dev285drivers/net/skeleton.cdev->interrupt = 0;
dev286drivers/net/skeleton.cdev->start = 1;
dev291drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev293drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev294drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev296drivers/net/skeleton.cif (dev->tbusy) {
dev299drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev302drivers/net/skeleton.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev303drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev305drivers/net/skeleton.cchipset_init(dev, 1);
dev306drivers/net/skeleton.cdev->tbusy=0;
dev307drivers/net/skeleton.cdev->trans_start = jiffies;
dev314drivers/net/skeleton.cdev_tint(dev);
dev320drivers/net/skeleton.cif (!skb->arp  &&  dev->rebuild_header(skb+1, dev)) {
dev321drivers/net/skeleton.cskb->dev = dev;
dev329drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev330drivers/net/skeleton.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev336drivers/net/skeleton.cdev->trans_start = jiffies;
dev354drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev358drivers/net/skeleton.cif (dev == NULL) {
dev362drivers/net/skeleton.cdev->interrupt = 1;
dev364drivers/net/skeleton.cioaddr = dev->base_addr;
dev365drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev371drivers/net/skeleton.cnet_rx(dev);
dev375drivers/net/skeleton.cdev->tbusy = 0;
dev389drivers/net/skeleton.cnet_rx(struct device *dev)
dev391drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev392drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev415drivers/net/skeleton.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev422drivers/net/skeleton.cskb->dev = dev;
dev425drivers/net/skeleton.cmemcpy((unsigned char *) (skb + 1), (void*)dev->rmem_start,
dev434drivers/net/skeleton.cif (dev_rint((unsigned char*)skb, pkt_len, IN_SKBUFF, dev) != 0) {
dev452drivers/net/skeleton.cnet_close(struct device *dev)
dev454drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev455drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev459drivers/net/skeleton.cdev->tbusy = 1;
dev460drivers/net/skeleton.cdev->start = 0;
dev464drivers/net/skeleton.cdisable_dma(dev->dma);
dev469drivers/net/skeleton.cfree_irq(dev->irq);
dev470drivers/net/skeleton.cfree_dma(dev->dma);
dev472drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev483drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev485drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev486drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev504drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev506drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev127drivers/net/slip.csl_initialize(struct slip *sl, struct device *dev)
dev139drivers/net/slip.csl->line    = dev->base_addr;
dev141drivers/net/slip.csl->dev    = dev;
dev151drivers/net/slip.cdev->rmem_end    = (unsigned long) NULL;
dev152drivers/net/slip.cdev->rmem_start  = (unsigned long) NULL;
dev153drivers/net/slip.cdev->mem_end    = (unsigned long) NULL;
dev154drivers/net/slip.cdev->mem_start  = (unsigned long) NULL;
dev219drivers/net/slip.cstruct device *dev=sl->dev;
dev224drivers/net/slip.csl->mtu=dev->mtu;
dev225drivers/net/slip.cl=(dev->mtu *2);
dev237drivers/net/slip.cdev->mtu=omtu;
dev249drivers/net/slip.ctf=(unsigned char *)sl->dev->mem_start;
dev250drivers/net/slip.csl->dev->mem_start=(unsigned long)tb;
dev251drivers/net/slip.csl->dev->mem_end=(unsigned long) (sl->dev->mem_start + l);
dev252drivers/net/slip.crf=(unsigned char *)sl->dev->rmem_start;
dev253drivers/net/slip.csl->dev->rmem_start=(unsigned long)rb;
dev254drivers/net/slip.csl->dev->rmem_end=(unsigned long) (sl->dev->rmem_start + l);
dev256drivers/net/slip.csl->xbuff = (unsigned char *) sl->dev->mem_start;
dev257drivers/net/slip.csl->rbuff = (unsigned char *) sl->dev->rmem_start;
dev258drivers/net/slip.csl->rend  = (unsigned char *) sl->dev->rmem_end;
dev320drivers/net/slip.csl->dev->tbusy = 1;
dev334drivers/net/slip.csl->dev->tbusy = 0;
dev380drivers/net/slip.cDPRINTF((DBG_SLIP, "<< \"%s\" recv:\r\n", sl->dev->name));
dev388drivers/net/slip.cdone = dev_rint(sl->rbuff, count, 0, sl->dev);
dev402drivers/net/slip.cdev_tint(sl->dev);
dev414drivers/net/slip.cDPRINTF((DBG_SLIP, ">> \"%s\" sent:\r\n", sl->dev->name));
dev418drivers/net/slip.cif(sl->mtu != sl->dev->mtu)  /* Someone has been ifconfigging */
dev486drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev492drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev495drivers/net/slip.cdev->name, skb, sl->sending));
dev520drivers/net/slip.csl_type_trans (struct sk_buff *skb, struct device *dev)
dev528drivers/net/slip.csl_header(unsigned char *buff, struct device *dev, unsigned short type,
dev537drivers/net/slip.csl_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev544drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev)
dev552drivers/net/slip.csl_open(struct device *dev)
dev558drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev563drivers/net/slip.csl->dev = dev;
dev573drivers/net/slip.cl = (dev->mtu * 2);
dev580drivers/net/slip.csl->mtu    = dev->mtu;
dev581drivers/net/slip.csl->dev->mem_start  = (unsigned long) p;
dev582drivers/net/slip.csl->dev->mem_end  = (unsigned long) (sl->dev->mem_start + l);
dev589drivers/net/slip.csl->dev->rmem_start  = (unsigned long) p;
dev590drivers/net/slip.csl->dev->rmem_end  = (unsigned long) (sl->dev->rmem_start + l);
dev592drivers/net/slip.csl->xbuff    = (unsigned char *) sl->dev->mem_start;
dev593drivers/net/slip.csl->rbuff    = (unsigned char *) sl->dev->rmem_start;
dev594drivers/net/slip.csl->rend    = (unsigned char *) sl->dev->rmem_end;
dev603drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev611drivers/net/slip.ckfree((unsigned char *)sl->dev->mem_start);
dev612drivers/net/slip.ckfree((unsigned char *)sl->dev->rmem_start);
dev625drivers/net/slip.csl_close(struct device *dev)
dev629drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev642drivers/net/slip.csl_initialize(sl, dev);
dev666drivers/net/slip.cif(sl->mtu!=sl->dev->mtu)  /* Argh! mtu change time! - costs us the packet part received at the change */
dev727drivers/net/slip.ctty->line, sl->dev->name));
dev742drivers/net/slip.c(void) sl_open(sl->dev);
dev744drivers/net/slip.ctty->line, sl->dev->name));
dev768drivers/net/slip.c(void) dev_close(sl->dev);
dev770drivers/net/slip.ctty->line, sl->dev->name));
dev961drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev980drivers/net/slip.cslip_init(struct device *dev)
dev985drivers/net/slip.csl = &sl_ctrl[dev->base_addr];
dev1005drivers/net/slip.csl_initialize(sl, dev);
dev1016drivers/net/slip.cdev->mtu    = SL_MTU;
dev1017drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1018drivers/net/slip.cdev->open    = sl_open;
dev1019drivers/net/slip.cdev->stop    = sl_close;
dev1020drivers/net/slip.cdev->hard_header  = sl_header;
dev1021drivers/net/slip.cdev->add_arp    = sl_add_arp;
dev1022drivers/net/slip.cdev->type_trans  = sl_type_trans;
dev1023drivers/net/slip.cdev->hard_header_len  = 0;
dev1024drivers/net/slip.cdev->addr_len    = 0;
dev1025drivers/net/slip.cdev->type    = 0;
dev1026drivers/net/slip.cdev->queue_xmit  = dev_queue_xmit;
dev1027drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1029drivers/net/slip.cdev->buffs[i] = NULL;
dev1032drivers/net/slip.cdev->flags    = 0;
dev1033drivers/net/slip.cdev->family    = AF_INET;
dev1034drivers/net/slip.cdev->pa_addr    = 0;
dev1035drivers/net/slip.cdev->pa_brdaddr  = 0;
dev1036drivers/net/slip.cdev->pa_mask    = 0;
dev1037drivers/net/slip.cdev->pa_alen    = sizeof(unsigned long);
dev39drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev74drivers/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;
dev99drivers/net/smc-ultra.cprintk("%s: SMC Ultra at %#3x,", dev->name, ioaddr);
dev108drivers/net/smc-ultra.cif (dev->irq < 2) {
dev120drivers/net/smc-ultra.cdev->irq = irq;
dev129drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev136drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev140drivers/net/smc-ultra.cethdev_init(dev);
dev148drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev149drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev150drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev153drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev160drivers/net/smc-ultra.cdev->open = &ultra_open;
dev161drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev162drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev168drivers/net/smc-ultra.cultra_open(struct device *dev)
dev170drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev172drivers/net/smc-ultra.cif (irqaction(dev->irq, &ei_sigaction))
dev180drivers/net/smc-ultra.creturn ei_open(dev);
dev184drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev186drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev202drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev204drivers/net/smc-ultra.cvoid *xfer_start = (void *)(dev->mem_start + ring_offset
dev207drivers/net/smc-ultra.cif (xfer_start + count > (void*) dev->rmem_end) {
dev209drivers/net/smc-ultra.cint semi_count = (void*)dev->rmem_end - xfer_start;
dev212drivers/net/smc-ultra.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev213drivers/net/smc-ultra.creturn dev->rmem_start + count;
dev221drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev225drivers/net/smc-ultra.c= (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8);
dev232drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev234drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev236drivers/net/smc-ultra.cdev->start = 0;
dev237drivers/net/smc-ultra.cdev->tbusy = 1;
dev240drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev243drivers/net/smc-ultra.cfree_irq(dev->irq);
dev244drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev246drivers/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);
dev974drivers/scsi/aha152x.cint aha152x_biosparam( int size, int dev, int *info_array )
dev985drivers/scsi/aha152x.cprintk("dev=%x, size=%d, ", dev, size);
dev850drivers/scsi/aha1542.cint aha1542_biosparam(int size, int dev, int * ip)
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]);
dev1429drivers/scsi/fdomain.cint fdomain_16x0_biosparam( int size, int dev, int *info_array )
dev1470drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev396drivers/scsi/pas16.cint pas16_biosparam(int size, int dev, int * ip)
dev177drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev189drivers/scsi/scsi.cint dev, lun, type;
dev204drivers/scsi/scsi.cfor (dev = 0; dev < 8; ++dev)
dev205drivers/scsi/scsi.cif (shpnt->this_id != dev)
dev217drivers/scsi/scsi.cscsi_devices[NR_SCSI_DEVICES].id = dev;
dev233drivers/scsi/scsi.cSCmd.target = dev;
dev236drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev248drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev250drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev283drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev290drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev355drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev360drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev366drivers/scsi/scsi.cshpnt->host_no , dev, lun); 
dev438drivers/scsi/scsi.cSCmd.request.dev = 0xffff; /* Mark not busy */
dev445drivers/scsi/scsi.cwhile (SCmd.request.dev != 0xfffe);
dev531drivers/scsi/scsi.cif (req && req->dev <= 0)
dev538drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev573drivers/scsi/scsi.creq->dev = -1;
dev576drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev598drivers/scsi/scsi.cint dev = -1;
dev612drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev622drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev628drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev632drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev642drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev671drivers/scsi/scsi.creq->dev = -1;
dev675drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1345drivers/scsi/scsi.cif ((SCpnt1->request.dev > 0) &&
dev1601drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev460drivers/scsi/scsi.hreq->dev,req->sector);
dev485drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev492drivers/scsi/scsi.hreq->dev = -1;
dev508drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev49drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev55drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev61drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
dev62drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
dev70drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");  \
dev71drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev80drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev203drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
dev79drivers/scsi/scsi_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev89drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev94drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev->index, 1);
dev99drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev102drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev108drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev112drivers/scsi/scsi_ioctl.cif(dev->removable){
dev117drivers/scsi/scsi_ioctl.cif (dev->removable){
dev118drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev125drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev126drivers/scsi/scsi_ioctl.cdev->id,
dev127drivers/scsi/scsi_ioctl.cdev->lun,
dev137drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev142drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev174drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev178drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev->index, 1);
dev183drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev186drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev204drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev211drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev233drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev237drivers/scsi/scsi_ioctl.cif ((cmd != 0 && dev->index > NR_SCSI_DEVICES))
dev243drivers/scsi/scsi_ioctl.cput_fs_long(dev->id + (dev->lun << 8) + 
dev244drivers/scsi/scsi_ioctl.c(dev->host->host_no << 16), (unsigned long *) arg);
dev248drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev249drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev250drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev254drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev255drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev256drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev259drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev262drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev264drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev266drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev269drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev272drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev274drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev277drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev280drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev283drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev296drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev301drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev15drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev16drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev144drivers/scsi/sd.cprintk("sd%d : rw_intr(%d, %d)\n", MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
dev156drivers/scsi/sd.cprintk("sd%d : %d sectors remain.\n", MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors);
dev199drivers/scsi/sd.cMINOR(SCpnt->request.dev));
dev251drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev262drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev266drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev283drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev284drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev293drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev294drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev295drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev318drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev339drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev357drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index);
dev362drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev382drivers/scsi/sd.cint dev, block, this_count;
dev388drivers/scsi/sd.cif(SCpnt->request.dev <= 0) {
dev393drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev398drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev401drivers/scsi/sd.cif (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev407drivers/scsi/sd.cblock += sd[dev].start_sect;
dev408drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev410drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev421drivers/scsi/sd.cprintk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block);
dev427drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev479drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev557drivers/scsi/sd.cprintk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(SCpnt->request.dev),
dev564drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev571drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev576drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev608drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev612drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev654drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev688drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev697drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev713drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev722drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev747drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev757drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe);
dev759drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev762drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev770drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev930drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev937drivers/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
dev19drivers/scsi/sd_ioctl.cint dev = inode->i_rdev;
dev31drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev36drivers/scsi/sd_ioctl.chost->hostt->bios_param(rscsi_disks[MINOR(dev) >> 4].capacity,
dev37drivers/scsi/sd_ioctl.cdev,
dev64drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev66drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1603drivers/scsi/seagate.cint seagate_st0x_biosparam(int size, int dev, int* ip) {
dev1610drivers/scsi/seagate.cdisk = rscsi_disks[MINOR(dev) >> 4].device;
dev57drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev58drivers/scsi/sg.cif ((dev<0) || (dev>=NR_SG))
dev63drivers/scsi/sg.cscsi_generics[dev].timeout=get_fs_long((int *) arg);
dev66drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev68drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev74drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev76drivers/scsi/sg.cif (dev>=NR_SG)
dev82drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev86drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev90drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev93drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev97drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev101drivers/scsi/sg.cif (!scsi_generics[dev].users && scsi_generics[dev].pending && scsi_generics[dev].complete)
dev103drivers/scsi/sg.cscsi_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev104drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev106drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev107drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev108drivers/scsi/sg.cscsi_generics[dev].users++;
dev114drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev115drivers/scsi/sg.cscsi_generics[dev].users--;
dev116drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev117drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev155drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev157drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev188drivers/scsi/sg.cint dev=SCpnt->request.dev;
dev189drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev192drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev193drivers/scsi/sg.cSCpnt->request.dev=-1;
dev203drivers/scsi/sg.cSCpnt->request.dev=-1;
dev204drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev209drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev213drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev262drivers/scsi/sg.cSCpnt->request.dev=dev;
dev208drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev217drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
dev218drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev242drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
dev243drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
dev244drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
dev290drivers/scsi/sr.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev299drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); 
dev317drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index);
dev322drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
dev343drivers/scsi/sr.cunsigned int dev, block, realcount;
dev350drivers/scsi/sr.cif(SCpnt->request.dev <= 0) {
dev355drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
dev360drivers/scsi/sr.cif (dev >= NR_SR)
dev368drivers/scsi/sr.cif (!scsi_CDs[dev].use)
dev376drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
dev429drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev557drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev564drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev566drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev571drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev588drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev611drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev632drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev655drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev663drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe);
dev665drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev668drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev676drivers/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);
dev381drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev107drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < NR_ST && st_nbr >= 0) {
dev115drivers/scsi/st.cSCpnt->request.dev = -1;
dev117drivers/scsi/st.cSCpnt->request.dev = 0xffff;
dev131drivers/scsi/st.cint dev = SCpnt->request.dev;
dev139drivers/scsi/st.cprintk("st%d: Error: %x\n", dev, result);
dev151drivers/scsi/st.cstatic void write_behind_check(int dev)
dev154drivers/scsi/st.cif (scsi_tapes[dev].buffer->last_result < 0) {
dev155drivers/scsi/st.cscsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing);
dev156drivers/scsi/st.csleep_on( &scsi_tapes[dev].waiting );
dev157drivers/scsi/st.cscsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing);
dev161drivers/scsi/st.cif (scsi_tapes[dev].buffer->writing < scsi_tapes[dev].buffer->buffer_bytes)
dev162drivers/scsi/st.cmemcpy(scsi_tapes[dev].buffer->b_data,
dev163drivers/scsi/st.cscsi_tapes[dev].buffer->b_data + scsi_tapes[dev].buffer->writing,
dev164drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes -
dev165drivers/scsi/st.cscsi_tapes[dev].buffer->writing);
dev166drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes -= scsi_tapes[dev].buffer->writing;
dev167drivers/scsi/st.cscsi_tapes[dev].buffer->writing = 0;
dev175drivers/scsi/st.cstatic int flush_write_buffer(int dev)
dev183drivers/scsi/st.cif (scsi_tapes[dev].buffer->writing) {
dev184drivers/scsi/st.cwrite_behind_check(dev);
dev185drivers/scsi/st.cif (scsi_tapes[dev].buffer->last_result) {
dev187drivers/scsi/st.cprintk("st%d: Async write error %x.\n", dev,
dev188drivers/scsi/st.cscsi_tapes[dev].buffer->last_result);
dev196drivers/scsi/st.cif (scsi_tapes[dev].dirty==1) {
dev197drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev199drivers/scsi/st.coffset = scsi_tapes[dev].buffer->buffer_bytes;
dev200drivers/scsi/st.ctransfer = ((offset + scsi_tapes[dev].block_size - 1) /
dev201drivers/scsi/st.cscsi_tapes[dev].block_size) * scsi_tapes[dev].block_size;
dev203drivers/scsi/st.cprintk("st%d: Flushing %d bytes.\n", dev, transfer);
dev205drivers/scsi/st.cmemset(scsi_tapes[dev].buffer->b_data + offset, 0, transfer - offset);
dev211drivers/scsi/st.cblks = transfer / scsi_tapes[dev].block_size;
dev215drivers/scsi/st.cSCpnt->request.dev = dev;
dev217drivers/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data, transfer,
dev220drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev223drivers/scsi/st.cprintk("st%d: Error on flush:\n", dev);
dev230drivers/scsi/st.cscsi_tapes[dev].dirty = 0;
dev231drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = 0;
dev233drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev244drivers/scsi/st.cint dev;
dev247drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev249drivers/scsi/st.cif (scsi_tapes[dev].rw == 2)  /* Writing */
dev250drivers/scsi/st.creturn flush_write_buffer(dev);
dev252drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev255drivers/scsi/st.cbackspace = (scsi_tapes[dev].buffer->buffer_bytes +
dev256drivers/scsi/st.cscsi_tapes[dev].buffer->read_pointer) / scsi_tapes[dev].block_size -
dev257drivers/scsi/st.c(scsi_tapes[dev].buffer->read_pointer + scsi_tapes[dev].block_size - 1) /
dev258drivers/scsi/st.cscsi_tapes[dev].block_size;
dev259drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = 0;
dev260drivers/scsi/st.cscsi_tapes[dev].buffer->read_pointer = 0;
dev265drivers/scsi/st.cscsi_tapes[dev].eof = 0;
dev266drivers/scsi/st.cscsi_tapes[dev].eof_hit = 0;
dev277drivers/scsi/st.cint dev;
dev283drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev284drivers/scsi/st.cif (dev >= NR_ST)
dev286drivers/scsi/st.cif (scsi_tapes[dev].in_use) {
dev287drivers/scsi/st.cprintk("st%d: Device already in use.\n", dev);
dev296drivers/scsi/st.cprintk("st%d: No free buffers.\n", dev);
dev301drivers/scsi/st.cscsi_tapes[dev].buffer = st_buffers[i];
dev302drivers/scsi/st.cscsi_tapes[dev].in_use = 1;
dev305drivers/scsi/st.cscsi_tapes[dev].write_prot = ((flags & O_ACCMODE) == O_RDONLY);
dev307drivers/scsi/st.cscsi_tapes[dev].dirty = 0;
dev308drivers/scsi/st.cscsi_tapes[dev].rw = 0;
dev309drivers/scsi/st.cscsi_tapes[dev].eof = 0;
dev310drivers/scsi/st.cscsi_tapes[dev].eof_hit = 0;
dev312drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev314drivers/scsi/st.cprintk("st%d: Tape request not allocated", dev);
dev321drivers/scsi/st.cSCpnt->request.dev = dev;
dev323drivers/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
dev327drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev337drivers/scsi/st.cSCpnt->request.dev = dev;
dev339drivers/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
dev343drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev352drivers/scsi/st.cprintk("st%d: No tape.\n", dev);
dev354drivers/scsi/st.cprintk("st%d: Error %x.\n", dev, SCpnt->result);
dev355drivers/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
dev356drivers/scsi/st.cscsi_tapes[dev].in_use = 0;
dev357drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev364drivers/scsi/st.cSCpnt->request.dev = dev;
dev366drivers/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
dev369drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev372drivers/scsi/st.cscsi_tapes[dev].max_block = (scsi_tapes[dev].buffer->b_data[1] << 16) |
dev373drivers/scsi/st.c(scsi_tapes[dev].buffer->b_data[2] << 8) | scsi_tapes[dev].buffer->b_data[3];
dev374drivers/scsi/st.cscsi_tapes[dev].min_block = (scsi_tapes[dev].buffer->b_data[4] << 8) |
dev375drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[5];
dev377drivers/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, scsi_tapes[dev].min_block,
dev378drivers/scsi/st.cscsi_tapes[dev].max_block);
dev382drivers/scsi/st.cscsi_tapes[dev].min_block = scsi_tapes[dev].max_block = (-1);
dev384drivers/scsi/st.cprintk("st%d: Can't read block limits.\n", dev);
dev392drivers/scsi/st.cSCpnt->request.dev = dev;
dev394drivers/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
dev397drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev402drivers/scsi/st.cprintk("st%d: No Mode Sense.\n", dev);
dev404drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[2] =
dev405drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[3] = 0;
dev407drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev410drivers/scsi/st.cprintk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev,
dev411drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[0], scsi_tapes[dev].buffer->b_data[1],
dev412drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[2], scsi_tapes[dev].buffer->b_data[3]);
dev415drivers/scsi/st.cif (scsi_tapes[dev].buffer->b_data[3] >= 8) {
dev416drivers/scsi/st.cscsi_tapes[dev].drv_buffer = (scsi_tapes[dev].buffer->b_data[2] >> 4) & 7;
dev417drivers/scsi/st.cscsi_tapes[dev].density = scsi_tapes[dev].buffer->b_data[4];
dev418drivers/scsi/st.cscsi_tapes[dev].block_size = scsi_tapes[dev].buffer->b_data[9] * 65536 +
dev419drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[10] * 256 + scsi_tapes[dev].buffer->b_data[11];
dev421drivers/scsi/st.cprintk("st%d: Density %x, tape length: %x, blocksize: %d, drv buffer: %d\n", dev,
dev422drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[4], scsi_tapes[dev].buffer->b_data[5] *
dev423drivers/scsi/st.c65536 + scsi_tapes[dev].buffer->b_data[6] * 256 +
dev424drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[7], scsi_tapes[dev].buffer->b_data[9] *
dev425drivers/scsi/st.c65536 + scsi_tapes[dev].buffer->b_data[10] * 256 +
dev426drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[11],
dev427drivers/scsi/st.cscsi_tapes[dev].drv_buffer);
dev429drivers/scsi/st.cif (scsi_tapes[dev].block_size > ST_BUFFER_SIZE) {
dev430drivers/scsi/st.cprintk("st%d: Blocksize %d too large for buffer.\n", dev,
dev431drivers/scsi/st.cscsi_tapes[dev].block_size);
dev432drivers/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
dev433drivers/scsi/st.cscsi_tapes[dev].in_use = 0;
dev439drivers/scsi/st.cscsi_tapes[dev].block_size = ST_BLOCK_SIZE;
dev441drivers/scsi/st.cif (scsi_tapes[dev].block_size > 0) {
dev442drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks =
dev443drivers/scsi/st.cST_BUFFER_SIZE / scsi_tapes[dev].block_size;
dev444drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size =
dev445drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size;
dev448drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks = 1;
dev449drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size = ST_BUFFER_SIZE;
dev451drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = scsi_tapes[dev].buffer->read_pointer = 0;
dev454drivers/scsi/st.cprintk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev455drivers/scsi/st.cscsi_tapes[dev].block_size, scsi_tapes[dev].buffer->buffer_size,
dev456drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks);
dev459drivers/scsi/st.cif (scsi_tapes[dev].buffer->b_data[2] & 0x80) {
dev460drivers/scsi/st.cscsi_tapes[dev].write_prot = 1;
dev462drivers/scsi/st.cprintk( "st%d: Write protected\n", dev);
dev473drivers/scsi/st.cint dev;
dev479drivers/scsi/st.cdev = MINOR(inode->i_rdev);
dev480drivers/scsi/st.crewind = (dev & 0x80) == 0;
dev481drivers/scsi/st.cdev = dev & 127;
dev483drivers/scsi/st.cif ( scsi_tapes[dev].rw == 2) {
dev485drivers/scsi/st.cresult = flush_write_buffer(dev);
dev488drivers/scsi/st.cprintk("st%d: File length %d bytes.\n", dev, filp->f_pos);
dev492drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev498drivers/scsi/st.cSCpnt->request.dev = dev;
dev500drivers/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
dev503drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev506drivers/scsi/st.cprintk("st%d: Error on write filemark.\n", dev);
dev511drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev515drivers/scsi/st.cprintk("st%d: Buffer flushed, EOF written\n", dev);
dev519drivers/scsi/st.cif ((scsi_tapes[dev].eof == 1) && !scsi_tapes[dev].eof_hit)
dev529drivers/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
dev530drivers/scsi/st.cscsi_tapes[dev].in_use = 0;
dev539drivers/scsi/st.cint dev;
dev545drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev547drivers/scsi/st.cif (!scsi_tapes[dev].in_use) {
dev548drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev553drivers/scsi/st.cif (scsi_tapes[dev].write_prot)
dev556drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0 && count > ST_BUFFER_SIZE)
dev559drivers/scsi/st.cif (scsi_tapes[dev].rw == 1) {
dev563drivers/scsi/st.cscsi_tapes[dev].rw = 2;
dev567drivers/scsi/st.cif (scsi_tapes[dev].buffer->writing) {
dev568drivers/scsi/st.cwrite_behind_check(dev);
dev569drivers/scsi/st.cif (scsi_tapes[dev].buffer->last_result) {
dev571drivers/scsi/st.cprintk("st%d: Async write error %x.\n", dev,
dev572drivers/scsi/st.cscsi_tapes[dev].buffer->last_result);
dev583drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev589drivers/scsi/st.ccmd[1] = (scsi_tapes[dev].block_size != 0);
dev591drivers/scsi/st.cscsi_tapes[dev].rw = 2;
dev596drivers/scsi/st.cscsi_tapes[dev].block_size != 0 &&
dev597drivers/scsi/st.c(scsi_tapes[dev].buffer->buffer_bytes + count) >
dev598drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size)
dev600drivers/scsi/st.c(scsi_tapes[dev].block_size == 0 && count > 0) ||
dev601drivers/scsi/st.c(scsi_tapes[dev].buffer->buffer_bytes + count) >=
dev602drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size)
dev605drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev608drivers/scsi/st.cdo_count = scsi_tapes[dev].buffer->buffer_size -
dev609drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes;
dev610drivers/scsi/st.cmemcpy_fromfs(scsi_tapes[dev].buffer->b_data +
dev611drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes, b_point, do_count);
dev613drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev616drivers/scsi/st.cblks = scsi_tapes[dev].buffer->buffer_blocks;
dev621drivers/scsi/st.cSCpnt->request.dev = dev;
dev623drivers/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data,
dev624drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size,
dev627drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev631drivers/scsi/st.cprintk("st%d: Error on write:\n", dev);
dev639drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev648drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = 0;
dev649drivers/scsi/st.cscsi_tapes[dev].dirty = 0;
dev652drivers/scsi/st.cscsi_tapes[dev].dirty = 1;
dev653drivers/scsi/st.cmemcpy_fromfs(scsi_tapes[dev].buffer->b_data +
dev654drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes,b_point,count);
dev656drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes += count;
dev662drivers/scsi/st.cSCpnt->request.dev = -1;
dev667drivers/scsi/st.cif (scsi_tapes[dev].buffer->buffer_bytes >= ST_WRITE_THRESHOLD ||
dev668drivers/scsi/st.cscsi_tapes[dev].block_size == 0) {
dev670drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev671drivers/scsi/st.cscsi_tapes[dev].buffer->writing = scsi_tapes[dev].buffer->buffer_bytes;
dev673drivers/scsi/st.cscsi_tapes[dev].buffer->writing = (scsi_tapes[dev].buffer->buffer_bytes /
dev674drivers/scsi/st.cscsi_tapes[dev].block_size) * scsi_tapes[dev].block_size;
dev675drivers/scsi/st.cscsi_tapes[dev].dirty = 0;
dev677drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev678drivers/scsi/st.cblks = scsi_tapes[dev].buffer->writing;
dev680drivers/scsi/st.cblks = scsi_tapes[dev].buffer->writing / scsi_tapes[dev].block_size;
dev684drivers/scsi/st.cSCpnt->result = scsi_tapes[dev].buffer->last_result = -1;
dev686drivers/scsi/st.cSCpnt->request.dev = dev;
dev688drivers/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data,
dev689drivers/scsi/st.cscsi_tapes[dev].buffer->writing,
dev694drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev703drivers/scsi/st.cint dev;
dev709drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev711drivers/scsi/st.cif (!scsi_tapes[dev].in_use) {
dev712drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev717drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0 && count > ST_BUFFER_SIZE)
dev720drivers/scsi/st.cif (scsi_tapes[dev].rw == 2) {
dev724drivers/scsi/st.cscsi_tapes[dev].rw = 1;
dev728drivers/scsi/st.cif (scsi_tapes[dev].eof)
dev729drivers/scsi/st.cprintk("st%d: EOF flag up. Bytes %d\n", dev,
dev730drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes);
dev732drivers/scsi/st.cif ((scsi_tapes[dev].buffer->buffer_bytes == 0) &&
dev733drivers/scsi/st.cscsi_tapes[dev].eof == 2)  /* EOM or Blank Check */
dev736drivers/scsi/st.cscsi_tapes[dev].rw = 1;
dev738drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev742drivers/scsi/st.cif (scsi_tapes[dev].buffer->buffer_bytes == 0 &&
dev743drivers/scsi/st.cscsi_tapes[dev].eof == 0) {
dev747drivers/scsi/st.ccmd[1] = (scsi_tapes[dev].block_size != 0);
dev748drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev751drivers/scsi/st.cblks = scsi_tapes[dev].buffer->buffer_blocks;
dev752drivers/scsi/st.cbytes = blks * scsi_tapes[dev].block_size;
dev759drivers/scsi/st.cSCpnt->request.dev = dev;
dev761drivers/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data,
dev762drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size,
dev765drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev767drivers/scsi/st.cscsi_tapes[dev].buffer->read_pointer = 0;
dev768drivers/scsi/st.cscsi_tapes[dev].eof_hit = 0;
dev772drivers/scsi/st.cprintk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev,
dev786drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0) {
dev789drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = count - transfer;
dev792drivers/scsi/st.cprintk("st%d: Incorrect block size.\n", dev);
dev793drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev798drivers/scsi/st.cscsi_tapes[dev].eof = 2; /* What should be done at EOM ? */
dev799drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
dev800drivers/scsi/st.c(scsi_tapes[dev].buffer->buffer_blocks - transfer) *
dev801drivers/scsi/st.cscsi_tapes[dev].block_size;
dev803drivers/scsi/st.cprintk("st%d: EOM detected (%d blocks read).\n", dev,
dev804drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks - transfer);
dev808drivers/scsi/st.cscsi_tapes[dev].eof = 1;
dev809drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev810drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
dev813drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
dev814drivers/scsi/st.c(scsi_tapes[dev].buffer->buffer_blocks - transfer) *
dev815drivers/scsi/st.cscsi_tapes[dev].block_size;
dev818drivers/scsi/st.cdev, scsi_tapes[dev].buffer->buffer_blocks - transfer, total);
dev824drivers/scsi/st.cprintk("st%d: Tape error. Sense key %x\n", dev,
dev828drivers/scsi/st.cSCpnt->request.dev = -1;
dev837drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev842drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = bytes;
dev847drivers/scsi/st.cif (scsi_tapes[dev].buffer->buffer_bytes > 0) {
dev849drivers/scsi/st.cif (scsi_tapes[dev].eof)
dev850drivers/scsi/st.cprintk("st%d: EOF up. Left %d, needed %d.\n", dev,
dev851drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes, count - total);
dev853drivers/scsi/st.ctransfer = scsi_tapes[dev].buffer->buffer_bytes < count - total ?
dev854drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes : count - total;
dev855drivers/scsi/st.cmemcpy_tofs(buf, scsi_tapes[dev].buffer->b_data +
dev856drivers/scsi/st.cscsi_tapes[dev].buffer->read_pointer,transfer);
dev860drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes -= transfer;
dev861drivers/scsi/st.cscsi_tapes[dev].buffer->read_pointer += transfer;
dev863drivers/scsi/st.celse if (scsi_tapes[dev].eof) {
dev864drivers/scsi/st.cscsi_tapes[dev].eof_hit = 1;
dev865drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev866drivers/scsi/st.cif (total == 0 && scsi_tapes[dev].eof == 1)
dev867drivers/scsi/st.cscsi_tapes[dev].eof = 0;
dev868drivers/scsi/st.cif (total == 0 && scsi_tapes[dev].eof == 2)
dev873drivers/scsi/st.cif (scsi_tapes[dev].block_size == 0)
dev878drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev888drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev895drivers/scsi/st.cdev = dev & 127;
dev907drivers/scsi/st.cprintk("st%d: Spacing tape forward %d files.\n", dev,
dev923drivers/scsi/st.cprintk("st%d: Spacing tape backward %d files.\n", dev, (-ltmp));
dev933drivers/scsi/st.cprintk("st%d: Spacing tape forward %d blocks.\n", dev,
dev948drivers/scsi/st.cprintk("st%d: Spacing tape backward %d blocks.\n", dev, (-ltmp));
dev952drivers/scsi/st.cif (scsi_tapes[dev].write_prot)
dev960drivers/scsi/st.cprintk("st%d: Writing %d filemarks.\n", dev,
dev971drivers/scsi/st.cprintk("st%d: Rewinding tape.\n", dev);
dev981drivers/scsi/st.cprintk("st%d: Unloading tape.\n", dev);
dev986drivers/scsi/st.cprintk("st%d: No op on tape.\n", dev);
dev998drivers/scsi/st.cprintk("st%d: Retensioning tape.\n", dev);
dev1005drivers/scsi/st.cprintk("st%d: Spacing to end of recorded medium.\n", dev);
dev1009drivers/scsi/st.cif (scsi_tapes[dev].write_prot)
dev1014drivers/scsi/st.cprintk("st%d: Erasing tape.\n", dev);
dev1018drivers/scsi/st.cif (scsi_tapes[dev].device->scsi_level < SCSI_2) {
dev1038drivers/scsi/st.cprintk("st%d: Seeking tape to block %d.\n", dev, arg);
dev1044drivers/scsi/st.cif (scsi_tapes[dev].dirty || scsi_tapes[dev].buffer->buffer_bytes != 0)
dev1048drivers/scsi/st.c(arg < scsi_tapes[dev].min_block || arg > scsi_tapes[dev].max_block ||
dev1050drivers/scsi/st.cprintk("st%d: Illegal block size.\n", dev);
dev1056drivers/scsi/st.cmemset(scsi_tapes[dev].buffer->b_data, 0, 12);
dev1058drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[2] = (arg & 7) << 4;
dev1060drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[2] = 
dev1061drivers/scsi/st.cscsi_tapes[dev].drv_buffer << 4;
dev1062drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[3] = 8;     /* block descriptor length */
dev1064drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[4] = arg;
dev1066drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[4] = scsi_tapes[dev].density;
dev1070drivers/scsi/st.cltmp = scsi_tapes[dev].block_size;
dev1071drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[9] = (ltmp >> 16);
dev1072drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[10] = (ltmp >> 8);
dev1073drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[11] = ltmp;
dev1077drivers/scsi/st.cprintk("st%d: Setting block size to %d bytes.\n", dev,
dev1078drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[9] * 65536 +
dev1079drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[10] * 256 +
dev1080drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[11]);
dev1082drivers/scsi/st.cprintk("st%d: Setting density code to %x.\n", dev,
dev1083drivers/scsi/st.cscsi_tapes[dev].buffer->b_data[4]);
dev1086drivers/scsi/st.c(scsi_tapes[dev].buffer->b_data[2] >> 4) & 7);
dev1090drivers/scsi/st.cprintk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in);
dev1094drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev1096drivers/scsi/st.cSCpnt->request.dev = dev;
dev1098drivers/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, ST_BLOCK_SIZE,
dev1101drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev1105drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1113drivers/scsi/st.cscsi_tapes[dev].block_size = arg;
dev1115drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks =
dev1116drivers/scsi/st.cST_BUFFER_SIZE / scsi_tapes[dev].block_size;
dev1117drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size =
dev1118drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size;
dev1121drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks = 1;
dev1122drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_size = ST_BUFFER_SIZE;
dev1124drivers/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
dev1125drivers/scsi/st.cscsi_tapes[dev].buffer->read_pointer = 0;
dev1128drivers/scsi/st.cscsi_tapes[dev].drv_buffer = arg;
dev1130drivers/scsi/st.cscsi_tapes[dev].density = arg;
dev1132drivers/scsi/st.cscsi_tapes[dev].eof = 2;
dev1133drivers/scsi/st.cscsi_tapes[dev].eof_hit = 0;
dev1136drivers/scsi/st.cscsi_tapes[dev].eof = 0;
dev1137drivers/scsi/st.cscsi_tapes[dev].eof_hit = 0;
dev1150drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1157drivers/scsi/st.cdev = dev & 127;
dev1159drivers/scsi/st.cif (!scsi_tapes[dev].in_use) {
dev1160drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1193drivers/scsi/st.cmemcpy_tofs((char *)arg, (char *)scsi_tapes[dev].buffer->mt_status,
dev1199drivers/scsi/st.cprintk("st%d: get tape position.\n", dev);
dev1212drivers/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
dev1216drivers/scsi/st.cif (scsi_tapes[dev].device->scsi_level < SCSI_2) {
dev1224drivers/scsi/st.cSCpnt->request.dev = dev;
dev1227drivers/scsi/st.c(void *) scmd, (void *) scsi_tapes[dev].buffer->b_data,
dev1230drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
dev1235drivers/scsi/st.cprintk("st%d: Can't read tape position.\n", dev);
dev1241drivers/scsi/st.cif (scsi_tapes[dev].device->scsi_level < SCSI_2)
dev1242drivers/scsi/st.cmt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[0] << 16) 
dev1243drivers/scsi/st.c+ (scsi_tapes[dev].buffer->b_data[1] << 8) 
dev1244drivers/scsi/st.c+ scsi_tapes[dev].buffer->b_data[2];
dev1246drivers/scsi/st.cmt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[4] << 24)
dev1247drivers/scsi/st.c+ (scsi_tapes[dev].buffer->b_data[5] << 16) 
dev1248drivers/scsi/st.c+ (scsi_tapes[dev].buffer->b_data[6] << 8) 
dev1249drivers/scsi/st.c+ scsi_tapes[dev].buffer->b_data[7];
dev1253drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1259drivers/scsi/st.creturn scsi_ioctl(scsi_tapes[dev].device, cmd_in, (void *) arg);
dev295drivers/scsi/t128.cint t128_biosparam(int size, int dev, int * ip)
dev987drivers/scsi/ultrastor.cint ultrastor_biosparam(int size, int dev, int * dkinfo)
dev609drivers/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);
dev116drivers/sound/dmabuf.cdev, sr, nc, sz);
dev130drivers/sound/dmabuf.cbsz = sound_buffsizes[dev];
dev135drivers/sound/dmabuf.cif (sound_buffcounts[dev] == 1 && bsz == sound_buffsizes[dev])
dev138drivers/sound/dmabuf.cif (dev_subdivision[dev] == 0)
dev139drivers/sound/dmabuf.cdev_subdivision[dev] = 1;  /* Default value */
dev141drivers/sound/dmabuf.cbsz /= dev_subdivision[dev];  /* Use smaller buffers */
dev145drivers/sound/dmabuf.cwhile ((sound_buffsizes[dev]*sound_buffcounts[dev])/bsz > MAX_SUB_BUFFERS)
dev148drivers/sound/dmabuf.cdev_buffsize[dev] = bsz;
dev155drivers/sound/dmabuf.cfor (i = 0; i < snd_raw_count[dev]; i++)
dev159drivers/sound/dmabuf.cwhile ((p + bsz) <= sound_buffsizes[dev])
dev161drivers/sound/dmabuf.cdev_buf[dev][n] = snd_raw_buf[dev][i] + p;
dev162drivers/sound/dmabuf.cdev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p;
dev168drivers/sound/dmabuf.cdev_nbufs[dev] = n;
dev170drivers/sound/dmabuf.cfor (i = 0; i < dev_nbufs[dev]; i++)
dev172drivers/sound/dmabuf.cdev_counts[dev][i] = 0;
dev175drivers/sound/dmabuf.cbufferalloc_done[dev] = 1;
dev179drivers/sound/dmabuf.cdma_init_buffers(int dev)
dev181drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev182drivers/sound/dmabuf.cdev_underrun[dev] = 0;
dev184drivers/sound/dmabuf.cdev_busy[dev] = 1;
dev186drivers/sound/dmabuf.cbufferalloc_done[dev] = 0;
dev188drivers/sound/dmabuf.cdev_active[dev] = dev_qlen[dev] = dev_qtail[dev] = dev_qhead[dev] = 0;
dev189drivers/sound/dmabuf.cdev_needs_restart[dev] = dev_started[dev] = 0;
dev190drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev194drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev198drivers/sound/dmabuf.cif (dev >= num_dspdevs)
dev200drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev204drivers/sound/dmabuf.cif (dev_busy[dev])
dev207drivers/sound/dmabuf.cif (!dsp_devs[dev])
dev209drivers/sound/dmabuf.cprintk ("DSP device %d not initialized\n", dev);
dev213drivers/sound/dmabuf.cif (snd_raw_buf[dev][0] == NULL)
dev216drivers/sound/dmabuf.cif ((retval = dsp_devs[dev]->open (dev, mode)) < 0)
dev219drivers/sound/dmabuf.cdev_modes[dev] = mode;
dev220drivers/sound/dmabuf.cdev_subdivision[dev] = 0;
dev222drivers/sound/dmabuf.cdma_init_buffers(dev);
dev223drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1);
dev224drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1);
dev225drivers/sound/dmabuf.cdsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1);
dev231drivers/sound/dmabuf.cdma_reset (int dev)
dev237drivers/sound/dmabuf.cdsp_devs[dev]->reset (dev);
dev238drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev240drivers/sound/dmabuf.cif ((retval = dsp_devs[dev]->open (dev, dev_modes[dev])) < 0)
dev244drivers/sound/dmabuf.cdma_init_buffers(dev);
dev245drivers/sound/dmabuf.creorganize_buffers(dev);
dev249drivers/sound/dmabuf.cdma_sync (int dev)
dev255drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_OUTPUT)
dev262drivers/sound/dmabuf.cwhile ((!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev263drivers/sound/dmabuf.cdmabuf_interrupted[dev]) && !timed_out)
dev264drivers/sound/dmabuf.c&& dev_qlen[dev])
dev266drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ);
dev278drivers/sound/dmabuf.cif (dsp_devs[dev]->has_output_drained)  /* Device has hidden buffers */
dev280drivers/sound/dmabuf.cwhile (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev281drivers/sound/dmabuf.cdmabuf_interrupted[dev])
dev282drivers/sound/dmabuf.c&& !dsp_devs[dev]->has_output_drained (dev))
dev284drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ / 4);
dev289drivers/sound/dmabuf.creturn dev_qlen[dev];
dev293drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev296drivers/sound/dmabuf.cif (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) ||
dev297drivers/sound/dmabuf.cdmabuf_interrupted[dev])
dev298drivers/sound/dmabuf.c&& (dma_mode[dev] == DMODE_OUTPUT))
dev300drivers/sound/dmabuf.cdma_sync (dev);
dev303drivers/sound/dmabuf.cdsp_devs[dev]->reset (dev);
dev305drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev307drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev308drivers/sound/dmabuf.cdev_busy[dev] = 0;
dev314drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev319drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_OUTPUT) /* Was output -> direction change */
dev321drivers/sound/dmabuf.cdma_sync(dev);
dev322drivers/sound/dmabuf.cdma_reset(dev);
dev323drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev326drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev327drivers/sound/dmabuf.creorganize_buffers (dev);
dev329drivers/sound/dmabuf.cif (!dma_mode[dev])
dev333drivers/sound/dmabuf.cif ((err = dsp_devs[dev]->prepare_for_input (dev,
dev334drivers/sound/dmabuf.cdev_buffsize[dev], dev_nbufs[dev])) < 0)
dev336drivers/sound/dmabuf.cdma_mode[dev] = DMODE_INPUT;
dev340drivers/sound/dmabuf.cif (!dev_qlen[dev])
dev342drivers/sound/dmabuf.cif (dev_needs_restart[dev])
dev344drivers/sound/dmabuf.cdma_reset(dev);
dev347drivers/sound/dmabuf.cif (!dev_active[dev])
dev349drivers/sound/dmabuf.cdsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]], 
dev350drivers/sound/dmabuf.cdev_buffsize[dev], 0,
dev351drivers/sound/dmabuf.c!sound_dma_automode[dev] || 
dev352drivers/sound/dmabuf.c!dev_started[dev]);
dev353drivers/sound/dmabuf.cdev_active[dev] = 1;
dev354drivers/sound/dmabuf.cdev_started[dev] = 1;
dev358drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev359drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev363drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev370drivers/sound/dmabuf.cif (!dev_qlen[dev])
dev373drivers/sound/dmabuf.c*buf = &dev_buf[dev][dev_qhead[dev]][dev_counts[dev][dev_qhead[dev]]];
dev374drivers/sound/dmabuf.c*len = dev_buffsize[dev] - dev_counts[dev][dev_qhead[dev]];
dev376drivers/sound/dmabuf.creturn dev_qhead[dev];
dev380drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev382drivers/sound/dmabuf.cint             p = dev_counts[dev][dev_qhead[dev]] + c;
dev384drivers/sound/dmabuf.cif (p >= dev_buffsize[dev])
dev386drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]] = 0;
dev387drivers/sound/dmabuf.cdev_qlen[dev]--;
dev388drivers/sound/dmabuf.cdev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev];
dev391drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]] = p;
dev397drivers/sound/dmabuf.cDMAbuf_read (int dev, snd_rw_buf * user_buf, int count)
dev407drivers/sound/dmabuf.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &c)) < 0)
dev415drivers/sound/dmabuf.cif ((err = DMAbuf_rmchars (dev, buff_no, c)) < 0)
dev422drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev427drivers/sound/dmabuf.cdma_reset (dev);
dev432drivers/sound/dmabuf.cdma_sync (dev);
dev433drivers/sound/dmabuf.cdma_reset (dev);
dev438drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev439drivers/sound/dmabuf.creorganize_buffers (dev);
dev441drivers/sound/dmabuf.creturn IOCTL_OUT (arg, dev_buffsize[dev]);
dev450drivers/sound/dmabuf.cfact = dev_subdivision[dev];
dev455drivers/sound/dmabuf.cif (dev_subdivision[dev] != 0) /* Too late to change */
dev463drivers/sound/dmabuf.cdev_subdivision[dev] = fact;
dev469drivers/sound/dmabuf.creturn dsp_devs[dev]->ioctl (dev, cmd, arg, local);
dev476drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev481drivers/sound/dmabuf.cif (dma_mode[dev] == DMODE_INPUT)  /* Was input -> Direction change */
dev483drivers/sound/dmabuf.cdma_reset(dev);
dev484drivers/sound/dmabuf.cdma_mode[dev] = DMODE_NONE;
dev487drivers/sound/dmabuf.cif (dev_needs_restart[dev])  /* Restart buffering */
dev489drivers/sound/dmabuf.cdma_sync(dev);
dev490drivers/sound/dmabuf.cdma_reset(dev);
dev493drivers/sound/dmabuf.cdev_needs_restart[dev] = 0;
dev495drivers/sound/dmabuf.cif (!bufferalloc_done[dev])
dev496drivers/sound/dmabuf.creorganize_buffers (dev);
dev498drivers/sound/dmabuf.cif (!dma_mode[dev])
dev502drivers/sound/dmabuf.cdma_mode[dev] = DMODE_OUTPUT;
dev503drivers/sound/dmabuf.cif ((err = dsp_devs[dev]->prepare_for_output (dev,
dev504drivers/sound/dmabuf.cdev_buffsize[dev], dev_nbufs[dev])) < 0)
dev511drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev513drivers/sound/dmabuf.cif (dev_qlen[dev] == dev_nbufs[dev])
dev515drivers/sound/dmabuf.cif (!dev_active[dev])
dev518drivers/sound/dmabuf.cdev_qlen[dev], dev_nbufs[dev]);
dev523drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev524drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev528drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev530drivers/sound/dmabuf.celse if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev535drivers/sound/dmabuf.cif (dev_qlen[dev] == dev_nbufs[dev])
dev538drivers/sound/dmabuf.c*buf = dev_buf[dev][dev_qtail[dev]];
dev539drivers/sound/dmabuf.c*size = dev_buffsize[dev];
dev540drivers/sound/dmabuf.cdev_counts[dev][dev_qtail[dev]] = 0;
dev542drivers/sound/dmabuf.creturn dev_qtail[dev];
dev546drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev548drivers/sound/dmabuf.cif (buff_no != dev_qtail[dev])
dev549drivers/sound/dmabuf.cprintk ("Soundcard warning: DMA buffers out of sync %d != %d\n", buff_no, dev_qtail[dev]);
dev551drivers/sound/dmabuf.cdev_qlen[dev]++;
dev553drivers/sound/dmabuf.cdev_counts[dev][dev_qtail[dev]] = l;
dev555drivers/sound/dmabuf.cdev_needs_restart[dev] = (l != dev_buffsize[dev]);
dev557drivers/sound/dmabuf.cdev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev];
dev559drivers/sound/dmabuf.cif (!dev_active[dev])
dev561drivers/sound/dmabuf.cdev_active[dev] = 1;
dev562drivers/sound/dmabuf.cdsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]], 
dev563drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]], 0, 
dev564drivers/sound/dmabuf.c!sound_dma_automode[dev] || !dev_started[dev]);  
dev565drivers/sound/dmabuf.cdev_started[dev] = 1; 
dev572drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev574drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev586drivers/sound/dmabuf.cif (sound_dma_automode[dev])
dev594drivers/sound/dmabuf.cset_dma_addr (chan, snd_raw_buf_phys[dev][0]);
dev595drivers/sound/dmabuf.cset_dma_count (chan, sound_buffsizes[dev]);
dev601drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev604drivers/sound/dmabuf.csnd_raw_buf_phys[dev][0],
dev605drivers/sound/dmabuf.csound_buffsizes[dev],
dev609drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev615drivers/sound/dmabuf.csnd_raw_buf_phys[dev][0], count);
dev682drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev686drivers/sound/dmabuf.cdev_qlen[dev]--;
dev687drivers/sound/dmabuf.cdev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev];
dev688drivers/sound/dmabuf.cdev_active[dev] = 0;
dev690drivers/sound/dmabuf.cif (dev_qlen[dev])
dev692drivers/sound/dmabuf.cdsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]], 
dev693drivers/sound/dmabuf.cdev_counts[dev][dev_qhead[dev]], 1, 
dev694drivers/sound/dmabuf.c!sound_dma_automode[dev]);
dev695drivers/sound/dmabuf.cdev_active[dev] = 1;
dev700drivers/sound/dmabuf.cdev_underrun[dev]++;
dev701drivers/sound/dmabuf.cdsp_devs[dev]->halt_xfer (dev);
dev702drivers/sound/dmabuf.cdev_needs_restart[dev] = 1;
dev706drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleep_flag[dev]))
dev708drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev714drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev718drivers/sound/dmabuf.cif (!dev_busy[dev])
dev720drivers/sound/dmabuf.cdsp_devs[dev]->close (dev);
dev722drivers/sound/dmabuf.celse if (dev_qlen[dev] == (dev_nbufs[dev] - 1))
dev724drivers/sound/dmabuf.cdev_underrun[dev]++;
dev725drivers/sound/dmabuf.cdsp_devs[dev]->halt_xfer (dev);
dev726drivers/sound/dmabuf.cdev_active[dev] = 0;
dev727drivers/sound/dmabuf.cdev_needs_restart[dev] = 1;
dev731drivers/sound/dmabuf.cdev_qlen[dev]++;
dev732drivers/sound/dmabuf.cdev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev];
dev734drivers/sound/dmabuf.cdsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]], 
dev735drivers/sound/dmabuf.cdev_buffsize[dev], 1,
dev736drivers/sound/dmabuf.c!sound_dma_automode[dev]);
dev737drivers/sound/dmabuf.cdev_active[dev] = 1;
dev741drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleep_flag[dev]))
dev743drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev749drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev752drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev771drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev773drivers/sound/dmabuf.cint             chan = sound_dsp_dmachan[dev];
dev796drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev802drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev808drivers/sound/dmabuf.cDMAbuf_read (int dev, snd_rw_buf * user_buf, int count)
dev814drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev820drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev826drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev832drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev838drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev850drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev874drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev880drivers/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)
dev763drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev793drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev824drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int velocity)
dev837drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev879drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev1008drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1051drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1224drivers/sound/gus_wave.cguswave_reset (int dev)
dev1233drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1253drivers/sound/gus_wave.cguswave_close (int dev)
dev1263drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, snd_rw_buf * addr,
dev1501drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1507drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev1530drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1685drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev1744drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev1749drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev1772drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev1897drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev1932drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev1937drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev1954drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev1976drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count, 
dev1982drivers/sound/gus_wave.cpcm_current_dev = dev;
dev1983drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev1987drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count, 
dev1995drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev1999drivers/sound/gus_wave.cif (sound_dsp_dmachan[dev] > 3)
dev2011drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2029drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2060drivers/sound/gus_wave.cgus_has_output_drained (int dev)
dev2066drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2133drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
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)
dev79drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int velocity);
dev119drivers/sound/opl3.copl3_ioctl (int dev,
dev137drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev237drivers/sound/opl3.copl3_kill_note (int dev, int voice, int velocity)
dev283drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev429drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev653drivers/sound/opl3.copl3_reset (int dev)
dev674drivers/sound/opl3.copl3_kill_note (dev, i, 64);
dev692drivers/sound/opl3.copl3_open (int dev, int mode)
dev707drivers/sound/opl3.copl3_close (int dev)
dev714drivers/sound/opl3.copl3_reset (dev);
dev718drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev723drivers/sound/opl3.copl3_load_patch (int dev, int format, snd_rw_buf * addr,
dev747drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev758drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev824drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev868drivers/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)
dev189drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev197drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev206drivers/sound/pas2_pcm.cif (!DMAbuf_open_dma (dev))
dev218drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev226drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev227drivers/sound/pas2_pcm.cDMAbuf_close_dma (dev);
dev235drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count, 
dev243drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev246drivers/sound/pas2_pcm.cif (sound_dma_automode[dev] &&
dev257drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev259drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev281drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count, 
dev290drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev301drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev303drivers/sound/pas2_pcm.cif (sound_dsp_dmachan[dev] > 3)
dev325drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev330drivers/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_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_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;
dev315drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count, 
dev324drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev326drivers/sound/sb_dsp.cif (sound_dsp_dmachan[dev] > 3)
dev359drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev370drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev372drivers/sound/sb_dsp.cif (sound_dsp_dmachan[dev] > 3)
dev412drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev431drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev448drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev487drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev517drivers/sound/sb_dsp.cif (!DMAbuf_open_dma (dev))
dev532drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev534drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev543drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev595drivers/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);
dev253drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev75drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev79drivers/sound/sequencer.cdev = dev >> 4;
dev81drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev82drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev106drivers/sound/sequencer.csequencer_midi_output (int dev)
dev132drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev147drivers/sound/sequencer.cevent[2] = dev;
dev154drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev161drivers/sound/sequencer.cdev = dev >> 4;
dev163drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev168drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev169drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev182drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev183drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev186drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev189drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev220drivers/sound/sequencer.cint             dev = event[2];
dev222drivers/sound/sequencer.cif (dev >= num_midis)
dev224drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev230drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev234drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev238drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev291drivers/sound/sequencer.cint             dev = q[2];
dev293drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev296drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev302drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[5]);
dev309drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev313drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev317drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev321drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev325drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev407drivers/sound/sequencer.cint             dev;
dev409drivers/sound/sequencer.cdev = q[2];
dev411drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev424drivers/sound/sequencer.cmidi_written[dev] = 1;
dev463drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev467drivers/sound/sequencer.cdev = dev >> 4;
dev470drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev478drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev482drivers/sound/sequencer.cdev--;
dev483drivers/sound/sequencer.cif (pmgr_present[dev])
dev485drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev488drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev578drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev583drivers/sound/sequencer.cdev = dev >> 4;
dev585drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev587drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev589drivers/sound/sequencer.cdev--;
dev590drivers/sound/sequencer.cpmgr_release (dev);
dev591drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev642drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev656drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev706drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev712drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev718drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev729drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev737drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev761drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev777drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev785drivers/sound/sequencer.cdev = IOCTL_IN (arg);
dev786drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev789drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev792drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev793drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev795drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev808drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev810drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev813drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev816drivers/sound/sequencer.creturn IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev822drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev824drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev827drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev830drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev838drivers/sound/sequencer.cint             dev;
dev841drivers/sound/sequencer.cdev = inf.device;
dev843drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev846drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev849drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev856drivers/sound/sequencer.cint             dev;
dev859drivers/sound/sequencer.cdev = inf.device;
dev861drivers/sound/sequencer.cif (dev < 0 || dev >= num_midis)
dev864drivers/sound/sequencer.cIOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf));
dev872drivers/sound/sequencer.cint             dev, err;
dev877drivers/sound/sequencer.cdev = inf->device;
dev879drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev885drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev891drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev906drivers/sound/sequencer.cint             dev, err;
dev911drivers/sound/sequencer.cdev = inf->device;
dev913drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev919drivers/sound/sequencer.cif (!pmgr_present[dev])
dev925drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev941drivers/sound/sequencer.cif (dev)    /* Patch manager */
dev954drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev973drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev975drivers/sound/sequencer.cdev = dev >> 4;
dev1099drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1105drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1111drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1117drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1121drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1128drivers/sound/sequencer.csequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev1140drivers/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);
dev182drivers/sound/sound_calls.hint pmgr_open(int dev);
dev183drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev184drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev185drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev186drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev187drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev211drivers/sound/soundcard.cint             dev;
dev213drivers/sound/soundcard.cdev = inode->i_rdev;
dev214drivers/sound/soundcard.cdev = MINOR (dev);
dev216drivers/sound/soundcard.cDEB (printk ("sound_read(dev=%d, count=%d)\n", dev, count));
dev218drivers/sound/soundcard.cswitch (dev & 0x0f)
dev227drivers/sound/soundcard.creturn audio_read (dev, &files[dev], buf, count);
dev231drivers/sound/soundcard.creturn sequencer_read (dev, &files[dev], buf, count);
dev236drivers/sound/soundcard.creturn MIDIbuf_read (dev, &files[dev], buf, count);
dev240drivers/sound/soundcard.cprintk ("Sound: Undefined minor device %d\n", dev);
dev249drivers/sound/soundcard.cint             dev;
dev251drivers/sound/soundcard.cdev = inode->i_rdev;
dev252drivers/sound/soundcard.cdev = MINOR (dev);
dev254drivers/sound/soundcard.cDEB (printk ("sound_write(dev=%d, count=%d)\n", dev, count));
dev256drivers/sound/soundcard.cswitch (dev & 0x0f)
dev260drivers/sound/soundcard.creturn sequencer_write (dev, &files[dev], buf, count);
dev266drivers/sound/soundcard.creturn audio_write (dev, &files[dev], buf, count);
dev285drivers/sound/soundcard.cint             dev, retval;
dev287drivers/sound/soundcard.cdev = inode->i_rdev;
dev288drivers/sound/soundcard.cdev = MINOR (dev);
dev290drivers/sound/soundcard.cDEB (printk ("sound_open(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev292drivers/sound/soundcard.cif ((dev >= SND_NDEVS) || (dev < 0))
dev294drivers/sound/soundcard.cprintk ("Invalid minor device %d\n", dev);
dev298drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev304drivers/sound/soundcard.cfiles[dev].mode = 0;
dev307drivers/sound/soundcard.cfiles[dev].mode = OPEN_READWRITE;
dev309drivers/sound/soundcard.cfiles[dev].mode = OPEN_READ;
dev311drivers/sound/soundcard.cfiles[dev].mode = OPEN_WRITE;
dev313drivers/sound/soundcard.cswitch (dev & 0x0f)
dev335drivers/sound/soundcard.cif ((retval = sequencer_open (dev, &files[dev])) < 0)
dev341drivers/sound/soundcard.cif ((retval = MIDIbuf_open (dev, &files[dev])) < 0)
dev349drivers/sound/soundcard.cif ((retval = audio_open (dev, &files[dev])) < 0)
dev354drivers/sound/soundcard.cprintk ("Invalid minor device %d\n", dev);
dev358drivers/sound/soundcard.csbc_devices[dev].usecount++;
dev367drivers/sound/soundcard.cint             dev;
dev369drivers/sound/soundcard.cdev = inode->i_rdev;
dev370drivers/sound/soundcard.cdev = MINOR (dev);
dev372drivers/sound/soundcard.cDEB (printk ("sound_release(dev=%d)\n", dev));
dev374drivers/sound/soundcard.cswitch (dev & 0x0f)
dev387drivers/sound/soundcard.csequencer_release (dev, &files[dev]);
dev392drivers/sound/soundcard.cMIDIbuf_release (dev, &files[dev]);
dev399drivers/sound/soundcard.caudio_release (dev, &files[dev]);
dev403drivers/sound/soundcard.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev406drivers/sound/soundcard.csbc_devices[dev].usecount--;
dev414drivers/sound/soundcard.cint             dev;
dev416drivers/sound/soundcard.cdev = inode->i_rdev;
dev417drivers/sound/soundcard.cdev = MINOR (dev);
dev419drivers/sound/soundcard.cDEB (printk ("sound_ioctl(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev421drivers/sound/soundcard.cswitch (dev & 0x0f)
dev429drivers/sound/soundcard.cif (dev >= num_mixers)
dev432drivers/sound/soundcard.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev436drivers/sound/soundcard.creturn sequencer_ioctl (dev, &files[dev], cmd, arg);
dev442drivers/sound/soundcard.creturn audio_ioctl (dev, &files[dev], cmd, arg);
dev447drivers/sound/soundcard.creturn MIDIbuf_ioctl (dev, &files[dev], cmd, arg);
dev462drivers/sound/soundcard.cint             dev;
dev464drivers/sound/soundcard.cdev = inode->i_rdev;
dev465drivers/sound/soundcard.cdev = MINOR (dev);
dev467drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev469drivers/sound/soundcard.cswitch (dev & 0x0f)
dev472drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev611drivers/sound/soundcard.cint             i, dev;
dev621drivers/sound/soundcard.cfor (dev = 0; dev < num_dspdevs; dev++)  /* Enumerate devices */
dev622drivers/sound/soundcard.cif (sound_buffcounts[dev] > 0 && sound_dsp_dmachan[dev] > 0)
dev624drivers/sound/soundcard.cif (sound_dma_automode[dev])
dev625drivers/sound/soundcard.csound_buffcounts[dev] = 1;
dev627drivers/sound/soundcard.cif (sound_dsp_dmachan[dev] > 3 && sound_buffsizes[dev] > 65536)
dev634drivers/sound/soundcard.cif (sound_buffsizes[dev] > dma_pagesize)
dev635drivers/sound/soundcard.csound_buffsizes[dev] = dma_pagesize;
dev636drivers/sound/soundcard.csound_buffsizes[dev] &= 0xfffff000;  /* Truncate to n*4k */
dev637drivers/sound/soundcard.cif (sound_buffsizes[dev] < 4096)
dev638drivers/sound/soundcard.csound_buffsizes[dev] = 4096;
dev642drivers/sound/soundcard.cfor (snd_raw_count[dev] = 0; snd_raw_count[dev] < sound_buffcounts[dev]; snd_raw_count[dev]++)
dev644drivers/sound/soundcard.cstart_addr = mem_ptr - sound_buffsizes[dev];
dev645drivers/sound/soundcard.cif (!valid_dma_page (start_addr, sound_buffsizes[dev], dma_pagesize))
dev649drivers/sound/soundcard.cend_addr = start_addr + sound_buffsizes[dev] - 1;
dev651drivers/sound/soundcard.csnd_raw_buf[dev][snd_raw_count[dev]] = (char *) start_addr;
dev652drivers/sound/soundcard.csnd_raw_buf_phys[dev][snd_raw_count[dev]] = start_addr;
dev509drivers/sound/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev532drivers/sound/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev636drivers/sound/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev637drivers/sound/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev640drivers/sound/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev641drivers/sound/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev645drivers/sound/soundcard.h#define SEQ_START_NOTE(dev, voice, note, vol)  {_SEQ_NEEDBUF(8);\
dev648drivers/sound/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev656drivers/sound/soundcard.h#define SEQ_STOP_NOTE(dev, voice, note, vol)  {_SEQ_NEEDBUF(8);\
dev659drivers/sound/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev667drivers/sound/soundcard.h#define SEQ_CHN_PRESSURE(dev, voice, pressure)  {_SEQ_NEEDBUF(8);\
dev670drivers/sound/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev678drivers/sound/soundcard.h#define SEQ_PANNING(dev, voice, pos)  {_SEQ_NEEDBUF(8);\
dev681drivers/sound/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev689drivers/sound/soundcard.h#define SEQ_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev692drivers/sound/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev699drivers/sound/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev700drivers/sound/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev701drivers/sound/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_EXPRESSION, value)
dev702drivers/sound/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_MAIN_VOLUME, value)
dev710drivers/sound/soundcard.h#define SEQ_SET_PATCH(dev, voice, patch)  {_SEQ_NEEDBUF(8);\
dev713drivers/sound/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev25fs/block_dev.cunsigned int dev;
dev29fs/block_dev.cdev = inode->i_rdev;
dev31fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev32fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev44fs/block_dev.cif (blk_size[MAJOR(dev)])
dev45fs/block_dev.csize = (blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev55fs/block_dev.cbh = getblk(dev, block, blocksize);
dev57fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev92fs/block_dev.cunsigned int dev;
dev95fs/block_dev.cdev = inode->i_rdev;
dev97fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev98fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev107fs/block_dev.cif (blk_size[MAJOR(dev)])
dev108fs/block_dev.csize = blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev127fs/block_dev.cblocks += read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev147fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev92fs/buffer.cstatic int sync_buffers(dev_t dev, int wait)
dev106fs/buffer.cif (dev && bh->b_dev != dev)
dev150fs/buffer.cvoid sync_dev(dev_t dev)
dev152fs/buffer.csync_buffers(dev, 0);
dev153fs/buffer.csync_supers(dev);
dev154fs/buffer.csync_inodes(dev);
dev155fs/buffer.csync_buffers(dev, 0);
dev158fs/buffer.cint fsync_dev(dev_t dev)
dev160fs/buffer.csync_buffers(dev, 0);
dev161fs/buffer.csync_supers(dev);
dev162fs/buffer.csync_inodes(dev);
dev163fs/buffer.creturn sync_buffers(dev, 1);
dev191fs/buffer.cvoid invalidate_buffers(dev_t dev)
dev198fs/buffer.cif (bh->b_dev != dev)
dev201fs/buffer.cif (bh->b_dev == dev)
dev220fs/buffer.cvoid check_disk_change(dev_t dev)
dev225fs/buffer.cswitch(MAJOR(dev)){
dev227fs/buffer.cif (!(bh = getblk(dev,0,1024)))
dev235fs/buffer.ci = check_scsidisk_media_change(dev, 0);
dev241fs/buffer.ci = check_cdrom_media_change(dev, 0);
dev247fs/buffer.ci = check_cdu31a_media_change(dev, 0);
dev253fs/buffer.ci = check_mcd_media_change(dev, 0);
dev264fs/buffer.cMAJOR(dev), MINOR(dev));
dev266fs/buffer.cif (super_blocks[i].s_dev == dev)
dev268fs/buffer.cinvalidate_inodes(dev);
dev269fs/buffer.cinvalidate_buffers(dev);
dev274fs/buffer.cif (MAJOR(dev) == SCSI_DISK_MAJOR)
dev275fs/buffer.crevalidate_scsidisk(dev, 0);
dev279fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%NR_HASH)
dev280fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev357fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
dev361fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev362fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
dev367fs/buffer.cMAJOR(dev), MINOR(dev));
dev380fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
dev385fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev389fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
dev395fs/buffer.cvoid set_blocksize(dev_t dev, int size)
dev400fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev408fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev409fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev412fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev414fs/buffer.csync_buffers(dev, 2);
dev415fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev423fs/buffer.cif (bh->b_dev != dev)
dev429fs/buffer.cif (bh->b_dev == dev && bh->b_size != size)
dev447fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
dev454fs/buffer.cbh = get_hash_table(dev, block, size);
dev507fs/buffer.cif (find_buffer(dev,block,size))
dev516fs/buffer.cbh->b_dev=dev;
dev540fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev544fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev546fs/buffer.cMAJOR(dev), MINOR(dev));
dev564fs/buffer.cstruct buffer_head * breada(dev_t dev,int first, ...)
dev573fs/buffer.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev574fs/buffer.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev576fs/buffer.cif (!(bh = getblk(dev, first, blocksize))) {
dev578fs/buffer.cMAJOR(dev), MINOR(dev));
dev584fs/buffer.ctmp = getblk(dev, first, blocksize);
dev702fs/buffer.cdev_t dev, int *b, int size)
dev722fs/buffer.cfirst = get_hash_table(dev, block, size);
dev743fs/buffer.cdev_t dev, int b[], int size)
dev758fs/buffer.ctmp = get_hash_table(dev, block, size);
dev772fs/buffer.cbh->b_dev = dev;
dev809fs/buffer.cdev_t dev, int *b, int size)
dev817fs/buffer.cbh = get_hash_table(dev, block, size);
dev819fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev820fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev835fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot)
dev842fs/buffer.cwhere = try_to_share_buffers(address,dev,b,size);
dev850fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev189fs/ext/freelists.cdev_t dev;
dev211fs/ext/freelists.cdev = inode->i_dev;
dev229fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev62fs/ext/inode.cint dev = s->s_dev,block;
dev65fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev66fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev91fs/ext/inode.cdev);
dev97fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev108fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev118fs/ext/inode.cs->s_dev = dev;
dev25fs/ext2/dcache.cunsigned short dev;
dev54fs/ext2/dcache.c#define hash(dev,dir)  ((dev ^ dir) % HASH_QUEUES)
dev83fs/ext2/dcache.cstatic struct dir_cache_entry * find_name (int queue, unsigned short dev,
dev89fs/ext2/dcache.cfor (p = queue_head[queue]; p != NULL && (p->dev != dev ||
dev108fs/ext2/dcache.cp->dev, p->dir, p->name);
dev178fs/ext2/dcache.cvoid ext2_dcache_invalidate (unsigned short dev)
dev187fs/ext2/dcache.cif (p->dev == dev) {
dev189fs/ext2/dcache.cremove_from_queue (hash (p->dev, p->dir), p);
dev202fs/ext2/dcache.cunsigned long ext2_dcache_lookup (unsigned short dev, unsigned long dir,
dev216fs/ext2/dcache.cprintk ("dcache_lookup (%04x, %lu, %s, %d)\n", dev, dir, our_name, len);
dev218fs/ext2/dcache.cqueue = hash (dev, dir);
dev219fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, our_name, len))) {
dev252fs/ext2/dcache.cvoid ext2_dcache_add (unsigned short dev, unsigned long dir, const char * name,
dev262fs/ext2/dcache.cdev, dir, name, len, ino);
dev266fs/ext2/dcache.cqueue = hash (dev, dir);
dev267fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, name, len))) {
dev290fs/ext2/dcache.cremove_from_queue (hash (p->dev, p->dir), p);
dev293fs/ext2/dcache.cp->dev = dev;
dev312fs/ext2/dcache.cvoid ext2_dcache_remove (unsigned short dev, unsigned long dir,
dev321fs/ext2/dcache.cprintk ("dcache_remove (%04x, %lu, %s, %d)\n", dev, dir, name, len);
dev325fs/ext2/dcache.cqueue = hash (dev, dir);
dev326fs/ext2/dcache.cif ((p = find_name (queue, dev, dir, name, len))) {
dev208fs/ext2/super.cint dev = s->s_dev;
dev223fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev224fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev245fs/ext2/super.cdev);
dev256fs/ext2/super.cset_blocksize (dev, s->s_blocksize);
dev259fs/ext2/super.cbh = bread (dev, logic_sb_block, s->s_blocksize);
dev328fs/ext2/super.cdev);
dev337fs/ext2/super.cdev);
dev366fs/ext2/super.cs->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev388fs/ext2/super.cs->s_dev = dev;
dev238fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno);
dev249fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev255fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino);
dev256fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino,
dev258fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev260fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev262fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp);
dev263fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev338fs/hpfs/hpfs_fs.cdev_t dev;
dev361fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev362fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev368fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev372fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev376fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev491fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev837fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno)
dev843fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1538fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev1544fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1568fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino)
dev1574fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1585fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp)
dev1594fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1606fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev1616fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1628fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev1638fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1650fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp)
dev1654fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1664fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev1679fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev,
dev1685fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1690fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1695fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev20fs/inode.cstatic inline int const hashfn(dev_t dev, unsigned int i)
dev22fs/inode.creturn (dev ^ i) % NR_IHASH;
dev25fs/inode.cstatic inline struct inode ** const hash(dev_t dev, int i)
dev27fs/inode.creturn hash_table + hashfn(dev, i);
dev158fs/inode.cint fs_may_mount(dev_t dev)
dev167fs/inode.cif (inode->i_dev != dev)
dev176fs/inode.cint fs_may_umount(dev_t dev, struct inode * mount_root)
dev183fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev192fs/inode.cint fs_may_remount_ro(dev_t dev)
dev200fs/inode.cfile->f_inode->i_dev != dev)
dev265fs/inode.cvoid invalidate_inodes(dev_t dev)
dev274fs/inode.cif (inode->i_dev != dev)
dev277fs/inode.cprintk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev));
dev284fs/inode.cvoid sync_inodes(dev_t dev)
dev291fs/inode.cif (dev && inode->i_dev != dev)
dev210fs/isofs/dir.ccache.dev = inode->i_dev;
dev127fs/isofs/inode.cint dev=s->s_dev;
dev151fs/isofs/inode.cset_blocksize(dev, blocksize);
dev158fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), blocksize))) {
dev161fs/isofs/inode.cdev, iso_blknum);
dev254fs/isofs/inode.cs->s_dev = dev;
dev647fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev649fs/isofs/inode.creturn bread(dev, block, size);
dev229fs/isofs/namei.cif (dir->i_dev == cache.dev && 
dev58fs/minix/inode.cint i,dev=s->s_dev,block;
dev63fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
dev92fs/minix/inode.cdev);
dev101fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev106fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev123fs/minix/inode.cs->s_dev = dev;
dev392fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev418fs/namei.creturn dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev421fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev439fs/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)
dev366fs/proc/array.cdev_t dev;
dev397fs/proc/array.cdev = map->vm_inode->i_dev;
dev400fs/proc/array.cdev = 0;
dev406fs/proc/array.cMAJOR(dev),MINOR(dev), ino);
dev107fs/proc/link.cunsigned int dev,ino;
dev115fs/proc/link.cdev = inode->i_dev;
dev118fs/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)))
dev219fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev223fs/super.cMAJOR(dev), MINOR(dev));
dev224fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev233fs/super.cput_super(dev);
dev251fs/super.cdev_t dev;
dev265fs/super.cdev = inode->i_rdev;
dev275fs/super.cdev = inode->i_sb->s_dev;
dev278fs/super.cdummy_inode.i_rdev = dev;
dev281fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev285fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev286fs/super.cfops = get_blkfops(MAJOR(dev));
dev289fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev290fs/super.cput_unnamed_dev(dev);
dev296fs/super.cfsync_dev(dev);
dev309fs/super.cstatic int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data)
dev326fs/super.cif (!fs_may_mount(dev)) {
dev330fs/super.csb = read_super(dev,type,flags,data,0);
dev401fs/super.cdev_t dev;
dev438fs/super.cdev = inode->i_rdev;
dev439fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev444fs/super.cif (!(dev = get_unnamed_dev()))
dev448fs/super.cfops = get_blkfops(MAJOR(dev));
dev480fs/super.cretval = do_mount(dev,dir_name,t,flags,(void *) page);
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;
dev339include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev340include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev341include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev353include/linux/fs.hextern void check_disk_change(dev_t dev);
dev354include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev355include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev357include/linux/fs.hextern void sync_inodes(dev_t dev);
dev358include/linux/fs.hextern void sync_dev(dev_t dev);
dev359include/linux/fs.hextern int fsync_dev(dev_t dev);
dev360include/linux/fs.hextern void sync_supers(dev_t dev);
dev368include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev377include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev378include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev380include/linux/fs.hextern void ll_rw_page(int rw, int dev, int nr, char * buffer);
dev381include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev383include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev384include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev385include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot);
dev386include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block,...);
dev387include/linux/fs.hextern void put_super(dev_t dev);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev195include/linux/iso_fs.hdev_t dev;  /* And this matches */
dev211include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev113include/linux/msdos_fs.hstatic inline struct buffer_head *msdos_sread(int dev,int sector,void **start)
dev117include/linux/msdos_fs.hif (!(bh = bread(dev,sector >> 1, 1024)))
dev276include/linux/tpqic02.h#define  TP_DENS(dev)  ((MINOR(dev) >> 1) & 0x07)         /* tape density */
dev277include/linux/tpqic02.h#define TP_UNIT(dev)  ((MINOR(dev) >> 4) & 0x07)         /* unit number */
dev278include/linux/tpqic02.h#define TP_DIAGS(dev)  (MINOR(dev) & 0x80)    /* print excessive diagnostics */
dev117include/linux/xd.hstatic int xd_reread_partitions (int dev);
dev47net/ddi.cregister struct ddi_device *dev;
dev50net/ddi.cdev = devices;
dev51net/ddi.cwhile (dev->title != NULL) {
dev52net/ddi.cif (strncmp(dev->name, id, DDI_MAXNAME) == 0) {
dev53net/ddi.cPRINTK (("OK at 0x%X\n", dev));
dev54net/ddi.creturn(dev);
dev56net/ddi.cdev++;
dev72net/ddi.cstruct ddi_device *dev;
dev84net/ddi.cdev = devices;
dev85net/ddi.cwhile (dev->title != NULL) {
dev86net/ddi.c(*dev->init)(dev);
dev87net/ddi.cdev++;
dev236net/inet/arp.cif (skb->arp || !skb->dev->rebuild_header(skb+1, skb->dev)) {
dev238net/inet/arp.cskb->dev->queue_xmit(skb, skb->dev, 0);
dev250net/inet/arp.carp_response(struct arphdr *arp1, struct device *dev,  int addrtype)
dev275net/inet/arp.cdev->hard_header_len, GFP_ATOMIC);
dev283net/inet/arp.c(2 * arp1->ar_pln) + dev->hard_header_len;
dev285net/inet/arp.chlen = dev->hard_header((unsigned char *)(skb+1), dev,
dev306net/inet/arp.cmemcpy(ptr2, dev->dev_addr, arp2->ar_hln);
dev325net/inet/arp.cdev->queue_xmit(skb, dev, 0);
dev463net/inet/arp.carp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev477net/inet/arp.cif (arp->ar_hln != dev->addr_len || dev->type != NET16(arp->ar_hrd)) 
dev479net/inet/arp.cDPRINTF((DBG_ARP,"ARP: Bad packet received on device \"%s\" !\n", dev->name));
dev488net/inet/arp.cDPRINTF((DBG_ARP,"ARP: Non-IP request on device \"%s\" !\n", dev->name));
dev558net/inet/arp.cret = arp_response(arp, dev, addr_hint);
dev566net/inet/arp.carp_send(unsigned long paddr, struct device *dev, unsigned long saddr)
dev574net/inet/arp.cDPRINTF((DBG_ARP, "dev=%s, ", dev->name));
dev578net/inet/arp.csizeof(struct arphdr) + (2 * dev->addr_len) +
dev579net/inet/arp.cdev->hard_header_len +
dev590net/inet/arp.cdev->hard_header_len + (2 * dev->addr_len) + 8;
dev593net/inet/arp.cskb->dev = dev;
dev596net/inet/arp.ctmp = dev->hard_header((unsigned char *)(skb+1), dev,
dev603net/inet/arp.carp->ar_hrd = htons(dev->type);
dev605net/inet/arp.carp->ar_hln = dev->addr_len;
dev610net/inet/arp.cmemcpy(ptr, dev->dev_addr, arp->ar_hln);
dev621net/inet/arp.cdev->queue_xmit(skb, dev, 0);
dev627net/inet/arp.carp_find(unsigned char *haddr, unsigned long paddr, struct device *dev,
dev634net/inet/arp.cDPRINTF((DBG_ARP, "dev=%s, saddr=%s)\n", dev->name, in_ntoa(saddr)));
dev638net/inet/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev641net/inet/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev655net/inet/arp.cmemcpy(haddr, apt->ha, dev->addr_len);
dev671net/inet/arp.carp_send(paddr, dev, saddr);
dev679net/inet/arp.carp_add(unsigned long addr, unsigned char *haddr, struct device *dev)
dev685net/inet/arp.cDPRINTF((DBG_ARP, "%d, %d)\n", dev->hard_header_len, dev->type));
dev698net/inet/arp.cmemcpy(apt->ha, haddr , dev->addr_len);
dev701net/inet/arp.carp_create(addr, haddr, dev->addr_len, dev->type);
dev707net/inet/arp.carp_add_broad(unsigned long addr, struct device *dev)
dev711net/inet/arp.carp_add(addr, dev->broadcast, dev);
dev52net/inet/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev55net/inet/arp.hstruct device *dev, unsigned long saddr);
dev57net/inet/arp.hstruct device *dev);
dev58net/inet/arp.hextern void  arp_add_broad(unsigned long addr, struct device *dev);
dev139net/inet/dev.cstruct device *dev;
dev163net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev164net/inet/dev.cif (dev->pa_addr == 0)
dev166net/inet/dev.cif(dev->flags&IFF_PROMISC)  /* This allows all addresses through */
dev173net/inet/dev.cif (addr == dev->pa_addr) {
dev179net/inet/dev.cif ((addr & dev->pa_mask) == (dev->pa_addr & dev->pa_mask)) {
dev180net/inet/dev.cif ((addr & ~dev->pa_mask) == 0) {
dev184net/inet/dev.cif (((addr & ~dev->pa_mask) | dev->pa_mask)
dev214net/inet/dev.cstruct device *dev;
dev216net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev217net/inet/dev.cif (dev->flags & IFF_LOOPBACK) return(dev->pa_addr);
dev275net/inet/dev.cstruct device *dev;
dev277net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev278net/inet/dev.cif (strcmp(dev->name, name) == 0) 
dev279net/inet/dev.creturn(dev);
dev289net/inet/dev.cstruct device *dev;
dev291net/inet/dev.cfor (dev = dev_base; dev; dev = dev->next)
dev292net/inet/dev.cif ((dev->flags & IFF_UP) && (dev->flags & IFF_POINTOPOINT) &&
dev293net/inet/dev.c(addr == dev->pa_dstaddr))
dev294net/inet/dev.creturn dev;
dev295net/inet/dev.cfor (dev = dev_base; dev; dev = dev->next)
dev296net/inet/dev.cif ((dev->flags & IFF_UP) && !(dev->flags & IFF_POINTOPOINT) &&
dev297net/inet/dev.c(dev->flags & IFF_LOOPBACK ? (addr == dev->pa_addr) :
dev298net/inet/dev.c(dev->pa_mask & addr) == (dev->pa_addr & dev->pa_mask)))
dev301net/inet/dev.creturn dev;
dev307net/inet/dev.cdev_open(struct device *dev)
dev311net/inet/dev.cif (dev->open) 
dev312net/inet/dev.cret = dev->open(dev);
dev314net/inet/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev322net/inet/dev.cdev_close(struct device *dev)
dev324net/inet/dev.cif (dev->flags != 0) {
dev326net/inet/dev.cdev->flags = 0;
dev327net/inet/dev.cif (dev->stop) 
dev328net/inet/dev.cdev->stop(dev);
dev329net/inet/dev.crt_flush(dev);
dev330net/inet/dev.cdev->pa_addr = 0;
dev331net/inet/dev.cdev->pa_dstaddr = 0;
dev332net/inet/dev.cdev->pa_brdaddr = 0;
dev333net/inet/dev.cdev->pa_mask = 0;
dev338net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev351net/inet/dev.cdev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev358net/inet/dev.cskb, dev, pri));
dev360net/inet/dev.cif (dev == NULL) {
dev367net/inet/dev.cskb->dev = dev;
dev370net/inet/dev.cdev->hard_start_xmit(NULL, dev);
dev384net/inet/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev390net/inet/dev.cpri, dev->buffs[pri]));
dev396net/inet/dev.cskb_queue_head(&dev->buffs[pri],skb);
dev398net/inet/dev.cskb_queue_tail(&dev->buffs[pri],skb);
dev436net/inet/dev.cdev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev444net/inet/dev.cif (dev == NULL || buff == NULL || len <= 0) return(1);
dev458net/inet/dev.cdev->name);
dev470net/inet/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev477net/inet/dev.cif ((unsigned long) buff == dev->rmem_end)
dev478net/inet/dev.cbuff = (unsigned char *) dev->rmem_start;
dev482net/inet/dev.cskb->dev = dev;
dev495net/inet/dev.cstruct device *dev;
dev497net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev498net/inet/dev.cif (!dev->tbusy) {
dev499net/inet/dev.cdev_tint(dev);
dev543net/inet/dev.cskb->h.raw = (unsigned char *) (skb + 1) + skb->dev->hard_header_len;
dev544net/inet/dev.cskb->len -= skb->dev->hard_header_len;
dev556net/inet/dev.ctype = skb->dev->type_trans(skb, skb->dev);
dev591net/inet/dev.cptype->func(skb2, skb->dev, ptype);
dev621net/inet/dev.cvoid dev_tint(struct device *dev)
dev627net/inet/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev632net/inet/dev.cdev->queue_xmit(skb,dev,-i - 1);
dev633net/inet/dev.cif (dev->tbusy)
dev646net/inet/dev.cstruct device *dev;
dev657net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev658net/inet/dev.cif(!(dev->flags & IFF_UP))
dev661net/inet/dev.cstrcpy(ifr.ifr_name, dev->name);
dev662net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev663net/inet/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev680net/inet/dev.cchar *sprintf_stats(char *buffer, struct device *dev)
dev683net/inet/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev687net/inet/dev.cdev->name,
dev698net/inet/dev.cpos += sprintf(pos, "%6s: No statistics available.\n", dev->name);
dev708net/inet/dev.cstruct device *dev;
dev714net/inet/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev715net/inet/dev.cpos = sprintf_stats(pos, dev);
dev725net/inet/dev.cstruct device *dev;
dev733net/inet/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) return(-EINVAL);
dev737net/inet/dev.cifr.ifr_flags = dev->flags;
dev743net/inet/dev.cint old_flags = dev->flags;
dev744net/inet/dev.cdev->flags = ifr.ifr_flags & (
dev749net/inet/dev.cif ( (old_flags & IFF_PROMISC) && ((dev->flags & IFF_PROMISC) == 0))
dev750net/inet/dev.cdev->set_multicast_list(dev,0,NULL);
dev751net/inet/dev.cif ( (dev->flags & IFF_PROMISC) && ((old_flags & IFF_PROMISC) == 0))
dev752net/inet/dev.cdev->set_multicast_list(dev,-1,NULL);
dev753net/inet/dev.cif ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) {
dev754net/inet/dev.cret = dev_close(dev);
dev756net/inet/dev.cret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP))
dev757net/inet/dev.c? dev_open(dev) : 0;
dev762net/inet/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev764net/inet/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev771net/inet/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev773net/inet/dev.cdev->family = ifr.ifr_addr.sa_family;
dev774net/inet/dev.cdev->pa_mask = get_mask(dev->pa_addr);
dev775net/inet/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev780net/inet/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev782net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev789net/inet/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev795net/inet/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev797net/inet/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev804net/inet/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev810net/inet/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev812net/inet/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev819net/inet/dev.cdev->pa_mask = (*(struct sockaddr_in *)
dev824net/inet/dev.cifr.ifr_metric = dev->metric;
dev829net/inet/dev.cdev->metric = ifr.ifr_metric;
dev833net/inet/dev.cifr.ifr_mtu = dev->mtu;
dev838net/inet/dev.cdev->mtu = ifr.ifr_mtu;
dev850net/inet/dev.cmemcpy(ifr.ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev866net/inet/dev.cstruct ddi_device *dev;
dev872net/inet/dev.cstruct device *dev;
dev888net/inet/dev.cdev = dev_get( loopback ? "lo" : ipc.name);
dev889net/inet/dev.cif (dev == NULL)
dev892net/inet/dev.cdev->pa_addr = ipc.paddr;
dev893net/inet/dev.cdev->family = AF_INET;
dev894net/inet/dev.cdev->pa_mask = get_mask(dev->pa_addr);
dev895net/inet/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev897net/inet/dev.cdev->flags |= IFF_BROADCAST;
dev898net/inet/dev.cdev->pa_brdaddr = ipc.net;
dev903net/inet/dev.creturn (dev->flags & IFF_UP != 0) ? dev_close(dev) : 0;
dev905net/inet/dev.cif ((dev->flags & IFF_UP) == 0
dev906net/inet/dev.c&& (retval = dev_open(dev)) != 0)
dev908net/inet/dev.cprintk("%s: adding HOST route of %8.8lx.\n", dev->name,
dev910net/inet/dev.crt_add(RTF_HOST, ipc.paddr, 0, dev);
dev912net/inet/dev.crt_add(RTF_GATEWAY, ipc.paddr, ipc.router, dev);
dev914net/inet/dev.cdev->name, htonl(ipc.paddr));
dev946net/inet/dev.cdev = ddi_map(iflink.id);
dev947net/inet/dev.cif (dev == NULL) return(-EINVAL);
dev951net/inet/dev.cdev->name, iflink.stream);
dev966net/inet/dev.cstruct device *dev, *dev2;
dev974net/inet/dev.cfor (dev = dev_base; dev != NULL; dev=dev->next) {
dev975net/inet/dev.cif (dev->init && dev->init(dev)) {
dev976net/inet/dev.cif (dev2 == NULL) dev_base = dev->next;
dev977net/inet/dev.celse dev2->next = dev->next;
dev979net/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,
dev171net/inet/dev.hextern int    dev_open(struct device *dev);
dev172net/inet/dev.hextern int    dev_close(struct device *dev);
dev173net/inet/dev.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev179net/inet/dev.hstruct device * dev);
dev183net/inet/dev.hextern void    dev_tint(struct device *dev);
dev97net/inet/eth.ceth_header(unsigned char *buff, struct device *dev, unsigned short type,
dev110net/inet/eth.cif (dev->flags & IFF_LOOPBACK) {
dev112net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev113net/inet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev114net/inet/eth.creturn(dev->hard_header_len);
dev120net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev121net/inet/eth.cmemcpy(eth->h_dest, dev->broadcast, dev->addr_len);
dev122net/inet/eth.creturn(dev->hard_header_len);
dev127net/inet/eth.cif (arp_find(eth->h_dest, daddr, dev, saddr)) 
dev132net/inet/eth.creturn(-dev->hard_header_len);
dev136net/inet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);  /* This was missing causing chaos if the
dev139net/inet/eth.creturn(dev->hard_header_len);
dev146net/inet/eth.ceth_rebuild_header(void *buff, struct device *dev)
dev158net/inet/eth.cif (arp_find(eth->h_dest, dst, dev, src)) return(1);
dev159net/inet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev166net/inet/eth.ceth_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev171net/inet/eth.carp_add(addr, eth->h_source, dev);
dev177net/inet/eth.ceth_type_trans(struct sk_buff *skb, struct device *dev)
dev27net/inet/eth.hextern int    eth_header(unsigned char *buff, struct device *dev,
dev30net/inet/eth.hextern int    eth_rebuild_header(void *buff, struct device *dev);
dev32net/inet/eth.hstruct device *dev);
dev33net/inet/eth.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev79net/inet/icmp.cicmp_send(struct sk_buff *skb_in, int type, int code, struct device *dev)
dev88net/inet/icmp.cskb_in, type, code, dev));
dev91net/inet/icmp.clen = sizeof(struct sk_buff) + dev->hard_header_len +
dev106net/inet/icmp.ciph = (struct iphdr *) ((unsigned char *) iph + dev->hard_header_len);
dev110net/inet/icmp.c&dev, IPPROTO_ICMP, NULL, len);
dev133net/inet/icmp.cip_queue_xmit(NULL, dev, skb, 1);
dev203net/inet/icmp.cicmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev)
dev213net/inet/icmp.cip, icmph->un.gateway, dev);
dev217net/inet/icmp.cip, icmph->un.gateway, dev);
dev235net/inet/icmp.cicmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev243net/inet/icmp.csize = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len;
dev256net/inet/icmp.coffset = ip_build_header(skb2, daddr, saddr, &dev,
dev278net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev287net/inet/icmp.cicmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev299net/inet/icmp.cicmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev307net/inet/icmp.csize = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len;
dev320net/inet/icmp.coffset = ip_build_header(skb2, daddr, saddr, &dev,
dev340net/inet/icmp.cmemcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask));
dev345net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
dev354net/inet/icmp.cicmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt,
dev391net/inet/icmp.cicmp_redirect(icmph, skb1, dev);
dev394net/inet/icmp.cicmp_echo(icmph, skb1, dev, saddr, daddr, len, opt);
dev401net/inet/icmp.cicmp_info(icmph, skb1, dev, saddr, daddr, len, opt);
dev408net/inet/icmp.cicmp_address(icmph, skb1, dev, saddr, daddr, len, opt);
dev27net/inet/icmp.hstruct device *dev);
dev28net/inet/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev170net/inet/ip.cip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev,
dev179net/inet/ip.cif (dev->hard_header) {
dev180net/inet/ip.cmac = dev->hard_header(ptr, dev, ETH_P_IP, daddr, saddr, len);
dev186net/inet/ip.cskb->dev = dev;
dev199net/inet/ip.cstruct device **dev, int type, struct options *opt, int len)
dev214net/inet/ip.cskb, saddr, daddr, *dev, type, opt, len));
dev219net/inet/ip.cif (*dev == NULL) {
dev224net/inet/ip.c*dev = rt->rt_dev;
dev240net/inet/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev244net/inet/ip.cskb->dev = *dev;
dev634net/inet/ip.cICMP_EXC_FRAGTIME, qp->dev);
dev648net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev690net/inet/ip.cqp->dev = dev;
dev802net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev842net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
dev851net/inet/ip.cptr = ((unsigned char *) (skb + 1)) + dev->hard_header_len + ihl;
dev953net/inet/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev964net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
dev969net/inet/ip.chlen += dev->hard_header_len;
dev970net/inet/ip.cmtu = (dev->mtu - hlen);
dev975net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
dev983net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
dev991net/inet/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); 
dev1004net/inet/ip.clen = (dev->mtu - hlen - 8);
dev1034net/inet/ip.cskb2->h.raw+=dev->hard_header_len; 
dev1047net/inet/ip.cip_queue_xmit(sk, dev, skb2, 1);
dev1058net/inet/ip.cip_forward(struct sk_buff *skb, struct device *dev, int is_frag)
dev1072net/inet/ip.cif(dev->flags&IFF_PROMISC)
dev1074net/inet/ip.cif(memcmp((char *)&skb[1],dev->dev_addr,dev->addr_len))
dev1091net/inet/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev);
dev1107net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev);
dev1125net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev);
dev1132net/inet/ip.cif (dev == dev2)
dev1179net/inet/ip.cip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1219net/inet/ip.cip_forward(skb, dev, is_frag);
dev1236net/inet/ip.cskb=ip_defrag(iph,skb,dev);
dev1246net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1303net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
dev1317net/inet/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev);
dev1334net/inet/ip.cip_queue_xmit(struct sock *sk, struct device *dev, 
dev1341net/inet/ip.cif (dev == NULL) {
dev1347net/inet/ip.cskb->dev = dev;
dev1352net/inet/ip.cptr += dev->hard_header_len;
dev1354net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
dev1356net/inet/ip.cif(skb->len > dev->mtu)
dev1359net/inet/ip.cip_fragment(sk,skb,dev,0);
dev1396net/inet/ip.cif (dev->flags & IFF_UP) {
dev1398net/inet/ip.cdev->queue_xmit(skb, dev, sk->priority);
dev1401net/inet/ip.cdev->queue_xmit(skb, dev, SOPRI_NORMAL);
dev1414net/inet/ip.cstruct device *dev;
dev1419net/inet/ip.cdev = skb->dev;
dev1421net/inet/ip.cif(dev==NULL)
dev1438net/inet/ip.cif (dev->rebuild_header(skb+1, dev)) {
dev1450net/inet/ip.cif (dev->flags & IFF_UP) {
dev1451net/inet/ip.cif (sk) dev->queue_xmit(skb, dev, sk->priority);
dev58net/inet/ip.hstruct device *dev;    /* Device - for icmp replies */
dev71net/inet/ip.hstruct device **dev, int type,
dev74net/inet/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev77net/inet/ip.hstruct device *dev, struct sk_buff *skb,
dev47net/inet/loopback.cloopback_xmit(struct sk_buff *skb, struct device *dev)
dev49net/inet/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev52net/inet/loopback.cDPRINTF((DBG_LOOPB, "loopback_xmit(dev=%X, skb=%X)\n", dev, skb));
dev53net/inet/loopback.cif (skb == NULL || dev == NULL) return(0);
dev56net/inet/loopback.cif (dev->tbusy != 0) {
dev61net/inet/loopback.cdev->tbusy = 1;
dev64net/inet/loopback.cdone = dev_rint((unsigned char *)(skb+1), skb->len, 0, dev);
dev68net/inet/loopback.cdone = dev_rint(NULL, 0, 0, dev);
dev72net/inet/loopback.cdev->tbusy = 0;
dev93net/inet/loopback.cget_stats(struct device *dev)
dev95net/inet/loopback.creturn (struct enet_statistics *)dev->priv;
dev100net/inet/loopback.cloopback_init(struct device *dev)
dev102net/inet/loopback.cdev->mtu    = 2000;      /* MTU      */
dev103net/inet/loopback.cdev->tbusy    = 0;
dev104net/inet/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev105net/inet/loopback.cdev->open    = NULL;
dev107net/inet/loopback.cdev->hard_header  = eth_header;
dev108net/inet/loopback.cdev->add_arp    = NULL;
dev109net/inet/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev110net/inet/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev111net/inet/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev112net/inet/loopback.cdev->type_trans  = eth_type_trans;
dev113net/inet/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev115net/inet/loopback.cdev->hard_header_length = 0;
dev116net/inet/loopback.cdev->add_arp    = NULL;
dev117net/inet/loopback.cdev->addr_len    = 0;
dev118net/inet/loopback.cdev->type    = 0;      /* loopback_type (0)  */
dev119net/inet/loopback.cdev->hard_header  = NULL;
dev120net/inet/loopback.cdev->type_trans  = NULL;
dev121net/inet/loopback.cdev->rebuild_header  = NULL;
dev123net/inet/loopback.cdev->queue_xmit  = dev_queue_xmit;
dev126net/inet/loopback.cdev->flags    = IFF_LOOPBACK;
dev127net/inet/loopback.cdev->family    = AF_INET;
dev128net/inet/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev129net/inet/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev130net/inet/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev131net/inet/loopback.cdev->pa_alen    = sizeof(unsigned long);
dev132net/inet/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev133net/inet/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev134net/inet/loopback.cdev->get_stats = get_stats;
dev58net/inet/packet.cpacket_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev63net/inet/packet.cskb->dev = dev;
dev64net/inet/packet.cskb->len += dev->hard_header_len;
dev89net/inet/packet.cstruct device *dev;
dev113net/inet/packet.cdev = dev_get(saddr.sa_data);
dev114net/inet/packet.cif (dev == NULL) {
dev117net/inet/packet.cif(len>dev->mtu)
dev136net/inet/packet.cif (dev->flags & IFF_UP) dev->queue_xmit(skb, dev, sk->priority);
dev222net/inet/packet.caddr.sa_family = skb->dev->type;
dev223net/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,
dev89net/inet/raw.craw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev97net/inet/raw.cskb, dev, opt, daddr, len, saddr, redo, protocol));
dev113net/inet/raw.cskb->dev = dev;
dev138net/inet/raw.cstruct device *dev=NULL;
dev215net/inet/raw.csin.sin_addr.s_addr, &dev,
dev242net/inet/raw.cif(dev!=NULL && skb->len > 4095)
dev249net/inet/raw.csk->prot->queue_xmit(sk, dev, skb, 1);
dev26net/inet/raw.hextern int  raw_rcv(struct sk_buff *skb, struct device *dev,
dev96net/inet/route.crt_flush(struct device *dev)
dev101net/inet/route.cDPRINTF((DBG_RT, "RT: flushing for dev 0x%08lx (%s)\n", (long)dev, dev->name));
dev109net/inet/route.cif (r->rt_dev == dev) {
dev125net/inet/route.crt_add(short flags, unsigned long dst, unsigned long gw, struct device *dev)
dev143net/inet/route.crt->rt_dev = dev;
dev155net/inet/route.crt->rt_dst = (dst & dev->pa_mask);
dev157net/inet/route.cif(rt->rt_dst == (dev->pa_addr & dev->pa_mask)){
dev238net/inet/route.cstruct device *dev;
dev257net/inet/route.cdev = dev_check(((struct sockaddr_in *) &r->rt_dst)->sin_addr.s_addr);
dev261net/inet/route.cdev = rt->rt_dev;
dev263net/inet/route.cdev = NULL;
dev269net/inet/route.cr->rt_flags, dev, (dev == NULL) ? "NONE" : dev->name));
dev271net/inet/route.cif (dev == NULL) return(-ENETUNREACH);
dev274net/inet/route.c(*(struct sockaddr_in *) &r->rt_gateway).sin_addr.s_addr, dev);
dev362net/inet/route.cstruct device *dev;
dev384net/inet/route.cdev = dev_get(namebuf);
dev385net/inet/route.crt.rt_dev = dev;
dev38net/inet/route.hextern void    rt_flush(struct device *dev);
dev40net/inet/route.hunsigned long gw, struct device *dev);
dev49net/inet/skbuff.hstruct device      *dev;
dev384net/inet/sock.cskb->dev = NULL;
dev1677net/inet/sock.cif (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt,
dev157net/inet/sock.hstruct device **dev, int type,
dev163net/inet/sock.hstruct device *dev, struct sk_buff *skb,
dev168net/inet/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev583net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb,0);
dev597net/inet/tcp.cstruct device *dev = NULL;
dev624net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev665net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev706net/inet/tcp.cstruct device *dev = NULL;
dev889net/inet/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev899net/inet/tcp.cskb->dev = dev;
dev946net/inet/tcp.cprot->queue_xmit(sk, dev, skb,0);
dev980net/inet/tcp.cstruct device *dev = NULL;
dev1010net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1037net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1453net/inet/tcp.cstruct device *dev = NULL;
dev1485net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev1498net/inet/tcp.cbuff->dev = dev;
dev1522net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev1572net/inet/tcp.cstruct proto *prot, struct options *opt, struct device *dev)
dev1591net/inet/tcp.cbuff->dev = dev;
dev1596net/inet/tcp.ctmp = prot->build_header(buff, saddr, daddr, &dev, IPPROTO_TCP, opt,
dev1635net/inet/tcp.cprot->queue_xmit(NULL, dev, buff, 1);
dev1700net/inet/tcp.cstruct options *opt, struct device *dev)
dev1711net/inet/tcp.csk, skb, daddr, saddr, opt, dev));
dev1720net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev);
dev1807net/inet/tcp.cnewsk->mtu = dev->mtu - HEADER_SIZE;
dev1811net/inet/tcp.cnewsk->mtu = dev->mtu - HEADER_SIZE;
dev1814net/inet/tcp.cdev->mtu - HEADER_SIZE);
dev1837net/inet/tcp.ctmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &dev,
dev1877net/inet/tcp.cptr[2] =((dev->mtu - HEADER_SIZE) >> 8) & 0xff;
dev1878net/inet/tcp.cptr[3] =(dev->mtu - HEADER_SIZE) & 0xff;
dev1881net/inet/tcp.cnewsk->prot->queue_xmit(newsk, dev, buff, 0);
dev1903net/inet/tcp.cstruct device *dev=NULL;
dev2000net/inet/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2012net/inet/tcp.cbuff->dev = dev;
dev2029net/inet/tcp.cprot->queue_xmit(sk, dev, buff, 0);
dev2093net/inet/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev2197net/inet/tcp.cif (skb->dev->buffs[i] == skb) {
dev2199net/inet/tcp.cskb->dev->buffs[i] = NULL;
dev2201net/inet/tcp.cskb->dev->buffs[i] = skb->next;
dev2424net/inet/tcp.csk->prot, NULL, skb->dev);
dev2668net/inet/tcp.cunsigned long saddr, struct device *dev)
dev2671net/inet/tcp.csk, th, saddr, dev));
dev2768net/inet/tcp.cstruct device *dev=NULL;
dev2815net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev2843net/inet/tcp.cptr[2] = (dev->mtu- HEADER_SIZE) >> 8;
dev2844net/inet/tcp.cptr[3] = (dev->mtu- HEADER_SIZE) & 0xff;
dev2845net/inet/tcp.csk->mtu = dev->mtu - HEADER_SIZE;
dev2855net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev2912net/inet/tcp.ctcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev2933net/inet/tcp.cif (!dev) {
dev2972net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev);
dev3098net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev);
dev3122net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) {
dev3148net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
dev3161net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
dev3170net/inet/tcp.ctcp_reset(daddr, saddr, th, prot, opt,dev);
dev3182net/inet/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev);
dev3216net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
dev3239net/inet/tcp.csk->prot, opt,dev);
dev3264net/inet/tcp.csk->prot, opt, dev);
dev3297net/inet/tcp.cif (th->fin) tcp_fin(sk, th, saddr, dev);
dev3320net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
dev3336net/inet/tcp.cstruct device *dev=NULL;
dev3356net/inet/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev3389net/inet/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev140net/inet/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev219net/inet/udp.cstruct device *dev;
dev248net/inet/udp.cdev = NULL;
dev250net/inet/udp.csaddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len));
dev252net/inet/udp.c&dev, IPPROTO_UDP, sk->opt, skb->mem_len);
dev260net/inet/udp.csaddr = dev->pa_addr;
dev264net/inet/udp.cskb->dev = dev;
dev271net/inet/udp.cif (len > dev->mtu) {
dev276net/inet/udp.cprintk("UDP: send: length %d > mtu %d (ignored)\n", len, dev->mtu);
dev295net/inet/udp.csk->prot->queue_xmit(sk, dev, skb, 1);
dev546net/inet/udp.cudp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev559net/inet/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev);
dev579net/inet/udp.cskb->dev = dev;
dev43net/inet/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,