tag | line | file | source code |
dev | 28 | drivers/block/blk.h | int dev; /* -1 if no request */ |
dev | 48 | drivers/block/blk.h | ((s1)->dev < (s2)->dev || (((s1)->dev == (s2)->dev && \ |
dev | 67 | drivers/block/blk.h | blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] ? \ |
dev | 68 | drivers/block/blk.h | ((blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] >> 9) - 1) : \ |
dev | 76 | drivers/block/blk.h | extern void resetup_one_dev(struct gendisk *dev, int drive); |
dev | 88 | drivers/block/blk.h | extern int is_read_only(int dev); |
dev | 89 | drivers/block/blk.h | extern void set_device_ro(int dev,int flag); |
dev | 97 | drivers/block/blk.h | #define RO_IOCTLS(dev,where) \ |
dev | 99 | drivers/block/blk.h | set_device_ro((dev),get_fs_long((long *) (where))); return 0; \ |
dev | 101 | drivers/block/blk.h | if (!__err) put_fs_long(is_read_only(dev),(long *) (where)); return __err; } |
dev | 215 | drivers/block/blk.h | #define CURRENT_DEV DEVICE_NR(CURRENT->dev) |
dev | 257 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
dev | 279 | drivers/block/blk.h | DEVICE_OFF(req->dev); |
dev | 287 | drivers/block/blk.h | req->dev = -1; |
dev | 303 | drivers/block/blk.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 982 | drivers/block/cdu31a.c | unsigned int dev; |
dev | 1004 | drivers/block/cdu31a.c | if (!(CURRENT) || CURRENT->dev < 0) |
dev | 1010 | drivers/block/cdu31a.c | dev = MINOR(CURRENT->dev); |
dev | 1013 | drivers/block/cdu31a.c | if (dev != 0) |
dev | 1280 | drivers/block/cdu31a.c | unsigned int dev; |
dev | 1291 | drivers/block/cdu31a.c | dev = MINOR(inode->i_rdev) >> 6; |
dev | 1292 | drivers/block/cdu31a.c | if (dev != 0) |
dev | 239 | drivers/block/floppy.c | (CURRENT->dev)) |
dev | 679 | drivers/block/floppy.c | int drive = MINOR(CURRENT->dev); |
dev | 997 | drivers/block/floppy.c | if (CURRENT && CURRENT->dev < 0) return; |
dev | 1011 | drivers/block/floppy.c | if (MAJOR(CURRENT->dev) != MAJOR_NR) |
dev | 36 | drivers/block/genhd.c | static void extended_partition(struct gendisk *hd, int dev) |
dev | 43 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 49 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) |
dev | 85 | drivers/block/genhd.c | dev = ((hd->major) << 8) | current_minor; |
dev | 94 | drivers/block/genhd.c | static void check_partition(struct gendisk *hd, unsigned int dev) |
dev | 106 | drivers/block/genhd.c | first_sector = hd->part[MINOR(dev)].start_sect; |
dev | 107 | drivers/block/genhd.c | if (!(bh = bread(dev,0,1024))) { |
dev | 108 | drivers/block/genhd.c | printk(" unable to read partition table of device %04x\n",dev); |
dev | 161 | drivers/block/genhd.c | void resetup_one_dev(struct gendisk *dev, int drive) |
dev | 164 | drivers/block/genhd.c | int start = drive<<dev->minor_shift; |
dev | 165 | drivers/block/genhd.c | int j = start + dev->max_p; |
dev | 166 | drivers/block/genhd.c | int major = dev->major << 8; |
dev | 168 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
dev | 169 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
dev | 172 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 175 | drivers/block/genhd.c | static void setup_dev(struct gendisk *dev) |
dev | 178 | drivers/block/genhd.c | int j = dev->max_nr * dev->max_p; |
dev | 179 | drivers/block/genhd.c | int major = dev->major << 8; |
dev | 184 | drivers/block/genhd.c | dev->part[i].start_sect = 0; |
dev | 185 | drivers/block/genhd.c | dev->part[i].nr_sects = 0; |
dev | 187 | drivers/block/genhd.c | dev->init(); |
dev | 188 | drivers/block/genhd.c | for (drive=0 ; drive<dev->nr_real ; drive++) { |
dev | 189 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
dev | 190 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
dev | 193 | drivers/block/genhd.c | dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9); |
dev | 194 | drivers/block/genhd.c | blk_size[dev->major] = dev->sizes; |
dev | 283 | drivers/block/hd.c | int dev; |
dev | 287 | drivers/block/hd.c | dev = MINOR(CURRENT->dev) >> 6; |
dev | 290 | drivers/block/hd.c | recalibrate[dev] = 1; |
dev | 294 | drivers/block/hd.c | recalibrate[dev] = 1; |
dev | 344 | drivers/block/hd.c | MINOR(CURRENT->dev), CURRENT->sector, i, CURRENT-> |
dev | 445 | drivers/block/hd.c | unsigned int block,dev; |
dev | 449 | drivers/block/hd.c | if (CURRENT && CURRENT->dev < 0) return; |
dev | 457 | drivers/block/hd.c | dev = MINOR(CURRENT->dev); |
dev | 460 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects) { |
dev | 463 | drivers/block/hd.c | block, hd[dev].nr_sects); |
dev | 468 | drivers/block/hd.c | block += hd[dev].start_sect; |
dev | 469 | drivers/block/hd.c | dev >>= 6; |
dev | 470 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
dev | 471 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
dev | 472 | drivers/block/hd.c | head = track % hd_info[dev].head; |
dev | 473 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
dev | 476 | drivers/block/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
dev | 488 | drivers/block/hd.c | if (recalibrate[dev]) { |
dev | 489 | drivers/block/hd.c | recalibrate[dev] = 0; |
dev | 490 | drivers/block/hd.c | hd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr); |
dev | 497 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr); |
dev | 510 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,WIN_READ,&read_intr); |
dev | 523 | drivers/block/hd.c | int dev, err; |
dev | 527 | drivers/block/hd.c | dev = MINOR(inode->i_rdev) >> 6; |
dev | 528 | drivers/block/hd.c | if (dev >= NR_HD) |
dev | 536 | drivers/block/hd.c | put_fs_byte(hd_info[dev].head, |
dev | 538 | drivers/block/hd.c | put_fs_byte(hd_info[dev].sect, |
dev | 540 | drivers/block/hd.c | put_fs_word(hd_info[dev].cyl, |
dev | 761 | drivers/block/hd.c | static int revalidate_hddisk(int dev, int maxusage) |
dev | 769 | drivers/block/hd.c | target = DEVICE_NR(MINOR(dev)); |
dev | 78 | drivers/block/ll_rw_blk.c | static inline struct request * get_request(int n, int dev) |
dev | 94 | drivers/block/ll_rw_blk.c | if (req->dev < 0) |
dev | 100 | drivers/block/ll_rw_blk.c | req->dev = dev; |
dev | 109 | drivers/block/ll_rw_blk.c | static inline struct request * get_request_wait(int n, int dev) |
dev | 113 | drivers/block/ll_rw_blk.c | while ((req = get_request(n, dev)) == NULL) |
dev | 122 | drivers/block/ll_rw_blk.c | int is_read_only(int dev) |
dev | 126 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
dev | 127 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
dev | 132 | drivers/block/ll_rw_blk.c | void set_device_ro(int dev,int flag) |
dev | 136 | drivers/block/ll_rw_blk.c | major = MAJOR(dev); |
dev | 137 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
dev | 148 | drivers/block/ll_rw_blk.c | static void add_request(struct blk_dev_struct * dev, struct request * req) |
dev | 156 | drivers/block/ll_rw_blk.c | if (!(tmp = dev->current_request)) { |
dev | 157 | drivers/block/ll_rw_blk.c | dev->current_request = req; |
dev | 158 | drivers/block/ll_rw_blk.c | (dev->request_fn)(); |
dev | 172 | drivers/block/ll_rw_blk.c | if (scsi_major(MAJOR(req->dev))) |
dev | 173 | drivers/block/ll_rw_blk.c | (dev->request_fn)(); |
dev | 235 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 249 | drivers/block/ll_rw_blk.c | if (req->dev == bh->b_dev && |
dev | 302 | drivers/block/ll_rw_blk.c | void ll_rw_page(int rw, int dev, int page, char * buffer) |
dev | 305 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 308 | drivers/block/ll_rw_blk.c | printk("Trying to read nonexistent block-device %04x (%d)\n",dev,page*8); |
dev | 313 | drivers/block/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 314 | drivers/block/ll_rw_blk.c | printk("Can't page to read-only device 0x%X\n",dev); |
dev | 318 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
dev | 345 | drivers/block/ll_rw_blk.c | struct blk_dev_struct * dev; |
dev | 355 | drivers/block/ll_rw_blk.c | dev = NULL; |
dev | 357 | drivers/block/ll_rw_blk.c | dev = blk_dev + major; |
dev | 358 | drivers/block/ll_rw_blk.c | if (!dev || !dev->request_fn) { |
dev | 395 | drivers/block/ll_rw_blk.c | if (!dev->current_request && nr > 1) { |
dev | 396 | drivers/block/ll_rw_blk.c | dev->current_request = &plug; |
dev | 397 | drivers/block/ll_rw_blk.c | plug.dev = -1; |
dev | 414 | drivers/block/ll_rw_blk.c | dev->current_request = plug.next; |
dev | 415 | drivers/block/ll_rw_blk.c | (dev->request_fn)(); |
dev | 428 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
dev | 433 | drivers/block/ll_rw_blk.c | unsigned int major = MAJOR(dev); |
dev | 444 | drivers/block/ll_rw_blk.c | if (rw == WRITE && is_read_only(dev)) { |
dev | 445 | drivers/block/ll_rw_blk.c | printk("Can't swap to read-only device 0x%X\n",dev); |
dev | 454 | drivers/block/ll_rw_blk.c | req = get_request_wait(NR_REQUEST, dev); |
dev | 477 | drivers/block/ll_rw_blk.c | req->dev = -1; |
dev | 551 | drivers/block/mcd.c | unsigned int block,dev; |
dev | 555 | drivers/block/mcd.c | if (!(CURRENT) || CURRENT->dev < 0) return; |
dev | 557 | drivers/block/mcd.c | dev = MINOR(CURRENT->dev); |
dev | 40 | drivers/block/ramdisk.c | if ((MINOR(CURRENT->dev) != RAMDISK_MINOR) || |
dev | 2732 | drivers/block/sbpcd.c | int dev; |
dev | 2740 | drivers/block/sbpcd.c | if ((CURRENT==NULL)||(CURRENT->dev<0)) return; |
dev | 2743 | drivers/block/sbpcd.c | dev = MINOR(CURRENT->dev); |
dev | 2744 | drivers/block/sbpcd.c | if ( (dev<0) || (dev>=NR_SBPCD) ) |
dev | 2746 | drivers/block/sbpcd.c | printk("SBPCD: do_request: bad device: %d\n", dev); |
dev | 2749 | drivers/block/sbpcd.c | switch_drive(dev); |
dev | 193 | drivers/block/xd.c | int dev = DEVICE_NR(MINOR(inode->i_rdev)); |
dev | 195 | drivers/block/xd.c | if (dev < xd_drives) { |
dev | 196 | drivers/block/xd.c | while (!xd_valid[dev]) |
dev | 199 | drivers/block/xd.c | xd_access[dev]++; |
dev | 217 | drivers/block/xd.c | if (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) { |
dev | 218 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect; |
dev | 239 | drivers/block/xd.c | int dev = DEVICE_NR(MINOR(inode->i_rdev)),err; |
dev | 241 | drivers/block/xd.c | if (inode && (dev < xd_drives)) |
dev | 247 | drivers/block/xd.c | put_fs_byte(xd_info[dev].heads,(char *) &geometry->heads); |
dev | 248 | drivers/block/xd.c | put_fs_byte(xd_info[dev].sectors,(char *) &geometry->sectors); |
dev | 249 | drivers/block/xd.c | put_fs_word(xd_info[dev].cylinders,(short *) &geometry->cylinders); |
dev | 287 | drivers/block/xd.c | int dev = DEVICE_NR(MINOR(inode->i_rdev)); |
dev | 289 | drivers/block/xd.c | if (dev < xd_drives) { |
dev | 290 | drivers/block/xd.c | sync_dev(dev); |
dev | 291 | drivers/block/xd.c | xd_access[dev]--; |
dev | 296 | drivers/block/xd.c | static int xd_reread_partitions(int dev) |
dev | 298 | drivers/block/xd.c | int target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition; |
dev | 1813 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 1820 | drivers/char/tpqic02.c | MINOR(dev), buf, count, filp->f_pos, flags); |
dev | 1983 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 1989 | drivers/char/tpqic02.c | MINOR(dev), buf, count, filp->f_pos, flags); |
dev | 2129 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 2136 | drivers/char/tpqic02.c | if (TP_DIAGS(dev)) { |
dev | 2137 | drivers/char/tpqic02.c | printk("tape_qic02_open: dev=%x, flags=%x ", dev, flags); |
dev | 2140 | drivers/char/tpqic02.c | if (MINOR(dev)==255) /* special case for resetting */ |
dev | 2187 | drivers/char/tpqic02.c | if ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) { |
dev | 2198 | drivers/char/tpqic02.c | current_tape_dev = dev; |
dev | 2237 | drivers/char/tpqic02.c | if (TP_DENS(current_tape_dev) == TP_DENS(dev) ) |
dev | 2240 | drivers/char/tpqic02.c | current_tape_dev = dev; |
dev | 2242 | drivers/char/tpqic02.c | dens = TP_DENS(dev); |
dev | 2248 | drivers/char/tpqic02.c | switch (TP_DENS(dev)) { |
dev | 2292 | drivers/char/tpqic02.c | dev_t dev = inode->i_rdev; |
dev | 2294 | drivers/char/tpqic02.c | if (TP_DIAGS(dev)) |
dev | 2295 | drivers/char/tpqic02.c | printk("tape_qic02_release: dev=%x\n", dev); |
dev | 2312 | drivers/char/tpqic02.c | if ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) { |
dev | 58 | drivers/net/3c501.c | int el1_probe(struct device *dev); |
dev | 59 | drivers/net/3c501.c | static int el_open(struct device *dev); |
dev | 60 | drivers/net/3c501.c | static int el_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 62 | drivers/net/3c501.c | static void el_receive(struct device *dev); |
dev | 63 | drivers/net/3c501.c | static void el_reset(struct device *dev); |
dev | 64 | drivers/net/3c501.c | static int el1_close(struct device *dev); |
dev | 65 | drivers/net/3c501.c | static struct enet_statistics *el1_get_stats(struct device *dev); |
dev | 66 | drivers/net/3c501.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 132 | drivers/net/3c501.c | el1_probe(struct device *dev) |
dev | 139 | drivers/net/3c501.c | eldev = dev; /* Store for debugging. */ |
dev | 140 | drivers/net/3c501.c | el_base = dev->base_addr; |
dev | 165 | drivers/net/3c501.c | if (dev->irq < 2) { |
dev | 178 | drivers/net/3c501.c | printk("%s: 3c501 probe failed to detect IRQ line.\n", dev->name); |
dev | 181 | drivers/net/3c501.c | dev->irq = autoirq; |
dev | 186 | drivers/net/3c501.c | dev->base_addr = el_base; |
dev | 187 | drivers/net/3c501.c | memcpy(dev->dev_addr, station_addr, ETH_ALEN); |
dev | 188 | drivers/net/3c501.c | if (dev->mem_start & 0xf) |
dev | 189 | drivers/net/3c501.c | el_debug = dev->mem_start & 0x7; |
dev | 192 | drivers/net/3c501.c | dev->name, dev->base_addr, autoirq ? "auto":"assigned ", dev->irq); |
dev | 198 | drivers/net/3c501.c | dev->open = &el_open; |
dev | 199 | drivers/net/3c501.c | dev->hard_start_xmit = &el_start_xmit; |
dev | 200 | drivers/net/3c501.c | dev->stop = &el1_close; |
dev | 201 | drivers/net/3c501.c | dev->get_stats = &el1_get_stats; |
dev | 202 | drivers/net/3c501.c | dev->set_multicast_list = &set_multicast_list; |
dev | 204 | drivers/net/3c501.c | ether_setup(dev); |
dev | 211 | drivers/net/3c501.c | el_open(struct device *dev) |
dev | 215 | drivers/net/3c501.c | printk("%s: Doing el_open()...", dev->name); |
dev | 217 | drivers/net/3c501.c | if (request_irq(dev->irq, &el_interrupt)) { |
dev | 222 | drivers/net/3c501.c | irq2dev_map[dev->irq] = dev; |
dev | 224 | drivers/net/3c501.c | el_reset(dev); |
dev | 226 | drivers/net/3c501.c | dev->start = 1; |
dev | 238 | drivers/net/3c501.c | el_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 241 | drivers/net/3c501.c | if (dev->tbusy) { |
dev | 242 | drivers/net/3c501.c | if (jiffies - dev->trans_start < 20) { |
dev | 249 | drivers/net/3c501.c | dev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS)); |
dev | 252 | drivers/net/3c501.c | el_reset(dev); |
dev | 259 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 260 | drivers/net/3c501.c | dev->trans_start = jiffies; |
dev | 264 | drivers/net/3c501.c | dev_tint(dev); |
dev | 272 | drivers/net/3c501.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 273 | drivers/net/3c501.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 289 | drivers/net/3c501.c | dev->trans_start = jiffies; |
dev | 307 | drivers/net/3c501.c | struct device *dev = eldev; |
dev | 316 | drivers/net/3c501.c | ioaddr = dev->base_addr; |
dev | 321 | drivers/net/3c501.c | printk("%s: el_interrupt() aux=%#02x", dev->name, axsr); |
dev | 322 | drivers/net/3c501.c | if (dev->interrupt) |
dev | 323 | drivers/net/3c501.c | printk("%s: Reentering the interrupt driver!\n", dev->name); |
dev | 324 | drivers/net/3c501.c | dev->interrupt = 1; |
dev | 326 | drivers/net/3c501.c | if (dev->tbusy) { |
dev | 335 | drivers/net/3c501.c | " gp=%03x rp=%03x.\n", dev->name, txsr, axsr, |
dev | 337 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 342 | drivers/net/3c501.c | dev->name); |
dev | 352 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 359 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 379 | drivers/net/3c501.c | dev->name, rxsr); |
dev | 390 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 398 | drivers/net/3c501.c | el_receive(struct device *dev) |
dev | 410 | drivers/net/3c501.c | printk("%s: bogus packet, length=%d\n", dev->name, pkt_len); |
dev | 419 | drivers/net/3c501.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 424 | drivers/net/3c501.c | skb->dev = dev; |
dev | 435 | drivers/net/3c501.c | el_reset(struct device *dev) |
dev | 444 | drivers/net/3c501.c | outb(dev->dev_addr[i], el_base + i); |
dev | 453 | drivers/net/3c501.c | dev->interrupt = 0; |
dev | 454 | drivers/net/3c501.c | dev->tbusy = 0; |
dev | 459 | drivers/net/3c501.c | el1_close(struct device *dev) |
dev | 461 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
dev | 464 | drivers/net/3c501.c | printk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr); |
dev | 466 | drivers/net/3c501.c | dev->tbusy = 1; |
dev | 467 | drivers/net/3c501.c | dev->start = 0; |
dev | 470 | drivers/net/3c501.c | free_irq(dev->irq); |
dev | 472 | drivers/net/3c501.c | irq2dev_map[dev->irq] = 0; |
dev | 481 | drivers/net/3c501.c | el1_get_stats(struct device *dev) |
dev | 493 | drivers/net/3c501.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 34 | drivers/net/3c503.c | int el2_probe(struct device *dev); |
dev | 35 | drivers/net/3c503.c | int el2_pio_autoprobe(struct device *dev); |
dev | 36 | drivers/net/3c503.c | int el2probe1(int ioaddr, struct device *dev); |
dev | 38 | drivers/net/3c503.c | static int el2_open(struct device *dev); |
dev | 39 | drivers/net/3c503.c | static int el2_close(struct device *dev); |
dev | 40 | drivers/net/3c503.c | static void el2_reset_8390(struct device *dev); |
dev | 41 | drivers/net/3c503.c | static void el2_init_card(struct device *dev); |
dev | 42 | drivers/net/3c503.c | static void el2_block_output(struct device *dev, int count, |
dev | 44 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
dev | 59 | drivers/net/3c503.c | el2_probe(struct device *dev) |
dev | 62 | drivers/net/3c503.c | short ioaddr = dev->base_addr; |
dev | 67 | drivers/net/3c503.c | return ! el2probe1(ioaddr, dev); |
dev | 82 | drivers/net/3c503.c | if (el2probe1(ports[i], dev)) |
dev | 86 | drivers/net/3c503.c | return el2_pio_autoprobe(dev); |
dev | 95 | drivers/net/3c503.c | el2_pio_autoprobe(struct device *dev) |
dev | 107 | drivers/net/3c503.c | && el2probe1(ports[i], dev)) |
dev | 117 | drivers/net/3c503.c | el2probe1(int ioaddr, struct device *dev) |
dev | 120 | drivers/net/3c503.c | unsigned char *station_addr = dev->dev_addr; |
dev | 153 | drivers/net/3c503.c | ethdev_init(dev); |
dev | 157 | drivers/net/3c503.c | dev->base_addr = ioaddr; |
dev | 169 | drivers/net/3c503.c | ei_status.interface_num = dev->mem_end & 0xf; |
dev | 173 | drivers/net/3c503.c | dev->mem_start = 0; |
dev | 175 | drivers/net/3c503.c | dev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) + |
dev | 182 | drivers/net/3c503.c | int *mem_base = (int *)dev->mem_start; |
dev | 190 | drivers/net/3c503.c | dev->mem_start = 0; |
dev | 201 | drivers/net/3c503.c | dev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE; |
dev | 202 | drivers/net/3c503.c | dev->rmem_start = TX_PAGES*256 + dev->mem_start; |
dev | 214 | drivers/net/3c503.c | if (dev->irq == 2) |
dev | 215 | drivers/net/3c503.c | dev->irq = 9; |
dev | 216 | drivers/net/3c503.c | else if (dev->irq > 5 && dev->irq != 9) { |
dev | 218 | drivers/net/3c503.c | dev->irq); |
dev | 219 | drivers/net/3c503.c | dev->irq = 0; |
dev | 222 | drivers/net/3c503.c | ei_status.saved_irq = dev->irq; |
dev | 224 | drivers/net/3c503.c | dev->start = 0; |
dev | 225 | drivers/net/3c503.c | dev->open = &el2_open; |
dev | 226 | drivers/net/3c503.c | dev->stop = &el2_close; |
dev | 228 | drivers/net/3c503.c | if (dev->mem_start) |
dev | 230 | drivers/net/3c503.c | dev->name, ei_status.name, dev->mem_start, dev->mem_end-1); |
dev | 233 | drivers/net/3c503.c | dev->name, ei_status.name); |
dev | 241 | drivers/net/3c503.c | el2_open(struct device *dev) |
dev | 244 | drivers/net/3c503.c | if (dev->irq < 2) { |
dev | 256 | drivers/net/3c503.c | && request_irq (dev->irq = *irqp, &ei_interrupt) == 0) |
dev | 265 | drivers/net/3c503.c | if (request_irq(dev->irq, &ei_interrupt)) { |
dev | 269 | drivers/net/3c503.c | el2_init_card(dev); |
dev | 270 | drivers/net/3c503.c | return ei_open(dev); |
dev | 274 | drivers/net/3c503.c | el2_close(struct device *dev) |
dev | 276 | drivers/net/3c503.c | free_irq(dev->irq); |
dev | 277 | drivers/net/3c503.c | dev->irq = ei_status.saved_irq; |
dev | 278 | drivers/net/3c503.c | irq2dev_map[dev->irq] = NULL; |
dev | 281 | drivers/net/3c503.c | NS8390_init(dev, 0); |
dev | 291 | drivers/net/3c503.c | el2_reset_8390(struct device *dev) |
dev | 294 | drivers/net/3c503.c | printk("%s: Resetting the 3c503 board...", dev->name); |
dev | 301 | drivers/net/3c503.c | el2_init_card(dev); |
dev | 307 | drivers/net/3c503.c | el2_init_card(struct device *dev) |
dev | 322 | drivers/net/3c503.c | outb_p(0x00, dev->base_addr + EN0_IMR); |
dev | 327 | drivers/net/3c503.c | outb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR); |
dev | 337 | drivers/net/3c503.c | el2_block_output(struct device *dev, int count, |
dev | 346 | drivers/net/3c503.c | if (dev->mem_start) { /* Shared memory transfer */ |
dev | 347 | drivers/net/3c503.c | void *dest_addr = (void *)(dev->mem_start + |
dev | 352 | drivers/net/3c503.c | dev->name, (int) dest_addr); |
dev | 370 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
dev | 381 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 384 | drivers/net/3c503.c | int end_of_ring = dev->rmem_end; |
dev | 388 | drivers/net/3c503.c | if (dev->mem_start) { /* Use the shared memory. */ |
dev | 390 | drivers/net/3c503.c | if (dev->mem_start + ring_offset + count > end_of_ring) { |
dev | 392 | drivers/net/3c503.c | int semi_count = end_of_ring - (dev->mem_start + ring_offset); |
dev | 393 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
dev | 395 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 396 | drivers/net/3c503.c | return dev->rmem_start + count; |
dev | 398 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
dev | 414 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
dev | 6 | drivers/net/3c503.h | #define EL2H (dev->base_addr + 0x400) |
dev | 7 | drivers/net/3c503.h | #define EL2L (dev->base_addr) |
dev | 152 | drivers/net/3c507.c | #define SCB_BASE ((unsigned)64*1024 - (dev->mem_end - dev->mem_start)) |
dev | 187 | drivers/net/3c507.c | #define RX_BUF_END (dev->mem_end - dev->mem_start) |
dev | 268 | drivers/net/3c507.c | extern int el16_probe(struct device *dev); /* Called from Space.c */ |
dev | 270 | drivers/net/3c507.c | static int el16_probe1(struct device *dev, short ioaddr); |
dev | 271 | drivers/net/3c507.c | static int el16_open(struct device *dev); |
dev | 272 | drivers/net/3c507.c | static int el16_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 274 | drivers/net/3c507.c | static void el16_rx(struct device *dev); |
dev | 275 | drivers/net/3c507.c | static int el16_close(struct device *dev); |
dev | 276 | drivers/net/3c507.c | static struct enet_statistics *el16_get_stats(struct device *dev); |
dev | 278 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 279 | drivers/net/3c507.c | void init_82586_mem(struct device *dev); |
dev | 289 | drivers/net/3c507.c | el16_probe(struct device *dev) |
dev | 293 | drivers/net/3c507.c | int base_addr = dev->base_addr; |
dev | 297 | drivers/net/3c507.c | return el16_probe1(dev, base_addr); |
dev | 317 | drivers/net/3c507.c | && el16_probe1(dev, *port) == 0) |
dev | 328 | drivers/net/3c507.c | && el16_probe1(dev, *port) == 0) |
dev | 336 | drivers/net/3c507.c | int el16_probe1(struct device *dev, short ioaddr) |
dev | 340 | drivers/net/3c507.c | printk("%s: 3c507 at %#x,", dev->name, ioaddr); |
dev | 355 | drivers/net/3c507.c | dev->base_addr = ioaddr; |
dev | 359 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
dev | 360 | drivers/net/3c507.c | printk(" %02x", dev->dev_addr[i]); |
dev | 363 | drivers/net/3c507.c | if ((dev->mem_start & 0xf) > 0) |
dev | 364 | drivers/net/3c507.c | net_debug = dev->mem_start & 7; |
dev | 367 | drivers/net/3c507.c | dev->mem_start = MEM_BASE; |
dev | 368 | drivers/net/3c507.c | dev->mem_end = dev->mem_start + 0x10000; |
dev | 382 | drivers/net/3c507.c | dev->mem_start = base; |
dev | 383 | drivers/net/3c507.c | dev->mem_end = base + size; |
dev | 387 | drivers/net/3c507.c | dev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0; |
dev | 388 | drivers/net/3c507.c | dev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
dev | 390 | drivers/net/3c507.c | printk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq, |
dev | 391 | drivers/net/3c507.c | dev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1); |
dev | 397 | drivers/net/3c507.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 398 | drivers/net/3c507.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 400 | drivers/net/3c507.c | dev->open = el16_open; |
dev | 401 | drivers/net/3c507.c | dev->stop = el16_close; |
dev | 402 | drivers/net/3c507.c | dev->hard_start_xmit = el16_send_packet; |
dev | 403 | drivers/net/3c507.c | dev->get_stats = el16_get_stats; |
dev | 405 | drivers/net/3c507.c | ether_setup(dev); /* Generic ethernet behaviour */ |
dev | 413 | drivers/net/3c507.c | el16_open(struct device *dev) |
dev | 415 | drivers/net/3c507.c | irq2dev_map[dev->irq] = dev; |
dev | 418 | drivers/net/3c507.c | init_82586_mem(dev); |
dev | 420 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 421 | drivers/net/3c507.c | dev->interrupt = 0; |
dev | 422 | drivers/net/3c507.c | dev->start = 1; |
dev | 427 | drivers/net/3c507.c | el16_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 429 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 430 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
dev | 431 | drivers/net/3c507.c | short *shmem = (short*)dev->mem_start; |
dev | 433 | drivers/net/3c507.c | if (dev->tbusy) { |
dev | 436 | drivers/net/3c507.c | int tickssofar = jiffies - dev->trans_start; |
dev | 440 | drivers/net/3c507.c | printk("%s: transmit timed out, %s? ", dev->name, |
dev | 447 | drivers/net/3c507.c | init_82586_mem(dev); |
dev | 455 | drivers/net/3c507.c | dev->tbusy=0; |
dev | 456 | drivers/net/3c507.c | dev->trans_start = jiffies; |
dev | 463 | drivers/net/3c507.c | dev_tint(dev); |
dev | 468 | drivers/net/3c507.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 469 | drivers/net/3c507.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 476 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
dev | 477 | drivers/net/3c507.c | dev->trans_start = jiffies; |
dev | 496 | drivers/net/3c507.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 502 | drivers/net/3c507.c | if (dev == NULL) { |
dev | 506 | drivers/net/3c507.c | dev->interrupt = 1; |
dev | 508 | drivers/net/3c507.c | ioaddr = dev->base_addr; |
dev | 509 | drivers/net/3c507.c | lp = (struct net_local *)dev->priv; |
dev | 510 | drivers/net/3c507.c | shmem = ((ushort*)dev->mem_start); |
dev | 515 | drivers/net/3c507.c | printk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status); |
dev | 532 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 553 | drivers/net/3c507.c | el16_rx(dev); |
dev | 559 | drivers/net/3c507.c | if ((status & 0x0700) != 0x0200 && dev->start) { |
dev | 562 | drivers/net/3c507.c | dev->name, status); |
dev | 569 | drivers/net/3c507.c | if ((status & 0x0070) != 0x0040 && dev->start) { |
dev | 575 | drivers/net/3c507.c | dev->name, status); |
dev | 576 | drivers/net/3c507.c | init_rx_bufs(dev); |
dev | 594 | drivers/net/3c507.c | el16_close(struct device *dev) |
dev | 596 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
dev | 597 | drivers/net/3c507.c | ushort *shmem = (short*)dev->mem_start; |
dev | 599 | drivers/net/3c507.c | dev->tbusy = 1; |
dev | 600 | drivers/net/3c507.c | dev->start = 0; |
dev | 612 | drivers/net/3c507.c | irq2dev_map[dev->irq] = 0; |
dev | 622 | drivers/net/3c507.c | el16_get_stats(struct device *dev) |
dev | 624 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 633 | drivers/net/3c507.c | init_rx_bufs(struct device *dev) |
dev | 635 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 644 | drivers/net/3c507.c | write_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf); |
dev | 672 | drivers/net/3c507.c | (dev->mem_start + lp->rx_tail + 2); |
dev | 679 | drivers/net/3c507.c | init_82586_mem(struct device *dev) |
dev | 681 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 682 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
dev | 683 | drivers/net/3c507.c | ushort *shmem = (short*)dev->mem_start; |
dev | 694 | drivers/net/3c507.c | memcpy((void*)dev->mem_end-10, init_words, 10); |
dev | 697 | drivers/net/3c507.c | memcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10); |
dev | 700 | drivers/net/3c507.c | memcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr, |
dev | 701 | drivers/net/3c507.c | sizeof(dev->dev_addr)); |
dev | 707 | drivers/net/3c507.c | init_rx_bufs(dev); |
dev | 721 | drivers/net/3c507.c | "cmd %04x.\n", dev->name, |
dev | 732 | drivers/net/3c507.c | printk("%s: Initialized 82586, status %04x.\n", dev->name, |
dev | 738 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 740 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 741 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
dev | 743 | drivers/net/3c507.c | ushort *write_ptr = (ushort *)(dev->mem_start + tx_block); |
dev | 766 | drivers/net/3c507.c | *(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block; |
dev | 776 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
dev | 780 | drivers/net/3c507.c | dev->tbusy = 0; |
dev | 784 | drivers/net/3c507.c | el16_rx(struct device *dev) |
dev | 786 | drivers/net/3c507.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 787 | drivers/net/3c507.c | short *shmem = (short*)dev->mem_start; |
dev | 794 | drivers/net/3c507.c | ushort *read_frame = (short *)(dev->mem_start + rx_head); |
dev | 798 | drivers/net/3c507.c | ushort *data_frame = (short *)(dev->mem_start + data_buffer_addr); |
dev | 804 | drivers/net/3c507.c | "next %04x data-buf @%04x %04x.\n", dev->name, rx_head, |
dev | 822 | drivers/net/3c507.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 827 | drivers/net/3c507.c | skb->dev = dev; |
dev | 840 | drivers/net/3c507.c | *(short*)(dev->mem_start + rx_tail + 2) = 0x0000; |
dev | 75 | drivers/net/3c509.c | static int el3_open(struct device *dev); |
dev | 76 | drivers/net/3c509.c | static int el3_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 78 | drivers/net/3c509.c | static void update_stats(int addr, struct device *dev); |
dev | 79 | drivers/net/3c509.c | static struct enet_statistics *el3_get_stats(struct device *dev); |
dev | 80 | drivers/net/3c509.c | static int el3_rx(struct device *dev); |
dev | 81 | drivers/net/3c509.c | static int el3_close(struct device *dev); |
dev | 83 | drivers/net/3c509.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 88 | drivers/net/3c509.c | int el3_probe(struct device *dev) |
dev | 92 | drivers/net/3c509.c | short *phys_addr = (short *)dev->dev_addr; |
dev | 173 | drivers/net/3c509.c | if (dev->base_addr != 0 |
dev | 174 | drivers/net/3c509.c | && dev->base_addr != (unsigned short)ioaddr) { |
dev | 189 | drivers/net/3c509.c | dev->base_addr = ioaddr; |
dev | 190 | drivers/net/3c509.c | dev->irq = irq; |
dev | 191 | drivers/net/3c509.c | dev->if_port = if_port; |
dev | 192 | drivers/net/3c509.c | snarf_region(dev->base_addr, 16); |
dev | 197 | drivers/net/3c509.c | dev->name, dev->base_addr, current_tag, if_names[dev->if_port]); |
dev | 202 | drivers/net/3c509.c | printk(" %2.2x", dev->dev_addr[i]); |
dev | 203 | drivers/net/3c509.c | printk(", IRQ %d.\n", dev->irq); |
dev | 206 | drivers/net/3c509.c | dev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL); |
dev | 207 | drivers/net/3c509.c | memset(dev->priv, 0, sizeof(struct el3_private)); |
dev | 213 | drivers/net/3c509.c | dev->open = &el3_open; |
dev | 214 | drivers/net/3c509.c | dev->hard_start_xmit = &el3_start_xmit; |
dev | 215 | drivers/net/3c509.c | dev->stop = &el3_close; |
dev | 216 | drivers/net/3c509.c | dev->get_stats = &el3_get_stats; |
dev | 218 | drivers/net/3c509.c | dev->set_multicast_list = &set_multicast_list; |
dev | 222 | drivers/net/3c509.c | ether_setup(dev); |
dev | 265 | drivers/net/3c509.c | el3_open(struct device *dev) |
dev | 267 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 270 | drivers/net/3c509.c | if (request_irq(dev->irq, &el3_interrupt)) { |
dev | 276 | drivers/net/3c509.c | printk("%s: Opening, IRQ %d status@%x %4.4x.\n", dev->name, |
dev | 277 | drivers/net/3c509.c | dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); |
dev | 282 | drivers/net/3c509.c | irq2dev_map[dev->irq] = dev; |
dev | 285 | drivers/net/3c509.c | outw((dev->irq << 12) | 0x0f00, ioaddr + 8); |
dev | 291 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
dev | 293 | drivers/net/3c509.c | if (dev->if_port == 3) |
dev | 296 | drivers/net/3c509.c | else if (dev->if_port == 0) { |
dev | 310 | drivers/net/3c509.c | dev->interrupt = 0; |
dev | 311 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 312 | drivers/net/3c509.c | dev->start = 1; |
dev | 317 | drivers/net/3c509.c | dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); |
dev | 326 | drivers/net/3c509.c | el3_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 328 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 329 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 332 | drivers/net/3c509.c | if (dev->tbusy) { |
dev | 333 | drivers/net/3c509.c | int tickssofar = jiffies - dev->trans_start; |
dev | 337 | drivers/net/3c509.c | dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS)); |
dev | 338 | drivers/net/3c509.c | dev->trans_start = jiffies; |
dev | 342 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 346 | drivers/net/3c509.c | dev_tint(dev); |
dev | 355 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
dev | 363 | drivers/net/3c509.c | " Tx %2.2x Rx %4.4x.\n", dev->name, status, |
dev | 374 | drivers/net/3c509.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 375 | drivers/net/3c509.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 383 | drivers/net/3c509.c | dev->trans_start = jiffies; |
dev | 385 | drivers/net/3c509.c | dev->tbusy=0; |
dev | 416 | drivers/net/3c509.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 420 | drivers/net/3c509.c | if (dev == NULL) { |
dev | 425 | drivers/net/3c509.c | if (dev->interrupt) |
dev | 426 | drivers/net/3c509.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 427 | drivers/net/3c509.c | dev->interrupt = 1; |
dev | 429 | drivers/net/3c509.c | ioaddr = dev->base_addr; |
dev | 433 | drivers/net/3c509.c | printk("%s: interrupt, status %4.4x.\n", dev->name, status); |
dev | 438 | drivers/net/3c509.c | el3_rx(dev); |
dev | 445 | drivers/net/3c509.c | dev->tbusy = 0; |
dev | 449 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
dev | 453 | drivers/net/3c509.c | dev->name, status); |
dev | 463 | drivers/net/3c509.c | printk("%s: exiting interrupt, status %4.4x.\n", dev->name, |
dev | 467 | drivers/net/3c509.c | dev->interrupt = 0; |
dev | 473 | drivers/net/3c509.c | el3_get_stats(struct device *dev) |
dev | 475 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 478 | drivers/net/3c509.c | update_stats(dev->base_addr, dev); |
dev | 488 | drivers/net/3c509.c | static void update_stats(int ioaddr, struct device *dev) |
dev | 490 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 517 | drivers/net/3c509.c | el3_rx(struct device *dev) |
dev | 519 | drivers/net/3c509.c | struct el3_private *lp = (struct el3_private *)dev->priv; |
dev | 520 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 550 | drivers/net/3c509.c | skb->dev = dev; |
dev | 563 | drivers/net/3c509.c | IN_SKBUFF,dev)== 0){ |
dev | 576 | drivers/net/3c509.c | printk("%s: receive buffers full.\n", dev->name); |
dev | 582 | drivers/net/3c509.c | dev->name, pkt_len); |
dev | 606 | drivers/net/3c509.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 608 | drivers/net/3c509.c | short ioaddr = dev->base_addr; |
dev | 619 | drivers/net/3c509.c | el3_close(struct device *dev) |
dev | 621 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
dev | 624 | drivers/net/3c509.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 626 | drivers/net/3c509.c | dev->tbusy = 1; |
dev | 627 | drivers/net/3c509.c | dev->start = 0; |
dev | 636 | drivers/net/3c509.c | if (dev->if_port == 3) |
dev | 639 | drivers/net/3c509.c | else if (dev->if_port == 0) { |
dev | 645 | drivers/net/3c509.c | free_irq(dev->irq); |
dev | 652 | drivers/net/3c509.c | irq2dev_map[dev->irq] = 0; |
dev | 654 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
dev | 88 | drivers/net/8390.c | int ei_open(struct device *dev); /* Put into the device structure. */ |
dev | 91 | drivers/net/8390.c | static void ei_tx_intr(struct device *dev); |
dev | 92 | drivers/net/8390.c | static void ei_receive(struct device *dev); |
dev | 93 | drivers/net/8390.c | static void ei_rx_overrun(struct device *dev); |
dev | 96 | drivers/net/8390.c | void NS8390_init(struct device *dev, int startp); |
dev | 97 | drivers/net/8390.c | static void NS8390_trigger_send(struct device *dev, unsigned int length, |
dev | 100 | drivers/net/8390.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 109 | drivers/net/8390.c | int ei_open(struct device *dev) |
dev | 111 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 114 | drivers/net/8390.c | printk("%s: Opening a non-existent physical device\n", dev->name); |
dev | 118 | drivers/net/8390.c | irq2dev_map[dev->irq] = dev; |
dev | 119 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 120 | drivers/net/8390.c | dev->start = 1; |
dev | 125 | drivers/net/8390.c | static int ei_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 127 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 128 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 136 | drivers/net/8390.c | if (dev->tbusy) { /* Do timeouts, just like the 8003 driver. */ |
dev | 138 | drivers/net/8390.c | int tickssofar = jiffies - dev->trans_start; |
dev | 144 | drivers/net/8390.c | dev->name, txsr, isr); |
dev | 147 | drivers/net/8390.c | printk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq); |
dev | 150 | drivers/net/8390.c | printk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name); |
dev | 155 | drivers/net/8390.c | ei_reset_8390(dev); |
dev | 156 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 157 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 164 | drivers/net/8390.c | dev_tint(dev); |
dev | 173 | drivers/net/8390.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 174 | drivers/net/8390.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 191 | drivers/net/8390.c | dev->name, ei_local->tx2, ei_local->lasttx, |
dev | 198 | drivers/net/8390.c | dev->name, ei_local->tx1, ei_local->lasttx, |
dev | 203 | drivers/net/8390.c | dev->name); |
dev | 205 | drivers/net/8390.c | dev->tbusy = 1; |
dev | 209 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, output_page); |
dev | 211 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, output_page); |
dev | 212 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 221 | drivers/net/8390.c | dev->tbusy = (ei_local->tx1 && ei_local->tx2); |
dev | 223 | drivers/net/8390.c | ei_block_output(dev, length, skb->data, ei_local->tx_start_page); |
dev | 224 | drivers/net/8390.c | NS8390_trigger_send(dev, send_length, ei_local->tx_start_page); |
dev | 225 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 226 | drivers/net/8390.c | dev->tbusy = 1; |
dev | 244 | drivers/net/8390.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 249 | drivers/net/8390.c | if (dev == NULL) { |
dev | 253 | drivers/net/8390.c | e8390_base = dev->base_addr; |
dev | 254 | drivers/net/8390.c | ei_local = (struct ei_device *) dev->priv; |
dev | 255 | drivers/net/8390.c | if (dev->interrupt || ei_local->irqlock) { |
dev | 261 | drivers/net/8390.c | dev->name, inb_p(e8390_base + EN0_ISR), |
dev | 266 | drivers/net/8390.c | dev->interrupt = 1; |
dev | 272 | drivers/net/8390.c | printk("%s: interrupt(isr=%#2.2x).\n", dev->name, |
dev | 283 | drivers/net/8390.c | ei_rx_overrun(dev); |
dev | 286 | drivers/net/8390.c | ei_receive(dev); |
dev | 290 | drivers/net/8390.c | ei_tx_intr(dev); |
dev | 292 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 307 | drivers/net/8390.c | printk("%s: unknown interrupt %#2x\n", dev->name, interrupts); |
dev | 311 | drivers/net/8390.c | dev->interrupt = 0; |
dev | 317 | drivers/net/8390.c | static void ei_tx_intr(struct device *dev) |
dev | 319 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 321 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 332 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 334 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6); |
dev | 335 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 346 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 348 | drivers/net/8390.c | NS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page); |
dev | 349 | drivers/net/8390.c | dev->trans_start = jiffies; |
dev | 357 | drivers/net/8390.c | dev->name, ei_local->lasttx); |
dev | 360 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 381 | drivers/net/8390.c | static void ei_receive(struct device *dev) |
dev | 383 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 384 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 407 | drivers/net/8390.c | dev->name, this_frame, ei_local->current_page); |
dev | 413 | drivers/net/8390.c | ei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame, |
dev | 436 | drivers/net/8390.c | dev->name, rx_frame.count, rx_frame.status, |
dev | 446 | drivers/net/8390.c | dev->name, pkt_len); |
dev | 451 | drivers/net/8390.c | skb->dev = dev; |
dev | 453 | drivers/net/8390.c | ei_block_input(dev, pkt_len, (char *) skb->data, |
dev | 462 | drivers/net/8390.c | dev->name, rx_frame.status, rx_frame.next, |
dev | 471 | drivers/net/8390.c | printk("%s: next frame inconsistency, %#2x..", dev->name, |
dev | 493 | drivers/net/8390.c | static void ei_rx_overrun(struct device *dev) |
dev | 495 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 497 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 503 | drivers/net/8390.c | printk("%s: Receiver overrun.\n", dev->name); |
dev | 516 | drivers/net/8390.c | dev->name); |
dev | 517 | drivers/net/8390.c | NS8390_init(dev, 1); |
dev | 522 | drivers/net/8390.c | ei_receive(dev); |
dev | 530 | drivers/net/8390.c | static struct enet_statistics *get_stats(struct device *dev) |
dev | 532 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
dev | 533 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 550 | drivers/net/8390.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 552 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
dev | 566 | drivers/net/8390.c | int ethdev_init(struct device *dev) |
dev | 571 | drivers/net/8390.c | if (dev->priv == NULL) { |
dev | 574 | drivers/net/8390.c | dev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL); |
dev | 575 | drivers/net/8390.c | memset(dev->priv, 0, sizeof(struct ei_device)); |
dev | 576 | drivers/net/8390.c | ei_local = (struct ei_device *)dev->priv; |
dev | 583 | drivers/net/8390.c | if (dev->open == NULL) |
dev | 584 | drivers/net/8390.c | dev->open = &ei_open; |
dev | 586 | drivers/net/8390.c | dev->hard_start_xmit = &ei_start_xmit; |
dev | 587 | drivers/net/8390.c | dev->get_stats = get_stats; |
dev | 589 | drivers/net/8390.c | dev->set_multicast_list = &set_multicast_list; |
dev | 592 | drivers/net/8390.c | ether_setup(dev); |
dev | 600 | drivers/net/8390.c | void NS8390_init(struct device *dev, int startp) |
dev | 602 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 603 | drivers/net/8390.c | struct ei_device *ei_local = (struct ei_device *) dev->priv; |
dev | 632 | drivers/net/8390.c | outb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i); |
dev | 642 | drivers/net/8390.c | dev->tbusy = 0; |
dev | 643 | drivers/net/8390.c | dev->interrupt = 0; |
dev | 658 | drivers/net/8390.c | static void NS8390_trigger_send(struct device *dev, unsigned int length, |
dev | 661 | drivers/net/8390.c | int e8390_base = dev->base_addr; |
dev | 668 | drivers/net/8390.c | dev->name); |
dev | 23 | drivers/net/8390.h | extern int ethif_init(struct device *dev); |
dev | 24 | drivers/net/8390.h | extern int ethdev_init(struct device *dev); |
dev | 25 | drivers/net/8390.h | extern void NS8390_init(struct device *dev, int startp); |
dev | 26 | drivers/net/8390.h | extern int ei_open(struct device *dev); |
dev | 64 | drivers/net/8390.h | #define ei_status (*(struct ei_device *)(dev->priv)) |
dev | 40 | drivers/net/Space.c | extern int ultra_probe(struct device *dev); |
dev | 41 | drivers/net/Space.c | extern int wd_probe(struct device *dev); |
dev | 42 | drivers/net/Space.c | extern int el2_probe(struct device *dev); |
dev | 43 | drivers/net/Space.c | extern int ne_probe(struct device *dev); |
dev | 44 | drivers/net/Space.c | extern int hp_probe(struct device *dev); |
dev | 62 | drivers/net/Space.c | ethif_probe(struct device *dev) |
dev | 64 | drivers/net/Space.c | short base_addr = dev->base_addr; |
dev | 71 | drivers/net/Space.c | && ultra_probe(dev) |
dev | 74 | drivers/net/Space.c | && wd_probe(dev) |
dev | 77 | drivers/net/Space.c | && el2_probe(dev) |
dev | 80 | drivers/net/Space.c | && ne_probe(dev) |
dev | 83 | drivers/net/Space.c | && hp_probe(dev) |
dev | 86 | drivers/net/Space.c | && at1500_probe(dev) |
dev | 89 | drivers/net/Space.c | && at1700_probe(dev) |
dev | 92 | drivers/net/Space.c | && el3_probe(dev) |
dev | 95 | drivers/net/Space.c | && znet_probe(dev) |
dev | 98 | drivers/net/Space.c | && express_probe(dev) |
dev | 101 | drivers/net/Space.c | && depca_probe(dev) |
dev | 104 | drivers/net/Space.c | && el1_probe(dev) |
dev | 107 | drivers/net/Space.c | && el16_probe(dev) |
dev | 110 | drivers/net/Space.c | && elplus_probe(dev) |
dev | 113 | drivers/net/Space.c | && ac3200_probe(dev) |
dev | 116 | drivers/net/Space.c | && e2100_probe(dev) |
dev | 119 | drivers/net/Space.c | && de600_probe(dev) |
dev | 128 | drivers/net/Space.c | extern int dl_open(struct device *dev); |
dev | 129 | drivers/net/Space.c | extern int tc589_open(struct device *dev); |
dev | 130 | drivers/net/Space.c | extern int ibmccae_open(struct device *dev); |
dev | 131 | drivers/net/Space.c | static int pc_eth_open(struct device *dev); |
dev | 133 | drivers/net/Space.c | static int pc_eth_probe(struct device *dev) |
dev | 135 | drivers/net/Space.c | dev->open = &pc_eth_open; |
dev | 136 | drivers/net/Space.c | dev->set_config = ðer_config; |
dev | 137 | drivers/net/Space.c | dev->tbusy = 1; |
dev | 141 | drivers/net/Space.c | static int pc_eth_open(struct device *dev) |
dev | 145 | drivers/net/Space.c | && dl_open(dev) |
dev | 148 | drivers/net/Space.c | && tc589_open(dev) |
dev | 151 | drivers/net/Space.c | && ibmccae_open(dev) |
dev | 285 | drivers/net/Space.c | extern int dummy_init(struct device *dev); |
dev | 293 | drivers/net/Space.c | extern int loopback_init(struct device *dev); |
dev | 108 | drivers/net/at1700.c | extern int at1700_probe(struct device *dev); |
dev | 110 | drivers/net/at1700.c | static int at1700_probe1(struct device *dev, short ioaddr); |
dev | 112 | drivers/net/at1700.c | static int net_open(struct device *dev); |
dev | 113 | drivers/net/at1700.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 115 | drivers/net/at1700.c | static void net_rx(struct device *dev); |
dev | 116 | drivers/net/at1700.c | static int net_close(struct device *dev); |
dev | 117 | drivers/net/at1700.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 118 | drivers/net/at1700.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 128 | drivers/net/at1700.c | at1700_probe(struct device *dev) |
dev | 131 | drivers/net/at1700.c | short *port, base_addr = dev->base_addr; |
dev | 134 | drivers/net/at1700.c | return at1700_probe1(dev, base_addr); |
dev | 142 | drivers/net/at1700.c | if (at1700_probe1(dev, ioaddr) == 0) |
dev | 157 | drivers/net/at1700.c | int at1700_probe1(struct device *dev, short ioaddr) |
dev | 162 | drivers/net/at1700.c | unsigned short *station_address = (unsigned short *)dev->dev_addr; |
dev | 193 | drivers/net/at1700.c | printk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name, |
dev | 196 | drivers/net/at1700.c | dev->base_addr = ioaddr; |
dev | 197 | drivers/net/at1700.c | dev->irq = irq; |
dev | 198 | drivers/net/at1700.c | irq2dev_map[irq] = dev; |
dev | 216 | drivers/net/at1700.c | dev->if_port = setup_value >> 8; |
dev | 217 | drivers/net/at1700.c | printk(" %s interface (%04x).\n", porttype[(dev->if_port>>3) & 3], |
dev | 224 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
dev | 237 | drivers/net/at1700.c | outb(dev->if_port, MODE13); |
dev | 246 | drivers/net/at1700.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 247 | drivers/net/at1700.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 249 | drivers/net/at1700.c | dev->open = net_open; |
dev | 250 | drivers/net/at1700.c | dev->stop = net_close; |
dev | 251 | drivers/net/at1700.c | dev->hard_start_xmit = net_send_packet; |
dev | 252 | drivers/net/at1700.c | dev->get_stats = net_get_stats; |
dev | 253 | drivers/net/at1700.c | dev->set_multicast_list = &set_multicast_list; |
dev | 257 | drivers/net/at1700.c | ether_setup(dev); |
dev | 302 | drivers/net/at1700.c | static int net_open(struct device *dev) |
dev | 304 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 305 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 313 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
dev | 335 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 336 | drivers/net/at1700.c | dev->interrupt = 0; |
dev | 337 | drivers/net/at1700.c | dev->start = 1; |
dev | 343 | drivers/net/at1700.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 345 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 346 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 348 | drivers/net/at1700.c | if (dev->tbusy) { |
dev | 351 | drivers/net/at1700.c | int tickssofar = jiffies - dev->trans_start; |
dev | 354 | drivers/net/at1700.c | printk("%s: transmit timed out with status %04x, %s?\n", dev->name, |
dev | 358 | drivers/net/at1700.c | dev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4), |
dev | 367 | drivers/net/at1700.c | dev->tbusy=0; |
dev | 368 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 375 | drivers/net/at1700.c | dev_tint(dev); |
dev | 381 | drivers/net/at1700.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 382 | drivers/net/at1700.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 401 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 404 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 421 | drivers/net/at1700.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 425 | drivers/net/at1700.c | if (dev == NULL) { |
dev | 429 | drivers/net/at1700.c | dev->interrupt = 1; |
dev | 431 | drivers/net/at1700.c | ioaddr = dev->base_addr; |
dev | 432 | drivers/net/at1700.c | lp = (struct net_local *)dev->priv; |
dev | 437 | drivers/net/at1700.c | printk("%s: Interrupt with status %04x.\n", dev->name, status); |
dev | 440 | drivers/net/at1700.c | net_rx(dev); |
dev | 449 | drivers/net/at1700.c | dev->trans_start = jiffies; |
dev | 450 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 456 | drivers/net/at1700.c | dev->tbusy = 0; |
dev | 466 | drivers/net/at1700.c | net_rx(struct device *dev) |
dev | 468 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 469 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 477 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), status); |
dev | 498 | drivers/net/at1700.c | dev->name, pkt_len); |
dev | 506 | drivers/net/at1700.c | dev->name, pkt_len); |
dev | 512 | drivers/net/at1700.c | skb->dev = dev; |
dev | 518 | drivers/net/at1700.c | printk("%s: Rxed packet of length %d: ", dev->name, pkt_len); |
dev | 544 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
dev | 550 | drivers/net/at1700.c | static int net_close(struct device *dev) |
dev | 552 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 553 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
dev | 557 | drivers/net/at1700.c | dev->tbusy = 1; |
dev | 558 | drivers/net/at1700.c | dev->start = 0; |
dev | 574 | drivers/net/at1700.c | net_get_stats(struct device *dev) |
dev | 576 | drivers/net/at1700.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 592 | drivers/net/at1700.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 594 | drivers/net/at1700.c | short ioaddr = dev->base_addr; |
dev | 131 | drivers/net/atp.c | extern int atp_probe(struct device *dev); |
dev | 133 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr); |
dev | 134 | drivers/net/atp.c | static void get_node_ID(struct device *dev); |
dev | 136 | drivers/net/atp.c | static int net_open(struct device *dev); |
dev | 137 | drivers/net/atp.c | static void hardware_init(struct device *dev); |
dev | 140 | drivers/net/atp.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 142 | drivers/net/atp.c | static void net_rx(struct device *dev); |
dev | 144 | drivers/net/atp.c | static int net_close(struct device *dev); |
dev | 145 | drivers/net/atp.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 146 | drivers/net/atp.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 156 | drivers/net/atp.c | atp_init(struct device *dev) |
dev | 159 | drivers/net/atp.c | int base_addr = dev->base_addr; |
dev | 162 | drivers/net/atp.c | return atp_probe1(dev, base_addr); |
dev | 171 | drivers/net/atp.c | if (atp_probe1(dev, ioaddr) == 0) |
dev | 178 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr) |
dev | 208 | drivers/net/atp.c | dev->irq = 7; |
dev | 210 | drivers/net/atp.c | dev->irq = 5; |
dev | 214 | drivers/net/atp.c | dev->base_addr = ioaddr; |
dev | 217 | drivers/net/atp.c | get_node_ID(dev); |
dev | 220 | drivers/net/atp.c | "%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr, |
dev | 221 | drivers/net/atp.c | dev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], |
dev | 222 | drivers/net/atp.c | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]); |
dev | 231 | drivers/net/atp.c | ether_setup(dev); |
dev | 232 | drivers/net/atp.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 233 | drivers/net/atp.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 237 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 242 | drivers/net/atp.c | dev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4; |
dev | 243 | drivers/net/atp.c | if (dev->mem_end & 0xf) |
dev | 244 | drivers/net/atp.c | net_debug = dev->mem_end & 7; |
dev | 246 | drivers/net/atp.c | dev->open = net_open; |
dev | 247 | drivers/net/atp.c | dev->stop = net_close; |
dev | 248 | drivers/net/atp.c | dev->hard_start_xmit = net_send_packet; |
dev | 249 | drivers/net/atp.c | dev->get_stats = net_get_stats; |
dev | 250 | drivers/net/atp.c | dev->set_multicast_list = &set_multicast_list; |
dev | 256 | drivers/net/atp.c | static void get_node_ID(struct device *dev) |
dev | 258 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
dev | 270 | drivers/net/atp.c | ((unsigned short *)dev->dev_addr)[i] = |
dev | 318 | drivers/net/atp.c | static int net_open(struct device *dev) |
dev | 324 | drivers/net/atp.c | if (irq2dev_map[dev->irq] != 0 |
dev | 325 | drivers/net/atp.c | || (irq2dev_map[dev->irq] = dev) == 0 |
dev | 326 | drivers/net/atp.c | || request_irq(dev->irq, &net_interrupt)) { |
dev | 330 | drivers/net/atp.c | hardware_init(dev); |
dev | 331 | drivers/net/atp.c | dev->start = 1; |
dev | 337 | drivers/net/atp.c | static void hardware_init(struct device *dev) |
dev | 339 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 340 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 346 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
dev | 351 | drivers/net/atp.c | printk("%s: Reset: current Rx mode %d.\n", dev->name, |
dev | 369 | drivers/net/atp.c | dev->tbusy = 0; |
dev | 370 | drivers/net/atp.c | dev->interrupt = 0; |
dev | 411 | drivers/net/atp.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 413 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 414 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 416 | drivers/net/atp.c | if (dev->tbusy) { |
dev | 419 | drivers/net/atp.c | int tickssofar = jiffies - dev->trans_start; |
dev | 422 | drivers/net/atp.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 427 | drivers/net/atp.c | hardware_init(dev); |
dev | 428 | drivers/net/atp.c | dev->tbusy=0; |
dev | 429 | drivers/net/atp.c | dev->trans_start = jiffies; |
dev | 436 | drivers/net/atp.c | dev_tint(dev); |
dev | 442 | drivers/net/atp.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 443 | drivers/net/atp.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 457 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
dev | 468 | drivers/net/atp.c | dev->trans_start = jiffies; |
dev | 486 | drivers/net/atp.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 491 | drivers/net/atp.c | if (dev == NULL) { |
dev | 495 | drivers/net/atp.c | dev->interrupt = 1; |
dev | 497 | drivers/net/atp.c | ioaddr = dev->base_addr; |
dev | 498 | drivers/net/atp.c | lp = (struct net_local *)dev->priv; |
dev | 507 | drivers/net/atp.c | if (net_debug > 5) printk("%s: In interrupt ", dev->name); |
dev | 524 | drivers/net/atp.c | net_rx(dev); |
dev | 529 | drivers/net/atp.c | net_rx(dev); |
dev | 530 | drivers/net/atp.c | dev->last_rx = jiffies; |
dev | 544 | drivers/net/atp.c | hardware_init(dev); |
dev | 560 | drivers/net/atp.c | dev->tbusy = 0; |
dev | 565 | drivers/net/atp.c | && jiffies > dev->last_rx + 100) { |
dev | 568 | drivers/net/atp.c | " status %02x CMR1 %02x.\n", dev->name, |
dev | 569 | drivers/net/atp.c | num_tx_since_rx, jiffies - dev->last_rx, status, |
dev | 572 | drivers/net/atp.c | hardware_init(dev); |
dev | 584 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
dev | 597 | drivers/net/atp.c | dev->interrupt = 0; |
dev | 603 | drivers/net/atp.c | static void net_rx(struct device *dev) |
dev | 605 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 606 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 615 | drivers/net/atp.c | read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); |
dev | 624 | drivers/net/atp.c | dev->name, rx_head.rx_status); |
dev | 625 | drivers/net/atp.c | hardware_init(dev); |
dev | 634 | drivers/net/atp.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 639 | drivers/net/atp.c | skb->dev = dev; |
dev | 641 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb->data, dev->if_port); |
dev | 682 | drivers/net/atp.c | net_close(struct device *dev) |
dev | 684 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 685 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
dev | 687 | drivers/net/atp.c | dev->tbusy = 1; |
dev | 688 | drivers/net/atp.c | dev->start = 0; |
dev | 696 | drivers/net/atp.c | free_irq(dev->irq); |
dev | 697 | drivers/net/atp.c | irq2dev_map[dev->irq] = 0; |
dev | 708 | drivers/net/atp.c | net_get_stats(struct device *dev) |
dev | 710 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 721 | drivers/net/atp.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 723 | drivers/net/atp.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 724 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
dev | 210 | drivers/net/d_link.c | static int d_link_read_status(struct device *dev); |
dev | 211 | drivers/net/d_link.c | static unsigned char d_link_read_byte(unsigned char type, struct device *dev); |
dev | 214 | drivers/net/d_link.c | static int d_link_open(struct device *dev); |
dev | 215 | drivers/net/d_link.c | static int d_link_close(struct device *dev); |
dev | 216 | drivers/net/d_link.c | static struct netstats *get_stats(struct device *dev); |
dev | 217 | drivers/net/d_link.c | static int d_link_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 221 | drivers/net/d_link.c | static int d_link_tx_intr(struct device *dev, int irq_status); |
dev | 222 | drivers/net/d_link.c | static void d_link_rx_intr(struct device *dev); |
dev | 225 | drivers/net/d_link.c | static void trigger_interrupt(struct device *dev); |
dev | 226 | drivers/net/d_link.c | int d_link_init(struct device *dev); |
dev | 227 | drivers/net/d_link.c | static void adapter_init(struct device *dev); |
dev | 277 | drivers/net/d_link.c | d_link_read_status(struct device *dev) |
dev | 289 | drivers/net/d_link.c | d_link_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */ |
dev | 307 | drivers/net/d_link.c | d_link_open(struct device *dev) |
dev | 312 | drivers/net/d_link.c | printk ("%s: unable to get IRQ %d\n", dev->name, D_LINK_IRQ); |
dev | 315 | drivers/net/d_link.c | irq2dev_map[D_LINK_IRQ] = dev; |
dev | 317 | drivers/net/d_link.c | adapter_init(dev); |
dev | 340 | drivers/net/d_link.c | d_link_close(struct device *dev) |
dev | 351 | drivers/net/d_link.c | dev->start = 0; |
dev | 359 | drivers/net/d_link.c | get_stats(struct device *dev) |
dev | 361 | drivers/net/d_link.c | return (struct netstats *)(dev->priv); |
dev | 365 | drivers/net/d_link.c | trigger_interrupt(struct device *dev) |
dev | 379 | drivers/net/d_link.c | d_link_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 393 | drivers/net/d_link.c | dev_tint(dev); |
dev | 398 | drivers/net/d_link.c | tickssofar = jiffies - dev->trans_start; |
dev | 405 | drivers/net/d_link.c | dev->name, |
dev | 410 | drivers/net/d_link.c | adapter_init(dev); |
dev | 430 | drivers/net/d_link.c | dev->trans_start = jiffies; |
dev | 431 | drivers/net/d_link.c | dev->tbusy = 0; /* allow more packets into adapter */ |
dev | 437 | drivers/net/d_link.c | dev->tbusy = !free_tx_pages; |
dev | 457 | drivers/net/d_link.c | struct device *dev = irq2dev_map[irq]; |
dev | 463 | drivers/net/d_link.c | if ((dev == NULL) || (dev->start == 0) || (D_LINK_IRQ != irq)) { |
dev | 464 | drivers/net/d_link.c | printk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq); |
dev | 468 | drivers/net/d_link.c | dev->interrupt = 1; |
dev | 470 | drivers/net/d_link.c | irq_status = d_link_read_status(dev); |
dev | 476 | drivers/net/d_link.c | d_link_rx_intr(dev); |
dev | 482 | drivers/net/d_link.c | retrig = d_link_tx_intr(dev, irq_status); |
dev | 486 | drivers/net/d_link.c | irq_status = d_link_read_status(dev); |
dev | 495 | drivers/net/d_link.c | dev->interrupt = 0; |
dev | 499 | drivers/net/d_link.c | trigger_interrupt(dev); |
dev | 506 | drivers/net/d_link.c | d_link_tx_intr(struct device *dev, int irq_status) |
dev | 522 | drivers/net/d_link.c | ((struct netstats *)(dev->priv))->tx_packets++; |
dev | 523 | drivers/net/d_link.c | dev->tbusy = 0; |
dev | 528 | drivers/net/d_link.c | dev->trans_start = jiffies; |
dev | 542 | drivers/net/d_link.c | d_link_rx_intr(struct device *dev) |
dev | 552 | drivers/net/d_link.c | size = d_link_read_byte(RX_LEN, dev); /* low byte */ |
dev | 553 | drivers/net/d_link.c | size += (d_link_read_byte(RX_LEN, dev) << 8); /* high byte */ |
dev | 563 | drivers/net/d_link.c | printk("%s: Bogus packet size %d.\n", dev->name, size); |
dev | 569 | drivers/net/d_link.c | dev->name, size); |
dev | 581 | drivers/net/d_link.c | *buffer = d_link_read_byte(READ_DATA, dev); |
dev | 583 | drivers/net/d_link.c | ((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */ |
dev | 585 | drivers/net/d_link.c | if (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev)) |
dev | 586 | drivers/net/d_link.c | printk("%s: receive buffers full.\n", dev->name); |
dev | 595 | drivers/net/d_link.c | d_link_init(struct device *dev) |
dev | 599 | drivers/net/d_link.c | printk("%s: D-Link DE-600 pocket adapter", dev->name); |
dev | 607 | drivers/net/d_link.c | (void)d_link_read_status(dev); |
dev | 610 | drivers/net/d_link.c | if (d_link_read_status(dev) & 0xf0) { |
dev | 623 | drivers/net/d_link.c | dev->dev_addr[i] = d_link_read_byte(READ_DATA, dev); |
dev | 624 | drivers/net/d_link.c | dev->broadcast[i] = 0xff; |
dev | 628 | drivers/net/d_link.c | if ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) { |
dev | 630 | drivers/net/d_link.c | dev->dev_addr[0] = 0x00; |
dev | 631 | drivers/net/d_link.c | dev->dev_addr[1] = 0x80; |
dev | 632 | drivers/net/d_link.c | dev->dev_addr[2] = 0xc8; |
dev | 633 | drivers/net/d_link.c | dev->dev_addr[3] &= 0x0f; |
dev | 634 | drivers/net/d_link.c | dev->dev_addr[3] |= 0x70; |
dev | 640 | drivers/net/d_link.c | printk(", Ethernet Address: %2.2X", dev->dev_addr[0]); |
dev | 642 | drivers/net/d_link.c | printk(":%2.2X",dev->dev_addr[i]); |
dev | 646 | drivers/net/d_link.c | dev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL); |
dev | 647 | drivers/net/d_link.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 648 | drivers/net/d_link.c | dev->get_stats = get_stats; |
dev | 650 | drivers/net/d_link.c | dev->open = d_link_open; |
dev | 651 | drivers/net/d_link.c | dev->stop = d_link_close; |
dev | 652 | drivers/net/d_link.c | dev->hard_start_xmit = &d_link_start_xmit; |
dev | 654 | drivers/net/d_link.c | ether_setup(dev); |
dev | 661 | drivers/net/d_link.c | adapter_init(struct device *dev) |
dev | 666 | drivers/net/d_link.c | dev->tbusy = 0; /* Transmit busy... */ |
dev | 667 | drivers/net/d_link.c | dev->interrupt = 0; |
dev | 668 | drivers/net/d_link.c | dev->start = 1; |
dev | 682 | drivers/net/d_link.c | d_link_put_byte(dev->dev_addr[i]); |
dev | 215 | drivers/net/de600.c | static int de600_read_status(struct device *dev); |
dev | 216 | drivers/net/de600.c | static unsigned char de600_read_byte(unsigned char type, struct device *dev); |
dev | 219 | drivers/net/de600.c | static int de600_open(struct device *dev); |
dev | 220 | drivers/net/de600.c | static int de600_close(struct device *dev); |
dev | 221 | drivers/net/de600.c | static struct netstats *get_stats(struct device *dev); |
dev | 222 | drivers/net/de600.c | static int de600_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 226 | drivers/net/de600.c | static int de600_tx_intr(struct device *dev, int irq_status); |
dev | 227 | drivers/net/de600.c | static void de600_rx_intr(struct device *dev); |
dev | 230 | drivers/net/de600.c | static void trigger_interrupt(struct device *dev); |
dev | 231 | drivers/net/de600.c | int de600_probe(struct device *dev); |
dev | 232 | drivers/net/de600.c | static void adapter_init(struct device *dev); |
dev | 282 | drivers/net/de600.c | de600_read_status(struct device *dev) |
dev | 294 | drivers/net/de600.c | de600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */ |
dev | 312 | drivers/net/de600.c | de600_open(struct device *dev) |
dev | 319 | drivers/net/de600.c | printk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ); |
dev | 322 | drivers/net/de600.c | irq2dev_map[DE600_IRQ] = dev; |
dev | 327 | drivers/net/de600.c | adapter_init(dev); |
dev | 350 | drivers/net/de600.c | de600_close(struct device *dev) |
dev | 361 | drivers/net/de600.c | dev->start = 0; |
dev | 372 | drivers/net/de600.c | get_stats(struct device *dev) |
dev | 374 | drivers/net/de600.c | return (struct netstats *)(dev->priv); |
dev | 378 | drivers/net/de600.c | trigger_interrupt(struct device *dev) |
dev | 392 | drivers/net/de600.c | de600_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 406 | drivers/net/de600.c | dev_tint(dev); |
dev | 411 | drivers/net/de600.c | tickssofar = jiffies - dev->trans_start; |
dev | 418 | drivers/net/de600.c | dev->name, |
dev | 423 | drivers/net/de600.c | adapter_init(dev); |
dev | 443 | drivers/net/de600.c | dev->trans_start = jiffies; |
dev | 444 | drivers/net/de600.c | dev->tbusy = 0; /* allow more packets into adapter */ |
dev | 450 | drivers/net/de600.c | dev->tbusy = !free_tx_pages; |
dev | 470 | drivers/net/de600.c | struct device *dev = irq2dev_map[irq]; |
dev | 476 | drivers/net/de600.c | if ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) { |
dev | 477 | drivers/net/de600.c | printk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq); |
dev | 481 | drivers/net/de600.c | dev->interrupt = 1; |
dev | 483 | drivers/net/de600.c | irq_status = de600_read_status(dev); |
dev | 489 | drivers/net/de600.c | de600_rx_intr(dev); |
dev | 495 | drivers/net/de600.c | retrig = de600_tx_intr(dev, irq_status); |
dev | 499 | drivers/net/de600.c | irq_status = de600_read_status(dev); |
dev | 508 | drivers/net/de600.c | dev->interrupt = 0; |
dev | 512 | drivers/net/de600.c | trigger_interrupt(dev); |
dev | 519 | drivers/net/de600.c | de600_tx_intr(struct device *dev, int irq_status) |
dev | 535 | drivers/net/de600.c | ((struct netstats *)(dev->priv))->tx_packets++; |
dev | 536 | drivers/net/de600.c | dev->tbusy = 0; |
dev | 541 | drivers/net/de600.c | dev->trans_start = jiffies; |
dev | 555 | drivers/net/de600.c | de600_rx_intr(struct device *dev) |
dev | 565 | drivers/net/de600.c | size = de600_read_byte(RX_LEN, dev); /* low byte */ |
dev | 566 | drivers/net/de600.c | size += (de600_read_byte(RX_LEN, dev) << 8); /* high byte */ |
dev | 576 | drivers/net/de600.c | printk("%s: Bogus packet size %d.\n", dev->name, size); |
dev | 582 | drivers/net/de600.c | dev->name, size); |
dev | 594 | drivers/net/de600.c | *buffer = de600_read_byte(READ_DATA, dev); |
dev | 596 | drivers/net/de600.c | ((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */ |
dev | 598 | drivers/net/de600.c | if (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev)) |
dev | 599 | drivers/net/de600.c | printk("%s: receive buffers full.\n", dev->name); |
dev | 608 | drivers/net/de600.c | de600_probe(struct device *dev) |
dev | 614 | drivers/net/de600.c | printk("%s: D-Link DE-600 pocket adapter", dev->name); |
dev | 622 | drivers/net/de600.c | (void)de600_read_status(dev); |
dev | 625 | drivers/net/de600.c | if (de600_read_status(dev) & 0xf0) { |
dev | 638 | drivers/net/de600.c | dev->dev_addr[i] = de600_read_byte(READ_DATA, dev); |
dev | 639 | drivers/net/de600.c | dev->broadcast[i] = 0xff; |
dev | 643 | drivers/net/de600.c | if ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) { |
dev | 645 | drivers/net/de600.c | dev->dev_addr[0] = 0x00; |
dev | 646 | drivers/net/de600.c | dev->dev_addr[1] = 0x80; |
dev | 647 | drivers/net/de600.c | dev->dev_addr[2] = 0xc8; |
dev | 648 | drivers/net/de600.c | dev->dev_addr[3] &= 0x0f; |
dev | 649 | drivers/net/de600.c | dev->dev_addr[3] |= 0x70; |
dev | 655 | drivers/net/de600.c | printk(", Ethernet Address: %2.2X", dev->dev_addr[0]); |
dev | 657 | drivers/net/de600.c | printk(":%2.2X",dev->dev_addr[i]); |
dev | 662 | drivers/net/de600.c | dev->priv = &de600_netstats; |
dev | 664 | drivers/net/de600.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 665 | drivers/net/de600.c | dev->get_stats = get_stats; |
dev | 667 | drivers/net/de600.c | dev->open = de600_open; |
dev | 668 | drivers/net/de600.c | dev->stop = de600_close; |
dev | 669 | drivers/net/de600.c | dev->hard_start_xmit = &de600_start_xmit; |
dev | 671 | drivers/net/de600.c | ether_setup(dev); |
dev | 678 | drivers/net/de600.c | adapter_init(struct device *dev) |
dev | 683 | drivers/net/de600.c | dev->tbusy = 0; /* Transmit busy... */ |
dev | 684 | drivers/net/de600.c | dev->interrupt = 0; |
dev | 685 | drivers/net/de600.c | dev->start = 1; |
dev | 699 | drivers/net/de600.c | de600_put_byte(dev->dev_addr[i]); |
dev | 266 | drivers/net/depca.c | static int depca_open(struct device *dev); |
dev | 267 | drivers/net/depca.c | static int depca_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 269 | drivers/net/depca.c | static int depca_close(struct device *dev); |
dev | 270 | drivers/net/depca.c | static struct enet_statistics *depca_get_stats(struct device *dev); |
dev | 272 | drivers/net/depca.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 278 | drivers/net/depca.c | static int depca_probe1(struct device *dev, short ioaddr); |
dev | 279 | drivers/net/depca.c | static void depca_init_ring(struct device *dev); |
dev | 280 | drivers/net/depca.c | static int depca_rx(struct device *dev); |
dev | 281 | drivers/net/depca.c | static int depca_tx(struct device *dev); |
dev | 283 | drivers/net/depca.c | static void LoadCSRs(struct device *dev); |
dev | 284 | drivers/net/depca.c | static int InitRestartDepca(struct device *dev); |
dev | 318 | drivers/net/depca.c | int depca_probe(struct device *dev) |
dev | 321 | drivers/net/depca.c | int base_addr = dev->base_addr; |
dev | 328 | drivers/net/depca.c | status = depca_probe1(dev, base_addr); |
dev | 349 | drivers/net/depca.c | while (dev->next != (struct device *)NULL) { |
dev | 350 | drivers/net/depca.c | if (dev->next->base_addr == 0xffe0) break; |
dev | 351 | drivers/net/depca.c | dev = dev->next; /* walk through eth device list */ |
dev | 360 | drivers/net/depca.c | if (dev->next == (struct device *)NULL) { |
dev | 361 | drivers/net/depca.c | dev->next = (struct device *)kmalloc(sizeof(struct device) + 8, |
dev | 373 | drivers/net/depca.c | if ((dev->next != (struct device *)NULL) && |
dev | 375 | drivers/net/depca.c | dev = dev->next; /* point to the new device */ |
dev | 376 | drivers/net/depca.c | dev->name = (char *)(dev + sizeof(struct device)); |
dev | 377 | drivers/net/depca.c | sprintf(dev->name,"eth%d", num_eth); /* New device name */ |
dev | 378 | drivers/net/depca.c | dev->base_addr = ioaddr; /* assign the io address */ |
dev | 379 | drivers/net/depca.c | dev->next = (struct device *)NULL; /* mark the end of list */ |
dev | 380 | drivers/net/depca.c | dev->init = &depca_probe;/* initialisation routine */ |
dev | 383 | drivers/net/depca.c | eth0 = dev; /* remember the first device */ |
dev | 384 | drivers/net/depca.c | status = depca_probe1(dev, ioaddr); |
dev | 390 | drivers/net/depca.c | if (eth0) dev = eth0; /* restore the first device */ |
dev | 393 | drivers/net/depca.c | if (status) dev->base_addr = base_addr; |
dev | 399 | drivers/net/depca.c | depca_probe1(struct device *dev, short ioaddr) |
dev | 441 | drivers/net/depca.c | dev->base_addr = ioaddr; |
dev | 443 | drivers/net/depca.c | printk("%s: DEPCA at %#3x is a %s, ", dev->name, ioaddr, name); |
dev | 462 | drivers/net/depca.c | printk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
dev | 464 | drivers/net/depca.c | printk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j)); |
dev | 540 | drivers/net/depca.c | dev->priv = (void *)((mem_start + 0x07) & ~0x07); |
dev | 541 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
dev | 542 | drivers/net/depca.c | memset(dev->priv, 0, sizeof(struct depca_private)); |
dev | 545 | drivers/net/depca.c | mem_start = ((((unsigned long)dev->priv + |
dev | 588 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 593 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 607 | drivers/net/depca.c | dev->dma = 0; |
dev | 611 | drivers/net/depca.c | if (dev->irq < 2) { |
dev | 617 | drivers/net/depca.c | dev->irq = autoirq_report(1); |
dev | 618 | drivers/net/depca.c | if (dev->irq) { |
dev | 619 | drivers/net/depca.c | printk(" and probed IRQ%d.\n", dev->irq); |
dev | 625 | drivers/net/depca.c | printk(". Assigned IRQ%d.\n", dev->irq); |
dev | 636 | drivers/net/depca.c | dev->open = &depca_open; |
dev | 637 | drivers/net/depca.c | dev->hard_start_xmit = &depca_start_xmit; |
dev | 638 | drivers/net/depca.c | dev->stop = &depca_close; |
dev | 639 | drivers/net/depca.c | dev->get_stats = &depca_get_stats; |
dev | 641 | drivers/net/depca.c | dev->set_multicast_list = &set_multicast_list; |
dev | 644 | drivers/net/depca.c | dev->mem_start = 0; |
dev | 647 | drivers/net/depca.c | ether_setup(dev); |
dev | 658 | drivers/net/depca.c | depca_open(struct device *dev) |
dev | 660 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 661 | drivers/net/depca.c | int i,nicsr,ioaddr = dev->base_addr; |
dev | 663 | drivers/net/depca.c | if (request_irq(dev->irq, &depca_interrupt)) { |
dev | 664 | drivers/net/depca.c | printk("depca_open(): Requested IRQ%d is busy\n",dev->irq); |
dev | 668 | drivers/net/depca.c | irq2dev_map[dev->irq] = dev; |
dev | 680 | drivers/net/depca.c | depca_init_ring(dev); /* initialize the descriptor rings */ |
dev | 681 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 684 | drivers/net/depca.c | printk("%s: depca open with irq %d\n",dev->name,dev->irq); |
dev | 729 | drivers/net/depca.c | dev->tbusy = 0; |
dev | 730 | drivers/net/depca.c | dev->interrupt = 0; |
dev | 731 | drivers/net/depca.c | dev->start = 1; |
dev | 733 | drivers/net/depca.c | InitRestartDepca(dev); /* ignore the return status */ |
dev | 746 | drivers/net/depca.c | depca_init_ring(struct device *dev) |
dev | 748 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 765 | drivers/net/depca.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 780 | drivers/net/depca.c | depca_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 782 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 783 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 787 | drivers/net/depca.c | if (dev->tbusy) { |
dev | 788 | drivers/net/depca.c | int tickssofar = jiffies - dev->trans_start; |
dev | 794 | drivers/net/depca.c | dev->name, inw(DEPCA_DATA)); |
dev | 796 | drivers/net/depca.c | depca_init_ring(dev); |
dev | 797 | drivers/net/depca.c | LoadCSRs(dev); |
dev | 798 | drivers/net/depca.c | InitRestartDepca(dev); |
dev | 799 | drivers/net/depca.c | dev->tbusy=0; |
dev | 800 | drivers/net/depca.c | dev->trans_start = jiffies; |
dev | 806 | drivers/net/depca.c | dev_tint(dev); |
dev | 816 | drivers/net/depca.c | printk("%s: depca_start_xmit() called, csr0 %4.4x.\n", dev->name, |
dev | 822 | drivers/net/depca.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 823 | drivers/net/depca.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 866 | drivers/net/depca.c | dev->trans_start = jiffies; |
dev | 877 | drivers/net/depca.c | dev->tbusy=0; |
dev | 904 | drivers/net/depca.c | dev->name, entry, (unsigned long) &lp->tx_ring[entry], |
dev | 907 | drivers/net/depca.c | dev->name, pkt[0], pkt[1], pkt[2], pkt[5], pkt[6], |
dev | 914 | drivers/net/depca.c | dev->tbusy=0; |
dev | 932 | drivers/net/depca.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 936 | drivers/net/depca.c | if (dev == NULL) { |
dev | 940 | drivers/net/depca.c | lp = (struct depca_private *)dev->priv; |
dev | 941 | drivers/net/depca.c | ioaddr = dev->base_addr; |
dev | 945 | drivers/net/depca.c | if (dev->interrupt) |
dev | 946 | drivers/net/depca.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 948 | drivers/net/depca.c | dev->interrupt = MASK_INTERRUPTS; |
dev | 963 | drivers/net/depca.c | dev->name, csr0, inw(DEPCA_DATA)); |
dev | 966 | drivers/net/depca.c | depca_rx(dev); |
dev | 969 | drivers/net/depca.c | depca_tx(dev); |
dev | 977 | drivers/net/depca.c | dev->name, inw(DEPCA_ADDR), |
dev | 985 | drivers/net/depca.c | dev->interrupt = UNMASK_INTERRUPTS; |
dev | 990 | drivers/net/depca.c | depca_rx(struct device *dev) |
dev | 992 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1034 | drivers/net/depca.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 1039 | drivers/net/depca.c | skb->dev = dev; |
dev | 1071 | drivers/net/depca.c | depca_tx(struct device *dev) |
dev | 1073 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1078 | drivers/net/depca.c | dev->name, dirty_tx, (lp->cur_tx & lp->rmask)); |
dev | 1110 | drivers/net/depca.c | dev->name, dirty_tx, |
dev | 1118 | drivers/net/depca.c | depca_close(struct device *dev) |
dev | 1120 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 1122 | drivers/net/depca.c | dev->start = 0; |
dev | 1123 | drivers/net/depca.c | dev->tbusy = 1; |
dev | 1129 | drivers/net/depca.c | dev->name, inw(DEPCA_DATA)); |
dev | 1138 | drivers/net/depca.c | free_irq(dev->irq); |
dev | 1140 | drivers/net/depca.c | irq2dev_map[dev->irq] = 0; |
dev | 1145 | drivers/net/depca.c | static void LoadCSRs(struct device *dev) |
dev | 1147 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1148 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 1159 | drivers/net/depca.c | static int InitRestartDepca(struct device *dev) |
dev | 1161 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1162 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
dev | 1176 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
dev | 1181 | drivers/net/depca.c | dev->name, i, (long) &lp->init_block, inw(DEPCA_DATA)); |
dev | 1188 | drivers/net/depca.c | depca_get_stats(struct device *dev) |
dev | 1190 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 1206 | drivers/net/depca.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 1208 | drivers/net/depca.c | short ioaddr = dev->base_addr; |
dev | 1209 | drivers/net/depca.c | struct depca_private *lp = (struct depca_private *)dev->priv; |
dev | 55 | drivers/net/dummy.c | static int dummy_xmit(struct sk_buff *skb, struct device *dev); |
dev | 57 | drivers/net/dummy.c | static struct enet_statistics *dummy_get_stats(struct device *dev); |
dev | 61 | drivers/net/dummy.c | dummy_init(struct device *dev) |
dev | 68 | drivers/net/dummy.c | dev->hard_start_xmit = dummy_xmit; |
dev | 71 | drivers/net/dummy.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 72 | drivers/net/dummy.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 73 | drivers/net/dummy.c | dev->get_stats = dummy_get_stats; |
dev | 77 | drivers/net/dummy.c | ether_setup(dev); |
dev | 83 | drivers/net/dummy.c | dummy_xmit(struct sk_buff *skb, struct device *dev) |
dev | 89 | drivers/net/dummy.c | if (skb == NULL || dev == NULL) |
dev | 96 | drivers/net/dummy.c | stats = (struct enet_statistics *)dev->priv; |
dev | 105 | drivers/net/dummy.c | dummy_get_stats(struct device *dev) |
dev | 107 | drivers/net/dummy.c | struct enet_statistics *stats = (struct enet_statistics*) dev->priv; |
dev | 281 | drivers/net/eexpress.c | extern int express_probe(struct device *dev); /* Called from Space.c */ |
dev | 283 | drivers/net/eexpress.c | static int eexp_probe1(struct device *dev, short ioaddr); |
dev | 284 | drivers/net/eexpress.c | static int eexp_open(struct device *dev); |
dev | 285 | drivers/net/eexpress.c | static int eexp_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 287 | drivers/net/eexpress.c | static void eexp_rx(struct device *dev); |
dev | 288 | drivers/net/eexpress.c | static int eexp_close(struct device *dev); |
dev | 289 | drivers/net/eexpress.c | static struct enet_statistics *eexp_get_stats(struct device *dev); |
dev | 290 | drivers/net/eexpress.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 293 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
dev | 294 | drivers/net/eexpress.c | static void init_82586_mem(struct device *dev); |
dev | 295 | drivers/net/eexpress.c | static void init_rx_bufs(struct device *dev); |
dev | 305 | drivers/net/eexpress.c | express_probe(struct device *dev) |
dev | 309 | drivers/net/eexpress.c | int base_addr = dev->base_addr; |
dev | 312 | drivers/net/eexpress.c | return eexp_probe1(dev, base_addr); |
dev | 331 | drivers/net/eexpress.c | && eexp_probe1(dev, *port) == 0) |
dev | 338 | drivers/net/eexpress.c | int eexp_probe1(struct device *dev, short ioaddr) |
dev | 343 | drivers/net/eexpress.c | printk("%s: EtherExpress at %#x,", dev->name, ioaddr); |
dev | 360 | drivers/net/eexpress.c | dev->base_addr = ioaddr; |
dev | 363 | drivers/net/eexpress.c | dev->dev_addr[i] = ((unsigned char*)station_addr)[5-i]; |
dev | 364 | drivers/net/eexpress.c | printk(" %02x", dev->dev_addr[i]); |
dev | 375 | drivers/net/eexpress.c | dev->irq = irqmap[setupval >> 13]; |
dev | 376 | drivers/net/eexpress.c | dev->if_port = (setupval & 0x1000) == 0 ? AUI : |
dev | 378 | drivers/net/eexpress.c | printk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]); |
dev | 387 | drivers/net/eexpress.c | if ((dev->mem_start & 0xf) > 0) |
dev | 388 | drivers/net/eexpress.c | net_debug = dev->mem_start & 7; |
dev | 394 | drivers/net/eexpress.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 395 | drivers/net/eexpress.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 397 | drivers/net/eexpress.c | dev->open = eexp_open; |
dev | 398 | drivers/net/eexpress.c | dev->stop = eexp_close; |
dev | 399 | drivers/net/eexpress.c | dev->hard_start_xmit = eexp_send_packet; |
dev | 400 | drivers/net/eexpress.c | dev->get_stats = eexp_get_stats; |
dev | 401 | drivers/net/eexpress.c | dev->set_multicast_list = &set_multicast_list; |
dev | 405 | drivers/net/eexpress.c | ether_setup(dev); |
dev | 415 | drivers/net/eexpress.c | eexp_open(struct device *dev) |
dev | 417 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 419 | drivers/net/eexpress.c | if (dev->irq == 0 || irqrmap[dev->irq] == 0) |
dev | 422 | drivers/net/eexpress.c | if (irq2dev_map[dev->irq] != 0 |
dev | 424 | drivers/net/eexpress.c | || (irq2dev_map[dev->irq] = dev) == 0 |
dev | 425 | drivers/net/eexpress.c | || request_irq(dev->irq, &eexp_interrupt)) { |
dev | 430 | drivers/net/eexpress.c | init_82586_mem(dev); |
dev | 433 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
dev | 435 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 436 | drivers/net/eexpress.c | dev->interrupt = 0; |
dev | 437 | drivers/net/eexpress.c | dev->start = 1; |
dev | 442 | drivers/net/eexpress.c | eexp_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 444 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 445 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 447 | drivers/net/eexpress.c | if (dev->tbusy) { |
dev | 450 | drivers/net/eexpress.c | int tickssofar = jiffies - dev->trans_start; |
dev | 454 | drivers/net/eexpress.c | printk("%s: transmit timed out, %s? ", dev->name, |
dev | 462 | drivers/net/eexpress.c | init_82586_mem(dev); |
dev | 470 | drivers/net/eexpress.c | dev->tbusy=0; |
dev | 471 | drivers/net/eexpress.c | dev->trans_start = jiffies; |
dev | 478 | drivers/net/eexpress.c | dev_tint(dev); |
dev | 483 | drivers/net/eexpress.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 484 | drivers/net/eexpress.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 490 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 491 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
dev | 492 | drivers/net/eexpress.c | dev->trans_start = jiffies; |
dev | 494 | drivers/net/eexpress.c | outb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 512 | drivers/net/eexpress.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 517 | drivers/net/eexpress.c | if (dev == NULL) { |
dev | 521 | drivers/net/eexpress.c | dev->interrupt = 1; |
dev | 523 | drivers/net/eexpress.c | ioaddr = dev->base_addr; |
dev | 524 | drivers/net/eexpress.c | lp = (struct net_local *)dev->priv; |
dev | 529 | drivers/net/eexpress.c | printk("%s: EExp interrupt, status %4.4x.\n", dev->name, status); |
dev | 533 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
dev | 547 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 568 | drivers/net/eexpress.c | eexp_rx(dev); |
dev | 574 | drivers/net/eexpress.c | if ((status & 0x0700) != 0x0200 && dev->start) { |
dev | 578 | drivers/net/eexpress.c | dev->name, status); |
dev | 593 | drivers/net/eexpress.c | if ((status & 0x0070) != 0x0040 && dev->start) { |
dev | 601 | drivers/net/eexpress.c | dev->name, status, lp->rx_head, lp->rx_tail); |
dev | 612 | drivers/net/eexpress.c | init_rx_bufs(dev); |
dev | 622 | drivers/net/eexpress.c | printk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name, |
dev | 626 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
dev | 631 | drivers/net/eexpress.c | eexp_close(struct device *dev) |
dev | 633 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
dev | 635 | drivers/net/eexpress.c | dev->tbusy = 1; |
dev | 636 | drivers/net/eexpress.c | dev->start = 0; |
dev | 645 | drivers/net/eexpress.c | free_irq(dev->irq); |
dev | 647 | drivers/net/eexpress.c | irq2dev_map[dev->irq] = 0; |
dev | 657 | drivers/net/eexpress.c | eexp_get_stats(struct device *dev) |
dev | 659 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 673 | drivers/net/eexpress.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 675 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 738 | drivers/net/eexpress.c | init_82586_mem(struct device *dev) |
dev | 740 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 741 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 756 | drivers/net/eexpress.c | outsw(ioaddr, dev->dev_addr, 3); |
dev | 766 | drivers/net/eexpress.c | init_rx_bufs(dev); |
dev | 780 | drivers/net/eexpress.c | dev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD)); |
dev | 790 | drivers/net/eexpress.c | printk("%s: Initialized 82586, status %04x.\n", dev->name, |
dev | 796 | drivers/net/eexpress.c | static void init_rx_bufs(struct device *dev) |
dev | 798 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 799 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 837 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
dev | 839 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 840 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 877 | drivers/net/eexpress.c | "reap %4x status %4.4x.\n", dev->name, ioaddr, length, |
dev | 882 | drivers/net/eexpress.c | dev->tbusy = 0; |
dev | 886 | drivers/net/eexpress.c | eexp_rx(struct device *dev) |
dev | 888 | drivers/net/eexpress.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 889 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
dev | 911 | drivers/net/eexpress.c | "next %04x data-buf @%04x %04x.\n", dev->name, rx_head, |
dev | 929 | drivers/net/eexpress.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 934 | drivers/net/eexpress.c | skb->dev = dev; |
dev | 951 | drivers/net/eexpress.c | printk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name, |
dev | 965 | drivers/net/eexpress.c | dev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)), |
dev | 48 | drivers/net/hp.c | int hp_probe(struct device *dev); |
dev | 49 | drivers/net/hp.c | int hpprobe1(struct device *dev, int ioaddr); |
dev | 51 | drivers/net/hp.c | static void hp_reset_8390(struct device *dev); |
dev | 52 | drivers/net/hp.c | static int hp_block_input(struct device *dev, int count, |
dev | 54 | drivers/net/hp.c | static void hp_block_output(struct device *dev, int count, |
dev | 56 | drivers/net/hp.c | static void hp_init_card(struct device *dev); |
dev | 67 | drivers/net/hp.c | int hp_probe(struct device *dev) |
dev | 70 | drivers/net/hp.c | short ioaddr = dev->base_addr; |
dev | 73 | drivers/net/hp.c | return hpprobe1(dev, ioaddr); |
dev | 80 | drivers/net/hp.c | if (hpprobe1(dev, *port) == 0) { |
dev | 87 | drivers/net/hp.c | int hpprobe1(struct device *dev, int ioaddr) |
dev | 91 | drivers/net/hp.c | unsigned char *station_addr = dev->dev_addr; |
dev | 115 | drivers/net/hp.c | printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); |
dev | 121 | drivers/net/hp.c | if (dev->irq < 2) { |
dev | 135 | drivers/net/hp.c | dev->irq = *irqp; |
dev | 145 | drivers/net/hp.c | if (dev->irq == 2) |
dev | 146 | drivers/net/hp.c | dev->irq = 9; |
dev | 147 | drivers/net/hp.c | if (irqaction(dev->irq, &ei_sigaction)) { |
dev | 148 | drivers/net/hp.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 157 | drivers/net/hp.c | dev->base_addr = ioaddr + NIC_OFFSET; |
dev | 159 | drivers/net/hp.c | ethdev_init(dev); |
dev | 170 | drivers/net/hp.c | hp_init_card(dev); |
dev | 176 | drivers/net/hp.c | hp_reset_8390(struct device *dev) |
dev | 178 | drivers/net/hp.c | int hp_base = dev->base_addr - NIC_OFFSET; |
dev | 192 | drivers/net/hp.c | printk("%s: hp_reset_8390() did not complete.\n", dev->name); |
dev | 204 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 206 | drivers/net/hp.c | int nic_base = dev->base_addr; |
dev | 232 | drivers/net/hp.c | dev->name, ring_offset + xfer_count, addr); |
dev | 239 | drivers/net/hp.c | hp_block_output(struct device *dev, int count, |
dev | 242 | drivers/net/hp.c | int nic_base = dev->base_addr; |
dev | 289 | drivers/net/hp.c | dev->name, (start_page << 8) + count, addr); |
dev | 297 | drivers/net/hp.c | hp_init_card(struct device *dev) |
dev | 299 | drivers/net/hp.c | int irq = dev->irq; |
dev | 300 | drivers/net/hp.c | NS8390_init(dev, 0); |
dev | 302 | drivers/net/hp.c | dev->base_addr - NIC_OFFSET + HP_CONFIGURE); |
dev | 41 | drivers/net/lance.c | struct device *init_etherdev(struct device *dev, int sizeof_private, |
dev | 204 | drivers/net/lance.c | static int lance_open(struct device *dev); |
dev | 205 | drivers/net/lance.c | static void lance_init_ring(struct device *dev); |
dev | 206 | drivers/net/lance.c | static int lance_start_xmit(struct sk_buff *skb, struct device *dev); |
dev | 207 | drivers/net/lance.c | static int lance_rx(struct device *dev); |
dev | 209 | drivers/net/lance.c | static int lance_close(struct device *dev); |
dev | 210 | drivers/net/lance.c | static struct enet_statistics *lance_get_stats(struct device *dev); |
dev | 212 | drivers/net/lance.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 236 | drivers/net/lance.c | struct device *dev; |
dev | 256 | drivers/net/lance.c | dev = init_etherdev(0, sizeof(struct lance_private) |
dev | 260 | drivers/net/lance.c | printk("%s: LANCE at %#3x,", dev->name, ioaddr); |
dev | 265 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
dev | 267 | drivers/net/lance.c | dev->base_addr = ioaddr; |
dev | 271 | drivers/net/lance.c | dev->priv = (void *)(((int)dev->priv + 7) & ~7); |
dev | 272 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
dev | 273 | drivers/net/lance.c | lp->rx_buffs = (long)dev->priv + sizeof(struct lance_private); |
dev | 295 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 311 | drivers/net/lance.c | dev->dma = dma_tbl[(reset_val >> 2) & 3]; |
dev | 312 | drivers/net/lance.c | dev->irq = irq_tbl[(reset_val >> 4) & 7]; |
dev | 313 | drivers/net/lance.c | printk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma); |
dev | 316 | drivers/net/lance.c | if (dev->mem_start & 0x07) |
dev | 317 | drivers/net/lance.c | dev->dma = dev->mem_start & 0x07; |
dev | 318 | drivers/net/lance.c | else if (dev->dma == 0) |
dev | 319 | drivers/net/lance.c | dev->dma = LANCE_DMA; |
dev | 323 | drivers/net/lance.c | if (dev->irq < 2) { |
dev | 330 | drivers/net/lance.c | dev->irq = autoirq_report(1); |
dev | 331 | drivers/net/lance.c | if (dev->irq) |
dev | 333 | drivers/net/lance.c | dev->irq, dev->dma); |
dev | 339 | drivers/net/lance.c | printk(" assigned IRQ %d DMA %d.\n", dev->irq, dev->dma); |
dev | 353 | drivers/net/lance.c | dev->open = &lance_open; |
dev | 354 | drivers/net/lance.c | dev->hard_start_xmit = &lance_start_xmit; |
dev | 355 | drivers/net/lance.c | dev->stop = &lance_close; |
dev | 356 | drivers/net/lance.c | dev->get_stats = &lance_get_stats; |
dev | 357 | drivers/net/lance.c | dev->set_multicast_list = &set_multicast_list; |
dev | 364 | drivers/net/lance.c | lance_open(struct device *dev) |
dev | 366 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 367 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 370 | drivers/net/lance.c | if (request_irq(dev->irq, &lance_interrupt)) { |
dev | 374 | drivers/net/lance.c | if (request_dma(dev->dma)) { |
dev | 375 | drivers/net/lance.c | free_irq(dev->irq); |
dev | 378 | drivers/net/lance.c | irq2dev_map[dev->irq] = dev; |
dev | 384 | drivers/net/lance.c | enable_dma(dev->dma); |
dev | 385 | drivers/net/lance.c | set_dma_mode(dev->dma, DMA_MODE_CASCADE); |
dev | 399 | drivers/net/lance.c | dev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring, |
dev | 402 | drivers/net/lance.c | lance_init_ring(dev); |
dev | 415 | drivers/net/lance.c | dev->tbusy = 0; |
dev | 416 | drivers/net/lance.c | dev->interrupt = 0; |
dev | 417 | drivers/net/lance.c | dev->start = 1; |
dev | 426 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
dev | 433 | drivers/net/lance.c | lance_init_ring(struct device *dev) |
dev | 435 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 454 | drivers/net/lance.c | lp->init_block.phys_addr[i] = dev->dev_addr[i]; |
dev | 462 | drivers/net/lance.c | lance_start_xmit(struct sk_buff *skb, struct device *dev) |
dev | 464 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 465 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 469 | drivers/net/lance.c | if (dev->tbusy) { |
dev | 470 | drivers/net/lance.c | int tickssofar = jiffies - dev->trans_start; |
dev | 475 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
dev | 494 | drivers/net/lance.c | lance_init_ring(dev); |
dev | 497 | drivers/net/lance.c | dev->tbusy=0; |
dev | 498 | drivers/net/lance.c | dev->trans_start = jiffies; |
dev | 504 | drivers/net/lance.c | dev_tint(dev); |
dev | 513 | drivers/net/lance.c | printk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name, |
dev | 520 | drivers/net/lance.c | if (set_bit(0, (void*)&dev->tbusy) != 0) { |
dev | 521 | drivers/net/lance.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 527 | drivers/net/lance.c | printk("%s: tx queue lock!.\n", dev->name); |
dev | 554 | drivers/net/lance.c | dev->name, (int)(skb->data)); |
dev | 574 | drivers/net/lance.c | dev->trans_start = jiffies; |
dev | 579 | drivers/net/lance.c | dev->tbusy=0; |
dev | 590 | drivers/net/lance.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 594 | drivers/net/lance.c | if (dev == NULL) { |
dev | 599 | drivers/net/lance.c | ioaddr = dev->base_addr; |
dev | 600 | drivers/net/lance.c | lp = (struct lance_private *)dev->priv; |
dev | 601 | drivers/net/lance.c | if (dev->interrupt) |
dev | 602 | drivers/net/lance.c | printk("%s: Re-entering the interrupt handler.\n", dev->name); |
dev | 604 | drivers/net/lance.c | dev->interrupt = 1; |
dev | 606 | drivers/net/lance.c | outw(0x00, dev->base_addr + LANCE_ADDR); |
dev | 607 | drivers/net/lance.c | csr0 = inw(dev->base_addr + LANCE_DATA); |
dev | 610 | drivers/net/lance.c | outw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA); |
dev | 614 | drivers/net/lance.c | dev->name, csr0, inw(dev->base_addr + LANCE_DATA)); |
dev | 617 | drivers/net/lance.c | lance_rx(dev); |
dev | 669 | drivers/net/lance.c | if (dev->tbusy && dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) { |
dev | 671 | drivers/net/lance.c | dev->tbusy = 0; |
dev | 684 | drivers/net/lance.c | outw(0x0000, dev->base_addr + LANCE_ADDR); |
dev | 685 | drivers/net/lance.c | outw(0x7f40, dev->base_addr + LANCE_DATA); |
dev | 689 | drivers/net/lance.c | dev->name, inw(ioaddr + LANCE_ADDR), |
dev | 690 | drivers/net/lance.c | inw(dev->base_addr + LANCE_DATA)); |
dev | 692 | drivers/net/lance.c | dev->interrupt = 0; |
dev | 697 | drivers/net/lance.c | lance_rx(struct device *dev) |
dev | 699 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 726 | drivers/net/lance.c | printk("%s: Memory squeeze, deferring packet.\n", dev->name); |
dev | 739 | drivers/net/lance.c | skb->dev = dev; |
dev | 758 | drivers/net/lance.c | lance_close(struct device *dev) |
dev | 760 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
dev | 761 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 763 | drivers/net/lance.c | dev->start = 0; |
dev | 764 | drivers/net/lance.c | dev->tbusy = 1; |
dev | 773 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
dev | 779 | drivers/net/lance.c | disable_dma(dev->dma); |
dev | 781 | drivers/net/lance.c | free_irq(dev->irq); |
dev | 782 | drivers/net/lance.c | free_dma(dev->dma); |
dev | 784 | drivers/net/lance.c | irq2dev_map[dev->irq] = 0; |
dev | 790 | drivers/net/lance.c | lance_get_stats(struct device *dev) |
dev | 792 | drivers/net/lance.c | struct lance_private *lp = (struct lance_private *)dev->priv; |
dev | 793 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
dev | 813 | drivers/net/lance.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 815 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
dev | 44 | drivers/net/loopback.c | loopback_xmit(struct sk_buff *skb, struct device *dev) |
dev | 46 | drivers/net/loopback.c | struct enet_statistics *stats = (struct enet_statistics *)dev->priv; |
dev | 49 | drivers/net/loopback.c | if (skb == NULL || dev == NULL) return(0); |
dev | 52 | drivers/net/loopback.c | if (dev->tbusy != 0) { |
dev | 57 | drivers/net/loopback.c | dev->tbusy = 1; |
dev | 60 | drivers/net/loopback.c | done = dev_rint(skb->data, skb->len, 0, dev); |
dev | 64 | drivers/net/loopback.c | done = dev_rint(NULL, 0, 0, dev); |
dev | 68 | drivers/net/loopback.c | dev->tbusy = 0; |
dev | 89 | drivers/net/loopback.c | get_stats(struct device *dev) |
dev | 91 | drivers/net/loopback.c | return (struct enet_statistics *)dev->priv; |
dev | 94 | drivers/net/loopback.c | static int loopback_open(struct device *dev) |
dev | 96 | drivers/net/loopback.c | dev->flags|=IFF_LOOPBACK; |
dev | 102 | drivers/net/loopback.c | loopback_init(struct device *dev) |
dev | 106 | drivers/net/loopback.c | dev->mtu = 2000; /* MTU */ |
dev | 107 | drivers/net/loopback.c | dev->tbusy = 0; |
dev | 108 | drivers/net/loopback.c | dev->hard_start_xmit = loopback_xmit; |
dev | 109 | drivers/net/loopback.c | dev->open = NULL; |
dev | 111 | drivers/net/loopback.c | dev->hard_header = eth_header; |
dev | 112 | drivers/net/loopback.c | dev->hard_header_len = ETH_HLEN; /* 14 */ |
dev | 113 | drivers/net/loopback.c | dev->addr_len = ETH_ALEN; /* 6 */ |
dev | 114 | drivers/net/loopback.c | dev->type = ARPHRD_ETHER; /* 0x0001 */ |
dev | 115 | drivers/net/loopback.c | dev->type_trans = eth_type_trans; |
dev | 116 | drivers/net/loopback.c | dev->rebuild_header = eth_rebuild_header; |
dev | 117 | drivers/net/loopback.c | dev->open = loopback_open; |
dev | 119 | drivers/net/loopback.c | dev->hard_header_length = 0; |
dev | 120 | drivers/net/loopback.c | dev->addr_len = 0; |
dev | 121 | drivers/net/loopback.c | dev->type = 0; /* loopback_type (0) */ |
dev | 122 | drivers/net/loopback.c | dev->hard_header = NULL; |
dev | 123 | drivers/net/loopback.c | dev->type_trans = NULL; |
dev | 124 | drivers/net/loopback.c | dev->rebuild_header = NULL; |
dev | 128 | drivers/net/loopback.c | dev->flags = IFF_LOOPBACK; |
dev | 129 | drivers/net/loopback.c | dev->family = AF_INET; |
dev | 131 | drivers/net/loopback.c | dev->pa_addr = in_aton("127.0.0.1"); |
dev | 132 | drivers/net/loopback.c | dev->pa_brdaddr = in_aton("127.255.255.255"); |
dev | 133 | drivers/net/loopback.c | dev->pa_mask = in_aton("255.0.0.0"); |
dev | 134 | drivers/net/loopback.c | dev->pa_alen = sizeof(unsigned long); |
dev | 136 | drivers/net/loopback.c | dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL); |
dev | 137 | drivers/net/loopback.c | memset(dev->priv, 0, sizeof(struct enet_statistics)); |
dev | 138 | drivers/net/loopback.c | dev->get_stats = get_stats; |
dev | 142 | drivers/net/loopback.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 32 | drivers/net/ne.c | #define NE_BASE (dev->base_addr) |
dev | 42 | drivers/net/ne.c | int ne_probe(struct device *dev); |
dev | 43 | drivers/net/ne.c | static int neprobe1(int ioaddr, struct device *dev, int verbose); |
dev | 45 | drivers/net/ne.c | static void ne_reset_8390(struct device *dev); |
dev | 46 | drivers/net/ne.c | static int ne_block_input(struct device *dev, int count, |
dev | 48 | drivers/net/ne.c | static void ne_block_output(struct device *dev, const int count, |
dev | 73 | drivers/net/ne.c | int ne_probe(struct device *dev) |
dev | 76 | drivers/net/ne.c | short ioaddr = dev->base_addr; |
dev | 81 | drivers/net/ne.c | return ! neprobe1(ioaddr, dev, 1); |
dev | 88 | drivers/net/ne.c | if (inb_p(*port) != 0xff && neprobe1(*port, dev, 0)) { |
dev | 89 | drivers/net/ne.c | dev->base_addr = *port; |
dev | 93 | drivers/net/ne.c | dev->base_addr = ioaddr; |
dev | 97 | drivers/net/ne.c | static int neprobe1(int ioaddr, struct device *dev, int verbose) |
dev | 173 | drivers/net/ne.c | dev->dev_addr[i] = SA_prom[i]; |
dev | 203 | drivers/net/ne.c | if (dev->irq < 2) { |
dev | 210 | drivers/net/ne.c | dev->irq = autoirq_report(0); |
dev | 212 | drivers/net/ne.c | printk(" autoirq is %d", dev->irq); |
dev | 213 | drivers/net/ne.c | } else if (dev->irq == 2) |
dev | 216 | drivers/net/ne.c | dev->irq = 9; |
dev | 221 | drivers/net/ne.c | int irqval = irqaction (dev->irq, &ei_sigaction); |
dev | 223 | drivers/net/ne.c | printk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval); |
dev | 228 | drivers/net/ne.c | dev->base_addr = ioaddr; |
dev | 234 | drivers/net/ne.c | ethdev_init(dev); |
dev | 236 | drivers/net/ne.c | dev->name, name, ioaddr, dev->irq); |
dev | 255 | drivers/net/ne.c | NS8390_init(dev, 0); |
dev | 256 | drivers/net/ne.c | return dev->base_addr; |
dev | 262 | drivers/net/ne.c | ne_reset_8390(struct device *dev) |
dev | 274 | drivers/net/ne.c | printk("%s: ne_reset_8390() did not complete.\n", dev->name); |
dev | 285 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 288 | drivers/net/ne.c | int nic_base = dev->base_addr; |
dev | 294 | drivers/net/ne.c | dev->name, ei_status.dmaing, ei_status.irqlock); |
dev | 330 | drivers/net/ne.c | dev->name, ring_offset + xfer_count, addr); |
dev | 337 | drivers/net/ne.c | ne_block_output(struct device *dev, int count, |
dev | 352 | drivers/net/ne.c | dev->name, ei_status.dmaing, ei_status.irqlock); |
dev | 405 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
dev | 85 | drivers/net/net_init.c | init_etherdev(struct device *dev, int sizeof_private, unsigned long *mem_startp) |
dev | 90 | drivers/net/net_init.c | if (dev == NULL) { |
dev | 94 | drivers/net/net_init.c | dev = (struct device *)*mem_startp; |
dev | 97 | drivers/net/net_init.c | dev = (struct device *)kmalloc(alloc_size, GFP_KERNEL); |
dev | 98 | drivers/net/net_init.c | memset(dev, 0, sizeof(alloc_size)); |
dev | 99 | drivers/net/net_init.c | dev->name = (char *)(dev + 1); |
dev | 101 | drivers/net/net_init.c | dev->priv = dev->name + sizeof("eth%d "); |
dev | 105 | drivers/net/net_init.c | if (dev->name && |
dev | 106 | drivers/net/net_init.c | ((dev->name[0] == '\0') || (dev->name[0] == ' '))) { |
dev | 109 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
dev | 110 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 115 | drivers/net/net_init.c | ether_setup(dev); /* should this be called here? */ |
dev | 122 | drivers/net/net_init.c | (*old_devp)->next = dev; |
dev | 123 | drivers/net/net_init.c | dev->next = 0; |
dev | 125 | drivers/net/net_init.c | return dev; |
dev | 128 | drivers/net/net_init.c | void ether_setup(struct device *dev) |
dev | 134 | drivers/net/net_init.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 137 | drivers/net/net_init.c | if (dev->name && (strncmp(dev->name, "eth", 3) == 0)) { |
dev | 138 | drivers/net/net_init.c | i = simple_strtoul(dev->name + 3, NULL, 0); |
dev | 140 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 142 | drivers/net/net_init.c | else if (dev != ethdev_index[i]) { |
dev | 145 | drivers/net/net_init.c | dev->name); |
dev | 149 | drivers/net/net_init.c | dev->hard_header = eth_header; |
dev | 150 | drivers/net/net_init.c | dev->rebuild_header = eth_rebuild_header; |
dev | 151 | drivers/net/net_init.c | dev->type_trans = eth_type_trans; |
dev | 153 | drivers/net/net_init.c | dev->type = ARPHRD_ETHER; |
dev | 154 | drivers/net/net_init.c | dev->hard_header_len = ETH_HLEN; |
dev | 155 | drivers/net/net_init.c | dev->mtu = 1500; /* eth_mtu */ |
dev | 156 | drivers/net/net_init.c | dev->addr_len = ETH_ALEN; |
dev | 158 | drivers/net/net_init.c | dev->broadcast[i]=0xff; |
dev | 162 | drivers/net/net_init.c | dev->flags = IFF_BROADCAST; |
dev | 163 | drivers/net/net_init.c | dev->family = AF_INET; |
dev | 164 | drivers/net/net_init.c | dev->pa_addr = 0; |
dev | 165 | drivers/net/net_init.c | dev->pa_brdaddr = 0; |
dev | 166 | drivers/net/net_init.c | dev->pa_mask = 0; |
dev | 167 | drivers/net/net_init.c | dev->pa_alen = sizeof(unsigned long); |
dev | 170 | drivers/net/net_init.c | int ether_config(struct device *dev, struct ifmap *map) |
dev | 173 | drivers/net/net_init.c | dev->mem_start = map->mem_start; |
dev | 175 | drivers/net/net_init.c | dev->mem_end = map->mem_end; |
dev | 177 | drivers/net/net_init.c | dev->base_addr = map->base_addr; |
dev | 179 | drivers/net/net_init.c | dev->irq = map->irq; |
dev | 181 | drivers/net/net_init.c | dev->dma = map->dma; |
dev | 183 | drivers/net/net_init.c | dev->if_port = map->port; |
dev | 187 | drivers/net/net_init.c | int register_netdev(struct device *dev) |
dev | 196 | drivers/net/net_init.c | if (dev && dev->init) { |
dev | 197 | drivers/net/net_init.c | if (dev->init(dev) != 0) { |
dev | 202 | drivers/net/net_init.c | if (dev->name && |
dev | 203 | drivers/net/net_init.c | ((dev->name[0] == '\0') || (dev->name[0] == ' '))) { |
dev | 206 | drivers/net/net_init.c | sprintf(dev->name, "eth%d", i); |
dev | 207 | drivers/net/net_init.c | printk("device '%s' loaded\n", dev->name); |
dev | 208 | drivers/net/net_init.c | ethdev_index[i] = dev; |
dev | 217 | drivers/net/net_init.c | d->next = dev; |
dev | 220 | drivers/net/net_init.c | dev_base = dev; |
dev | 221 | drivers/net/net_init.c | dev->next = NULL; |
dev | 227 | drivers/net/net_init.c | void unregister_netdev(struct device *dev) |
dev | 238 | drivers/net/net_init.c | if (dev == NULL) { |
dev | 244 | drivers/net/net_init.c | if (dev->start) |
dev | 245 | drivers/net/net_init.c | printk("'%s' busy\n", dev->name); |
dev | 247 | drivers/net/net_init.c | if (dev_base == dev) |
dev | 248 | drivers/net/net_init.c | dev_base = dev->next; |
dev | 250 | drivers/net/net_init.c | while (d && (d->next != dev)) |
dev | 253 | drivers/net/net_init.c | if (d && (d->next == dev)) { |
dev | 254 | drivers/net/net_init.c | d->next = dev->next; |
dev | 255 | drivers/net/net_init.c | printk("'%s' unlinked\n", dev->name); |
dev | 258 | drivers/net/net_init.c | printk("'%s' not found\n", dev->name); |
dev | 264 | drivers/net/net_init.c | if (ethdev_index[i] == dev) { |
dev | 155 | drivers/net/plip.c | extern int plip_probe(int ioaddr, struct device *dev); |
dev | 156 | drivers/net/plip.c | static int plip_open(struct device *dev); |
dev | 157 | drivers/net/plip.c | static int plip_close(struct device *dev); |
dev | 158 | drivers/net/plip.c | static int plip_tx_packet(struct sk_buff *skb, struct device *dev); |
dev | 159 | drivers/net/plip.c | static int plip_header (unsigned char *buff, struct device *dev, |
dev | 169 | drivers/net/plip.c | static void plip_device_clear(struct device *dev); |
dev | 170 | drivers/net/plip.c | static void plip_receiver_error(struct device *dev); |
dev | 171 | drivers/net/plip.c | static void plip_set_physicaladdr(struct device *dev, unsigned long ipaddr); |
dev | 175 | drivers/net/plip.c | static int plip_receive_packet(struct device *dev); |
dev | 176 | drivers/net/plip.c | static int plip_send_packet(struct device *dev, unsigned char *buf, int length); |
dev | 177 | drivers/net/plip.c | static int plip_send_start(struct device *dev, struct ethhdr *eth); |
dev | 179 | drivers/net/plip.c | static struct enet_statistics *plip_get_stats(struct device *dev); |
dev | 182 | drivers/net/plip.c | plip_init(struct device *dev) |
dev | 184 | drivers/net/plip.c | int port_base = dev->base_addr; |
dev | 203 | drivers/net/plip.c | dev->priv = kmalloc(sizeof(struct netstats), GFP_KERNEL); |
dev | 204 | drivers/net/plip.c | memset(dev->priv, 0, sizeof(struct netstats)); |
dev | 207 | drivers/net/plip.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 209 | drivers/net/plip.c | dev->hard_header = &plip_header; |
dev | 210 | drivers/net/plip.c | dev->rebuild_header = eth_rebuild_header; |
dev | 211 | drivers/net/plip.c | dev->type_trans = eth_type_trans; |
dev | 213 | drivers/net/plip.c | dev->open = &plip_open; |
dev | 214 | drivers/net/plip.c | dev->stop = &plip_close; |
dev | 215 | drivers/net/plip.c | dev->hard_start_xmit = &plip_tx_packet; |
dev | 216 | drivers/net/plip.c | dev->get_stats = &plip_get_stats; |
dev | 219 | drivers/net/plip.c | dev->type = ARPHRD_ETHER; |
dev | 220 | drivers/net/plip.c | dev->hard_header_len = ETH_HLEN; |
dev | 221 | drivers/net/plip.c | dev->mtu = PLIP_MTU; /* PLIP may later negotiate max pkt size */ |
dev | 222 | drivers/net/plip.c | dev->addr_len = ETH_ALEN; |
dev | 223 | drivers/net/plip.c | for (i = 0; i < dev->addr_len; i++) { |
dev | 224 | drivers/net/plip.c | dev->broadcast[i]=0xff; |
dev | 225 | drivers/net/plip.c | dev->dev_addr[i] = 0; |
dev | 228 | drivers/net/plip.c | dev->name, dev->base_addr, dev->irq); |
dev | 243 | drivers/net/plip.c | static int plip_open(struct device *dev) |
dev | 245 | drivers/net/plip.c | if (dev->irq == 0) |
dev | 246 | drivers/net/plip.c | dev->irq = 7; |
dev | 248 | drivers/net/plip.c | if (request_irq(dev->irq , &plip_interrupt) != 0) { |
dev | 250 | drivers/net/plip.c | PRINTK(("%s: couldn't get IRQ %d.\n", dev->name, dev->irq)); |
dev | 254 | drivers/net/plip.c | irq2dev_map[dev->irq] = dev; |
dev | 256 | drivers/net/plip.c | plip_device_clear(dev); |
dev | 257 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 258 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 259 | drivers/net/plip.c | dev->start = 1; |
dev | 268 | drivers/net/plip.c | plip_close(struct device *dev) |
dev | 270 | drivers/net/plip.c | dev->tbusy = 1; |
dev | 271 | drivers/net/plip.c | dev->start = 0; |
dev | 273 | drivers/net/plip.c | free_irq(dev->irq); |
dev | 274 | drivers/net/plip.c | irq2dev_map[dev->irq] = NULL; |
dev | 276 | drivers/net/plip.c | outb(0x00, dev->base_addr); /* Release the interrupt. */ |
dev | 284 | drivers/net/plip.c | plip_tx_packet(struct sk_buff *skb, struct device *dev) |
dev | 288 | drivers/net/plip.c | if (dev->tbusy || dev->interrupt) { /* Do timeouts, to avoid hangs. */ |
dev | 289 | drivers/net/plip.c | int tickssofar = jiffies - dev->trans_start; |
dev | 292 | drivers/net/plip.c | printk("%s: transmit timed out\n", dev->name); |
dev | 294 | drivers/net/plip.c | plip_device_clear(dev); |
dev | 302 | drivers/net/plip.c | dev_tint(dev); |
dev | 306 | drivers/net/plip.c | dev->trans_start = jiffies; |
dev | 307 | drivers/net/plip.c | ret_val = plip_send_packet(dev, skb->data, skb->len); |
dev | 310 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 316 | drivers/net/plip.c | plip_header (unsigned char *buff, struct device *dev, |
dev | 320 | drivers/net/plip.c | if (dev->dev_addr[0] == 0) { |
dev | 322 | drivers/net/plip.c | plip_set_physicaladdr(dev, dev->pa_addr); |
dev | 324 | drivers/net/plip.c | return eth_header(buff, dev, type, daddr, saddr, len, skb); |
dev | 328 | drivers/net/plip.c | plip_device_clear(struct device *dev) |
dev | 330 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 331 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 332 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_DATA); |
dev | 333 | drivers/net/plip.c | outb(0x10, dev->base_addr + PAR_CONTROL); /* Enable the rx interrupt. */ |
dev | 337 | drivers/net/plip.c | plip_receiver_error(struct device *dev) |
dev | 339 | drivers/net/plip.c | dev->interrupt = 0; |
dev | 340 | drivers/net/plip.c | dev->tbusy = 0; |
dev | 341 | drivers/net/plip.c | outb(0x02, dev->base_addr + PAR_DATA); |
dev | 342 | drivers/net/plip.c | outb(0x10, dev->base_addr + PAR_CONTROL); /* Enable the rx interrupt. */ |
dev | 346 | drivers/net/plip.c | get_byte(struct device *dev) |
dev | 352 | drivers/net/plip.c | val = inb(dev->base_addr + PAR_STATUS); |
dev | 356 | drivers/net/plip.c | val = inb(dev->base_addr + PAR_STATUS); |
dev | 363 | drivers/net/plip.c | val = inb(dev->base_addr + PAR_STATUS); |
dev | 365 | drivers/net/plip.c | outb(0x10, dev->base_addr + PAR_DATA); |
dev | 369 | drivers/net/plip.c | val = inb(dev->base_addr + PAR_STATUS); |
dev | 376 | drivers/net/plip.c | val = inb(dev->base_addr + PAR_STATUS); |
dev | 379 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_DATA); |
dev | 394 | drivers/net/plip.c | struct device *dev = irq2dev_map[irq]; |
dev | 397 | drivers/net/plip.c | if (dev == NULL) { |
dev | 401 | drivers/net/plip.c | localstats = (struct netstats*) dev->priv; |
dev | 402 | drivers/net/plip.c | if (dev->tbusy || dev->interrupt) return; |
dev | 403 | drivers/net/plip.c | dev->interrupt = 1; |
dev | 404 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_CONTROL); /* Disable the rx interrupt. */ |
dev | 406 | drivers/net/plip.c | PRINTK2(("%s: interrupt. ", dev->name)); |
dev | 411 | drivers/net/plip.c | while ((inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0xc0) { |
dev | 414 | drivers/net/plip.c | dev->name, inb(dev->base_addr + PAR_STATUS))); |
dev | 415 | drivers/net/plip.c | plip_device_clear(dev); |
dev | 420 | drivers/net/plip.c | if (plip_receive_packet(dev)) { |
dev | 423 | drivers/net/plip.c | plip_receiver_error(dev); |
dev | 425 | drivers/net/plip.c | plip_device_clear(dev); |
dev | 430 | drivers/net/plip.c | plip_receive_packet(struct device *dev) |
dev | 438 | drivers/net/plip.c | localstats = (struct netstats*) dev->priv; |
dev | 440 | drivers/net/plip.c | outb(1, dev->base_addr + PAR_DATA); /* Ack: 'Ready' */ |
dev | 445 | drivers/net/plip.c | length = get_byte(dev); |
dev | 446 | drivers/net/plip.c | length |= get_byte(dev) << 8; |
dev | 451 | drivers/net/plip.c | *eth_p = get_byte(dev); |
dev | 455 | drivers/net/plip.c | if (length > dev->mtu || length < 8) { |
dev | 456 | drivers/net/plip.c | PRINTK2(("%s: bogus packet size %d.\n", dev->name, length)); |
dev | 467 | drivers/net/plip.c | dev->name,length)); |
dev | 483 | drivers/net/plip.c | unsigned char new_byte = get_byte(dev); |
dev | 488 | drivers/net/plip.c | if (checksum != get_byte(dev)) { |
dev | 492 | drivers/net/plip.c | } else if(dev_rint((unsigned char *)skb, length, IN_SKBUFF, dev)) { |
dev | 493 | drivers/net/plip.c | printk("%s: rcv buff full.\n", dev->name); |
dev | 503 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_DATA); |
dev | 505 | drivers/net/plip.c | while ( (inb(dev->base_addr + PAR_STATUS) & 0xf8) != 0x80 ) { |
dev | 518 | drivers/net/plip.c | static int send_byte(struct device *dev, unsigned char val) |
dev | 523 | drivers/net/plip.c | outb((val & 0xf), dev->base_addr); /* this makes data bits more stable */ |
dev | 525 | drivers/net/plip.c | outb(0x10 | (val & 0xf), dev->base_addr); |
dev | 527 | drivers/net/plip.c | while( inb(dev->base_addr+PAR_STATUS) & 0x80 ) |
dev | 532 | drivers/net/plip.c | outb(0x10 | (val >> 4), dev->base_addr); |
dev | 533 | drivers/net/plip.c | outb(val >> 4, dev->base_addr); |
dev | 535 | drivers/net/plip.c | while( (inb(dev->base_addr+PAR_STATUS) & 0x80) == 0 ) |
dev | 557 | drivers/net/plip.c | plip_send_start(struct device *dev, struct ethhdr *eth) |
dev | 562 | drivers/net/plip.c | struct netstats *localstats = (struct netstats*) dev->priv; |
dev | 567 | drivers/net/plip.c | while ( ((status = inb(dev->base_addr+PAR_STATUS)) & 0x08) == 0 ) { |
dev | 568 | drivers/net/plip.c | dev->tbusy = 1; |
dev | 569 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_CONTROL); /* Disable my rx intr. */ |
dev | 570 | drivers/net/plip.c | outb(0x08, dev->base_addr + PAR_DATA); /* Trigger remote rx intr. */ |
dev | 580 | drivers/net/plip.c | if (plip_receive_packet(dev)) { |
dev | 583 | drivers/net/plip.c | outb(0x02, dev->base_addr + PAR_DATA); |
dev | 585 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_DATA); |
dev | 593 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_DATA); |
dev | 599 | drivers/net/plip.c | plip_device_clear(dev); |
dev | 602 | drivers/net/plip.c | dev->name)); |
dev | 611 | drivers/net/plip.c | plip_send_packet(struct device *dev, unsigned char *buf, int length) |
dev | 617 | drivers/net/plip.c | dev->name, length, buf[0], buf[1], buf[2], buf[3], buf[4])); |
dev | 618 | drivers/net/plip.c | if (length > dev->mtu) { |
dev | 619 | drivers/net/plip.c | printk("%s: packet too big, %d.\n", dev->name, length); |
dev | 622 | drivers/net/plip.c | localstats = (struct netstats*) dev->priv; |
dev | 628 | drivers/net/plip.c | while ( (i = (inb(dev->base_addr+PAR_STATUS) & 0xe8)) != 0x80 ) { |
dev | 647 | drivers/net/plip.c | if (plip_send_start(dev, (struct ethhdr *)buf) < 0) |
dev | 656 | drivers/net/plip.c | send_byte(dev, length); |
dev | 657 | drivers/net/plip.c | send_byte(dev, length >> 8); |
dev | 665 | drivers/net/plip.c | send_byte(dev, *buf); |
dev | 671 | drivers/net/plip.c | if (send_byte(dev, buf[i]) < 0) { |
dev | 676 | drivers/net/plip.c | send_byte(dev, checksum & 0xff); |
dev | 682 | drivers/net/plip.c | outb(0x00, dev->base_addr + PAR_DATA); |
dev | 685 | drivers/net/plip.c | while ((inb(dev->base_addr + PAR_STATUS) & 0xe8) != 0x80) { |
dev | 693 | drivers/net/plip.c | if (inb(dev->base_addr + PAR_STATUS) & 0x10) { |
dev | 698 | drivers/net/plip.c | plip_device_clear(dev); |
dev | 708 | drivers/net/plip.c | plip_set_physicaladdr(struct device *dev, unsigned long ipaddr) |
dev | 715 | drivers/net/plip.c | unsigned char *addr = dev->dev_addr; |
dev | 719 | drivers/net/plip.c | PRINTK2(("%s: set physical address to %08x\n", dev->name, ipaddr)); |
dev | 762 | drivers/net/plip.c | plip_get_stats(struct device *dev) |
dev | 764 | drivers/net/plip.c | struct netstats *localstats = (struct netstats*) dev->priv; |
dev | 97 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr); |
dev | 116 | drivers/net/ppp.c | static int ppp_header(unsigned char *buff, struct device *dev, |
dev | 119 | drivers/net/ppp.c | static int ppp_rebuild_header(void *buff, struct device *dev); |
dev | 121 | drivers/net/ppp.c | struct device *dev); |
dev | 206 | drivers/net/ppp.c | ppp_init(struct device *dev) |
dev | 211 | drivers/net/ppp.c | ppp = &ppp_ctrl[dev->base_addr]; |
dev | 257 | drivers/net/ppp.c | ppp->line = dev->base_addr; |
dev | 259 | drivers/net/ppp.c | ppp->dev = dev; |
dev | 265 | drivers/net/ppp.c | dev->mtu = PPP_MTU; |
dev | 266 | drivers/net/ppp.c | dev->hard_start_xmit = ppp_xmit; |
dev | 267 | drivers/net/ppp.c | dev->open = ppp_dev_open; |
dev | 268 | drivers/net/ppp.c | dev->do_ioctl = ppp_dev_ioctl; |
dev | 269 | drivers/net/ppp.c | dev->stop = ppp_dev_close; |
dev | 270 | drivers/net/ppp.c | dev->get_stats = ppp_get_stats; |
dev | 271 | drivers/net/ppp.c | dev->hard_header = ppp_header; |
dev | 272 | drivers/net/ppp.c | dev->type_trans = ppp_type_trans; |
dev | 273 | drivers/net/ppp.c | dev->rebuild_header = ppp_rebuild_header; |
dev | 274 | drivers/net/ppp.c | dev->hard_header_len = 0; |
dev | 275 | drivers/net/ppp.c | dev->addr_len = 0; |
dev | 276 | drivers/net/ppp.c | dev->type = ARPHRD_PPP; |
dev | 279 | drivers/net/ppp.c | dev->add_arp = ppp_add_arp; |
dev | 280 | drivers/net/ppp.c | dev->queue_xmit = dev_queue_xmit; |
dev | 284 | drivers/net/ppp.c | skb_queue_head_init(&dev->buffs[i]); /* = NULL if NET02D */ |
dev | 287 | drivers/net/ppp.c | dev->flags = IFF_POINTOPOINT; |
dev | 288 | drivers/net/ppp.c | dev->family = AF_INET; |
dev | 289 | drivers/net/ppp.c | dev->pa_addr = 0; |
dev | 290 | drivers/net/ppp.c | dev->pa_brdaddr = 0; |
dev | 291 | drivers/net/ppp.c | dev->pa_mask = 0; |
dev | 292 | drivers/net/ppp.c | dev->pa_alen = sizeof(unsigned long); |
dev | 361 | drivers/net/ppp.c | struct device *dev; |
dev | 368 | drivers/net/ppp.c | dev = ppp->dev; |
dev | 380 | drivers/net/ppp.c | dev->name, new_mtu, new_mru)); |
dev | 417 | drivers/net/ppp.c | dev->mem_start = (unsigned long) new_xbuff; |
dev | 418 | drivers/net/ppp.c | dev->mem_end = (unsigned long) (dev->mem_start + mtu); |
dev | 420 | drivers/net/ppp.c | dev->rmem_start = (unsigned long) new_rbuff; |
dev | 422 | drivers/net/ppp.c | dev->rmem_end = (unsigned long) (dev->rmem_start + mru); |
dev | 436 | drivers/net/ppp.c | dev->mtu = new_mtu; |
dev | 463 | drivers/net/ppp.c | if (ppp->dev) { |
dev | 464 | drivers/net/ppp.c | ppp->dev->flags &= ~IFF_UP; /* down the device */ |
dev | 465 | drivers/net/ppp.c | ppp->dev->flags |= IFF_POINTOPOINT; |
dev | 498 | drivers/net/ppp.c | PRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name)); |
dev | 510 | drivers/net/ppp.c | ppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown")); |
dev | 543 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru); |
dev | 561 | drivers/net/ppp.c | PRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name)); |
dev | 569 | drivers/net/ppp.c | ppp_dev_open(struct device *dev) |
dev | 571 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 574 | drivers/net/ppp.c | dev->flags |= IFF_POINTOPOINT; |
dev | 578 | drivers/net/ppp.c | dev->name)); |
dev | 583 | drivers/net/ppp.c | dev->name)); |
dev | 590 | drivers/net/ppp.c | ppp_dev_close(struct device *dev) |
dev | 592 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 596 | drivers/net/ppp.c | dev->name)); |
dev | 601 | drivers/net/ppp.c | dev->name)); |
dev | 606 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr) |
dev | 608 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 650 | drivers/net/ppp.c | if (((struct ppp *) ppp)->dev->flags & IFF_UP) |
dev | 651 | drivers/net/ppp.c | dev_tint (((struct ppp *) ppp)->dev); |
dev | 1021 | drivers/net/ppp.c | if ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) { |
dev | 1058 | drivers/net/ppp.c | PRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name, |
dev | 1112 | drivers/net/ppp.c | PRINTK ((KERN_INFO "%s <-- src %lx dst %lx len %d\n", ppp->dev->name, |
dev | 1117 | drivers/net/ppp.c | while ((dev_rint(c, count, 0, ppp->dev) & ~1) != 0) |
dev | 1312 | drivers/net/ppp.c | if (ppp->mtu != ppp->dev->mtu) /* Someone has been ifconfigging */ |
dev | 1313 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru); |
dev | 1400 | drivers/net/ppp.c | ppp_changedmtu (ppp, ppp->dev->mtu, temp_i); |
dev | 1460 | drivers/net/ppp.c | put_fs_long (ppp->dev->base_addr, l); |
dev | 1461 | drivers/net/ppp.c | PRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %d", ppp->dev->base_addr)); |
dev | 1662 | drivers/net/ppp.c | ppp_xmit(struct sk_buff *skb, struct device *dev) |
dev | 1677 | drivers/net/ppp.c | ppp = &ppp_ctrl[dev->base_addr]; |
dev | 1683 | drivers/net/ppp.c | PRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, |
dev | 1689 | drivers/net/ppp.c | PRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name)); |
dev | 1693 | drivers/net/ppp.c | if (!(dev->flags & IFF_UP)) { |
dev | 1696 | drivers/net/ppp.c | dev->name)); |
dev | 1748 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
dev | 1799 | drivers/net/ppp.c | ppp_type_trans (struct sk_buff *skb, struct device *dev) |
dev | 1806 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 1813 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev) |
dev | 1819 | drivers/net/ppp.c | ppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev) |
dev | 1826 | drivers/net/ppp.c | ppp_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 1833 | drivers/net/ppp.c | ppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 1841 | drivers/net/ppp.c | ppp_get_stats (struct device *dev) |
dev | 1843 | drivers/net/ppp.c | struct ppp *ppp = &ppp_ctrl[dev->base_addr]; |
dev | 1910 | drivers/net/ppp.c | if (ppp->dev->flags & IFF_UP) |
dev | 1911 | drivers/net/ppp.c | ppp->dev->tbusy = 1; |
dev | 1923 | drivers/net/ppp.c | if (ppp->dev->flags & IFF_UP) |
dev | 1924 | drivers/net/ppp.c | ppp->dev->tbusy = 0; |
dev | 99 | drivers/net/skeleton.c | extern int netcard_probe(struct device *dev); |
dev | 101 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, short ioaddr); |
dev | 102 | drivers/net/skeleton.c | static int net_open(struct device *dev); |
dev | 103 | drivers/net/skeleton.c | static int net_send_packet(struct sk_buff *skb, struct device *dev); |
dev | 105 | drivers/net/skeleton.c | static void net_rx(struct device *dev); |
dev | 106 | drivers/net/skeleton.c | static int net_close(struct device *dev); |
dev | 107 | drivers/net/skeleton.c | static struct enet_statistics *net_get_stats(struct device *dev); |
dev | 108 | drivers/net/skeleton.c | static void set_multicast_list(struct device *dev, int num_addrs, void *addrs); |
dev | 111 | drivers/net/skeleton.c | #define tx_done(dev) 1 |
dev | 113 | drivers/net/skeleton.c | extern void chipset_init(struct device *dev, int startp); |
dev | 123 | drivers/net/skeleton.c | netcard_probe(struct device *dev) |
dev | 126 | drivers/net/skeleton.c | int base_addr = dev->base_addr; |
dev | 129 | drivers/net/skeleton.c | return netcard_probe1(dev, base_addr); |
dev | 139 | drivers/net/skeleton.c | dev->base_addr = ioaddr; |
dev | 140 | drivers/net/skeleton.c | if (netcard_probe1(dev, ioaddr) == 0) |
dev | 144 | drivers/net/skeleton.c | dev->base_addr = base_addr; |
dev | 148 | drivers/net/skeleton.c | int netcard_probe1(struct device *dev, short ioaddr) |
dev | 163 | drivers/net/skeleton.c | printk("%s: %s found at %#3x, IRQ %d.\n", dev->name, |
dev | 164 | drivers/net/skeleton.c | "network card", dev->base_addr, dev->irq); |
dev | 171 | drivers/net/skeleton.c | if (dev->irq == -1) |
dev | 173 | drivers/net/skeleton.c | else if (dev->irq < 2) { /* "Auto-IRQ" */ |
dev | 177 | drivers/net/skeleton.c | dev->irq = autoirq_report(0); |
dev | 179 | drivers/net/skeleton.c | printk(" autoirq is %d", dev->irq); |
dev | 180 | drivers/net/skeleton.c | } else if (dev->irq == 2) |
dev | 183 | drivers/net/skeleton.c | dev->irq = 9; |
dev | 185 | drivers/net/skeleton.c | { int irqval = request_irq(dev->irq, &net_interrupt); |
dev | 187 | drivers/net/skeleton.c | printk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name, |
dev | 188 | drivers/net/skeleton.c | dev->irq, irqval); |
dev | 201 | drivers/net/skeleton.c | dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); |
dev | 202 | drivers/net/skeleton.c | memset(dev->priv, 0, sizeof(struct net_local)); |
dev | 204 | drivers/net/skeleton.c | dev->open = net_open; |
dev | 205 | drivers/net/skeleton.c | dev->stop = net_close; |
dev | 206 | drivers/net/skeleton.c | dev->hard_start_xmit = net_send_packet; |
dev | 207 | drivers/net/skeleton.c | dev->get_stats = net_get_stats; |
dev | 208 | drivers/net/skeleton.c | dev->set_multicast_list = &set_multicast_list; |
dev | 212 | drivers/net/skeleton.c | ether_setup(dev); |
dev | 226 | drivers/net/skeleton.c | net_open(struct device *dev) |
dev | 228 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 229 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 233 | drivers/net/skeleton.c | if (request_irq(dev->irq, &net_interrupt)) { |
dev | 239 | drivers/net/skeleton.c | if (request_dma(dev->dma)) { |
dev | 240 | drivers/net/skeleton.c | free_irq(dev->irq); |
dev | 243 | drivers/net/skeleton.c | irq2dev_map[dev->irq] = dev; |
dev | 250 | drivers/net/skeleton.c | dev->tbusy = 0; |
dev | 251 | drivers/net/skeleton.c | dev->interrupt = 0; |
dev | 252 | drivers/net/skeleton.c | dev->start = 1; |
dev | 257 | drivers/net/skeleton.c | net_send_packet(struct sk_buff *skb, struct device *dev) |
dev | 259 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 260 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 262 | drivers/net/skeleton.c | if (dev->tbusy) { |
dev | 265 | drivers/net/skeleton.c | int tickssofar = jiffies - dev->trans_start; |
dev | 268 | drivers/net/skeleton.c | printk("%s: transmit timed out, %s?\n", dev->name, |
dev | 269 | drivers/net/skeleton.c | tx_done(dev) ? "IRQ conflict" : "network cable problem"); |
dev | 271 | drivers/net/skeleton.c | chipset_init(dev, 1); |
dev | 272 | drivers/net/skeleton.c | dev->tbusy=0; |
dev | 273 | drivers/net/skeleton.c | dev->trans_start = jiffies; |
dev | 280 | drivers/net/skeleton.c | dev_tint(dev); |
dev | 286 | drivers/net/skeleton.c | if (set_bit(0, (void*)&dev->tbusy) != 0) |
dev | 287 | drivers/net/skeleton.c | printk("%s: Transmitter access conflict.\n", dev->name); |
dev | 293 | drivers/net/skeleton.c | dev->trans_start = jiffies; |
dev | 311 | drivers/net/skeleton.c | struct device *dev = (struct device *)(irq2dev_map[irq]); |
dev | 315 | drivers/net/skeleton.c | if (dev == NULL) { |
dev | 319 | drivers/net/skeleton.c | dev->interrupt = 1; |
dev | 321 | drivers/net/skeleton.c | ioaddr = dev->base_addr; |
dev | 322 | drivers/net/skeleton.c | lp = (struct net_local *)dev->priv; |
dev | 328 | drivers/net/skeleton.c | net_rx(dev); |
dev | 332 | drivers/net/skeleton.c | dev->tbusy = 0; |
dev | 346 | drivers/net/skeleton.c | net_rx(struct device *dev) |
dev | 348 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 349 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 371 | drivers/net/skeleton.c | printk("%s: Memory squeeze, dropping packet.\n", dev->name); |
dev | 376 | drivers/net/skeleton.c | skb->dev = dev; |
dev | 379 | drivers/net/skeleton.c | memcpy(skb->data, (void*)dev->rmem_start, |
dev | 397 | drivers/net/skeleton.c | net_close(struct device *dev) |
dev | 399 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 400 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
dev | 404 | drivers/net/skeleton.c | dev->tbusy = 1; |
dev | 405 | drivers/net/skeleton.c | dev->start = 0; |
dev | 409 | drivers/net/skeleton.c | disable_dma(dev->dma); |
dev | 414 | drivers/net/skeleton.c | free_irq(dev->irq); |
dev | 415 | drivers/net/skeleton.c | free_dma(dev->dma); |
dev | 417 | drivers/net/skeleton.c | irq2dev_map[dev->irq] = 0; |
dev | 428 | drivers/net/skeleton.c | net_get_stats(struct device *dev) |
dev | 430 | drivers/net/skeleton.c | struct net_local *lp = (struct net_local *)dev->priv; |
dev | 431 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
dev | 448 | drivers/net/skeleton.c | set_multicast_list(struct device *dev, int num_addrs, void *addrs) |
dev | 450 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
dev | 76 | drivers/net/slip.c | sl_initialize(struct slip *sl, struct device *dev) |
dev | 93 | drivers/net/slip.c | sl->line = dev->base_addr; |
dev | 95 | drivers/net/slip.c | sl->dev = dev; |
dev | 105 | drivers/net/slip.c | dev->rmem_end = (unsigned long) NULL; |
dev | 106 | drivers/net/slip.c | dev->rmem_start = (unsigned long) NULL; |
dev | 107 | drivers/net/slip.c | dev->mem_end = (unsigned long) NULL; |
dev | 108 | drivers/net/slip.c | dev->mem_start = (unsigned long) NULL; |
dev | 109 | drivers/net/slip.c | dev->type = ARPHRD_SLIP + sl->mode; |
dev | 110 | drivers/net/slip.c | if(dev->type == 260) /* KISS */ |
dev | 111 | drivers/net/slip.c | dev->type=ARPHRD_AX25; |
dev | 159 | drivers/net/slip.c | struct device *dev=sl->dev; |
dev | 164 | drivers/net/slip.c | sl->mtu=dev->mtu; |
dev | 165 | drivers/net/slip.c | l=(dev->mtu *2); |
dev | 182 | drivers/net/slip.c | dev->mtu=omtu; |
dev | 194 | drivers/net/slip.c | tf=(unsigned char *)sl->dev->mem_start; |
dev | 195 | drivers/net/slip.c | sl->dev->mem_start=(unsigned long)tb; |
dev | 196 | drivers/net/slip.c | sl->dev->mem_end=(unsigned long) (sl->dev->mem_start + l); |
dev | 197 | drivers/net/slip.c | rf=(unsigned char *)sl->dev->rmem_start; |
dev | 198 | drivers/net/slip.c | sl->dev->rmem_start=(unsigned long)rb; |
dev | 199 | drivers/net/slip.c | sl->dev->rmem_end=(unsigned long) (sl->dev->rmem_start + l); |
dev | 201 | drivers/net/slip.c | sl->xbuff = (unsigned char *) sl->dev->mem_start; |
dev | 202 | drivers/net/slip.c | sl->rbuff = (unsigned char *) sl->dev->rmem_start; |
dev | 203 | drivers/net/slip.c | sl->rend = (unsigned char *) sl->dev->rmem_end; |
dev | 265 | drivers/net/slip.c | sl->dev->tbusy = 1; |
dev | 279 | drivers/net/slip.c | sl->dev->tbusy = 0; |
dev | 342 | drivers/net/slip.c | done = dev_rint(sl->rbuff, count, 0, sl->dev); |
dev | 357 | drivers/net/slip.c | if(sl->mtu != sl->dev->mtu) /* Someone has been ifconfigging */ |
dev | 381 | drivers/net/slip.c | dev_tint(sl->dev); |
dev | 420 | drivers/net/slip.c | dev_tint(sl->dev); |
dev | 445 | drivers/net/slip.c | sl_xmit(struct sk_buff *skb, struct device *dev) |
dev | 452 | drivers/net/slip.c | sl = &sl_ctrl[dev->base_addr]; |
dev | 471 | drivers/net/slip.c | if(!skb->arp && dev->rebuild_header(skb->data,dev)) |
dev | 473 | drivers/net/slip.c | skb->dev=dev; |
dev | 509 | drivers/net/slip.c | sl_type_trans (struct sk_buff *skb, struct device *dev) |
dev | 512 | drivers/net/slip.c | struct slip *sl=&sl_ctrl[dev->base_addr]; |
dev | 522 | drivers/net/slip.c | sl_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 527 | drivers/net/slip.c | struct slip *sl=&sl_ctrl[dev->base_addr]; |
dev | 529 | drivers/net/slip.c | return ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb); |
dev | 539 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
dev | 544 | drivers/net/slip.c | struct slip *sl=&sl_ctrl[dev->base_addr]; |
dev | 547 | drivers/net/slip.c | return ax25_rebuild_header(buff,dev,raddr, skb); |
dev | 556 | drivers/net/slip.c | sl_open(struct device *dev) |
dev | 562 | drivers/net/slip.c | sl = &sl_ctrl[dev->base_addr]; |
dev | 566 | drivers/net/slip.c | sl->dev = dev; |
dev | 576 | drivers/net/slip.c | l = (dev->mtu * 2); |
dev | 590 | drivers/net/slip.c | sl->mtu = dev->mtu; |
dev | 591 | drivers/net/slip.c | sl->dev->mem_start = (unsigned long) p; |
dev | 592 | drivers/net/slip.c | sl->dev->mem_end = (unsigned long) (sl->dev->mem_start + l); |
dev | 596 | drivers/net/slip.c | kfree_s((void *)sl->dev->mem_start,l+4); |
dev | 599 | drivers/net/slip.c | sl->dev->rmem_start = (unsigned long) p; |
dev | 600 | drivers/net/slip.c | sl->dev->rmem_end = (unsigned long) (sl->dev->rmem_start + l); |
dev | 602 | drivers/net/slip.c | sl->xbuff = (unsigned char *) sl->dev->mem_start; |
dev | 603 | drivers/net/slip.c | sl->rbuff = (unsigned char *) sl->dev->rmem_start; |
dev | 604 | drivers/net/slip.c | sl->rend = (unsigned char *) sl->dev->rmem_end; |
dev | 613 | drivers/net/slip.c | kfree((unsigned char *)sl->dev->mem_start); |
dev | 620 | drivers/net/slip.c | kfree((unsigned char *)sl->dev->mem_start); |
dev | 621 | drivers/net/slip.c | kfree((unsigned char *)sl->dev->rmem_start); |
dev | 626 | drivers/net/slip.c | dev->flags|=IFF_UP; |
dev | 628 | drivers/net/slip.c | if(dev->pa_addr==0) |
dev | 629 | drivers/net/slip.c | dev->pa_addr=ntohl(0xC0000001); |
dev | 636 | drivers/net/slip.c | sl_close(struct device *dev) |
dev | 640 | drivers/net/slip.c | sl = &sl_ctrl[dev->base_addr]; |
dev | 654 | drivers/net/slip.c | sl_initialize(sl, dev); |
dev | 678 | drivers/net/slip.c | if(sl->mtu!=sl->dev->mtu) |
dev | 724 | drivers/net/slip.c | (void) sl_open(sl->dev); |
dev | 732 | drivers/net/slip.c | sl_get_stats(struct device *dev) |
dev | 739 | drivers/net/slip.c | sl = &sl_ctrl[dev->base_addr]; |
dev | 778 | drivers/net/slip.c | (void) dev_close(sl->dev); |
dev | 943 | drivers/net/slip.c | int sl_set_mac_address(struct device *dev, void *addr) |
dev | 948 | drivers/net/slip.c | memcpy_fromfs(dev->dev_addr,addr,7); /* addr is an AX.25 shifted ASCII mac address */ |
dev | 952 | drivers/net/slip.c | static int sl_set_dev_mac_address(struct device *dev, void *addr) |
dev | 954 | drivers/net/slip.c | memcpy(dev->dev_addr,addr,7); |
dev | 977 | drivers/net/slip.c | memcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1); |
dev | 989 | drivers/net/slip.c | sl->dev->addr_len=7; /* sizeof an AX.25 addr */ |
dev | 990 | drivers/net/slip.c | sl->dev->hard_header_len=17; /* We don't do digipeaters */ |
dev | 994 | drivers/net/slip.c | sl->dev->addr_len=0; /* No mac addr in slip mode */ |
dev | 995 | drivers/net/slip.c | sl->dev->hard_header_len=0; |
dev | 998 | drivers/net/slip.c | sl->dev->type=ARPHRD_SLIP+sl->mode; |
dev | 999 | drivers/net/slip.c | if(sl->dev->type==260) |
dev | 1000 | drivers/net/slip.c | sl->dev->type=ARPHRD_AX25; |
dev | 1004 | drivers/net/slip.c | return sl_set_mac_address(sl->dev,arg); |
dev | 1019 | drivers/net/slip.c | slip_init(struct device *dev) |
dev | 1028 | drivers/net/slip.c | sl = &sl_ctrl[dev->base_addr]; |
dev | 1057 | drivers/net/slip.c | sl_initialize(sl, dev); |
dev | 1068 | drivers/net/slip.c | dev->mtu = SL_MTU; |
dev | 1069 | drivers/net/slip.c | dev->hard_start_xmit = sl_xmit; |
dev | 1070 | drivers/net/slip.c | dev->open = sl_open; |
dev | 1071 | drivers/net/slip.c | dev->stop = sl_close; |
dev | 1072 | drivers/net/slip.c | dev->hard_header = sl_header; |
dev | 1073 | drivers/net/slip.c | dev->type_trans = sl_type_trans; |
dev | 1074 | drivers/net/slip.c | dev->get_stats = sl_get_stats; |
dev | 1077 | drivers/net/slip.c | dev->set_mac_address = sl_set_dev_mac_address; |
dev | 1080 | drivers/net/slip.c | dev->hard_header_len = 0; |
dev | 1081 | drivers/net/slip.c | dev->addr_len = 0; |
dev | 1082 | drivers/net/slip.c | dev->type = 0; |
dev | 1084 | drivers/net/slip.c | memcpy(dev->broadcast,ax25_bcast,7); /* Only activated in AX.25 mode */ |
dev | 1085 | drivers/net/slip.c | memcpy(dev->dev_addr,ax25_test,7); /* "" "" "" "" */ |
dev | 1087 | drivers/net/slip.c | dev->rebuild_header = sl_rebuild_header; |
dev | 1089 | drivers/net/slip.c | skb_queue_head_init(&dev->buffs[i]); |
dev | 1092 | drivers/net/slip.c | dev->flags = 0; |
dev | 1093 | drivers/net/slip.c | dev->family = AF_INET; |
dev | 1094 | drivers/net/slip.c | dev->pa_addr = 0; |
dev | 1095 | drivers/net/slip.c | dev->pa_brdaddr = 0; |
dev | 1096 | drivers/net/slip.c | dev->pa_mask = 0; |
dev | 1097 | drivers/net/slip.c | dev->pa_alen = sizeof(unsigned long); |
dev | 40 | drivers/net/slip.h | struct device *dev; /* easy for intr handling */ |
dev | 81 | drivers/net/slip.h | extern int slip_init(struct device *dev); |
dev | 36 | drivers/net/smc-ultra.c | int ultraprobe(int ioaddr, struct device *dev); |
dev | 37 | drivers/net/smc-ultra.c | int ultraprobe1(int ioaddr, struct device *dev); |
dev | 39 | drivers/net/smc-ultra.c | static int ultra_open(struct device *dev); |
dev | 40 | drivers/net/smc-ultra.c | static void ultra_reset_8390(struct device *dev); |
dev | 41 | drivers/net/smc-ultra.c | static int ultra_block_input(struct device *dev, int count, |
dev | 43 | drivers/net/smc-ultra.c | static void ultra_block_output(struct device *dev, int count, |
dev | 45 | drivers/net/smc-ultra.c | static int ultra_close_card(struct device *dev); |
dev | 60 | drivers/net/smc-ultra.c | int ultra_probe(struct device *dev) |
dev | 63 | drivers/net/smc-ultra.c | unsigned short ioaddr = dev->base_addr; |
dev | 66 | drivers/net/smc-ultra.c | return ultraprobe1(ioaddr, dev); |
dev | 74 | drivers/net/smc-ultra.c | && ultraprobe1(*port, dev) == 0) |
dev | 77 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr; |
dev | 81 | drivers/net/smc-ultra.c | int ultraprobe1(int ioaddr, struct device *dev) |
dev | 84 | drivers/net/smc-ultra.c | unsigned char *station_addr = dev->dev_addr; |
dev | 100 | drivers/net/smc-ultra.c | printk("%s: SMC Ultra at %#3x,", dev->name, ioaddr); |
dev | 119 | drivers/net/smc-ultra.c | if (dev->irq < 2) { |
dev | 130 | drivers/net/smc-ultra.c | dev->irq = irq; |
dev | 139 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr+ULTRA_NIC_OFFSET; |
dev | 145 | drivers/net/smc-ultra.c | dev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ; |
dev | 149 | drivers/net/smc-ultra.c | ethdev_init(dev); |
dev | 157 | drivers/net/smc-ultra.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 158 | drivers/net/smc-ultra.c | dev->mem_end = dev->rmem_end |
dev | 159 | drivers/net/smc-ultra.c | = dev->mem_start + (ei_status.stop_page - START_PG)*256; |
dev | 162 | drivers/net/smc-ultra.c | dev->irq, dev->mem_start, dev->mem_end-1); |
dev | 169 | drivers/net/smc-ultra.c | dev->open = &ultra_open; |
dev | 170 | drivers/net/smc-ultra.c | dev->stop = &ultra_close_card; |
dev | 171 | drivers/net/smc-ultra.c | NS8390_init(dev, 0); |
dev | 177 | drivers/net/smc-ultra.c | ultra_open(struct device *dev) |
dev | 179 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */ |
dev | 181 | drivers/net/smc-ultra.c | if (irqaction(dev->irq, &ei_sigaction)) |
dev | 187 | drivers/net/smc-ultra.c | return ei_open(dev); |
dev | 191 | drivers/net/smc-ultra.c | ultra_reset_8390(struct device *dev) |
dev | 193 | drivers/net/smc-ultra.c | int cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */ |
dev | 209 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 211 | drivers/net/smc-ultra.c | void *xfer_start = (void *)(dev->mem_start + ring_offset |
dev | 214 | drivers/net/smc-ultra.c | if (xfer_start + count > (void*) dev->rmem_end) { |
dev | 216 | drivers/net/smc-ultra.c | int semi_count = (void*)dev->rmem_end - xfer_start; |
dev | 219 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 220 | drivers/net/smc-ultra.c | return dev->rmem_start + count; |
dev | 228 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 232 | drivers/net/smc-ultra.c | = (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8); |
dev | 239 | drivers/net/smc-ultra.c | ultra_close_card(struct device *dev) |
dev | 241 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */ |
dev | 243 | drivers/net/smc-ultra.c | dev->start = 0; |
dev | 244 | drivers/net/smc-ultra.c | dev->tbusy = 1; |
dev | 247 | drivers/net/smc-ultra.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 250 | drivers/net/smc-ultra.c | free_irq(dev->irq); |
dev | 251 | drivers/net/smc-ultra.c | irq2dev_map[dev->irq] = 0; |
dev | 253 | drivers/net/smc-ultra.c | NS8390_init(dev, 0); |
dev | 37 | drivers/net/wd.c | int wd_probe(struct device *dev); |
dev | 38 | drivers/net/wd.c | int wdprobe1(int ioaddr, struct device *dev); |
dev | 40 | drivers/net/wd.c | static int wd_open(struct device *dev); |
dev | 41 | drivers/net/wd.c | static void wd_reset_8390(struct device *dev); |
dev | 42 | drivers/net/wd.c | static int wd_block_input(struct device *dev, int count, |
dev | 44 | drivers/net/wd.c | static void wd_block_output(struct device *dev, int count, |
dev | 46 | drivers/net/wd.c | static int wd_close_card(struct device *dev); |
dev | 69 | drivers/net/wd.c | int wd_probe(struct device *dev) |
dev | 72 | drivers/net/wd.c | short ioaddr = dev->base_addr; |
dev | 77 | drivers/net/wd.c | return ! wdprobe1(ioaddr, dev); |
dev | 84 | drivers/net/wd.c | && wdprobe1(*port, dev)) |
dev | 87 | drivers/net/wd.c | dev->base_addr = ioaddr; |
dev | 91 | drivers/net/wd.c | int wdprobe1(int ioaddr, struct device *dev) |
dev | 94 | drivers/net/wd.c | unsigned char *station_addr = dev->dev_addr; |
dev | 105 | drivers/net/wd.c | printk("%s: WD80x3 at %#3x, ", dev->name, ioaddr); |
dev | 124 | drivers/net/wd.c | dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; |
dev | 125 | drivers/net/wd.c | dev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1; |
dev | 166 | drivers/net/wd.c | dev->mem_start = WD_SHMEM; |
dev | 168 | drivers/net/wd.c | if (dev->mem_start == 0) { |
dev | 173 | drivers/net/wd.c | dev->mem_start = 0xd0000; |
dev | 174 | drivers/net/wd.c | printk(" assigning address %#lx", dev->mem_start); |
dev | 180 | drivers/net/wd.c | dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); |
dev | 186 | drivers/net/wd.c | dev->base_addr = ioaddr+WD_NIC_OFFSET; |
dev | 188 | drivers/net/wd.c | if (dev->irq < 2) { |
dev | 205 | drivers/net/wd.c | dev->irq = autoirq_report(2); |
dev | 209 | drivers/net/wd.c | printk(" autoirq is %d", dev->irq); |
dev | 210 | drivers/net/wd.c | if (dev->irq < 2) |
dev | 211 | drivers/net/wd.c | dev->irq = word16 ? 10 : 5; |
dev | 213 | drivers/net/wd.c | dev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)]; |
dev | 214 | drivers/net/wd.c | } else if (dev->irq == 2) /* Fixup bogosity: IRQ2 is really IRQ9 */ |
dev | 215 | drivers/net/wd.c | dev->irq = 9; |
dev | 219 | drivers/net/wd.c | if (irqaction (dev->irq, &ei_sigaction)) { |
dev | 220 | drivers/net/wd.c | printk (" unable to get IRQ %d.\n", dev->irq); |
dev | 226 | drivers/net/wd.c | ethdev_init(dev); |
dev | 235 | drivers/net/wd.c | dev->rmem_start = dev->mem_start + TX_PAGES*256; |
dev | 236 | drivers/net/wd.c | dev->mem_end = dev->rmem_end |
dev | 237 | drivers/net/wd.c | = dev->mem_start + (ei_status.stop_page - WD_START_PG)*256; |
dev | 240 | drivers/net/wd.c | model_name, dev->irq, dev->mem_start, dev->mem_end-1); |
dev | 247 | drivers/net/wd.c | dev->open = &wd_open; |
dev | 248 | drivers/net/wd.c | dev->stop = &wd_close_card; |
dev | 249 | drivers/net/wd.c | NS8390_init(dev, 0); |
dev | 251 | drivers/net/wd.c | return dev->base_addr; |
dev | 255 | drivers/net/wd.c | wd_open(struct device *dev) |
dev | 257 | drivers/net/wd.c | int ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 261 | drivers/net/wd.c | ei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB; |
dev | 262 | drivers/net/wd.c | ei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16; |
dev | 268 | drivers/net/wd.c | return ei_open(dev); |
dev | 272 | drivers/net/wd.c | wd_reset_8390(struct device *dev) |
dev | 274 | drivers/net/wd.c | int wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 281 | drivers/net/wd.c | outb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port); |
dev | 283 | drivers/net/wd.c | outb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5); |
dev | 295 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
dev | 297 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 298 | drivers/net/wd.c | long xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8); |
dev | 309 | drivers/net/wd.c | if (xfer_start + count > dev->rmem_end) { |
dev | 311 | drivers/net/wd.c | int semi_count = dev->rmem_end - xfer_start; |
dev | 314 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
dev | 326 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
dev | 329 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 330 | drivers/net/wd.c | long shmem = dev->mem_start + ((start_page - WD_START_PG)<<8); |
dev | 344 | drivers/net/wd.c | wd_close_card(struct device *dev) |
dev | 346 | drivers/net/wd.c | int wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
dev | 349 | drivers/net/wd.c | printk("%s: Shutting down ethercard.\n", dev->name); |
dev | 350 | drivers/net/wd.c | NS8390_init(dev, 0); |
dev | 964 | drivers/scsi/aha152x.c | int aha152x_biosparam( int size, int dev, int *info_array ) |
dev | 967 | drivers/scsi/aha152x.c | printk("aha152x_biosparam: dev=%x, size=%d, ", dev, size); |
dev | 981 | drivers/scsi/aha1542.c | printk("Timed out command pending for %4.4x\n", SCpnt->request.dev); |
dev | 987 | drivers/scsi/aha1542.c | printk("Other pending command %4.4x\n", SCpnt->request.dev); |
dev | 1068 | drivers/scsi/aha1542.c | int aha1542_biosparam(int size, int dev, int * ip) |
dev | 1074 | drivers/scsi/aha1542.c | disk = rscsi_disks[MINOR(dev) >> 4].device; |
dev | 493 | drivers/scsi/aha1740.c | int aha1740_biosparam(int size, int dev, int* ip) |
dev | 1143 | drivers/scsi/buslogic.c | SCpnt->request.dev); |
dev | 1150 | drivers/scsi/buslogic.c | SCpnt->request.dev); |
dev | 1184 | drivers/scsi/buslogic.c | int buslogic_biosparam(int size, int dev, int *ip) |
dev | 1193 | drivers/scsi/buslogic.c | disk = rscsi_disks[MINOR(dev) >> 4].device; |
dev | 366 | drivers/scsi/constants.c | int dev = SCpnt->request.dev; |
dev | 397 | drivers/scsi/constants.c | printk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]); |
dev | 399 | drivers/scsi/constants.c | printk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]); |
dev | 427 | drivers/scsi/constants.c | printk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]); |
dev | 430 | drivers/scsi/constants.c | printk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]); |
dev | 1464 | drivers/scsi/fdomain.c | int fdomain_16x0_biosparam( int size, int dev, int *info_array ) |
dev | 1511 | drivers/scsi/fdomain.c | drive = MINOR(dev) / 16; |
dev | 396 | drivers/scsi/pas16.c | int pas16_biosparam(int size, int dev, int * ip) |
dev | 193 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xfffe; |
dev | 205 | drivers/scsi/scsi.c | int dev, lun, type; |
dev | 220 | drivers/scsi/scsi.c | for (dev = 0; dev < 8; ++dev) |
dev | 221 | drivers/scsi/scsi.c | if (shpnt->this_id != dev) |
dev | 233 | drivers/scsi/scsi.c | scsi_devices[NR_SCSI_DEVICES].id = dev; |
dev | 249 | drivers/scsi/scsi.c | SCmd.target = dev; |
dev | 252 | drivers/scsi/scsi.c | SCmd.request.dev = 0xffff; /* Mark not busy */ |
dev | 264 | drivers/scsi/scsi.c | while (SCmd.request.dev != 0xfffe); |
dev | 266 | drivers/scsi/scsi.c | printk("scsi: scan SCSIS id %d lun %d\n", dev, lun); |
dev | 299 | drivers/scsi/scsi.c | SCmd.request.dev = 0xffff; /* Mark not busy */ |
dev | 306 | drivers/scsi/scsi.c | while (SCmd.request.dev != 0xfffe); |
dev | 373 | drivers/scsi/scsi.c | shpnt->host_no , dev, lun); |
dev | 378 | drivers/scsi/scsi.c | shpnt->host_no , dev, lun); |
dev | 384 | drivers/scsi/scsi.c | shpnt->host_no , dev, lun); |
dev | 456 | drivers/scsi/scsi.c | SCmd.request.dev = 0xffff; /* Mark not busy */ |
dev | 463 | drivers/scsi/scsi.c | while (SCmd.request.dev != 0xfffe); |
dev | 562 | drivers/scsi/scsi.c | if (req && req->dev <= 0) |
dev | 569 | drivers/scsi/scsi.c | if(SCpnt->request.dev < 0) break; |
dev | 605 | drivers/scsi/scsi.c | req->dev = -1; |
dev | 609 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Busy, but no request */ |
dev | 631 | drivers/scsi/scsi.c | int dev = -1; |
dev | 645 | drivers/scsi/scsi.c | if (req && (dev = req->dev) <= 0) return NULL; |
dev | 655 | drivers/scsi/scsi.c | if(SCpnt->request.dev < 0) break; |
dev | 661 | drivers/scsi/scsi.c | if (req && ((req->dev < 0) || (req->dev != dev))) { |
dev | 665 | drivers/scsi/scsi.c | if (!SCpnt || SCpnt->request.dev >= 0) /* Might have changed */ |
dev | 675 | drivers/scsi/scsi.c | (SCwait->request.dev > 0)); |
dev | 705 | drivers/scsi/scsi.c | req->dev = -1; |
dev | 710 | drivers/scsi/scsi.c | SCpnt->request.dev = 0xffff; /* Busy */ |
dev | 1462 | drivers/scsi/scsi.c | if (SCpnt1->request.dev > 0) { |
dev | 1745 | drivers/scsi/scsi.c | SCpnt->request.dev = -1; /* Mark not busy */ |
dev | 1866 | drivers/scsi/scsi.c | SCpnt->request.dev, |
dev | 1895 | drivers/scsi/scsi.c | req->dev, |
dev | 523 | drivers/scsi/scsi.h | req->dev,req->sector); |
dev | 548 | drivers/scsi/scsi.h | DEVICE_OFF(req->dev); |
dev | 555 | drivers/scsi/scsi.h | req->dev = -1; |
dev | 571 | drivers/scsi/scsi.h | if (MAJOR(CURRENT->dev) != MAJOR_NR) \ |
dev | 65 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1]; \ |
dev | 71 | drivers/scsi/scsi_debug.c | if (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\ |
dev | 77 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){ \ |
dev | 78 | drivers/scsi/scsi_debug.c | printk("Dev #s %x %x ",SCpnt->request.dev, target); \ |
dev | 86 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition"); \ |
dev | 87 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1]; \ |
dev | 96 | drivers/scsi/scsi_debug.c | if (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\ |
dev | 221 | drivers/scsi/scsi_debug.c | if(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f; |
dev | 544 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(int size, int dev, int* info){ |
dev | 79 | drivers/scsi/scsi_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 89 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
dev | 94 | drivers/scsi/scsi_ioctl.c | SCpnt = allocate_device(NULL, dev->index, 1); |
dev | 99 | drivers/scsi/scsi_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 102 | drivers/scsi/scsi_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 108 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
dev | 112 | drivers/scsi/scsi_ioctl.c | if(dev->removable){ |
dev | 117 | drivers/scsi/scsi_ioctl.c | if (dev->removable){ |
dev | 118 | drivers/scsi/scsi_ioctl.c | dev->changed = 1; |
dev | 125 | drivers/scsi/scsi_ioctl.c | dev->host->host_no, |
dev | 126 | drivers/scsi/scsi_ioctl.c | dev->id, |
dev | 127 | drivers/scsi/scsi_ioctl.c | dev->lun, |
dev | 137 | drivers/scsi/scsi_ioctl.c | SCpnt->request.dev = -1; |
dev | 142 | drivers/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
dev | 174 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
dev | 178 | drivers/scsi/scsi_ioctl.c | SCpnt = allocate_device(NULL, dev->index, 1); |
dev | 183 | drivers/scsi/scsi_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 186 | drivers/scsi/scsi_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 204 | drivers/scsi/scsi_ioctl.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 215 | drivers/scsi/scsi_ioctl.c | printk("scsi_ioctl : device %d. command = ", dev->id); |
dev | 235 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
dev | 239 | drivers/scsi/scsi_ioctl.c | if ((cmd != 0 && dev->index > NR_SCSI_DEVICES)) |
dev | 245 | drivers/scsi/scsi_ioctl.c | put_fs_long(dev->id + (dev->lun << 8) + |
dev | 246 | drivers/scsi/scsi_ioctl.c | (dev->host->host_no << 16), (unsigned long *) arg); |
dev | 250 | drivers/scsi/scsi_ioctl.c | if(!dev->tagged_supported) return -EINVAL; |
dev | 251 | drivers/scsi/scsi_ioctl.c | dev->tagged_queue = 1; |
dev | 252 | drivers/scsi/scsi_ioctl.c | dev->current_tag = 1; |
dev | 256 | drivers/scsi/scsi_ioctl.c | if(!dev->tagged_supported) return -EINVAL; |
dev | 257 | drivers/scsi/scsi_ioctl.c | dev->tagged_queue = 0; |
dev | 258 | drivers/scsi/scsi_ioctl.c | dev->current_tag = 0; |
dev | 261 | drivers/scsi/scsi_ioctl.c | return ioctl_probe(dev->host, arg); |
dev | 264 | drivers/scsi/scsi_ioctl.c | return ioctl_command((Scsi_Device *) dev, arg); |
dev | 266 | drivers/scsi/scsi_ioctl.c | if (!dev->removable || !dev->lockable) return 0; |
dev | 268 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 271 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 274 | drivers/scsi/scsi_ioctl.c | if (!dev->removable || !dev->lockable) return 0; |
dev | 276 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 279 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 282 | drivers/scsi/scsi_ioctl.c | scsi_cmd[1] = dev->lun << 5; |
dev | 285 | drivers/scsi/scsi_ioctl.c | return ioctl_internal_command((Scsi_Device *) dev, scsi_cmd); |
dev | 298 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
dev | 303 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
dev | 16 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 17 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 149 | drivers/scsi/sd.c | printk("sd%d : rw_intr(%d, %d)\n", MINOR(SCpnt->request.dev), SCpnt->host->host_no, result); |
dev | 161 | drivers/scsi/sd.c | printk("sd%d : %d sectors remain.\n", MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors); |
dev | 204 | drivers/scsi/sd.c | MINOR(SCpnt->request.dev)); |
dev | 256 | drivers/scsi/sd.c | if rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap |
dev | 267 | drivers/scsi/sd.c | if(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) { |
dev | 271 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
dev | 288 | drivers/scsi/sd.c | if (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) { |
dev | 289 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
dev | 298 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
dev | 299 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id, |
dev | 300 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result); |
dev | 323 | drivers/scsi/sd.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
dev | 344 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); |
dev | 362 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device->index); |
dev | 367 | drivers/scsi/sd.c | if (SCpnt && req->dev == -1) { |
dev | 385 | drivers/scsi/sd.c | int dev, block, this_count; |
dev | 394 | drivers/scsi/sd.c | if(SCpnt->request.dev <= 0) { |
dev | 399 | drivers/scsi/sd.c | dev = MINOR(SCpnt->request.dev); |
dev | 404 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", dev, block); |
dev | 407 | drivers/scsi/sd.c | if (dev >= (NR_SD << 4) || block + SCpnt->request.nr_sectors > sd[dev].nr_sects) |
dev | 413 | drivers/scsi/sd.c | block += sd[dev].start_sect; |
dev | 414 | drivers/scsi/sd.c | dev = DEVICE_NR(dev); |
dev | 416 | drivers/scsi/sd.c | if (rscsi_disks[dev].device->changed) |
dev | 427 | drivers/scsi/sd.c | printk("sd%d : real dev = /dev/sd%d, block = %d\n", MINOR(SCpnt->request.dev), dev, block); |
dev | 433 | drivers/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
dev | 513 | drivers/scsi/sd.c | this_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff); |
dev | 675 | drivers/scsi/sd.c | printk("sd%d : %s %d/%d 512 byte blocks.\n", MINOR(SCpnt->request.dev), |
dev | 682 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024){ |
dev | 689 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 256){ |
dev | 694 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
dev | 726 | drivers/scsi/sd.c | SCpnt->transfersize = rscsi_disks[dev].sector_size; |
dev | 729 | drivers/scsi/sd.c | this_count * rscsi_disks[dev].sector_size, |
dev | 774 | drivers/scsi/sd.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 808 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 817 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe); |
dev | 833 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 842 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe); |
dev | 867 | drivers/scsi/sd.c | SCpnt->request.dev = 0xffff; /* Mark as really busy again */ |
dev | 877 | drivers/scsi/sd.c | while(SCpnt->request.dev != 0xfffe); |
dev | 879 | drivers/scsi/sd.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 882 | drivers/scsi/sd.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 890 | drivers/scsi/sd.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1052 | drivers/scsi/sd.c | int revalidate_scsidisk(int dev, int maxusage){ |
dev | 1059 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(dev)); |
dev | 19 | drivers/scsi/sd_ioctl.c | int dev = inode->i_rdev; |
dev | 31 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
dev | 36 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(rscsi_disks[MINOR(dev) >> 4].capacity, |
dev | 37 | drivers/scsi/sd_ioctl.c | dev, |
dev | 70 | drivers/scsi/sd_ioctl.c | return revalidate_scsidisk(dev, 1); |
dev | 72 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
dev | 1599 | drivers/scsi/seagate.c | int seagate_st0x_biosparam(int size, int dev, int* ip) { |
dev | 1606 | drivers/scsi/seagate.c | disk = rscsi_disks[MINOR(dev) >> 4].device; |
dev | 57 | drivers/scsi/sg.c | int dev = MINOR(inode->i_rdev); |
dev | 58 | drivers/scsi/sg.c | if ((dev<0) || (dev>=NR_SG)) |
dev | 63 | drivers/scsi/sg.c | scsi_generics[dev].timeout=get_fs_long((int *) arg); |
dev | 66 | drivers/scsi/sg.c | return scsi_generics[dev].timeout; |
dev | 68 | drivers/scsi/sg.c | return scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg); |
dev | 74 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 76 | drivers/scsi/sg.c | if (dev>=NR_SG) |
dev | 82 | drivers/scsi/sg.c | while(scsi_generics[dev].users) |
dev | 86 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
dev | 90 | drivers/scsi/sg.c | scsi_generics[dev].exclude=1; |
dev | 93 | drivers/scsi/sg.c | while(scsi_generics[dev].exclude) |
dev | 97 | drivers/scsi/sg.c | interruptible_sleep_on(&scsi_generics[dev].generic_wait); |
dev | 101 | drivers/scsi/sg.c | if (!scsi_generics[dev].users && scsi_generics[dev].pending && scsi_generics[dev].complete) |
dev | 103 | drivers/scsi/sg.c | scsi_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
dev | 104 | drivers/scsi/sg.c | scsi_generics[dev].pending=0; |
dev | 106 | drivers/scsi/sg.c | if (!scsi_generics[dev].users) |
dev | 107 | drivers/scsi/sg.c | scsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT; |
dev | 108 | drivers/scsi/sg.c | scsi_generics[dev].users++; |
dev | 114 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 115 | drivers/scsi/sg.c | scsi_generics[dev].users--; |
dev | 116 | drivers/scsi/sg.c | scsi_generics[dev].exclude=0; |
dev | 117 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].generic_wait); |
dev | 155 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 157 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 188 | drivers/scsi/sg.c | int dev=SCpnt->request.dev; |
dev | 189 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 192 | drivers/scsi/sg.c | printk("unexpected done for sg %d\n",dev); |
dev | 193 | drivers/scsi/sg.c | SCpnt->request.dev=-1; |
dev | 203 | drivers/scsi/sg.c | SCpnt->request.dev=-1; |
dev | 204 | drivers/scsi/sg.c | wake_up(&scsi_generics[dev].read_wait); |
dev | 209 | drivers/scsi/sg.c | int dev=MINOR(inode->i_rdev); |
dev | 213 | drivers/scsi/sg.c | struct scsi_generic *device=&scsi_generics[dev]; |
dev | 262 | drivers/scsi/sg.c | SCpnt->request.dev=dev; |
dev | 214 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
dev | 223 | drivers/scsi/sr.c | if (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) { |
dev | 224 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
dev | 248 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
dev | 249 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id, |
dev | 250 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun, |
dev | 296 | drivers/scsi/sr.c | if (CURRENT != NULL && CURRENT->dev == -1) { |
dev | 305 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device->index, 0); |
dev | 323 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(MINOR(req->dev))].device->index); |
dev | 328 | drivers/scsi/sr.c | if (SCpnt && req->dev == -1) { |
dev | 349 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
dev | 356 | drivers/scsi/sr.c | if(SCpnt->request.dev <= 0) { |
dev | 361 | drivers/scsi/sr.c | dev = MINOR(SCpnt->request.dev); |
dev | 366 | drivers/scsi/sr.c | if (dev >= NR_SR) |
dev | 374 | drivers/scsi/sr.c | if (!scsi_CDs[dev].use) |
dev | 382 | drivers/scsi/sr.c | if (scsi_CDs[dev].device->changed) |
dev | 435 | drivers/scsi/sr.c | this_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4; |
dev | 563 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 2048) |
dev | 570 | drivers/scsi/sr.c | if (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2; |
dev | 572 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
dev | 577 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
dev | 594 | drivers/scsi/sr.c | this_count = realcount * (scsi_CDs[dev].sector_size >> 9); |
dev | 617 | drivers/scsi/sr.c | realcount * scsi_CDs[dev].sector_size, |
dev | 639 | drivers/scsi/sr.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 662 | drivers/scsi/sr.c | SCpnt->request.dev = 0xffff; /* Mark as really busy */ |
dev | 672 | drivers/scsi/sr.c | while(SCpnt->request.dev != 0xfffe); |
dev | 674 | drivers/scsi/sr.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 677 | drivers/scsi/sr.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 685 | drivers/scsi/sr.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 19 | drivers/scsi/sr_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
dev | 27 | drivers/scsi/sr_ioctl.c | req->dev = 0xfffe; /* Busy, but indicate request done */ |
dev | 52 | drivers/scsi/sr_ioctl.c | if (SCpnt->request.dev != 0xfffe){ |
dev | 55 | drivers/scsi/sr_ioctl.c | while (SCpnt->request.dev != 0xfffe) schedule(); |
dev | 87 | drivers/scsi/sr_ioctl.c | SCpnt->request.dev = -1; /* Deallocate */ |
dev | 97 | drivers/scsi/sr_ioctl.c | int dev = inode->i_rdev; |
dev | 100 | drivers/scsi/sr_ioctl.c | target = MINOR(dev); |
dev | 394 | drivers/scsi/sr_ioctl.c | RO_IOCTLS(dev,arg); |
dev | 97 | drivers/scsi/st.c | int dev = SCpnt->request.dev; |
dev | 106 | drivers/scsi/st.c | printk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result, |
dev | 124 | drivers/scsi/st.c | scsi_tapes[dev].recover_count++; |
dev | 125 | drivers/scsi/st.c | scsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT); |
dev | 132 | drivers/scsi/st.c | printk("st%d: Recovered %s error (%d).\n", dev, stp, |
dev | 133 | drivers/scsi/st.c | scsi_tapes[dev].recover_count); |
dev | 147 | drivers/scsi/st.c | if ((st_nbr = SCpnt->request.dev) < NR_ST && st_nbr >= 0) { |
dev | 169 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 171 | drivers/scsi/st.c | SCpnt->request.dev = 0xffff; |
dev | 184 | drivers/scsi/st.c | write_behind_check(int dev) |
dev | 189 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 220 | drivers/scsi/st.c | back_over_eof(int dev) |
dev | 223 | drivers/scsi/st.c | Scsi_Tape *STp = &(scsi_tapes[dev]); |
dev | 233 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 238 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 239 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 247 | drivers/scsi/st.c | flush_write_buffer(int dev) |
dev | 253 | drivers/scsi/st.c | Scsi_Tape *STp = &(scsi_tapes[dev]); |
dev | 256 | drivers/scsi/st.c | write_behind_check(dev); |
dev | 260 | drivers/scsi/st.c | printk("st%d: Async write error (flush) %x.\n", dev, |
dev | 278 | drivers/scsi/st.c | printk("st%d: Flushing %d bytes.\n", dev, transfer); |
dev | 290 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 295 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 298 | drivers/scsi/st.c | printk("st%d: Error on flush.\n", dev); |
dev | 316 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 327 | drivers/scsi/st.c | int dev; |
dev | 332 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 333 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 337 | drivers/scsi/st.c | return flush_write_buffer(dev); |
dev | 351 | drivers/scsi/st.c | result = back_over_eof(dev); /* Back over the EOF hit */ |
dev | 369 | drivers/scsi/st.c | int dev; |
dev | 376 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 377 | drivers/scsi/st.c | if (dev >= NR_ST) |
dev | 379 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 381 | drivers/scsi/st.c | printk("st%d: Device already in use.\n", dev); |
dev | 390 | drivers/scsi/st.c | printk("st%d: No free buffers.\n", dev); |
dev | 409 | drivers/scsi/st.c | printk("st%d: Tape request not allocated", dev); |
dev | 416 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 422 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 430 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 436 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 444 | drivers/scsi/st.c | printk("st%d: No tape.\n", dev); |
dev | 446 | drivers/scsi/st.c | printk("st%d: Error %x.\n", dev, SCpnt->result); |
dev | 451 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 458 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 463 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 472 | drivers/scsi/st.c | printk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block, |
dev | 480 | drivers/scsi/st.c | printk("st%d: Can't read block limits.\n", dev); |
dev | 488 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 493 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 498 | drivers/scsi/st.c | printk("st%d: No Mode Sense.\n", dev); |
dev | 503 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 507 | drivers/scsi/st.c | printk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev, |
dev | 520 | drivers/scsi/st.c | dev, STp->density, (STp->buffer)->b_data[5] * 65536 + |
dev | 525 | drivers/scsi/st.c | printk("st%d: Blocksize %d too large for buffer.\n", dev, |
dev | 549 | drivers/scsi/st.c | printk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev, |
dev | 558 | drivers/scsi/st.c | printk( "st%d: Write protected\n", dev); |
dev | 570 | drivers/scsi/st.c | int dev; |
dev | 577 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev); |
dev | 578 | drivers/scsi/st.c | rewind = (dev & 0x80) == 0; |
dev | 579 | drivers/scsi/st.c | dev = dev & 127; |
dev | 580 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 584 | drivers/scsi/st.c | result = flush_write_buffer(dev); |
dev | 588 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, filp->f_pos); |
dev | 598 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 603 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 606 | drivers/scsi/st.c | printk("st%d: Error on write filemark.\n", dev); |
dev | 612 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 617 | drivers/scsi/st.c | printk("st%d: Buffer flushed, EOF written\n", dev); |
dev | 623 | drivers/scsi/st.c | back_over_eof(dev); |
dev | 643 | drivers/scsi/st.c | int dev; |
dev | 651 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 652 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 655 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 674 | drivers/scsi/st.c | write_behind_check(dev); |
dev | 678 | drivers/scsi/st.c | printk("st%d: Async write error (write) %x.\n", dev, |
dev | 742 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 747 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 752 | drivers/scsi/st.c | printk("st%d: Error on write:\n", dev); |
dev | 781 | drivers/scsi/st.c | dev, transfer); |
dev | 790 | drivers/scsi/st.c | printk("st%d: EOM with lost data.\n", dev); |
dev | 799 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 829 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 853 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 860 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 870 | drivers/scsi/st.c | int dev; |
dev | 877 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 878 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 881 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 902 | drivers/scsi/st.c | printk("st%d: EOF flag up. Bytes %d\n", dev, |
dev | 941 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 947 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 955 | drivers/scsi/st.c | printk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev, |
dev | 982 | drivers/scsi/st.c | printk("st%d: Incorrect block size.\n", dev); |
dev | 983 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 996 | drivers/scsi/st.c | printk("st%d: EOM detected (%d bytes read).\n", dev, |
dev | 1011 | drivers/scsi/st.c | dev, (STp->buffer)->buffer_bytes, total); |
dev | 1018 | drivers/scsi/st.c | printk("st%d: Tape error while reading.\n", dev); |
dev | 1020 | drivers/scsi/st.c | SCpnt->request.dev = -1; |
dev | 1030 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1050 | drivers/scsi/st.c | printk("st%d: EOF up. Left %d, needed %d.\n", dev, |
dev | 1065 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1081 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1092 | drivers/scsi/st.c | int dev, value; |
dev | 1095 | drivers/scsi/st.c | dev = MINOR(inode->i_rdev) & 127; |
dev | 1096 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1105 | drivers/scsi/st.c | dev, STp->do_buffer_writes, STp->do_async_writes, |
dev | 1119 | drivers/scsi/st.c | printk("st%d: Write threshold set to %d bytes.\n", dev, |
dev | 1135 | drivers/scsi/st.c | int dev = MINOR(inode->i_rdev); |
dev | 1144 | drivers/scsi/st.c | dev = dev & 127; |
dev | 1145 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1161 | drivers/scsi/st.c | printk("st%d: Spacing tape forward over %d filemarks.\n", dev, |
dev | 1180 | drivers/scsi/st.c | printk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp)); |
dev | 1194 | drivers/scsi/st.c | printk("st%d: Spacing tape forward %d blocks.\n", dev, |
dev | 1212 | drivers/scsi/st.c | printk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp)); |
dev | 1228 | drivers/scsi/st.c | printk("st%d: Writing %d filemarks.\n", dev, |
dev | 1242 | drivers/scsi/st.c | printk("st%d: Rewinding tape.\n", dev); |
dev | 1254 | drivers/scsi/st.c | printk("st%d: Unloading tape.\n", dev); |
dev | 1261 | drivers/scsi/st.c | printk("st%d: No op on tape.\n", dev); |
dev | 1274 | drivers/scsi/st.c | printk("st%d: Retensioning tape.\n", dev); |
dev | 1290 | drivers/scsi/st.c | printk("st%d: Spacing to end of recorded medium.\n", dev); |
dev | 1301 | drivers/scsi/st.c | printk("st%d: Erasing tape.\n", dev); |
dev | 1327 | drivers/scsi/st.c | printk("st%d: Seeking tape to block %ld.\n", dev, arg); |
dev | 1340 | drivers/scsi/st.c | printk("st%d: Illegal block size.\n", dev); |
dev | 1368 | drivers/scsi/st.c | printk("st%d: Setting block size to %d bytes.\n", dev, |
dev | 1373 | drivers/scsi/st.c | printk("st%d: Setting density code to %x.\n", dev, |
dev | 1376 | drivers/scsi/st.c | printk("st%d: Setting drive buffer code to %d.\n", dev, |
dev | 1382 | drivers/scsi/st.c | printk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in); |
dev | 1388 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1393 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1397 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 1472 | drivers/scsi/st.c | int dev = MINOR(inode->i_rdev); |
dev | 1480 | drivers/scsi/st.c | dev = dev & 127; |
dev | 1481 | drivers/scsi/st.c | STp = &(scsi_tapes[dev]); |
dev | 1484 | drivers/scsi/st.c | printk("st%d: Incorrect device.\n", dev); |
dev | 1543 | drivers/scsi/st.c | printk("st%d: get tape position.\n", dev); |
dev | 1568 | drivers/scsi/st.c | SCpnt->request.dev = dev; |
dev | 1574 | drivers/scsi/st.c | if (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) ); |
dev | 1580 | drivers/scsi/st.c | printk("st%d: Can't read tape position.\n", dev); |
dev | 1598 | drivers/scsi/st.c | SCpnt->request.dev = -1; /* Mark as not busy */ |
dev | 295 | drivers/scsi/t128.c | int t128_biosparam(int size, int dev, int * ip) |
dev | 980 | drivers/scsi/ultrastor.c | int ultrastor_biosparam(int size, int dev, int * dkinfo) |
dev | 1228 | drivers/scsi/wd7000.c | int wd7000_biosparam(int size, int dev, int* ip) |
dev | 54 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
dev | 58 | drivers/sound/audio.c | int dev_type = dev & 0x0f; |
dev | 61 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 68 | drivers/sound/audio.c | if ((ret = DMAbuf_open (dev, mode)) < 0) |
dev | 71 | drivers/sound/audio.c | if (DMAbuf_ioctl (dev, SNDCTL_DSP_SAMPLESIZE, bits, 1) != bits) |
dev | 73 | drivers/sound/audio.c | audio_release (dev, file); |
dev | 77 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 78 | drivers/sound/audio.c | audio_mode[dev] = AM_NONE; |
dev | 84 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
dev | 88 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 91 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 93 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 95 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 98 | drivers/sound/audio.c | DMAbuf_release (dev, mode); |
dev | 127 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 131 | drivers/sound/audio.c | int dev_type = dev & 0x0f; |
dev | 133 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 138 | drivers/sound/audio.c | if (audio_mode[dev] == AM_READ) /* Direction changed */ |
dev | 140 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 143 | drivers/sound/audio.c | audio_mode[dev] = AM_WRITE; |
dev | 147 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 149 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 151 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 158 | drivers/sound/audio.c | if (wr_buff_no[dev] < 0) /* There is no incomplete buffers */ |
dev | 160 | drivers/sound/audio.c | if ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev], &wr_buff_size[dev])) < 0) |
dev | 161 | drivers/sound/audio.c | return wr_buff_no[dev]; |
dev | 162 | drivers/sound/audio.c | wr_buff_ptr[dev] = 0; |
dev | 166 | drivers/sound/audio.c | if (l > (wr_buff_size[dev] - wr_buff_ptr[dev])) |
dev | 167 | drivers/sound/audio.c | l = (wr_buff_size[dev] - wr_buff_ptr[dev]); |
dev | 169 | drivers/sound/audio.c | if (!dsp_devs[dev]->copy_from_user) |
dev | 171 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
dev | 174 | drivers/sound/audio.c | dsp_devs[dev]->copy_from_user (dev, |
dev | 175 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
dev | 186 | drivers/sound/audio.c | translate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l); |
dev | 191 | drivers/sound/audio.c | wr_buff_ptr[dev] += l; |
dev | 193 | drivers/sound/audio.c | if (wr_buff_ptr[dev] >= wr_buff_size[dev]) |
dev | 195 | drivers/sound/audio.c | if ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0) |
dev | 198 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 207 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 212 | drivers/sound/audio.c | int dev_type = dev & 0x0f; |
dev | 214 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 218 | drivers/sound/audio.c | if (audio_mode[dev] == AM_WRITE) |
dev | 220 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 222 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 224 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 228 | drivers/sound/audio.c | audio_mode[dev] = AM_READ; |
dev | 232 | drivers/sound/audio.c | if ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l)) < 0) |
dev | 252 | drivers/sound/audio.c | DMAbuf_rmchars (dev, buff_no, l); |
dev | 262 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
dev | 265 | drivers/sound/audio.c | int dev_type = dev & 0x0f; |
dev | 267 | drivers/sound/audio.c | dev = dev >> 4; |
dev | 272 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 274 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 276 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 278 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 282 | drivers/sound/audio.c | if (wr_buff_no[dev] >= 0) |
dev | 284 | drivers/sound/audio.c | DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]); |
dev | 286 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 292 | drivers/sound/audio.c | wr_buff_no[dev] = -1; |
dev | 293 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 300 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
dev | 314 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 320 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 326 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
dev | 332 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
dev | 336 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
dev | 343 | drivers/sound/audio.c | audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
dev | 64 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 65 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 66 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
dev | 68 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
dev | 70 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 71 | drivers/sound/dev_table.h | int (*prepare_for_input) (int dev, int bufsize, int nbufs); |
dev | 72 | drivers/sound/dev_table.h | int (*prepare_for_output) (int dev, int bufsize, int nbufs); |
dev | 73 | drivers/sound/dev_table.h | void (*reset) (int dev); |
dev | 74 | drivers/sound/dev_table.h | void (*halt_xfer) (int dev); |
dev | 75 | drivers/sound/dev_table.h | int (*has_output_drained)(int dev); |
dev | 76 | drivers/sound/dev_table.h | void (*copy_from_user)(int dev, char *localbuf, int localoffs, |
dev | 81 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 89 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 90 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 91 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 92 | drivers/sound/dev_table.h | int (*kill_note) (int dev, int voice, int velocity); |
dev | 93 | drivers/sound/dev_table.h | int (*start_note) (int dev, int voice, int note, int velocity); |
dev | 94 | drivers/sound/dev_table.h | int (*set_instr) (int dev, int voice, int instr); |
dev | 95 | drivers/sound/dev_table.h | void (*reset) (int dev); |
dev | 96 | drivers/sound/dev_table.h | void (*hw_control) (int dev, unsigned char *event); |
dev | 97 | drivers/sound/dev_table.h | int (*load_patch) (int dev, int format, snd_rw_buf *addr, |
dev | 99 | drivers/sound/dev_table.h | void (*aftertouch) (int dev, int voice, int pressure); |
dev | 100 | drivers/sound/dev_table.h | void (*controller) (int dev, int voice, int ctrl_num, int value); |
dev | 101 | drivers/sound/dev_table.h | void (*panning) (int dev, int voice, int value); |
dev | 102 | drivers/sound/dev_table.h | void (*volume_method) (int dev, int mode); |
dev | 103 | drivers/sound/dev_table.h | int (*pmgr_interface) (int dev, struct patmgr_info *info); |
dev | 108 | drivers/sound/dev_table.h | int (*open) (int dev, int mode, |
dev | 109 | drivers/sound/dev_table.h | void (*inputintr)(int dev, unsigned char data), |
dev | 110 | drivers/sound/dev_table.h | void (*outputintr)(int dev) |
dev | 112 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 113 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
dev | 114 | drivers/sound/dev_table.h | int (*putc) (int dev, unsigned char data); |
dev | 115 | drivers/sound/dev_table.h | int (*start_read) (int dev); |
dev | 116 | drivers/sound/dev_table.h | int (*end_read) (int dev); |
dev | 117 | drivers/sound/dev_table.h | void (*kick)(int dev); |
dev | 118 | drivers/sound/dev_table.h | int (*command) (int dev, unsigned char data); |
dev | 119 | drivers/sound/dev_table.h | int (*buffer_status) (int dev); |
dev | 126 | drivers/sound/dev_table.h | int (*open) (int dev, int mode); |
dev | 127 | drivers/sound/dev_table.h | void (*close) (int dev); |
dev | 128 | drivers/sound/dev_table.h | int (*write) (int dev, snd_rw_buf *data); |
dev | 129 | drivers/sound/dev_table.h | int (*read) (int dev, snd_rw_buf *data); |
dev | 102 | drivers/sound/dmabuf.c | reorganize_buffers (int dev) |
dev | 111 | drivers/sound/dmabuf.c | sr = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1); |
dev | 112 | drivers/sound/dmabuf.c | nc = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1); |
dev | 113 | drivers/sound/dmabuf.c | sz = dsp_devs[dev]->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1); |
dev | 117 | drivers/sound/dmabuf.c | printk ("SOUND: Invalid PCM parameters[%d] sr=%d, nc=%d, sz=%d\n", dev, sr, nc, sz); |
dev | 131 | drivers/sound/dmabuf.c | bsz = sound_buffsizes[dev]; |
dev | 136 | drivers/sound/dmabuf.c | if (sound_buffcounts[dev] == 1 && bsz == sound_buffsizes[dev]) |
dev | 139 | drivers/sound/dmabuf.c | if (dev_subdivision[dev] == 0) |
dev | 140 | drivers/sound/dmabuf.c | dev_subdivision[dev] = 1; /* Default value */ |
dev | 142 | drivers/sound/dmabuf.c | bsz /= dev_subdivision[dev]; /* Use smaller buffers */ |
dev | 147 | drivers/sound/dmabuf.c | while ((sound_buffsizes[dev] * sound_buffcounts[dev]) / bsz > MAX_SUB_BUFFERS) |
dev | 150 | drivers/sound/dmabuf.c | dev_buffsize[dev] = bsz; |
dev | 157 | drivers/sound/dmabuf.c | for (i = 0; i < snd_raw_count[dev]; i++) |
dev | 161 | drivers/sound/dmabuf.c | while ((p + bsz) <= sound_buffsizes[dev]) |
dev | 163 | drivers/sound/dmabuf.c | dev_buf[dev][n] = snd_raw_buf[dev][i] + p; |
dev | 164 | drivers/sound/dmabuf.c | dev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p; |
dev | 170 | drivers/sound/dmabuf.c | dev_nbufs[dev] = n; |
dev | 172 | drivers/sound/dmabuf.c | for (i = 0; i < dev_nbufs[dev]; i++) |
dev | 174 | drivers/sound/dmabuf.c | dev_counts[dev][i] = 0; |
dev | 177 | drivers/sound/dmabuf.c | bufferalloc_done[dev] = 1; |
dev | 181 | drivers/sound/dmabuf.c | dma_init_buffers (int dev) |
dev | 183 | drivers/sound/dmabuf.c | RESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 184 | drivers/sound/dmabuf.c | dev_underrun[dev] = 0; |
dev | 186 | drivers/sound/dmabuf.c | dev_busy[dev] = 1; |
dev | 188 | drivers/sound/dmabuf.c | bufferalloc_done[dev] = 0; |
dev | 190 | drivers/sound/dmabuf.c | dev_active[dev] = dev_qlen[dev] = dev_qtail[dev] = dev_qhead[dev] = 0; |
dev | 191 | drivers/sound/dmabuf.c | dev_needs_restart[dev] = dev_started[dev] = 0; |
dev | 192 | drivers/sound/dmabuf.c | dma_mode[dev] = DMODE_NONE; |
dev | 196 | drivers/sound/dmabuf.c | DMAbuf_open (int dev, int mode) |
dev | 200 | drivers/sound/dmabuf.c | if (dev >= num_dspdevs) |
dev | 202 | drivers/sound/dmabuf.c | printk ("PCM device %d not installed.\n", dev); |
dev | 206 | drivers/sound/dmabuf.c | if (dev_busy[dev]) |
dev | 209 | drivers/sound/dmabuf.c | if (!dsp_devs[dev]) |
dev | 211 | drivers/sound/dmabuf.c | printk ("DSP device %d not initialized\n", dev); |
dev | 216 | drivers/sound/dmabuf.c | sound_dma_malloc (dev); |
dev | 219 | drivers/sound/dmabuf.c | if (snd_raw_buf[dev][0] == NULL) |
dev | 222 | drivers/sound/dmabuf.c | if ((retval = dsp_devs[dev]->open (dev, mode)) < 0) |
dev | 225 | drivers/sound/dmabuf.c | dev_modes[dev] = mode; |
dev | 226 | drivers/sound/dmabuf.c | dev_subdivision[dev] = 0; |
dev | 228 | drivers/sound/dmabuf.c | dma_init_buffers (dev); |
dev | 229 | drivers/sound/dmabuf.c | dsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1); |
dev | 230 | drivers/sound/dmabuf.c | dsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1); |
dev | 231 | drivers/sound/dmabuf.c | dsp_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1); |
dev | 237 | drivers/sound/dmabuf.c | dma_reset (int dev) |
dev | 243 | drivers/sound/dmabuf.c | dsp_devs[dev]->reset (dev); |
dev | 244 | drivers/sound/dmabuf.c | dsp_devs[dev]->close (dev); |
dev | 246 | drivers/sound/dmabuf.c | if ((retval = dsp_devs[dev]->open (dev, dev_modes[dev])) < 0) |
dev | 250 | drivers/sound/dmabuf.c | dma_init_buffers (dev); |
dev | 251 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 255 | drivers/sound/dmabuf.c | dma_sync (int dev) |
dev | 259 | drivers/sound/dmabuf.c | if (dma_mode[dev] == DMODE_OUTPUT) |
dev | 263 | drivers/sound/dmabuf.c | while ((!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) || |
dev | 264 | drivers/sound/dmabuf.c | dmabuf_interrupted[dev])) |
dev | 265 | drivers/sound/dmabuf.c | && dev_qlen[dev]) |
dev | 267 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ); |
dev | 268 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 269 | drivers/sound/dmabuf.c | return dev_qlen[dev]; |
dev | 279 | drivers/sound/dmabuf.c | if (dsp_devs[dev]->has_output_drained) /* Device has hidden buffers */ |
dev | 281 | drivers/sound/dmabuf.c | while (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) || |
dev | 282 | drivers/sound/dmabuf.c | dmabuf_interrupted[dev]) |
dev | 283 | drivers/sound/dmabuf.c | && !dsp_devs[dev]->has_output_drained (dev)) |
dev | 285 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ / 4); |
dev | 290 | drivers/sound/dmabuf.c | return dev_qlen[dev]; |
dev | 294 | drivers/sound/dmabuf.c | DMAbuf_release (int dev, int mode) |
dev | 297 | drivers/sound/dmabuf.c | if (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]) || |
dev | 298 | drivers/sound/dmabuf.c | dmabuf_interrupted[dev]) |
dev | 299 | drivers/sound/dmabuf.c | && (dma_mode[dev] == DMODE_OUTPUT)) |
dev | 301 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 305 | drivers/sound/dmabuf.c | sound_dma_free (dev); |
dev | 308 | drivers/sound/dmabuf.c | dsp_devs[dev]->reset (dev); |
dev | 310 | drivers/sound/dmabuf.c | dsp_devs[dev]->close (dev); |
dev | 312 | drivers/sound/dmabuf.c | dma_mode[dev] = DMODE_NONE; |
dev | 313 | drivers/sound/dmabuf.c | dev_busy[dev] = 0; |
dev | 319 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
dev | 325 | drivers/sound/dmabuf.c | if (!dev_qlen[dev]) |
dev | 327 | drivers/sound/dmabuf.c | if (dev_needs_restart[dev]) |
dev | 329 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 330 | drivers/sound/dmabuf.c | dev_needs_restart[dev] = 0; |
dev | 333 | drivers/sound/dmabuf.c | if (dma_mode[dev] == DMODE_OUTPUT) /* Was output -> direction change */ |
dev | 335 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 336 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 337 | drivers/sound/dmabuf.c | dma_mode[dev] = DMODE_NONE; |
dev | 340 | drivers/sound/dmabuf.c | if (!bufferalloc_done[dev]) |
dev | 341 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 343 | drivers/sound/dmabuf.c | if (!dma_mode[dev]) |
dev | 347 | drivers/sound/dmabuf.c | if ((err = dsp_devs[dev]->prepare_for_input (dev, |
dev | 348 | drivers/sound/dmabuf.c | dev_buffsize[dev], dev_nbufs[dev])) < 0) |
dev | 353 | drivers/sound/dmabuf.c | dma_mode[dev] = DMODE_INPUT; |
dev | 356 | drivers/sound/dmabuf.c | if (!dev_active[dev]) |
dev | 358 | drivers/sound/dmabuf.c | dsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]], |
dev | 359 | drivers/sound/dmabuf.c | dev_buffsize[dev], 0, |
dev | 360 | drivers/sound/dmabuf.c | !sound_dma_automode[dev] || |
dev | 361 | drivers/sound/dmabuf.c | !dev_started[dev]); |
dev | 362 | drivers/sound/dmabuf.c | dev_active[dev] = 1; |
dev | 363 | drivers/sound/dmabuf.c | dev_started[dev] = 1; |
dev | 367 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ); |
dev | 368 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 372 | drivers/sound/dmabuf.c | SET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 379 | drivers/sound/dmabuf.c | if (!dev_qlen[dev]) |
dev | 382 | drivers/sound/dmabuf.c | *buf = &dev_buf[dev][dev_qhead[dev]][dev_counts[dev][dev_qhead[dev]]]; |
dev | 383 | drivers/sound/dmabuf.c | *len = dev_buffsize[dev] - dev_counts[dev][dev_qhead[dev]]; |
dev | 385 | drivers/sound/dmabuf.c | return dev_qhead[dev]; |
dev | 389 | drivers/sound/dmabuf.c | DMAbuf_rmchars (int dev, int buff_no, int c) |
dev | 391 | drivers/sound/dmabuf.c | int p = dev_counts[dev][dev_qhead[dev]] + c; |
dev | 393 | drivers/sound/dmabuf.c | if (p >= dev_buffsize[dev]) |
dev | 395 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qhead[dev]] = 0; |
dev | 396 | drivers/sound/dmabuf.c | dev_qlen[dev]--; |
dev | 397 | drivers/sound/dmabuf.c | dev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev]; |
dev | 400 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qhead[dev]] = p; |
dev | 406 | drivers/sound/dmabuf.c | DMAbuf_read (int dev, snd_rw_buf * user_buf, int count) |
dev | 416 | drivers/sound/dmabuf.c | if ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &c)) < 0) |
dev | 424 | drivers/sound/dmabuf.c | if ((err = DMAbuf_rmchars (dev, buff_no, c)) < 0) |
dev | 431 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 436 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 441 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 442 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 447 | drivers/sound/dmabuf.c | if (!bufferalloc_done[dev]) |
dev | 448 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 450 | drivers/sound/dmabuf.c | return IOCTL_OUT (arg, dev_buffsize[dev]); |
dev | 459 | drivers/sound/dmabuf.c | fact = dev_subdivision[dev]; |
dev | 465 | drivers/sound/dmabuf.c | if (dev_subdivision[dev] != 0) /* Too late to change */ |
dev | 474 | drivers/sound/dmabuf.c | dev_subdivision[dev] = fact; |
dev | 480 | drivers/sound/dmabuf.c | return dsp_devs[dev]->ioctl (dev, cmd, arg, local); |
dev | 488 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
dev | 493 | drivers/sound/dmabuf.c | if (dma_mode[dev] == DMODE_INPUT) /* Was input -> Direction change */ |
dev | 495 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 496 | drivers/sound/dmabuf.c | dma_mode[dev] = DMODE_NONE; |
dev | 498 | drivers/sound/dmabuf.c | else if (dev_needs_restart[dev]) /* Restart buffering */ |
dev | 500 | drivers/sound/dmabuf.c | dma_sync (dev); |
dev | 501 | drivers/sound/dmabuf.c | dma_reset (dev); |
dev | 504 | drivers/sound/dmabuf.c | dev_needs_restart[dev] = 0; |
dev | 506 | drivers/sound/dmabuf.c | if (!bufferalloc_done[dev]) |
dev | 507 | drivers/sound/dmabuf.c | reorganize_buffers (dev); |
dev | 509 | drivers/sound/dmabuf.c | if (!dma_mode[dev]) |
dev | 513 | drivers/sound/dmabuf.c | dma_mode[dev] = DMODE_OUTPUT; |
dev | 514 | drivers/sound/dmabuf.c | if ((err = dsp_devs[dev]->prepare_for_output (dev, |
dev | 515 | drivers/sound/dmabuf.c | dev_buffsize[dev], dev_nbufs[dev])) < 0) |
dev | 522 | drivers/sound/dmabuf.c | RESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 524 | drivers/sound/dmabuf.c | if (dev_qlen[dev] == dev_nbufs[dev]) |
dev | 526 | drivers/sound/dmabuf.c | if (!dev_active[dev]) |
dev | 529 | drivers/sound/dmabuf.c | dev_qlen[dev], dev_nbufs[dev]); |
dev | 534 | drivers/sound/dmabuf.c | DO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ); |
dev | 535 | drivers/sound/dmabuf.c | if (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 539 | drivers/sound/dmabuf.c | SET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 541 | drivers/sound/dmabuf.c | else if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 546 | drivers/sound/dmabuf.c | if (dev_qlen[dev] == dev_nbufs[dev]) |
dev | 549 | drivers/sound/dmabuf.c | *buf = dev_buf[dev][dev_qtail[dev]]; |
dev | 550 | drivers/sound/dmabuf.c | *size = dev_buffsize[dev]; |
dev | 551 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qtail[dev]] = 0; |
dev | 553 | drivers/sound/dmabuf.c | return dev_qtail[dev]; |
dev | 557 | drivers/sound/dmabuf.c | DMAbuf_start_output (int dev, int buff_no, int l) |
dev | 559 | drivers/sound/dmabuf.c | if (buff_no != dev_qtail[dev]) |
dev | 560 | drivers/sound/dmabuf.c | printk ("Soundcard warning: DMA buffers out of sync %d != %d\n", buff_no, dev_qtail[dev]); |
dev | 562 | drivers/sound/dmabuf.c | dev_qlen[dev]++; |
dev | 564 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qtail[dev]] = l; |
dev | 566 | drivers/sound/dmabuf.c | dev_needs_restart[dev] = (l != dev_buffsize[dev]) && |
dev | 567 | drivers/sound/dmabuf.c | (sound_dma_automode[dev] || dsp_devs[dev]->flags & NEEDS_RESTART); |
dev | 569 | drivers/sound/dmabuf.c | dev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev]; |
dev | 571 | drivers/sound/dmabuf.c | if (!dev_active[dev]) |
dev | 573 | drivers/sound/dmabuf.c | dev_active[dev] = 1; |
dev | 574 | drivers/sound/dmabuf.c | dsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]], |
dev | 575 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qhead[dev]], 0, |
dev | 576 | drivers/sound/dmabuf.c | !sound_dma_automode[dev] || !dev_started[dev]); |
dev | 577 | drivers/sound/dmabuf.c | dev_started[dev] = 1; |
dev | 584 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
dev | 586 | drivers/sound/dmabuf.c | int chan = sound_dsp_dmachan[dev]; |
dev | 598 | drivers/sound/dmabuf.c | if (sound_dma_automode[dev]) |
dev | 606 | drivers/sound/dmabuf.c | set_dma_addr (chan, snd_raw_buf_phys[dev][0]); |
dev | 607 | drivers/sound/dmabuf.c | set_dma_count (chan, sound_buffsizes[dev]); |
dev | 613 | drivers/sound/dmabuf.c | printk ("sound: Invalid DMA mode for device %d\n", dev); |
dev | 616 | drivers/sound/dmabuf.c | snd_raw_buf_phys[dev][0], |
dev | 617 | drivers/sound/dmabuf.c | sound_buffsizes[dev], |
dev | 622 | drivers/sound/dmabuf.c | printk ("sound: Invalid DMA mode for device %d\n", dev); |
dev | 629 | drivers/sound/dmabuf.c | snd_raw_buf_phys[dev][0], count); |
dev | 696 | drivers/sound/dmabuf.c | DMAbuf_outputintr (int dev, int underrun_flag) |
dev | 700 | drivers/sound/dmabuf.c | dev_qlen[dev]--; |
dev | 701 | drivers/sound/dmabuf.c | dev_qhead[dev] = (dev_qhead[dev] + 1) % dev_nbufs[dev]; |
dev | 702 | drivers/sound/dmabuf.c | dev_active[dev] = 0; |
dev | 704 | drivers/sound/dmabuf.c | if (dev_qlen[dev]) |
dev | 706 | drivers/sound/dmabuf.c | dsp_devs[dev]->output_block (dev, dev_buf_phys[dev][dev_qhead[dev]], |
dev | 707 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qhead[dev]], 1, |
dev | 708 | drivers/sound/dmabuf.c | !sound_dma_automode[dev]); |
dev | 709 | drivers/sound/dmabuf.c | dev_active[dev] = 1; |
dev | 713 | drivers/sound/dmabuf.c | dev_underrun[dev]++; |
dev | 714 | drivers/sound/dmabuf.c | dsp_devs[dev]->halt_xfer (dev); |
dev | 715 | drivers/sound/dmabuf.c | dev_needs_restart[dev] = (sound_dma_automode[dev] || |
dev | 716 | drivers/sound/dmabuf.c | dsp_devs[dev]->flags & NEEDS_RESTART); |
dev | 720 | drivers/sound/dmabuf.c | if (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 722 | drivers/sound/dmabuf.c | WAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 728 | drivers/sound/dmabuf.c | DMAbuf_inputintr (int dev) |
dev | 732 | drivers/sound/dmabuf.c | if (!dev_busy[dev]) |
dev | 734 | drivers/sound/dmabuf.c | dsp_devs[dev]->close (dev); |
dev | 736 | drivers/sound/dmabuf.c | else if (dev_qlen[dev] == (dev_nbufs[dev] - 1)) |
dev | 739 | drivers/sound/dmabuf.c | dev_underrun[dev]++; |
dev | 740 | drivers/sound/dmabuf.c | dsp_devs[dev]->halt_xfer (dev); |
dev | 741 | drivers/sound/dmabuf.c | dev_active[dev] = 0; |
dev | 742 | drivers/sound/dmabuf.c | dev_needs_restart[dev] = sound_dma_automode[dev]; |
dev | 746 | drivers/sound/dmabuf.c | dev_qlen[dev]++; |
dev | 747 | drivers/sound/dmabuf.c | dev_qtail[dev] = (dev_qtail[dev] + 1) % dev_nbufs[dev]; |
dev | 749 | drivers/sound/dmabuf.c | dsp_devs[dev]->start_input (dev, dev_buf_phys[dev][dev_qtail[dev]], |
dev | 750 | drivers/sound/dmabuf.c | dev_buffsize[dev], 1, |
dev | 751 | drivers/sound/dmabuf.c | !sound_dma_automode[dev]); |
dev | 752 | drivers/sound/dmabuf.c | dev_active[dev] = 1; |
dev | 756 | drivers/sound/dmabuf.c | if (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev])) |
dev | 758 | drivers/sound/dmabuf.c | WAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]); |
dev | 764 | drivers/sound/dmabuf.c | DMAbuf_open_dma (int dev) |
dev | 767 | drivers/sound/dmabuf.c | int chan = sound_dsp_dmachan[dev]; |
dev | 786 | drivers/sound/dmabuf.c | DMAbuf_close_dma (int dev) |
dev | 788 | drivers/sound/dmabuf.c | int chan = sound_dsp_dmachan[dev]; |
dev | 811 | drivers/sound/dmabuf.c | DMAbuf_open (int dev, int mode) |
dev | 817 | drivers/sound/dmabuf.c | DMAbuf_release (int dev, int mode) |
dev | 823 | drivers/sound/dmabuf.c | DMAbuf_read (int dev, snd_rw_buf * user_buf, int count) |
dev | 829 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
dev | 835 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
dev | 841 | drivers/sound/dmabuf.c | DMAbuf_rmchars (int dev, int buff_no, int c) |
dev | 847 | drivers/sound/dmabuf.c | DMAbuf_start_output (int dev, int buff_no, int l) |
dev | 853 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 865 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
dev | 889 | drivers/sound/dmabuf.c | DMAbuf_inputintr (int dev) |
dev | 895 | drivers/sound/dmabuf.c | DMAbuf_outputintr (int dev, int underrun_flag) |
dev | 43 | drivers/sound/gus_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 53 | drivers/sound/gus_midi.c | gus_midi_open (int dev, int mode, |
dev | 54 | drivers/sound/gus_midi.c | void (*input) (int dev, unsigned char data), |
dev | 55 | drivers/sound/gus_midi.c | void (*output) (int dev) |
dev | 118 | drivers/sound/gus_midi.c | gus_midi_close (int dev) |
dev | 127 | drivers/sound/gus_midi.c | gus_midi_out (int dev, unsigned char midi_byte) |
dev | 173 | drivers/sound/gus_midi.c | gus_midi_start_read (int dev) |
dev | 179 | drivers/sound/gus_midi.c | gus_midi_end_read (int dev) |
dev | 185 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 191 | drivers/sound/gus_midi.c | gus_midi_kick (int dev) |
dev | 196 | drivers/sound/gus_midi.c | gus_midi_buffer_status (int dev) |
dev | 1019 | drivers/sound/gus_wave.c | guswave_ioctl (int dev, |
dev | 1049 | drivers/sound/gus_wave.c | guswave_set_instr (int dev, int voice, int instr_no) |
dev | 1091 | drivers/sound/gus_wave.c | guswave_kill_note (int dev, int voice, int note, int velocity) |
dev | 1093 | drivers/sound/gus_wave.c | guswave_kill_note (int dev, int voice, int velocity) |
dev | 1114 | drivers/sound/gus_wave.c | guswave_aftertouch (int dev, int voice, int pressure) |
dev | 1164 | drivers/sound/gus_wave.c | guswave_panning (int dev, int voice, int value) |
dev | 1171 | drivers/sound/gus_wave.c | guswave_volume_method (int dev, int mode) |
dev | 1332 | drivers/sound/gus_wave.c | guswave_controller (int dev, int voice, int ctrl_num, int value) |
dev | 1396 | drivers/sound/gus_wave.c | guswave_start_note2 (int dev, int voice, int note_num, int volume) |
dev | 1621 | drivers/sound/gus_wave.c | guswave_start_note (int dev, int voice, int note_num, int volume) |
dev | 1635 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
dev | 1661 | drivers/sound/gus_wave.c | ret_val = guswave_start_note2 (dev, voice, note_num, volume); |
dev | 1665 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
dev | 1681 | drivers/sound/gus_wave.c | guswave_reset (int dev) |
dev | 1693 | drivers/sound/gus_wave.c | guswave_open (int dev, int mode) |
dev | 1715 | drivers/sound/gus_wave.c | guswave_close (int dev) |
dev | 1725 | drivers/sound/gus_wave.c | guswave_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 2001 | drivers/sound/gus_wave.c | pmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0); |
dev | 2007 | drivers/sound/gus_wave.c | guswave_hw_control (int dev, unsigned char *event) |
dev | 2034 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, p1); |
dev | 2213 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 2275 | drivers/sound/gus_wave.c | gus_sampling_reset (int dev) |
dev | 2280 | drivers/sound/gus_wave.c | gus_sampling_open (int dev, int mode) |
dev | 2311 | drivers/sound/gus_wave.c | gus_sampling_close (int dev) |
dev | 2511 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
dev | 2548 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
dev | 2553 | drivers/sound/gus_wave.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 2578 | drivers/sound/gus_wave.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 2609 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
dev | 2615 | drivers/sound/gus_wave.c | pcm_current_dev = dev; |
dev | 2616 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
dev | 2620 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
dev | 2628 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 2634 | drivers/sound/gus_wave.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 2652 | drivers/sound/gus_wave.c | gus_sampling_prepare_for_input (int dev, int bsize, int bcount) |
dev | 2672 | drivers/sound/gus_wave.c | gus_sampling_prepare_for_output (int dev, int bsize, int bcount) |
dev | 2703 | drivers/sound/gus_wave.c | gus_has_output_drained (int dev) |
dev | 2709 | drivers/sound/gus_wave.c | gus_copy_from_user (int dev, char *localbuf, int localoffs, |
dev | 2778 | drivers/sound/gus_wave.c | guswave_bender (int dev, int voice, int value) |
dev | 2796 | drivers/sound/gus_wave.c | guswave_patchmgr (int dev, struct patmgr_info *rec) |
dev | 3060 | drivers/sound/gus_wave.c | gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 79 | drivers/sound/ics2101.c | write_mix (int dev, int chn, int vol) |
dev | 83 | drivers/sound/ics2101.c | int ctrl_addr = dev << 3; |
dev | 84 | drivers/sound/ics2101.c | int attn_addr = dev << 3; |
dev | 103 | drivers/sound/ics2101.c | OUTB (selector[dev], u_MixData); |
dev | 110 | drivers/sound/ics2101.c | set_volumes (int dev, int vol) |
dev | 124 | drivers/sound/ics2101.c | write_mix (dev, CHN_LEFT, left); |
dev | 125 | drivers/sound/ics2101.c | write_mix (dev, CHN_RIGHT, right); |
dev | 128 | drivers/sound/ics2101.c | volumes[dev] = vol; |
dev | 133 | drivers/sound/ics2101.c | ics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 141 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
dev | 174 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
dev | 44 | drivers/sound/midibuf.c | MIDIbuf_open (int dev, struct fileinfo *file) |
dev | 48 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 69 | drivers/sound/midibuf.c | MIDIbuf_release (int dev, struct fileinfo *file) |
dev | 73 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 81 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 84 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 91 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 93 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 99 | drivers/sound/midibuf.c | MIDIbuf_ioctl (int dev, struct fileinfo *file, |
dev | 102 | drivers/sound/midibuf.c | dev = dev >> 4; |
dev | 108 | drivers/sound/midibuf.c | return midi_devs[0]->ioctl (dev, cmd, arg); |
dev | 113 | drivers/sound/midibuf.c | MIDIbuf_bytes_received (int dev, unsigned char *buf, int count) |
dev | 62 | drivers/sound/mpu401.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 77 | drivers/sound/mpu401.c | mpu401_open (int dev, int mode, |
dev | 78 | drivers/sound/mpu401.c | void (*input) (int dev, unsigned char data), |
dev | 79 | drivers/sound/mpu401.c | void (*output) (int dev) |
dev | 97 | drivers/sound/mpu401.c | mpu401_close (int dev) |
dev | 103 | drivers/sound/mpu401.c | mpu401_out (int dev, unsigned char midi_byte) |
dev | 137 | drivers/sound/mpu401.c | mpu401_command (int dev, unsigned char midi_byte) |
dev | 143 | drivers/sound/mpu401.c | mpu401_start_read (int dev) |
dev | 149 | drivers/sound/mpu401.c | mpu401_end_read (int dev) |
dev | 155 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 161 | drivers/sound/mpu401.c | mpu401_kick (int dev) |
dev | 166 | drivers/sound/mpu401.c | mpu401_buffer_status (int dev) |
dev | 78 | drivers/sound/opl3.c | static int opl3_kill_note (int dev, int voice, int velocity); |
dev | 121 | drivers/sound/opl3.c | opl3_ioctl (int dev, |
dev | 139 | drivers/sound/opl3.c | pmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0); |
dev | 239 | drivers/sound/opl3.c | opl3_kill_note (int dev, int voice, int velocity) |
dev | 285 | drivers/sound/opl3.c | opl3_set_instr (int dev, int voice, int instr_no) |
dev | 431 | drivers/sound/opl3.c | opl3_start_note (int dev, int voice, int note, int volume) |
dev | 655 | drivers/sound/opl3.c | opl3_reset (int dev) |
dev | 676 | drivers/sound/opl3.c | opl3_kill_note (dev, i, 64); |
dev | 694 | drivers/sound/opl3.c | opl3_open (int dev, int mode) |
dev | 709 | drivers/sound/opl3.c | opl3_close (int dev) |
dev | 716 | drivers/sound/opl3.c | opl3_reset (dev); |
dev | 720 | drivers/sound/opl3.c | opl3_hw_control (int dev, unsigned char *event) |
dev | 725 | drivers/sound/opl3.c | opl3_load_patch (int dev, int format, snd_rw_buf * addr, |
dev | 749 | drivers/sound/opl3.c | opl3_panning (int dev, int voice, int pressure) |
dev | 754 | drivers/sound/opl3.c | opl3_volume_method (int dev, int mode) |
dev | 765 | drivers/sound/opl3.c | opl3_aftertouch (int dev, int voice, int pressure) |
dev | 831 | drivers/sound/opl3.c | opl3_controller (int dev, int voice, int ctrl_num, int value) |
dev | 875 | drivers/sound/opl3.c | opl3_patchmgr (int dev, struct patmgr_info *rec) |
dev | 46 | drivers/sound/pas2_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 49 | drivers/sound/pas2_midi.c | pas_midi_open (int dev, int mode, |
dev | 50 | drivers/sound/pas2_midi.c | void (*input) (int dev, unsigned char data), |
dev | 51 | drivers/sound/pas2_midi.c | void (*output) (int dev) |
dev | 108 | drivers/sound/pas2_midi.c | pas_midi_close (int dev) |
dev | 138 | drivers/sound/pas2_midi.c | pas_midi_out (int dev, unsigned char midi_byte) |
dev | 184 | drivers/sound/pas2_midi.c | pas_midi_start_read (int dev) |
dev | 190 | drivers/sound/pas2_midi.c | pas_midi_end_read (int dev) |
dev | 196 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 202 | drivers/sound/pas2_midi.c | pas_midi_kick (int dev) |
dev | 208 | drivers/sound/pas2_midi.c | pas_buffer_status (int dev) |
dev | 314 | drivers/sound/pas2_mixer.c | getmixer (int dev, int chn) |
dev | 318 | drivers/sound/pas2_mixer.c | return (levels[dev] >> 8) & 0x7f; |
dev | 322 | drivers/sound/pas2_mixer.c | return levels[dev] & 0x7f; |
dev | 407 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 126 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 191 | drivers/sound/pas2_pcm.c | pas_pcm_reset (int dev) |
dev | 199 | drivers/sound/pas2_pcm.c | pas_pcm_open (int dev, int mode) |
dev | 208 | drivers/sound/pas2_pcm.c | if (!DMAbuf_open_dma (dev)) |
dev | 220 | drivers/sound/pas2_pcm.c | pas_pcm_close (int dev) |
dev | 228 | drivers/sound/pas2_pcm.c | pas_pcm_reset (dev); |
dev | 229 | drivers/sound/pas2_pcm.c | DMAbuf_close_dma (dev); |
dev | 237 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
dev | 245 | drivers/sound/pas2_pcm.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 248 | drivers/sound/pas2_pcm.c | if (sound_dma_automode[dev] && |
dev | 259 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 261 | drivers/sound/pas2_pcm.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 283 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
dev | 292 | drivers/sound/pas2_pcm.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 303 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 305 | drivers/sound/pas2_pcm.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 327 | drivers/sound/pas2_pcm.c | pas_pcm_prepare_for_input (int dev, int bsize, int bcount) |
dev | 332 | drivers/sound/pas2_pcm.c | pas_pcm_prepare_for_output (int dev, int bsize, int bcount) |
dev | 52 | drivers/sound/patmgr.c | pmgr_open (int dev) |
dev | 54 | drivers/sound/patmgr.c | if (dev < 0 || dev >= num_synths) |
dev | 57 | drivers/sound/patmgr.c | if (pmgr_opened[dev]) |
dev | 59 | drivers/sound/patmgr.c | pmgr_opened[dev] = 1; |
dev | 61 | drivers/sound/patmgr.c | RESET_WAIT_QUEUE (server_procs[dev], server_wait_flag[dev]); |
dev | 67 | drivers/sound/patmgr.c | pmgr_release (int dev) |
dev | 70 | drivers/sound/patmgr.c | if (mbox[dev]) /* Killed in action. Inform the client */ |
dev | 73 | drivers/sound/patmgr.c | mbox[dev]->key = PM_ERROR; |
dev | 74 | drivers/sound/patmgr.c | mbox[dev]->parm1 = RET_ERROR (EIO); |
dev | 80 | drivers/sound/patmgr.c | pmgr_opened[dev] = 0; |
dev | 84 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 91 | drivers/sound/patmgr.c | printk ("PATMGR%d: Invalid read count\n", dev); |
dev | 95 | drivers/sound/patmgr.c | while (!ok && !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev])) |
dev | 99 | drivers/sound/patmgr.c | while (!(mbox[dev] && msg_direction[dev] == A_TO_S) && |
dev | 100 | drivers/sound/patmgr.c | !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev])) |
dev | 102 | drivers/sound/patmgr.c | DO_SLEEP (server_procs[dev], server_wait_flag[dev], 0); |
dev | 105 | drivers/sound/patmgr.c | if (mbox[dev] && msg_direction[dev] == A_TO_S) |
dev | 107 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
dev | 108 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 122 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 128 | drivers/sound/patmgr.c | printk ("PATMGR%d: Write count < 4\n", dev); |
dev | 132 | drivers/sound/patmgr.c | COPY_FROM_USER (mbox[dev], buf, 0, 4); |
dev | 134 | drivers/sound/patmgr.c | if (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE) |
dev | 138 | drivers/sound/patmgr.c | tmp_dev = ((unsigned short *) mbox[dev])[2]; |
dev | 139 | drivers/sound/patmgr.c | if (tmp_dev != dev) |
dev | 142 | drivers/sound/patmgr.c | return synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev], |
dev | 148 | drivers/sound/patmgr.c | printk ("PATMGR%d: Invalid write count\n", dev); |
dev | 159 | drivers/sound/patmgr.c | if (mbox[dev] && !msg_direction[dev]) |
dev | 161 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
dev | 162 | drivers/sound/patmgr.c | msg_direction[dev] = S_TO_A; |
dev | 176 | drivers/sound/patmgr.c | pmgr_access (int dev, struct patmgr_info *rec) |
dev | 183 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 184 | drivers/sound/patmgr.c | printk (" PATMGR: Server %d mbox full. Why?\n", dev); |
dev | 188 | drivers/sound/patmgr.c | mbox[dev] = rec; |
dev | 189 | drivers/sound/patmgr.c | msg_direction[dev] = A_TO_S; |
dev | 191 | drivers/sound/patmgr.c | if (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev])) |
dev | 193 | drivers/sound/patmgr.c | WAKE_UP (server_procs[dev], server_wait_flag[dev]); |
dev | 198 | drivers/sound/patmgr.c | if (msg_direction[dev] != S_TO_A) |
dev | 210 | drivers/sound/patmgr.c | mbox[dev] = NULL; |
dev | 211 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 220 | drivers/sound/patmgr.c | pmgr_inform (int dev, int event, unsigned long p1, unsigned long p2, |
dev | 226 | drivers/sound/patmgr.c | if (!pmgr_opened[dev]) |
dev | 231 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 232 | drivers/sound/patmgr.c | printk (" PATMGR: Server %d mbox full. Why?\n", dev); |
dev | 235 | drivers/sound/patmgr.c | mbox[dev] = |
dev | 238 | drivers/sound/patmgr.c | mbox[dev]->key = PM_K_EVENT; |
dev | 239 | drivers/sound/patmgr.c | mbox[dev]->command = event; |
dev | 240 | drivers/sound/patmgr.c | mbox[dev]->parm1 = p1; |
dev | 241 | drivers/sound/patmgr.c | mbox[dev]->parm2 = p2; |
dev | 242 | drivers/sound/patmgr.c | mbox[dev]->parm3 = p3; |
dev | 243 | drivers/sound/patmgr.c | msg_direction[dev] = A_TO_S; |
dev | 245 | drivers/sound/patmgr.c | if (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev])) |
dev | 247 | drivers/sound/patmgr.c | WAKE_UP (server_procs[dev], server_wait_flag[dev]); |
dev | 251 | drivers/sound/patmgr.c | if (mbox[dev]) |
dev | 252 | drivers/sound/patmgr.c | KERNEL_FREE (mbox[dev]); |
dev | 253 | drivers/sound/patmgr.c | mbox[dev] = NULL; |
dev | 254 | drivers/sound/patmgr.c | msg_direction[dev] = 0; |
dev | 60 | drivers/sound/sb16_dsp.c | static int sb16_dsp_open (int dev, int mode); |
dev | 61 | drivers/sound/sb16_dsp.c | static void sb16_dsp_close (int dev); |
dev | 62 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 63 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
dev | 64 | drivers/sound/sb16_dsp.c | static int sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 65 | drivers/sound/sb16_dsp.c | static int sb16_dsp_prepare_for_input (int dev, int bsize, int bcount); |
dev | 66 | drivers/sound/sb16_dsp.c | static int sb16_dsp_prepare_for_output (int dev, int bsize, int bcount); |
dev | 67 | drivers/sound/sb16_dsp.c | static void sb16_dsp_reset (int dev); |
dev | 68 | drivers/sound/sb16_dsp.c | static void sb16_dsp_halt (int dev); |
dev | 221 | drivers/sound/sb16_dsp.c | sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 271 | drivers/sound/sb16_dsp.c | sb16_dsp_open (int dev, int mode) |
dev | 314 | drivers/sound/sb16_dsp.c | sb16_dsp_close (int dev) |
dev | 334 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 347 | drivers/sound/sb16_dsp.c | int pos, chan = sound_dsp_dmachan[dev]; |
dev | 358 | drivers/sound/sb16_dsp.c | if (sound_dma_automode[dev] && |
dev | 370 | drivers/sound/sb16_dsp.c | sb16_dsp_halt (dev); |
dev | 371 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 391 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
dev | 404 | drivers/sound/sb16_dsp.c | int pos, chan = sound_dsp_dmachan[dev]; |
dev | 415 | drivers/sound/sb16_dsp.c | if (sound_dma_automode[dev] && |
dev | 427 | drivers/sound/sb16_dsp.c | sb16_dsp_halt (dev); |
dev | 428 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 449 | drivers/sound/sb16_dsp.c | sb16_dsp_prepare_for_input (int dev, int bsize, int bcount) |
dev | 458 | drivers/sound/sb16_dsp.c | sb16_dsp_prepare_for_output (int dev, int bsize, int bcount) |
dev | 474 | drivers/sound/sb16_dsp.c | sb16_dsp_reset (int dev) |
dev | 487 | drivers/sound/sb16_dsp.c | sb16_dsp_halt (int dev) |
dev | 59 | drivers/sound/sb16_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 84 | drivers/sound/sb16_midi.c | sb16midi_open (int dev, int mode, |
dev | 85 | drivers/sound/sb16_midi.c | void (*input) (int dev, unsigned char data), |
dev | 86 | drivers/sound/sb16_midi.c | void (*output) (int dev) |
dev | 103 | drivers/sound/sb16_midi.c | sb16midi_close (int dev) |
dev | 109 | drivers/sound/sb16_midi.c | sb16midi_out (int dev, unsigned char midi_byte) |
dev | 143 | drivers/sound/sb16_midi.c | sb16midi_command (int dev, unsigned char midi_byte) |
dev | 149 | drivers/sound/sb16_midi.c | sb16midi_start_read (int dev) |
dev | 155 | drivers/sound/sb16_midi.c | sb16midi_end_read (int dev) |
dev | 161 | drivers/sound/sb16_midi.c | sb16midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 167 | drivers/sound/sb16_midi.c | sb16midi_kick (int dev) |
dev | 172 | drivers/sound/sb16_midi.c | sb16midi_buffer_status (int dev) |
dev | 346 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
dev | 355 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
dev | 357 | drivers/sound/sb_dsp.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 390 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
dev | 401 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
dev | 403 | drivers/sound/sb_dsp.c | if (sound_dsp_dmachan[dev] > 3) |
dev | 443 | drivers/sound/sb_dsp.c | sb_dsp_prepare_for_input (int dev, int bsize, int bcount) |
dev | 462 | drivers/sound/sb_dsp.c | sb_dsp_prepare_for_output (int dev, int bsize, int bcount) |
dev | 479 | drivers/sound/sb_dsp.c | sb_dsp_halt_xfer (int dev) |
dev | 518 | drivers/sound/sb_dsp.c | sb_dsp_open (int dev, int mode) |
dev | 547 | drivers/sound/sb_dsp.c | if (!DMAbuf_open_dma (dev)) |
dev | 563 | drivers/sound/sb_dsp.c | sb_dsp_close (int dev) |
dev | 565 | drivers/sound/sb_dsp.c | DMAbuf_close_dma (dev); |
dev | 575 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
dev | 629 | drivers/sound/sb_dsp.c | sb_dsp_reset (int dev) |
dev | 60 | drivers/sound/sb_midi.c | static void (*midi_input_intr) (int dev, unsigned char data); |
dev | 64 | drivers/sound/sb_midi.c | sb_midi_open (int dev, int mode, |
dev | 65 | drivers/sound/sb_midi.c | void (*input) (int dev, unsigned char data), |
dev | 66 | drivers/sound/sb_midi.c | void (*output) (int dev) |
dev | 117 | drivers/sound/sb_midi.c | my_dev = dev; |
dev | 127 | drivers/sound/sb_midi.c | sb_midi_close (int dev) |
dev | 140 | drivers/sound/sb_midi.c | sb_midi_out (int dev, unsigned char midi_byte) |
dev | 162 | drivers/sound/sb_midi.c | sb_midi_start_read (int dev) |
dev | 173 | drivers/sound/sb_midi.c | sb_midi_end_read (int dev) |
dev | 184 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
dev | 149 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
dev | 154 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
dev | 157 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
dev | 164 | drivers/sound/sb_mixer.c | sb_mixer_get (int dev) |
dev | 166 | drivers/sound/sb_mixer.c | if (!((1 << dev) & supported_devices)) |
dev | 169 | drivers/sound/sb_mixer.c | return levels[dev]; |
dev | 173 | drivers/sound/sb_mixer.c | sb_mixer_set (int dev, int value) |
dev | 186 | drivers/sound/sb_mixer.c | if (dev > 31) |
dev | 189 | drivers/sound/sb_mixer.c | if (!(supported_devices & (1 << dev))) /* Not supported */ |
dev | 192 | drivers/sound/sb_mixer.c | regoffs = (*iomap)[dev][LEFT_CHN].regno; |
dev | 198 | drivers/sound/sb_mixer.c | change_bits (&val, dev, LEFT_CHN, left); |
dev | 200 | drivers/sound/sb_mixer.c | levels[dev] = left | (left << 8); |
dev | 202 | drivers/sound/sb_mixer.c | if ((*iomap)[dev][RIGHT_CHN].regno != regoffs) /* Change register */ |
dev | 205 | drivers/sound/sb_mixer.c | regoffs = (*iomap)[dev][RIGHT_CHN].regno; |
dev | 213 | drivers/sound/sb_mixer.c | change_bits (&val, dev, RIGHT_CHN, right); |
dev | 216 | drivers/sound/sb_mixer.c | levels[dev] = left | (right << 8); |
dev | 300 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
dev | 77 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 82 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 84 | drivers/sound/sequencer.c | if (dev) /* Patch manager device */ |
dev | 85 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
dev | 120 | drivers/sound/sequencer.c | sequencer_midi_output (int dev) |
dev | 146 | drivers/sound/sequencer.c | sequencer_midi_input (int dev, unsigned char data) |
dev | 161 | drivers/sound/sequencer.c | event[2] = dev; |
dev | 168 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 175 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 177 | drivers/sound/sequencer.c | DEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count)); |
dev | 182 | drivers/sound/sequencer.c | if (dev) /* Patch manager device */ |
dev | 183 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
dev | 196 | drivers/sound/sequencer.c | dev = *(unsigned short *) &event[2]; |
dev | 197 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 200 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 203 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
dev | 234 | drivers/sound/sequencer.c | int dev = event[2]; |
dev | 236 | drivers/sound/sequencer.c | if (dev >= num_midis) |
dev | 238 | drivers/sound/sequencer.c | printk ("Sequencer Error: Nonexistent MIDI device %d\n", dev); |
dev | 244 | drivers/sound/sequencer.c | if ((err = midi_devs[dev]->open (dev, mode, |
dev | 248 | drivers/sound/sequencer.c | printk ("Sequencer Error: Unable to open Midi #%d\n", dev); |
dev | 252 | drivers/sound/sequencer.c | midi_opened[dev] = 1; |
dev | 305 | drivers/sound/sequencer.c | int dev = q[2]; |
dev | 307 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 310 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 316 | drivers/sound/sequencer.c | synth_devs[dev]->kill_note (dev, q[3], q[5]); |
dev | 323 | drivers/sound/sequencer.c | synth_devs[dev]->start_note (dev, q[3], q[4], q[5]); |
dev | 327 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, q[3], q[4]); |
dev | 331 | drivers/sound/sequencer.c | synth_devs[dev]->aftertouch (dev, q[3], q[4]); |
dev | 335 | drivers/sound/sequencer.c | synth_devs[dev]->panning (dev, q[3], (char) q[4]); |
dev | 339 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]); |
dev | 343 | drivers/sound/sequencer.c | synth_devs[dev]->volume_method (dev, q[3]); |
dev | 425 | drivers/sound/sequencer.c | int dev; |
dev | 427 | drivers/sound/sequencer.c | dev = q[2]; |
dev | 429 | drivers/sound/sequencer.c | if (!midi_devs[dev]->putc (dev, q[1])) |
dev | 442 | drivers/sound/sequencer.c | midi_written[dev] = 1; |
dev | 481 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
dev | 485 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 488 | drivers/sound/sequencer.c | DEB (printk ("sequencer_open(dev=%d)\n", dev)); |
dev | 496 | drivers/sound/sequencer.c | if (dev) /* Patch manager device */ |
dev | 500 | drivers/sound/sequencer.c | dev--; |
dev | 501 | drivers/sound/sequencer.c | if (pmgr_present[dev]) |
dev | 503 | drivers/sound/sequencer.c | if ((err = pmgr_open (dev)) < 0) |
dev | 506 | drivers/sound/sequencer.c | pmgr_present[dev] = 1; |
dev | 596 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
dev | 601 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 603 | drivers/sound/sequencer.c | DEB (printk ("sequencer_release(dev=%d)\n", dev)); |
dev | 605 | drivers/sound/sequencer.c | if (dev) /* Patch manager device */ |
dev | 607 | drivers/sound/sequencer.c | dev--; |
dev | 608 | drivers/sound/sequencer.c | pmgr_release (dev); |
dev | 609 | drivers/sound/sequencer.c | pmgr_present[dev] = 0; |
dev | 660 | drivers/sound/sequencer.c | midi_outc (int dev, unsigned char data) |
dev | 674 | drivers/sound/sequencer.c | while (n && !midi_devs[dev]->putc (dev, data)) |
dev | 725 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 731 | drivers/sound/sequencer.c | orig_dev = dev = dev >> 4; |
dev | 737 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 748 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 756 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 780 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 796 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 804 | drivers/sound/sequencer.c | dev = IOCTL_IN (arg); |
dev | 805 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 808 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 811 | drivers/sound/sequencer.c | if (!orig_dev && pmgr_present[dev]) |
dev | 812 | drivers/sound/sequencer.c | pmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0); |
dev | 814 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 827 | drivers/sound/sequencer.c | int dev = IOCTL_IN (arg); |
dev | 829 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 832 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 835 | drivers/sound/sequencer.c | return IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
dev | 841 | drivers/sound/sequencer.c | int dev = IOCTL_IN (arg); |
dev | 843 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 846 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev))) |
dev | 849 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 857 | drivers/sound/sequencer.c | int dev; |
dev | 860 | drivers/sound/sequencer.c | dev = inf.device; |
dev | 862 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 865 | drivers/sound/sequencer.c | if (!(synth_open_mask & (1 << dev)) && !orig_dev) |
dev | 868 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
dev | 875 | drivers/sound/sequencer.c | int dev; |
dev | 878 | drivers/sound/sequencer.c | dev = inf.device; |
dev | 880 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_midis) |
dev | 883 | drivers/sound/sequencer.c | IOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf)); |
dev | 891 | drivers/sound/sequencer.c | int dev, err; |
dev | 896 | drivers/sound/sequencer.c | dev = inf->device; |
dev | 898 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 904 | drivers/sound/sequencer.c | if (!synth_devs[dev]->pmgr_interface) |
dev | 910 | drivers/sound/sequencer.c | if ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1) |
dev | 925 | drivers/sound/sequencer.c | int dev, err; |
dev | 930 | drivers/sound/sequencer.c | dev = inf->device; |
dev | 932 | drivers/sound/sequencer.c | if (dev < 0 || dev >= num_synths) |
dev | 938 | drivers/sound/sequencer.c | if (!pmgr_present[dev]) |
dev | 944 | drivers/sound/sequencer.c | if ((err = pmgr_access (dev, inf)) < 0) |
dev | 960 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 973 | drivers/sound/sequencer.c | if (dev) /* Patch manager */ |
dev | 992 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 994 | drivers/sound/sequencer.c | dev = dev >> 4; |
dev | 1128 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 1134 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 1140 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
dev | 1146 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
dev | 1150 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 1157 | drivers/sound/sequencer.c | sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
dev | 1169 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
dev | 5 | drivers/sound/sound_calls.h | int DMAbuf_open(int dev, int mode); |
dev | 6 | drivers/sound/sound_calls.h | int DMAbuf_release(int dev, int mode); |
dev | 7 | drivers/sound/sound_calls.h | int DMAbuf_read (int dev, snd_rw_buf *user_buf, int count); |
dev | 8 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size); |
dev | 9 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
dev | 10 | drivers/sound/sound_calls.h | int DMAbuf_rmchars(int dev, int buff_no, int c); |
dev | 11 | drivers/sound/sound_calls.h | int DMAbuf_start_output(int dev, int buff_no, int l); |
dev | 12 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local); |
dev | 14 | drivers/sound/sound_calls.h | int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode); |
dev | 18 | drivers/sound/sound_calls.h | void DMAbuf_inputintr(int dev); |
dev | 19 | drivers/sound/sound_calls.h | void DMAbuf_outputintr(int dev, int underflow_flag); |
dev | 25 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 26 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 27 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
dev | 28 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
dev | 29 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
dev | 31 | drivers/sound/sound_calls.h | int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 38 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 39 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 40 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
dev | 41 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
dev | 42 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
dev | 44 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 51 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
dev | 58 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 59 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 60 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
dev | 61 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
dev | 62 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
dev | 64 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
dev | 65 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
dev | 74 | drivers/sound/sound_calls.h | int CMIDI_open (int dev, struct fileinfo *file); |
dev | 75 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 76 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 77 | drivers/sound/sound_calls.h | int CMIDI_close (int dev, struct fileinfo *file); |
dev | 87 | drivers/sound/sound_calls.h | int pro_midi_open(int dev, int mode); |
dev | 88 | drivers/sound/sound_calls.h | void pro_midi_close(int dev); |
dev | 89 | drivers/sound/sound_calls.h | int pro_midi_write(int dev, snd_rw_buf *uio); |
dev | 90 | drivers/sound/sound_calls.h | int pro_midi_read(int dev, snd_rw_buf *uio); |
dev | 100 | drivers/sound/sound_calls.h | void sound_dma_malloc(int dev); |
dev | 101 | drivers/sound/sound_calls.h | void sound_dma_free(int dev); |
dev | 104 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 105 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
dev | 106 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
dev | 107 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
dev | 108 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
dev | 185 | drivers/sound/sound_calls.h | int gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg); |
dev | 199 | drivers/sound/sound_calls.h | int pmgr_open(int dev); |
dev | 200 | drivers/sound/sound_calls.h | void pmgr_release(int dev); |
dev | 201 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
dev | 202 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
dev | 203 | drivers/sound/sound_calls.h | int pmgr_access(int dev, struct patmgr_info *rec); |
dev | 204 | drivers/sound/sound_calls.h | int pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2, |
dev | 242 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 244 | drivers/sound/sound_switch.c | DEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count)); |
dev | 246 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 255 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
dev | 259 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
dev | 264 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
dev | 268 | drivers/sound/sound_switch.c | printk ("Sound: Undefined minor device %d\n", dev); |
dev | 275 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
dev | 278 | drivers/sound/sound_switch.c | DEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count)); |
dev | 280 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 284 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
dev | 290 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
dev | 301 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
dev | 305 | drivers/sound/sound_switch.c | DEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount)); |
dev | 307 | drivers/sound/sound_switch.c | if ((dev >= SND_NDEVS) || (dev < 0)) |
dev | 309 | drivers/sound/sound_switch.c | printk ("Invalid minor device %d\n", dev); |
dev | 313 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 330 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
dev | 336 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
dev | 344 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
dev | 349 | drivers/sound/sound_switch.c | printk ("Invalid minor device %d\n", dev); |
dev | 353 | drivers/sound/sound_switch.c | sbc_devices[dev].usecount++; |
dev | 360 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
dev | 363 | drivers/sound/sound_switch.c | DEB (printk ("sound_release_sw(dev=%d)\n", dev)); |
dev | 365 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 378 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
dev | 383 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
dev | 390 | drivers/sound/sound_switch.c | audio_release (dev, file); |
dev | 394 | drivers/sound/sound_switch.c | printk ("Sound error: Releasing unknown device 0x%02x\n", dev); |
dev | 397 | drivers/sound/sound_switch.c | sbc_devices[dev].usecount--; |
dev | 402 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
dev | 405 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
dev | 407 | drivers/sound/sound_switch.c | switch (dev & 0x0f) |
dev | 415 | drivers/sound/sound_switch.c | if ((dev >> 4) >= num_mixers) |
dev | 418 | drivers/sound/sound_switch.c | return mixer_devs[dev >> 4]->ioctl (dev >> 4, cmd, arg); |
dev | 422 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
dev | 428 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
dev | 433 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
dev | 63 | drivers/sound/soundcard.c | int dev; |
dev | 65 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 66 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 68 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
dev | 74 | drivers/sound/soundcard.c | int dev; |
dev | 76 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 77 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 79 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
dev | 91 | drivers/sound/soundcard.c | int dev; |
dev | 93 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 94 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 96 | drivers/sound/soundcard.c | if (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS) |
dev | 102 | drivers/sound/soundcard.c | files[dev].mode = 0; |
dev | 105 | drivers/sound/soundcard.c | files[dev].mode = OPEN_READWRITE; |
dev | 107 | drivers/sound/soundcard.c | files[dev].mode = OPEN_READ; |
dev | 109 | drivers/sound/soundcard.c | files[dev].mode = OPEN_WRITE; |
dev | 111 | drivers/sound/soundcard.c | return sound_open_sw (dev, &files[dev]); |
dev | 117 | drivers/sound/soundcard.c | int dev; |
dev | 119 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 120 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 122 | drivers/sound/soundcard.c | sound_release_sw (dev, &files[dev]); |
dev | 129 | drivers/sound/soundcard.c | int dev; |
dev | 131 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 132 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 134 | drivers/sound/soundcard.c | return sound_ioctl_sw (dev, &files[dev], cmd, arg); |
dev | 140 | drivers/sound/soundcard.c | int dev; |
dev | 142 | drivers/sound/soundcard.c | dev = inode->i_rdev; |
dev | 143 | drivers/sound/soundcard.c | dev = MINOR (dev); |
dev | 145 | drivers/sound/soundcard.c | DEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type)); |
dev | 147 | drivers/sound/soundcard.c | switch (dev & 0x0f) |
dev | 150 | drivers/sound/soundcard.c | return sequencer_select (dev, &files[dev], sel_type, wait); |
dev | 282 | drivers/sound/soundcard.c | int i, dev; |
dev | 292 | drivers/sound/soundcard.c | for (dev = 0; dev < num_dspdevs; dev++) /* Enumerate devices */ |
dev | 293 | drivers/sound/soundcard.c | if (sound_buffcounts[dev] > 0 && sound_dsp_dmachan[dev] > 0) |
dev | 295 | drivers/sound/soundcard.c | if (sound_dma_automode[dev]) |
dev | 296 | drivers/sound/soundcard.c | sound_buffcounts[dev] = 1; |
dev | 298 | drivers/sound/soundcard.c | if (sound_dsp_dmachan[dev] > 3 && sound_buffsizes[dev] > 65536) |
dev | 305 | drivers/sound/soundcard.c | if (sound_buffsizes[dev] > dma_pagesize) |
dev | 306 | drivers/sound/soundcard.c | sound_buffsizes[dev] = dma_pagesize; |
dev | 307 | drivers/sound/soundcard.c | sound_buffsizes[dev] &= 0xfffff000; /* Truncate to n*4k */ |
dev | 308 | drivers/sound/soundcard.c | if (sound_buffsizes[dev] < 4096) |
dev | 309 | drivers/sound/soundcard.c | sound_buffsizes[dev] = 4096; |
dev | 313 | drivers/sound/soundcard.c | for (snd_raw_count[dev] = 0; snd_raw_count[dev] < sound_buffcounts[dev]; snd_raw_count[dev]++) |
dev | 315 | drivers/sound/soundcard.c | start_addr = mem_ptr - sound_buffsizes[dev]; |
dev | 316 | drivers/sound/soundcard.c | if (!valid_dma_page (start_addr, sound_buffsizes[dev], dma_pagesize)) |
dev | 320 | drivers/sound/soundcard.c | end_addr = start_addr + sound_buffsizes[dev] - 1; |
dev | 322 | drivers/sound/soundcard.c | snd_raw_buf[dev][snd_raw_count[dev]] = (char *) start_addr; |
dev | 323 | drivers/sound/soundcard.c | snd_raw_buf_phys[dev][snd_raw_count[dev]] = start_addr; |
dev | 30 | fs/block_dev.c | unsigned int dev; |
dev | 34 | fs/block_dev.c | dev = inode->i_rdev; |
dev | 36 | fs/block_dev.c | if (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)]) |
dev | 37 | fs/block_dev.c | blocksize = blksize_size[MAJOR(dev)][MINOR(dev)]; |
dev | 51 | fs/block_dev.c | if (blk_size[MAJOR(dev)]) |
dev | 52 | fs/block_dev.c | size = (blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits; |
dev | 64 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
dev | 66 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
dev | 71 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 72 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
dev | 76 | fs/block_dev.c | !read_ahead[MAJOR(dev)]) { |
dev | 79 | fs/block_dev.c | bh = bread(dev,block,blocksize); |
dev | 82 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2; |
dev | 91 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 93 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
dev | 139 | fs/block_dev.c | unsigned int dev; |
dev | 142 | fs/block_dev.c | dev = inode->i_rdev; |
dev | 144 | fs/block_dev.c | if (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)]) |
dev | 145 | fs/block_dev.c | blocksize = blksize_size[MAJOR(dev)][MINOR(dev)]; |
dev | 154 | fs/block_dev.c | if (blk_size[MAJOR(dev)]) |
dev | 155 | fs/block_dev.c | size = blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS; |
dev | 176 | fs/block_dev.c | if(blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9)) |
dev | 177 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9); |
dev | 203 | fs/block_dev.c | generate_cluster(dev, cluster_list, blocksize); |
dev | 206 | fs/block_dev.c | *bhb = getblk(dev, block++, blocksize); |
dev | 157 | fs/buffer.c | static int sync_buffers(dev_t dev, int wait) |
dev | 181 | fs/buffer.c | if (dev && bh->b_dev != dev) |
dev | 228 | fs/buffer.c | void sync_dev(dev_t dev) |
dev | 230 | fs/buffer.c | sync_buffers(dev, 0); |
dev | 231 | fs/buffer.c | sync_supers(dev); |
dev | 232 | fs/buffer.c | sync_inodes(dev); |
dev | 233 | fs/buffer.c | sync_buffers(dev, 0); |
dev | 236 | fs/buffer.c | int fsync_dev(dev_t dev) |
dev | 238 | fs/buffer.c | sync_buffers(dev, 0); |
dev | 239 | fs/buffer.c | sync_supers(dev); |
dev | 240 | fs/buffer.c | sync_inodes(dev); |
dev | 241 | fs/buffer.c | return sync_buffers(dev, 1); |
dev | 269 | fs/buffer.c | void invalidate_buffers(dev_t dev) |
dev | 279 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 282 | fs/buffer.c | if (bh->b_dev == dev) |
dev | 303 | fs/buffer.c | void check_disk_change(dev_t dev) |
dev | 308 | fs/buffer.c | switch(MAJOR(dev)){ |
dev | 310 | fs/buffer.c | if (!(bh = getblk(dev,0,1024))) |
dev | 318 | fs/buffer.c | i = check_scsidisk_media_change(dev, 0); |
dev | 324 | fs/buffer.c | i = check_cdrom_media_change(dev, 0); |
dev | 330 | fs/buffer.c | i = check_cdu31a_media_change(dev, 0); |
dev | 336 | fs/buffer.c | i = check_mcd_media_change(dev, 0); |
dev | 342 | fs/buffer.c | i = check_sbpcd_media_change(dev, 0); |
dev | 353 | fs/buffer.c | MAJOR(dev), MINOR(dev)); |
dev | 355 | fs/buffer.c | if (super_blocks[i].s_dev == dev) |
dev | 357 | fs/buffer.c | invalidate_inodes(dev); |
dev | 358 | fs/buffer.c | invalidate_buffers(dev); |
dev | 363 | fs/buffer.c | if (MAJOR(dev) == SCSI_DISK_MAJOR) |
dev | 364 | fs/buffer.c | revalidate_scsidisk(dev, 0); |
dev | 368 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash) |
dev | 369 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
dev | 505 | fs/buffer.c | static struct buffer_head * find_buffer(dev_t dev, int block, int size) |
dev | 509 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
dev | 510 | fs/buffer.c | if (tmp->b_dev==dev && tmp->b_blocknr==block) |
dev | 515 | fs/buffer.c | MAJOR(dev), MINOR(dev)); |
dev | 528 | fs/buffer.c | struct buffer_head * get_hash_table(dev_t dev, int block, int size) |
dev | 533 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
dev | 537 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
dev | 543 | fs/buffer.c | void set_blocksize(dev_t dev, int size) |
dev | 548 | fs/buffer.c | if (!blksize_size[MAJOR(dev)]) |
dev | 556 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) { |
dev | 557 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
dev | 560 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == size) |
dev | 562 | fs/buffer.c | sync_buffers(dev, 2); |
dev | 563 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
dev | 573 | fs/buffer.c | if (bh->b_dev != dev) |
dev | 579 | fs/buffer.c | if (bh->b_dev == dev && bh->b_size != size) { |
dev | 781 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
dev | 793 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
dev | 803 | fs/buffer.c | if (find_buffer(dev,block,size)) |
dev | 817 | fs/buffer.c | bh->b_dev=dev; |
dev | 893 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
dev | 897 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
dev | 899 | fs/buffer.c | MAJOR(dev), MINOR(dev)); |
dev | 920 | fs/buffer.c | struct buffer_head * breada(dev_t dev, int block, int bufsize, |
dev | 932 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
dev | 942 | fs/buffer.c | if (blocks > (read_ahead[MAJOR(dev)] >> index)) |
dev | 943 | fs/buffer.c | blocks = read_ahead[MAJOR(dev)] >> index; |
dev | 950 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
dev | 1077 | fs/buffer.c | dev_t dev, int *b, int size) |
dev | 1097 | fs/buffer.c | first = get_hash_table(dev, block, size); |
dev | 1118 | fs/buffer.c | dev_t dev, int b[], int size) |
dev | 1135 | fs/buffer.c | if (find_buffer(dev, block, size)) |
dev | 1148 | fs/buffer.c | bh->b_dev = dev; |
dev | 1188 | fs/buffer.c | dev_t dev, int *b, int size) |
dev | 1196 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
dev | 1198 | fs/buffer.c | return check_aligned(bh, address, dev, b, size); |
dev | 1199 | fs/buffer.c | return try_to_load_aligned(address, dev, b, size); |
dev | 1214 | fs/buffer.c | unsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot) |
dev | 1221 | fs/buffer.c | where = try_to_share_buffers(address,dev,b,size); |
dev | 1229 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
dev | 1517 | fs/buffer.c | dev_t dev, unsigned int starting_block) |
dev | 1546 | fs/buffer.c | p->b_dev=dev; |
dev | 1569 | fs/buffer.c | static int reassign_cluster(dev_t dev, |
dev | 1586 | fs/buffer.c | if (try_to_reassign(bh, &bh, dev, starting_block)) |
dev | 1596 | fs/buffer.c | static unsigned long try_to_generate_cluster(dev_t dev, int block, int size) |
dev | 1614 | fs/buffer.c | if (find_buffer(dev, nblock++, size)) |
dev | 1627 | fs/buffer.c | bh->b_dev = dev; |
dev | 1653 | fs/buffer.c | unsigned long generate_cluster(dev_t dev, int b[], int size) |
dev | 1659 | fs/buffer.c | if(find_buffer(dev, b[i], size)) return 0; |
dev | 1669 | fs/buffer.c | retval = try_to_generate_cluster(dev, b[0], size); |
dev | 1674 | fs/buffer.c | return try_to_generate_cluster(dev, b[0], size); |
dev | 1676 | fs/buffer.c | return reassign_cluster(dev, b[0], size); |
dev | 189 | fs/ext/freelists.c | dev_t dev; |
dev | 211 | fs/ext/freelists.c | dev = inode->i_dev; |
dev | 229 | fs/ext/freelists.c | if (!(bh = bread(dev, block, sb->s_blocksize))) |
dev | 62 | fs/ext/inode.c | int dev = s->s_dev,block; |
dev | 65 | fs/ext/inode.c | set_blocksize(dev, BLOCK_SIZE); |
dev | 66 | fs/ext/inode.c | if (!(bh = bread(dev, 1, BLOCK_SIZE))) { |
dev | 91 | fs/ext/inode.c | dev); |
dev | 97 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
dev | 108 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
dev | 118 | fs/ext/inode.c | s->s_dev = dev; |
dev | 26 | fs/ext2/dcache.c | unsigned short dev; |
dev | 55 | fs/ext2/dcache.c | #define hash(dev,dir) ((dev ^ dir) % HASH_QUEUES) |
dev | 84 | fs/ext2/dcache.c | static struct dir_cache_entry * find_name (int queue, unsigned short dev, |
dev | 90 | fs/ext2/dcache.c | for (p = queue_head[queue]; p != NULL && (p->dev != dev || |
dev | 109 | fs/ext2/dcache.c | p->dev, p->dir, p->name); |
dev | 179 | fs/ext2/dcache.c | void ext2_dcache_invalidate (unsigned short dev) |
dev | 188 | fs/ext2/dcache.c | if (p->dev == dev) { |
dev | 190 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
dev | 203 | fs/ext2/dcache.c | unsigned long ext2_dcache_lookup (unsigned short dev, unsigned long dir, |
dev | 217 | fs/ext2/dcache.c | printk ("dcache_lookup (%04x, %lu, %s, %d)\n", dev, dir, our_name, len); |
dev | 219 | fs/ext2/dcache.c | queue = hash (dev, dir); |
dev | 220 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, our_name, len))) { |
dev | 253 | fs/ext2/dcache.c | void ext2_dcache_add (unsigned short dev, unsigned long dir, const char * name, |
dev | 263 | fs/ext2/dcache.c | dev, dir, name, len, ino); |
dev | 267 | fs/ext2/dcache.c | queue = hash (dev, dir); |
dev | 268 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
dev | 291 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
dev | 294 | fs/ext2/dcache.c | p->dev = dev; |
dev | 313 | fs/ext2/dcache.c | void ext2_dcache_remove (unsigned short dev, unsigned long dir, |
dev | 322 | fs/ext2/dcache.c | printk ("dcache_remove (%04x, %lu, %s, %d)\n", dev, dir, name, len); |
dev | 326 | fs/ext2/dcache.c | queue = hash (dev, dir); |
dev | 327 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
dev | 362 | fs/ext2/super.c | int dev = sb->s_dev; |
dev | 377 | fs/ext2/super.c | set_blocksize (dev, BLOCK_SIZE); |
dev | 378 | fs/ext2/super.c | if (!(bh = bread (dev, sb_block, BLOCK_SIZE))) { |
dev | 401 | fs/ext2/super.c | MAJOR(dev), MINOR(dev)); |
dev | 412 | fs/ext2/super.c | set_blocksize (dev, sb->s_blocksize); |
dev | 415 | fs/ext2/super.c | bh = bread (dev, logic_sb_block, sb->s_blocksize); |
dev | 488 | fs/ext2/super.c | MAJOR(dev), MINOR(dev)); |
dev | 497 | fs/ext2/super.c | dev); |
dev | 526 | fs/ext2/super.c | sb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1, |
dev | 559 | fs/ext2/super.c | sb->s_dev = dev; |
dev | 239 | fs/hpfs/hpfs_fs.c | static unsigned count_one_bitmap(dev_t dev, secno secno); |
dev | 250 | fs/hpfs/hpfs_fs.c | static struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno, |
dev | 256 | fs/hpfs/hpfs_fs.c | static dnode_secno fnode_dno(dev_t dev, ino_t ino); |
dev | 257 | fs/hpfs/hpfs_fs.c | static struct fnode *map_fnode(dev_t dev, ino_t ino, |
dev | 259 | fs/hpfs/hpfs_fs.c | static struct anode *map_anode(dev_t dev, unsigned secno, |
dev | 261 | fs/hpfs/hpfs_fs.c | static struct dnode *map_dnode(dev_t dev, unsigned secno, |
dev | 263 | fs/hpfs/hpfs_fs.c | static void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp); |
dev | 264 | fs/hpfs/hpfs_fs.c | static void *map_4sectors(dev_t dev, unsigned secno, |
dev | 339 | fs/hpfs/hpfs_fs.c | dev_t dev; |
dev | 362 | fs/hpfs/hpfs_fs.c | dev = s->s_dev; |
dev | 363 | fs/hpfs/hpfs_fs.c | set_blocksize(dev, 512); |
dev | 369 | fs/hpfs/hpfs_fs.c | bootblock = map_sector(dev, 0, &bh0); |
dev | 373 | fs/hpfs/hpfs_fs.c | superblock = map_sector(dev, 16, &bh1); |
dev | 377 | fs/hpfs/hpfs_fs.c | spareblock = map_sector(dev, 17, &bh2); |
dev | 492 | fs/hpfs/hpfs_fs.c | root_dno = fnode_dno(dev, s->s_hpfs_root); |
dev | 838 | fs/hpfs/hpfs_fs.c | static unsigned count_one_bitmap(dev_t dev, secno secno) |
dev | 844 | fs/hpfs/hpfs_fs.c | bits = map_4sectors(dev, secno, &qbh); |
dev | 1539 | fs/hpfs/hpfs_fs.c | static struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno, |
dev | 1545 | fs/hpfs/hpfs_fs.c | struct dnode *dnode = map_dnode(dev, dno, qbh); |
dev | 1569 | fs/hpfs/hpfs_fs.c | static dnode_secno fnode_dno(dev_t dev, ino_t ino) |
dev | 1575 | fs/hpfs/hpfs_fs.c | fnode = map_fnode(dev, ino, &bh); |
dev | 1586 | fs/hpfs/hpfs_fs.c | static struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp) |
dev | 1595 | fs/hpfs/hpfs_fs.c | fnode = map_sector(dev, ino_secno(ino), bhp); |
dev | 1607 | fs/hpfs/hpfs_fs.c | static struct anode *map_anode(dev_t dev, unsigned secno, |
dev | 1617 | fs/hpfs/hpfs_fs.c | anode = map_sector(dev, secno, bhp); |
dev | 1629 | fs/hpfs/hpfs_fs.c | static struct dnode *map_dnode(dev_t dev, unsigned secno, |
dev | 1639 | fs/hpfs/hpfs_fs.c | dnode = map_4sectors(dev, secno, qbh); |
dev | 1651 | fs/hpfs/hpfs_fs.c | static void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp) |
dev | 1655 | fs/hpfs/hpfs_fs.c | if ((*bhp = bh = bread(dev, secno, 512)) != 0) |
dev | 1665 | fs/hpfs/hpfs_fs.c | static void *map_4sectors(dev_t dev, unsigned secno, |
dev | 1680 | fs/hpfs/hpfs_fs.c | qbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX); |
dev | 1685 | fs/hpfs/hpfs_fs.c | qbh->bh[1] = bh = bread(dev, secno + 1, 512); |
dev | 1690 | fs/hpfs/hpfs_fs.c | qbh->bh[2] = bh = bread(dev, secno + 2, 512); |
dev | 1695 | fs/hpfs/hpfs_fs.c | qbh->bh[3] = bh = bread(dev, secno + 3, 512); |
dev | 24 | fs/inode.c | static inline int const hashfn(dev_t dev, unsigned int i) |
dev | 26 | fs/inode.c | return (dev ^ i) % NR_IHASH; |
dev | 29 | fs/inode.c | static inline struct inode_hash_entry * const hash(dev_t dev, int i) |
dev | 31 | fs/inode.c | return hash_table + hashfn(dev, i); |
dev | 162 | fs/inode.c | int fs_may_mount(dev_t dev) |
dev | 171 | fs/inode.c | if (inode->i_dev != dev) |
dev | 180 | fs/inode.c | int fs_may_umount(dev_t dev, struct inode * mount_root) |
dev | 187 | fs/inode.c | if (inode->i_dev != dev || !inode->i_count) |
dev | 196 | fs/inode.c | int fs_may_remount_ro(dev_t dev) |
dev | 204 | fs/inode.c | file->f_inode->i_dev != dev) |
dev | 269 | fs/inode.c | void invalidate_inodes(dev_t dev) |
dev | 278 | fs/inode.c | if (inode->i_dev != dev) |
dev | 281 | fs/inode.c | printk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev)); |
dev | 288 | fs/inode.c | void sync_inodes(dev_t dev) |
dev | 295 | fs/inode.c | if (dev && inode->i_dev != dev) |
dev | 219 | fs/isofs/dir.c | cache.dev = inode->i_dev; |
dev | 130 | fs/isofs/inode.c | int dev=s->s_dev; |
dev | 154 | fs/isofs/inode.c | set_blocksize(dev, blocksize); |
dev | 161 | fs/isofs/inode.c | if (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), blocksize))) { |
dev | 164 | fs/isofs/inode.c | dev, iso_blknum); |
dev | 257 | fs/isofs/inode.c | s->s_dev = dev; |
dev | 688 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
dev | 690 | fs/isofs/inode.c | return bread(dev, block, size); |
dev | 229 | fs/isofs/namei.c | if (dir->i_dev == cache.dev && |
dev | 120 | fs/minix/inode.c | int i,dev=s->s_dev,block; |
dev | 125 | fs/minix/inode.c | if (!(bh = bread(dev,1,BLOCK_SIZE))) { |
dev | 156 | fs/minix/inode.c | printk("VFS: Can't find a minix filesystem on dev 0x%04x.\n", dev); |
dev | 165 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
dev | 170 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
dev | 189 | fs/minix/inode.c | s->s_dev = dev; |
dev | 384 | fs/namei.c | int do_mknod(const char * filename, int mode, dev_t dev) |
dev | 412 | fs/namei.c | error = dir->i_op->mknod(dir,basename,namelen,mode,dev); |
dev | 418 | fs/namei.c | asmlinkage int sys_mknod(const char * filename, int mode, dev_t dev) |
dev | 436 | fs/namei.c | error = do_mknod(tmp,mode,dev); |
dev | 175 | fs/nfs/dir.c | int dev; |
dev | 191 | fs/nfs/dir.c | if (entry->dev == dir->i_dev && entry->inode == dir->i_ino |
dev | 212 | fs/nfs/dir.c | entry->dev = 0; |
dev | 238 | fs/nfs/dir.c | entry->dev = dir->i_dev; |
dev | 251 | fs/nfs/dir.c | int dev; |
dev | 256 | fs/nfs/dir.c | dev = inode->i_dev; |
dev | 260 | fs/nfs/dir.c | dev = entry->dev; |
dev | 267 | fs/nfs/dir.c | if (entry->dev == dev && entry->fattr.fileid == fileid) |
dev | 268 | fs/nfs/dir.c | entry->dev = 0; |
dev | 276 | fs/nfs/dir.c | int dev = file->i_dev; |
dev | 282 | fs/nfs/dir.c | if (entry->dev == dev && entry->fattr.fileid == fileid) |
dev | 68 | fs/nfs/inode.c | dev_t dev = sb->s_dev; |
dev | 95 | fs/nfs/inode.c | sb->s_dev = dev; |
dev | 24 | fs/open.c | asmlinkage int sys_ustat(int dev, struct ustat * ubuf) |
dev | 416 | fs/proc/array.c | dev_t dev; |
dev | 447 | fs/proc/array.c | dev = map->vm_inode->i_dev; |
dev | 450 | fs/proc/array.c | dev = 0; |
dev | 456 | fs/proc/array.c | MAJOR(dev),MINOR(dev), ino); |
dev | 111 | fs/proc/link.c | unsigned int dev,ino; |
dev | 123 | fs/proc/link.c | dev = inode->i_dev; |
dev | 126 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
dev | 200 | fs/super.c | void sync_supers(dev_t dev) |
dev | 207 | fs/super.c | if (dev && sb->s_dev != dev) |
dev | 212 | fs/super.c | if (dev && (dev != sb->s_dev)) |
dev | 219 | fs/super.c | static struct super_block * get_super(dev_t dev) |
dev | 223 | fs/super.c | if (!dev) |
dev | 227 | fs/super.c | if (s->s_dev == dev) { |
dev | 229 | fs/super.c | if (s->s_dev == dev) |
dev | 237 | fs/super.c | void put_super(dev_t dev) |
dev | 241 | fs/super.c | if (dev == ROOT_DEV) { |
dev | 243 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 246 | fs/super.c | if (!(sb = get_super(dev))) |
dev | 250 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 257 | fs/super.c | static struct super_block * read_super(dev_t dev,char *name,int flags, |
dev | 263 | fs/super.c | if (!dev) |
dev | 265 | fs/super.c | check_disk_change(dev); |
dev | 266 | fs/super.c | s = get_super(dev); |
dev | 271 | fs/super.c | MAJOR(dev), MINOR(dev), name); |
dev | 280 | fs/super.c | s->s_dev = dev; |
dev | 286 | fs/super.c | s->s_dev = dev; |
dev | 319 | fs/super.c | static void put_unnamed_dev(dev_t dev) |
dev | 321 | fs/super.c | if (!dev) |
dev | 323 | fs/super.c | if (!unnamed_dev_in_use[dev]) { |
dev | 325 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 328 | fs/super.c | unnamed_dev_in_use[dev] = 0; |
dev | 331 | fs/super.c | static int do_umount(dev_t dev) |
dev | 336 | fs/super.c | if (dev==ROOT_DEV) { |
dev | 339 | fs/super.c | if (!(sb=get_super(dev))) |
dev | 342 | fs/super.c | fsync_dev(dev); |
dev | 349 | fs/super.c | if (!(sb=get_super(dev)) || !(sb->s_covered)) |
dev | 353 | fs/super.c | MAJOR(dev), MINOR(dev)); |
dev | 354 | fs/super.c | if (!fs_may_umount(dev, sb->s_mounted)) |
dev | 363 | fs/super.c | put_super(dev); |
dev | 381 | fs/super.c | dev_t dev; |
dev | 395 | fs/super.c | dev = inode->i_rdev; |
dev | 405 | fs/super.c | dev = inode->i_sb->s_dev; |
dev | 408 | fs/super.c | dummy_inode.i_rdev = dev; |
dev | 411 | fs/super.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 415 | fs/super.c | if (!(retval = do_umount(dev)) && dev != ROOT_DEV) { |
dev | 416 | fs/super.c | fops = get_blkfops(MAJOR(dev)); |
dev | 419 | fs/super.c | if (MAJOR(dev) == UNNAMED_MAJOR) |
dev | 420 | fs/super.c | put_unnamed_dev(dev); |
dev | 426 | fs/super.c | fsync_dev(dev); |
dev | 439 | fs/super.c | static int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data) |
dev | 456 | fs/super.c | if (!fs_may_mount(dev)) { |
dev | 460 | fs/super.c | sb = read_super(dev,type,flags,data,0); |
dev | 562 | fs/super.c | dev_t dev; |
dev | 601 | fs/super.c | dev = inode->i_rdev; |
dev | 602 | fs/super.c | if (MAJOR(dev) >= MAX_BLKDEV) { |
dev | 607 | fs/super.c | if (!(dev = get_unnamed_dev())) |
dev | 611 | fs/super.c | fops = get_blkfops(MAJOR(dev)); |
dev | 628 | fs/super.c | retval = do_mount(dev,dir_name,t,flags,(void *) page); |
dev | 270 | fs/sysv/inode.c | int dev = sb->s_dev; |
dev | 286 | fs/sysv/inode.c | if ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) { |
dev | 291 | fs/sysv/inode.c | if ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) { |
dev | 307 | fs/sysv/inode.c | if ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) { |
dev | 319 | fs/sysv/inode.c | printk("VFS: unable to read Xenix/SystemV/Coherent superblock on device %d/%d\n",MAJOR(dev),MINOR(dev)); |
dev | 325 | fs/sysv/inode.c | printk("VFS: Found a %s FS (block size = %d) on device %d/%d\n",found,sb->sv_block_size,MAJOR(dev),MINOR(dev)); |
dev | 328 | fs/sysv/inode.c | sb->s_dev = dev; |
dev | 64 | fs/xiafs/inode.c | int i, z, dev; |
dev | 66 | fs/xiafs/inode.c | dev=s->s_dev; |
dev | 69 | fs/xiafs/inode.c | set_blocksize(dev, BLOCK_SIZE); |
dev | 71 | fs/xiafs/inode.c | if (!(bh = bread(dev, 0, BLOCK_SIZE))) { |
dev | 85 | fs/xiafs/inode.c | dev); |
dev | 94 | fs/xiafs/inode.c | set_blocksize(dev, s->s_blocksize); |
dev | 95 | fs/xiafs/inode.c | bh = bread (dev, 0, s->s_blocksize); |
dev | 122 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
dev | 132 | fs/xiafs/inode.c | if (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s)))) |
dev | 138 | fs/xiafs/inode.c | s->s_dev = dev; |
dev | 31 | include/linux/etherdevice.h | extern int eth_header(unsigned char *buff, struct device *dev, |
dev | 35 | include/linux/etherdevice.h | extern int eth_rebuild_header(void *buff, struct device *dev, |
dev | 37 | include/linux/etherdevice.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 370 | include/linux/fs.h | extern int fs_may_mount(dev_t dev); |
dev | 371 | include/linux/fs.h | extern int fs_may_umount(dev_t dev, struct inode * mount_root); |
dev | 372 | include/linux/fs.h | extern int fs_may_remount_ro(dev_t dev); |
dev | 414 | include/linux/fs.h | extern void check_disk_change(dev_t dev); |
dev | 415 | include/linux/fs.h | extern void invalidate_inodes(dev_t dev); |
dev | 416 | include/linux/fs.h | extern void invalidate_buffers(dev_t dev); |
dev | 418 | include/linux/fs.h | extern void sync_inodes(dev_t dev); |
dev | 419 | include/linux/fs.h | extern void sync_dev(dev_t dev); |
dev | 420 | include/linux/fs.h | extern int fsync_dev(dev_t dev); |
dev | 421 | include/linux/fs.h | extern void sync_supers(dev_t dev); |
dev | 429 | include/linux/fs.h | extern int do_mknod(const char * filename, int mode, dev_t dev); |
dev | 437 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
dev | 438 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
dev | 440 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, int nr, char * buffer); |
dev | 441 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
dev | 443 | include/linux/fs.h | extern void set_blocksize(dev_t dev, int size); |
dev | 444 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
dev | 445 | include/linux/fs.h | extern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot); |
dev | 446 | include/linux/fs.h | extern struct buffer_head * breada(dev_t dev,int block, int size, |
dev | 448 | include/linux/fs.h | extern void put_super(dev_t dev); |
dev | 449 | include/linux/fs.h | unsigned long generate_cluster(dev_t dev, int b[], int size); |
dev | 172 | include/linux/iso_fs.h | extern int isofs_new_block(int dev); |
dev | 173 | include/linux/iso_fs.h | extern int isofs_free_block(int dev, int block); |
dev | 195 | include/linux/iso_fs.h | dev_t dev; /* And this matches */ |
dev | 211 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
dev | 113 | include/linux/msdos_fs.h | static inline struct buffer_head *msdos_sread(int dev,int sector,void **start) |
dev | 117 | include/linux/msdos_fs.h | if (!(bh = bread(dev,sector >> 1, 1024))) |
dev | 73 | include/linux/netdevice.h | int (*init)(struct device *dev); |
dev | 80 | include/linux/netdevice.h | struct enet_statistics* (*get_stats)(struct device *dev); |
dev | 120 | include/linux/netdevice.h | int (*open)(struct device *dev); |
dev | 121 | include/linux/netdevice.h | int (*stop)(struct device *dev); |
dev | 123 | include/linux/netdevice.h | struct device *dev); |
dev | 125 | include/linux/netdevice.h | struct device *dev, |
dev | 131 | include/linux/netdevice.h | int (*rebuild_header)(void *eth, struct device *dev, |
dev | 134 | include/linux/netdevice.h | struct device *dev); |
dev | 136 | include/linux/netdevice.h | void (*set_multicast_list)(struct device *dev, |
dev | 139 | include/linux/netdevice.h | int (*set_mac_address)(struct device *dev, void *addr); |
dev | 141 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr); |
dev | 143 | include/linux/netdevice.h | int (*set_config)(struct device *dev, struct ifmap *map); |
dev | 178 | include/linux/netdevice.h | extern int dev_open(struct device *dev); |
dev | 179 | include/linux/netdevice.h | extern int dev_close(struct device *dev); |
dev | 180 | include/linux/netdevice.h | extern void dev_queue_xmit(struct sk_buff *skb, struct device *dev, |
dev | 186 | include/linux/netdevice.h | struct device * dev); |
dev | 190 | include/linux/netdevice.h | extern void dev_tint(struct device *dev); |
dev | 198 | include/linux/netdevice.h | extern void ether_setup(struct device *dev); |
dev | 199 | include/linux/netdevice.h | extern int ether_config(struct device *dev, struct ifmap *map); |
dev | 201 | include/linux/netdevice.h | extern int register_netdev(struct device *dev); |
dev | 202 | include/linux/netdevice.h | extern void unregister_netdev(struct device *dev); |
dev | 190 | include/linux/ppp.h | struct device *dev; /* easy for intr handling */ |
dev | 48 | include/linux/skbuff.h | struct device *dev; |
dev | 519 | include/linux/soundcard.h | #define MIXER_READ(dev) _IOR('M', dev, int) |
dev | 542 | include/linux/soundcard.h | #define MIXER_WRITE(dev) _IOWR('M', dev, int) |
dev | 647 | include/linux/soundcard.h | #define PM_LOAD_PATCH(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \ |
dev | 648 | include/linux/soundcard.h | _pm_info.device=dev, _pm_info.data.data8[0]=pgm, \ |
dev | 651 | include/linux/soundcard.h | #define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \ |
dev | 652 | include/linux/soundcard.h | _pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \ |
dev | 656 | include/linux/soundcard.h | #define SEQ_VOLUME_MODE(dev, mode) {_SEQ_NEEDBUF(8);\ |
dev | 659 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 667 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, voice, note, vol) {_SEQ_NEEDBUF(8);\ |
dev | 670 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 678 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, voice, note, vol) {_SEQ_NEEDBUF(8);\ |
dev | 681 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 689 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, voice, pressure) {_SEQ_NEEDBUF(8);\ |
dev | 692 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 700 | include/linux/soundcard.h | #define SEQ_PANNING(dev, voice, pos) {_SEQ_NEEDBUF(8);\ |
dev | 703 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 711 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, voice, controller, value) {_SEQ_NEEDBUF(8);\ |
dev | 714 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 721 | include/linux/soundcard.h | #define SEQ_PITCHBEND(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) |
dev | 722 | include/linux/soundcard.h | #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value) |
dev | 723 | include/linux/soundcard.h | #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_EXPRESSION, value) |
dev | 724 | include/linux/soundcard.h | #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTRL_MAIN_VOLUME, value) |
dev | 732 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, voice, patch) {_SEQ_NEEDBUF(8);\ |
dev | 735 | include/linux/soundcard.h | _seqbuf[_seqbufptr+2] = (dev);\ |
dev | 354 | include/linux/sysv_fs.h | sysv_bread (struct super_block *sb, int dev, unsigned int block, char* * data) |
dev | 358 | include/linux/sysv_fs.h | if (!(bh = bread (dev, (block >> sb->sv_block_size_ratio_bits) + sb->sv_block_base, BLOCK_SIZE))) |
dev | 276 | include/linux/tpqic02.h | #define TP_DENS(dev) ((MINOR(dev) >> 1) & 0x07) /* tape density */ |
dev | 277 | include/linux/tpqic02.h | #define TP_UNIT(dev) ((MINOR(dev) >> 4) & 0x07) /* unit number */ |
dev | 278 | include/linux/tpqic02.h | #define TP_DIAGS(dev) (MINOR(dev) & 0x80) /* print excessive diagnostics */ |
dev | 117 | include/linux/xd.h | static int xd_reread_partitions (int dev); |
dev | 290 | net/inet/af_inet.c | skb->dev = NULL; |
dev | 75 | net/inet/arp.c | struct device *dev; /* Device the entry is tied to */ |
dev | 252 | net/inet/arp.c | struct device *dev, unsigned long src_ip, |
dev | 263 | net/inet/arp.c | if(dev->flags&IFF_NOARP) |
dev | 270 | net/inet/arp.c | skb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4) |
dev | 271 | net/inet/arp.c | + dev->hard_header_len, GFP_ATOMIC); |
dev | 277 | net/inet/arp.c | skb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4); |
dev | 279 | net/inet/arp.c | skb->dev = dev; |
dev | 286 | net/inet/arp.c | dev->hard_header(skb->data,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb); |
dev | 289 | net/inet/arp.c | arp = (struct arphdr *) (skb->data + dev->hard_header_len); |
dev | 290 | net/inet/arp.c | arp->ar_hrd = htons(dev->type); |
dev | 292 | net/inet/arp.c | arp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP); |
dev | 296 | net/inet/arp.c | arp->ar_hln = dev->addr_len; |
dev | 302 | net/inet/arp.c | memcpy(arp_ptr, src_hw, dev->addr_len); |
dev | 303 | net/inet/arp.c | arp_ptr+=dev->addr_len; |
dev | 307 | net/inet/arp.c | memcpy(arp_ptr, dest_hw, dev->addr_len); |
dev | 309 | net/inet/arp.c | memset(arp_ptr, 0, dev->addr_len); |
dev | 310 | net/inet/arp.c | arp_ptr+=dev->addr_len; |
dev | 313 | net/inet/arp.c | dev_queue_xmit(skb, dev, 0); |
dev | 347 | net/inet/arp.c | struct device *dev = entry->dev; |
dev | 354 | net/inet/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, |
dev | 355 | net/inet/arp.c | NULL, dev->dev_addr); |
dev | 411 | net/inet/arp.c | if(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb)) |
dev | 415 | net/inet/arp.c | dev_queue_xmit(skb, skb->dev, 0); |
dev | 417 | net/inet/arp.c | dev_queue_xmit(skb,skb->dev,skb->sk->priority); |
dev | 467 | net/inet/arp.c | int arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 490 | net/inet/arp.c | if (arp->ar_hln != dev->addr_len || |
dev | 491 | net/inet/arp.c | dev->type != ntohs(arp->ar_hrd) || |
dev | 492 | net/inet/arp.c | dev->flags & IFF_NOARP || |
dev | 505 | net/inet/arp.c | switch(dev->type) |
dev | 534 | net/inet/arp.c | hlen = dev->addr_len; |
dev | 535 | net/inet/arp.c | htype = dev->type; |
dev | 618 | net/inet/arp.c | arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha); |
dev | 634 | net/inet/arp.c | arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr); |
dev | 701 | net/inet/arp.c | entry->dev = skb->dev; |
dev | 721 | net/inet/arp.c | int arp_find(unsigned char *haddr, unsigned long paddr, struct device *dev, |
dev | 730 | net/inet/arp.c | memcpy(haddr, dev->dev_addr, dev->addr_len); |
dev | 734 | net/inet/arp.c | memcpy(haddr, dev->broadcast, dev->addr_len); |
dev | 770 | net/inet/arp.c | memcpy(haddr, entry->ha, dev->addr_len); |
dev | 786 | net/inet/arp.c | entry->hlen = dev->addr_len; |
dev | 787 | net/inet/arp.c | entry->htype = dev->type; |
dev | 789 | net/inet/arp.c | memset(entry->ha, 0, dev->addr_len); |
dev | 792 | net/inet/arp.c | entry->dev = dev; |
dev | 814 | net/inet/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, |
dev | 815 | net/inet/arp.c | dev->dev_addr); |
dev | 1016 | net/inet/arp.c | entry->dev = rt->rt_dev; |
dev | 7 | net/inet/arp.h | extern int arp_rcv(struct sk_buff *skb, struct device *dev, |
dev | 10 | net/inet/arp.h | struct device *dev, unsigned long saddr, struct sk_buff *skb); |
dev | 14 | net/inet/arp.h | struct device *dev, unsigned long src_ip, |
dev | 230 | net/inet/dev.c | struct device *dev; |
dev | 232 | net/inet/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 234 | net/inet/dev.c | if (strcmp(dev->name, name) == 0) |
dev | 235 | net/inet/dev.c | return(dev); |
dev | 245 | net/inet/dev.c | int dev_open(struct device *dev) |
dev | 252 | net/inet/dev.c | if (dev->open) |
dev | 253 | net/inet/dev.c | ret = dev->open(dev); |
dev | 260 | net/inet/dev.c | dev->flags |= (IFF_UP | IFF_RUNNING); |
dev | 275 | net/inet/dev.c | int dev_close(struct device *dev) |
dev | 281 | net/inet/dev.c | if (dev->flags != 0) |
dev | 284 | net/inet/dev.c | dev->flags = 0; |
dev | 288 | net/inet/dev.c | if (dev->stop) |
dev | 289 | net/inet/dev.c | dev->stop(dev); |
dev | 294 | net/inet/dev.c | ip_rt_flush(dev); |
dev | 297 | net/inet/dev.c | ipxrtr_device_down(dev); |
dev | 302 | net/inet/dev.c | dev->pa_addr = 0; |
dev | 303 | net/inet/dev.c | dev->pa_dstaddr = 0; |
dev | 304 | net/inet/dev.c | dev->pa_brdaddr = 0; |
dev | 305 | net/inet/dev.c | dev->pa_mask = 0; |
dev | 312 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[ct]))!=NULL) |
dev | 326 | net/inet/dev.c | void dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri) |
dev | 333 | net/inet/dev.c | if (dev == NULL) |
dev | 341 | net/inet/dev.c | if(dev->slave!=NULL && dev->slave->pkt_queue < dev->pkt_queue && |
dev | 342 | net/inet/dev.c | (dev->slave->flags & IFF_UP)) |
dev | 343 | net/inet/dev.c | dev=dev->slave; |
dev | 349 | net/inet/dev.c | skb->dev = dev; |
dev | 361 | net/inet/dev.c | dev->hard_start_xmit(NULL, dev); |
dev | 388 | net/inet/dev.c | if (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) { |
dev | 398 | net/inet/dev.c | skb_queue_tail(dev->buffs + pri,skb); |
dev | 399 | net/inet/dev.c | skb = skb_dequeue(dev->buffs + pri); |
dev | 406 | net/inet/dev.c | if (dev->hard_start_xmit(skb, dev) == 0) { |
dev | 408 | net/inet/dev.c | dev->pkt_queue--; |
dev | 419 | net/inet/dev.c | dev->pkt_queue++; |
dev | 421 | net/inet/dev.c | skb_queue_head(dev->buffs + pri,skb); |
dev | 493 | net/inet/dev.c | int dev_rint(unsigned char *buff, long len, int flags, struct device *dev) |
dev | 501 | net/inet/dev.c | if (dev == NULL || buff == NULL || len <= 0) |
dev | 522 | net/inet/dev.c | dev->name); |
dev | 538 | net/inet/dev.c | amount = min(len2, (unsigned long) dev->rmem_end - |
dev | 545 | net/inet/dev.c | if ((unsigned long) buff == dev->rmem_end) |
dev | 546 | net/inet/dev.c | buff = (unsigned char *) dev->rmem_start; |
dev | 555 | net/inet/dev.c | skb->dev = dev; |
dev | 572 | net/inet/dev.c | struct device *dev; |
dev | 574 | net/inet/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 576 | net/inet/dev.c | if (dev->flags != 0 && !dev->tbusy) { |
dev | 580 | net/inet/dev.c | dev_tint(dev); |
dev | 666 | net/inet/dev.c | skb->h.raw = skb->data + skb->dev->hard_header_len; |
dev | 667 | net/inet/dev.c | skb->len -= skb->dev->hard_header_len; |
dev | 680 | net/inet/dev.c | type = skb->dev->type_trans(skb, skb->dev); |
dev | 741 | net/inet/dev.c | ptype->func(skb2, skb->dev, ptype); |
dev | 782 | net/inet/dev.c | void dev_tint(struct device *dev) |
dev | 797 | net/inet/dev.c | while((skb=skb_dequeue(&dev->buffs[i]))!=NULL) |
dev | 803 | net/inet/dev.c | dev_queue_xmit(skb,dev,-i - 1); |
dev | 807 | net/inet/dev.c | if (dev->tbusy) |
dev | 824 | net/inet/dev.c | struct device *dev; |
dev | 853 | net/inet/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 855 | net/inet/dev.c | if(!(dev->flags & IFF_UP)) /* Downed devices don't count */ |
dev | 858 | net/inet/dev.c | strcpy(ifr.ifr_name, dev->name); |
dev | 859 | net/inet/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family; |
dev | 860 | net/inet/dev.c | (*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
dev | 899 | net/inet/dev.c | static int sprintf_stats(char *buffer, struct device *dev) |
dev | 901 | net/inet/dev.c | struct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL); |
dev | 906 | net/inet/dev.c | dev->name, |
dev | 917 | net/inet/dev.c | size = sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
dev | 934 | net/inet/dev.c | struct device *dev; |
dev | 944 | net/inet/dev.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 946 | net/inet/dev.c | size = sprintf_stats(buffer+len, dev); |
dev | 991 | net/inet/dev.c | struct device *dev; |
dev | 1008 | net/inet/dev.c | if ((dev = dev_get(ifr.ifr_name)) == NULL) |
dev | 1014 | net/inet/dev.c | ifr.ifr_flags = dev->flags; |
dev | 1020 | net/inet/dev.c | int old_flags = dev->flags; |
dev | 1022 | net/inet/dev.c | if(dev->flags&IFF_SLAVE) |
dev | 1025 | net/inet/dev.c | dev->flags = ifr.ifr_flags & ( |
dev | 1030 | net/inet/dev.c | if(!(dev->flags&IFF_MASTER) && dev->slave) |
dev | 1032 | net/inet/dev.c | dev->slave->flags&=~IFF_SLAVE; |
dev | 1033 | net/inet/dev.c | dev->slave=NULL; |
dev | 1040 | net/inet/dev.c | if ( (old_flags & IFF_PROMISC) && ((dev->flags & IFF_PROMISC) == 0)) |
dev | 1041 | net/inet/dev.c | dev->set_multicast_list(dev,0,NULL); |
dev | 1047 | net/inet/dev.c | if ( (dev->flags & IFF_PROMISC) && ((old_flags & IFF_PROMISC) == 0)) |
dev | 1048 | net/inet/dev.c | dev->set_multicast_list(dev,-1,NULL); |
dev | 1054 | net/inet/dev.c | if ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) |
dev | 1056 | net/inet/dev.c | ret = dev_close(dev); |
dev | 1064 | net/inet/dev.c | ret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP)) |
dev | 1065 | net/inet/dev.c | ? dev_open(dev) : 0; |
dev | 1070 | net/inet/dev.c | dev->flags&=~IFF_UP; /* Didnt open so down the if */ |
dev | 1077 | net/inet/dev.c | &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr; |
dev | 1079 | net/inet/dev.c | &ifr.ifr_addr).sin_family = dev->family; |
dev | 1087 | net/inet/dev.c | dev->pa_addr = (*(struct sockaddr_in *) |
dev | 1089 | net/inet/dev.c | dev->family = ifr.ifr_addr.sa_family; |
dev | 1094 | net/inet/dev.c | dev->pa_mask = ip_get_mask(dev->pa_addr); |
dev | 1096 | net/inet/dev.c | dev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask; |
dev | 1102 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr; |
dev | 1104 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_family = dev->family; |
dev | 1112 | net/inet/dev.c | dev->pa_brdaddr = (*(struct sockaddr_in *) |
dev | 1119 | net/inet/dev.c | &ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr; |
dev | 1121 | net/inet/dev.c | &ifr.ifr_broadaddr).sin_family = dev->family; |
dev | 1129 | net/inet/dev.c | dev->pa_dstaddr = (*(struct sockaddr_in *) |
dev | 1136 | net/inet/dev.c | &ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask; |
dev | 1138 | net/inet/dev.c | &ifr.ifr_netmask).sin_family = dev->family; |
dev | 1155 | net/inet/dev.c | dev->pa_mask = mask; |
dev | 1162 | net/inet/dev.c | ifr.ifr_metric = dev->metric; |
dev | 1168 | net/inet/dev.c | dev->metric = ifr.ifr_metric; |
dev | 1173 | net/inet/dev.c | ifr.ifr_mtu = dev->mtu; |
dev | 1186 | net/inet/dev.c | dev->mtu = ifr.ifr_mtu; |
dev | 1202 | net/inet/dev.c | memcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN); |
dev | 1208 | net/inet/dev.c | memcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN); |
dev | 1209 | net/inet/dev.c | ifr.ifr_hwaddr.sa_family=dev->type; |
dev | 1215 | net/inet/dev.c | if(dev->set_mac_address==NULL) |
dev | 1217 | net/inet/dev.c | if(ifr.ifr_hwaddr.sa_family!=dev->type) |
dev | 1219 | net/inet/dev.c | ret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data); |
dev | 1223 | net/inet/dev.c | if(dev->do_ioctl==NULL) |
dev | 1225 | net/inet/dev.c | return dev->do_ioctl(dev, &ifr); |
dev | 1228 | net/inet/dev.c | ifr.ifr_map.mem_start=dev->mem_start; |
dev | 1229 | net/inet/dev.c | ifr.ifr_map.mem_end=dev->mem_end; |
dev | 1230 | net/inet/dev.c | ifr.ifr_map.base_addr=dev->base_addr; |
dev | 1231 | net/inet/dev.c | ifr.ifr_map.irq=dev->irq; |
dev | 1232 | net/inet/dev.c | ifr.ifr_map.dma=dev->dma; |
dev | 1233 | net/inet/dev.c | ifr.ifr_map.port=dev->if_port; |
dev | 1239 | net/inet/dev.c | if(dev->set_config==NULL) |
dev | 1241 | net/inet/dev.c | return dev->set_config(dev,&ifr.ifr_map); |
dev | 1245 | net/inet/dev.c | if(dev->slave==NULL) |
dev | 1247 | net/inet/dev.c | strncpy(ifr.ifr_name,dev->name,sizeof(ifr.ifr_name)); |
dev | 1275 | net/inet/dev.c | if(dev->flags&IFF_SLAVE) |
dev | 1280 | net/inet/dev.c | if(dev->slave!=NULL) |
dev | 1290 | net/inet/dev.c | dev->slave=slave; |
dev | 1292 | net/inet/dev.c | dev->flags|=IFF_MASTER; |
dev | 1390 | net/inet/dev.c | struct device *dev, *dev2; |
dev | 1400 | net/inet/dev.c | for (dev = dev_base; dev != NULL; dev=dev->next) |
dev | 1402 | net/inet/dev.c | if (dev->init && dev->init(dev)) |
dev | 1409 | net/inet/dev.c | dev_base = dev->next; |
dev | 1411 | net/inet/dev.c | dev2->next = dev->next; |
dev | 1415 | net/inet/dev.c | dev2 = dev; |
dev | 115 | net/inet/devinet.c | struct device *dev; |
dev | 141 | net/inet/devinet.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 143 | net/inet/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 150 | net/inet/devinet.c | if ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/) |
dev | 156 | net/inet/devinet.c | if (addr == dev->pa_addr) |
dev | 162 | net/inet/devinet.c | if ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr) |
dev | 168 | net/inet/devinet.c | if (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) |
dev | 170 | net/inet/devinet.c | if ((addr & ~dev->pa_mask) == 0) |
dev | 172 | net/inet/devinet.c | if ((addr & ~dev->pa_mask) == ~dev->pa_mask) |
dev | 180 | net/inet/devinet.c | if (((addr ^ dev->pa_addr) & mask) == 0) |
dev | 204 | net/inet/devinet.c | struct device *dev; |
dev | 206 | net/inet/devinet.c | for (dev = dev_base; dev != NULL; dev = dev->next) |
dev | 208 | net/inet/devinet.c | if (dev->flags & IFF_LOOPBACK) |
dev | 209 | net/inet/devinet.c | return(dev->pa_addr); |
dev | 223 | net/inet/devinet.c | struct device *dev; |
dev | 225 | net/inet/devinet.c | for (dev = dev_base; dev; dev = dev->next) |
dev | 227 | net/inet/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 229 | net/inet/devinet.c | if (!(dev->flags & IFF_POINTOPOINT)) |
dev | 231 | net/inet/devinet.c | if (addr != dev->pa_dstaddr) |
dev | 233 | net/inet/devinet.c | return dev; |
dev | 235 | net/inet/devinet.c | for (dev = dev_base; dev; dev = dev->next) |
dev | 237 | net/inet/devinet.c | if (!(dev->flags & IFF_UP)) |
dev | 239 | net/inet/devinet.c | if (dev->flags & IFF_POINTOPOINT) |
dev | 241 | net/inet/devinet.c | if (dev->pa_mask & (addr ^ dev->pa_addr)) |
dev | 243 | net/inet/devinet.c | return dev; |
dev | 82 | net/inet/eth.c | int eth_header(unsigned char *buff, struct device *dev, unsigned short type, |
dev | 103 | net/inet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
dev | 105 | net/inet/eth.c | memcpy(eth->h_source,dev->dev_addr,dev->addr_len); |
dev | 111 | net/inet/eth.c | if (dev->flags & IFF_LOOPBACK) |
dev | 113 | net/inet/eth.c | memset(eth->h_dest, 0, dev->addr_len); |
dev | 114 | net/inet/eth.c | return(dev->hard_header_len); |
dev | 119 | net/inet/eth.c | memcpy(eth->h_dest,daddr,dev->addr_len); |
dev | 120 | net/inet/eth.c | return dev->hard_header_len; |
dev | 123 | net/inet/eth.c | return -dev->hard_header_len; |
dev | 133 | net/inet/eth.c | int eth_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
dev | 145 | net/inet/eth.c | memcpy(eth->h_source, dev->dev_addr, dev->addr_len); |
dev | 153 | net/inet/eth.c | return arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0; |
dev | 166 | net/inet/eth.c | unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev) |
dev | 173 | net/inet/eth.c | if(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0) |
dev | 179 | net/inet/eth.c | if(dev->flags&IFF_PROMISC) |
dev | 181 | net/inet/eth.c | if(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN)) |
dev | 27 | net/inet/eth.h | extern int eth_header(unsigned char *buff, struct device *dev, |
dev | 30 | net/inet/eth.h | extern int eth_rebuild_header(void *buff, struct device *dev); |
dev | 32 | net/inet/eth.h | struct device *dev); |
dev | 33 | net/inet/eth.h | extern unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev); |
dev | 90 | net/inet/icmp.c | void icmp_send(struct sk_buff *skb_in, int type, int code, struct device *dev) |
dev | 103 | net/inet/icmp.c | iph = (struct iphdr *) (skb_in->data + dev->hard_header_len); |
dev | 161 | net/inet/icmp.c | len = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) + |
dev | 176 | net/inet/icmp.c | offset = ip_build_header(skb, dev->pa_addr, iph->saddr, |
dev | 210 | net/inet/icmp.c | ip_queue_xmit(NULL, dev, skb, 1); |
dev | 288 | net/inet/icmp.c | struct device *dev, unsigned long source) |
dev | 311 | net/inet/icmp.c | ip, 0, icmph->un.gateway, dev,0); |
dev | 327 | net/inet/icmp.c | ip, 0, icmph->un.gateway, dev,0); |
dev | 349 | net/inet/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 361 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
dev | 403 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, dev, skb2, 1); |
dev | 416 | net/inet/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 427 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
dev | 481 | net/inet/icmp.c | ip_queue_xmit((struct sock *) NULL, dev, skb2, 1); |
dev | 493 | net/inet/icmp.c | static void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 506 | net/inet/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, |
dev | 518 | net/inet/icmp.c | size = dev->hard_header_len + 64 + len; |
dev | 559 | net/inet/icmp.c | memcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask)); |
dev | 564 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, dev, skb2, 1); |
dev | 575 | net/inet/icmp.c | int icmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt, |
dev | 636 | net/inet/icmp.c | icmp_redirect(icmph, skb1, dev, saddr); |
dev | 640 | net/inet/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 648 | net/inet/icmp.c | icmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 656 | net/inet/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 664 | net/inet/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
dev | 29 | net/inet/icmp.h | struct device *dev); |
dev | 30 | net/inet/icmp.h | extern int icmp_rcv(struct sk_buff *skb1, struct device *dev, |
dev | 158 | net/inet/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
dev | 162 | net/inet/ip.c | skb->dev = dev; |
dev | 164 | net/inet/ip.c | if (dev->hard_header) |
dev | 170 | net/inet/ip.c | mac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb); |
dev | 190 | net/inet/ip.c | struct device **dev, int type, struct options *opt, int len, int tos, int ttl) |
dev | 213 | net/inet/ip.c | if (*dev == NULL) |
dev | 225 | net/inet/ip.c | *dev = rt->rt_dev; |
dev | 265 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
dev | 273 | net/inet/ip.c | skb->dev = *dev; |
dev | 692 | net/inet/ip.c | ICMP_EXC_FRAGTIME, qp->dev); |
dev | 708 | net/inet/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
dev | 719 | net/inet/ip.c | skb->dev = qp->dev; |
dev | 760 | net/inet/ip.c | qp->dev = dev; |
dev | 890 | net/inet/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
dev | 937 | net/inet/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
dev | 957 | net/inet/ip.c | ptr = skb->data + dev->hard_header_len + ihl; |
dev | 1083 | net/inet/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
dev | 1098 | net/inet/ip.c | iph = (struct iphdr *) (raw + dev->hard_header_len); |
dev | 1108 | net/inet/ip.c | hlen += dev->hard_header_len; /* Total header size */ |
dev | 1109 | net/inet/ip.c | mtu = (dev->mtu - hlen); /* Size of data space */ |
dev | 1119 | net/inet/ip.c | icmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev); |
dev | 1132 | net/inet/ip.c | icmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev); |
dev | 1217 | net/inet/ip.c | skb2->h.raw+=dev->hard_header_len; |
dev | 1239 | net/inet/ip.c | ip_queue_xmit(sk, dev, skb2, 2); |
dev | 1252 | net/inet/ip.c | static void ip_forward(struct sk_buff *skb, struct device *dev, int is_frag) |
dev | 1277 | net/inet/ip.c | icmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, dev); |
dev | 1301 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, dev); |
dev | 1328 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, dev); |
dev | 1350 | net/inet/ip.c | if (dev == dev2) |
dev | 1427 | net/inet/ip.c | int ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 1523 | net/inet/ip.c | ip_forward(skb, dev, is_frag); |
dev | 1545 | net/inet/ip.c | skb=ip_defrag(iph,skb,dev); |
dev | 1612 | net/inet/ip.c | ipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr, |
dev | 1628 | net/inet/ip.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, dev); |
dev | 1645 | net/inet/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
dev | 1656 | net/inet/ip.c | if (dev == NULL) |
dev | 1669 | net/inet/ip.c | skb->dev = dev; |
dev | 1681 | net/inet/ip.c | ptr += dev->hard_header_len; |
dev | 1684 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
dev | 1703 | net/inet/ip.c | if(skb->len > dev->mtu) |
dev | 1705 | net/inet/ip.c | ip_fragment(sk,skb,dev,0); |
dev | 1781 | net/inet/ip.c | if (dev->flags & IFF_UP) |
dev | 1790 | net/inet/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 1794 | net/inet/ip.c | dev_queue_xmit(skb, dev, SOPRI_NORMAL); |
dev | 1815 | net/inet/ip.c | struct device *dev; |
dev | 1824 | net/inet/ip.c | dev = skb->dev; |
dev | 1843 | net/inet/ip.c | iph = (struct iphdr *)(skb->data + dev->hard_header_len); |
dev | 1859 | net/inet/ip.c | if (dev->flags & IFF_UP) |
dev | 1875 | net/inet/ip.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 62 | net/inet/ip.h | struct device *dev; /* Device - for icmp replies */ |
dev | 75 | net/inet/ip.h | struct device **dev, int type, |
dev | 79 | net/inet/ip.h | extern int ip_rcv(struct sk_buff *skb, struct device *dev, |
dev | 82 | net/inet/ip.h | struct device *dev, struct sk_buff *skb, |
dev | 203 | net/inet/ipx.c | ipxrtr_get_local_net(struct device *dev, unsigned short datalink) |
dev | 212 | net/inet/ipx.c | if((r->dev==dev) && (r->dlink_type == datalink)) |
dev | 276 | net/inet/ipx.c | struct device *dev; |
dev | 321 | net/inet/ipx.c | rt->dev=rt1->dev; |
dev | 325 | net/inet/ipx.c | dev=dev_get(r->ipx_device); |
dev | 326 | net/inet/ipx.c | if(dev==NULL) |
dev | 329 | net/inet/ipx.c | if(dev->addr_len>6) |
dev | 331 | net/inet/ipx.c | if(dev->addr_len<2) |
dev | 333 | net/inet/ipx.c | if (ipxrtr_get_local_net(dev, dlink_type) != NULL) |
dev | 343 | net/inet/ipx.c | rt->dev=dev; |
dev | 387 | net/inet/ipx.c | void ipxrtr_device_down(struct device *dev) |
dev | 393 | net/inet/ipx.c | if (tmp->dev == dev) { |
dev | 440 | net/inet/ipx.c | rt->router_node[3], rt->router_node[4], rt->router_node[5], rt->flags, rt->dev->name); |
dev | 740 | net/inet/ipx.c | nodestart = sk->ipx_source_addr.node + (6 - rt->dev->addr_len); |
dev | 741 | net/inet/ipx.c | memcpy(nodestart,rt->dev->dev_addr,rt->dev->addr_len); |
dev | 841 | net/inet/ipx.c | int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 876 | net/inet/ipx.c | ln = ipxrtr_get_local_net(dev, pt->type); |
dev | 884 | net/inet/ipx.c | memcpy(IPXaddr+(6 - dev->addr_len), dev->dev_addr, dev->addr_len); |
dev | 922 | net/inet/ipx.c | outgoing_size = rt->datalink->header_length + rt->dev->hard_header_len; |
dev | 954 | net/inet/ipx.c | skb2->dev = rt->dev; |
dev | 959 | net/inet/ipx.c | dev_queue_xmit(skb2,rt->dev,SOPRI_NORMAL); |
dev | 1008 | net/inet/ipx.c | struct device *dev; |
dev | 1079 | net/inet/ipx.c | dev=rt->dev; |
dev | 1082 | net/inet/ipx.c | size += dev->hard_header_len; |
dev | 1106 | net/inet/ipx.c | skb->dev=rt->dev; |
dev | 1114 | net/inet/ipx.c | memcpy(IPXaddr+(6 - skb->dev->addr_len), skb->dev->dev_addr, |
dev | 1115 | net/inet/ipx.c | skb->dev->addr_len); |
dev | 1141 | net/inet/ipx.c | if((dev->flags&IFF_LOOPBACK) || self_addressing) { |
dev | 1148 | net/inet/ipx.c | ipx_rcv(skb,dev,&pt); |
dev | 1164 | net/inet/ipx.c | + dev->hard_header_len; |
dev | 1166 | net/inet/ipx.c | ipx_rcv(skb2,dev,&pt); |
dev | 1168 | net/inet/ipx.c | dev_queue_xmit(skb,dev,SOPRI_NORMAL); |
dev | 55 | net/inet/ipx.h | struct device *dev; |
dev | 66 | net/inet/ipx.h | extern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt); |
dev | 67 | net/inet/ipx.h | extern void ipxrtr_device_down(struct device *dev); |
dev | 23 | net/inet/p8022.c | p8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 30 | net/inet/p8022.c | return proto->rcvfunc(skb, dev, pt); |
dev | 42 | net/inet/p8022.c | struct device *dev = skb->dev; |
dev | 44 | net/inet/p8022.c | unsigned long hard_len = dev->hard_header_len; |
dev | 47 | net/inet/p8022.c | dev->hard_header(skb->data, dev, len - hard_len, |
dev | 11 | net/inet/p8023.c | struct device *dev = skb->dev; |
dev | 13 | net/inet/p8023.c | unsigned long hard_len = dev->hard_header_len; |
dev | 15 | net/inet/p8023.c | dev->hard_header(skb->data, dev, len - hard_len, |
dev | 65 | net/inet/packet.c | int packet_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 82 | net/inet/packet.c | skb->dev = dev; |
dev | 83 | net/inet/packet.c | skb->len += dev->hard_header_len; |
dev | 126 | net/inet/packet.c | struct device *dev; |
dev | 169 | net/inet/packet.c | dev = dev_get(saddr.sa_data); |
dev | 170 | net/inet/packet.c | if (dev == NULL) |
dev | 180 | net/inet/packet.c | if(len>dev->mtu) |
dev | 213 | net/inet/packet.c | if (dev->flags & IFF_UP) |
dev | 214 | net/inet/packet.c | dev_queue_xmit(skb, dev, sk->priority); |
dev | 364 | net/inet/packet.c | addr.sa_family = skb->dev->type; |
dev | 365 | net/inet/packet.c | memcpy(addr.sa_data,skb->dev->name, 14); |
dev | 11 | net/inet/pe2.c | struct device *dev = skb->dev; |
dev | 13 | net/inet/pe2.c | unsigned long hard_len = dev->hard_header_len; |
dev | 15 | net/inet/pe2.c | dev->hard_header(skb->data, dev, ETH_P_IPX, |
dev | 31 | net/inet/protocol.h | int (*handler)(struct sk_buff *skb, struct device *dev, |
dev | 35 | net/inet/protocol.h | int (*frag_handler)(struct sk_buff *skb, struct device *dev, |
dev | 72 | net/inet/rarp.c | struct device *dev; /* Device the entry is tied to */ |
dev | 164 | net/inet/rarp.c | int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt) |
dev | 179 | net/inet/rarp.c | if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) |
dev | 180 | net/inet/rarp.c | || dev->flags&IFF_NOARP) |
dev | 201 | net/inet/rarp.c | (rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) || |
dev | 203 | net/inet/rarp.c | (rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) |
dev | 218 | net/inet/rarp.c | rarp_ptr+=dev->addr_len; |
dev | 222 | net/inet/rarp.c | rarp_ptr+=dev->addr_len; |
dev | 239 | net/inet/rarp.c | arp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, |
dev | 240 | net/inet/rarp.c | dev->dev_addr); |
dev | 340 | net/inet/rarp.c | entry->dev = rt->rt_dev; |
dev | 7 | net/inet/rarp.h | struct device *dev, |
dev | 91 | net/inet/raw.c | raw_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 117 | net/inet/raw.c | skb->dev = dev; |
dev | 144 | net/inet/raw.c | struct device *dev=NULL; |
dev | 227 | net/inet/raw.c | sin.sin_addr.s_addr, &dev, |
dev | 257 | net/inet/raw.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
dev | 26 | net/inet/raw.h | extern int raw_rcv(struct sk_buff *skb, struct device *dev, |
dev | 107 | net/inet/route.c | void ip_rt_flush(struct device *dev) |
dev | 117 | net/inet/route.c | if (r->rt_dev != dev) { |
dev | 152 | net/inet/route.c | static unsigned long guess_mask(unsigned long dst, struct device * dev) |
dev | 159 | net/inet/route.c | if ((dst ^ dev->pa_addr) & mask) |
dev | 161 | net/inet/route.c | return dev->pa_mask; |
dev | 198 | net/inet/route.c | unsigned long gw, struct device *dev, unsigned short mtu) |
dev | 219 | net/inet/route.c | if (!((dst ^ dev->pa_addr) & dev->pa_mask)) |
dev | 221 | net/inet/route.c | mask = dev->pa_mask; |
dev | 230 | net/inet/route.c | mask = guess_mask(dst, dev); |
dev | 238 | net/inet/route.c | if (gw == dev->pa_addr) |
dev | 247 | net/inet/route.c | if (dev != get_gw_dev(gw)) |
dev | 267 | net/inet/route.c | rt->rt_dev = dev; |
dev | 270 | net/inet/route.c | rt->rt_mtu = dev->mtu; |
dev | 356 | net/inet/route.c | struct device * dev = NULL; |
dev | 368 | net/inet/route.c | dev = dev_get(devname); |
dev | 370 | net/inet/route.c | if (!dev) |
dev | 397 | net/inet/route.c | if (!dev && (flags & RTF_GATEWAY)) |
dev | 405 | net/inet/route.c | dev = dev2; |
dev | 435 | net/inet/route.c | if (!dev) |
dev | 436 | net/inet/route.c | dev = get_gw_dev(gw); |
dev | 438 | net/inet/route.c | else if (!dev) |
dev | 439 | net/inet/route.c | dev = ip_dev_check(daddr); |
dev | 445 | net/inet/route.c | if (dev == NULL) |
dev | 452 | net/inet/route.c | ip_rt_add(flags, daddr, mask, gw, dev, r->rt_mtu); |
dev | 44 | net/inet/route.h | extern void ip_rt_flush(struct device *dev); |
dev | 46 | net/inet/route.h | unsigned long gw, struct device *dev, unsigned short); |
dev | 426 | net/inet/skbuff.c | if(skb->in_dev_queue && skb->dev!=NULL) |
dev | 427 | net/inet/skbuff.c | skb->dev->pkt_queue--; |
dev | 435 | net/inet/skbuff.c | if(skb->in_dev_queue && skb->dev!=NULL) |
dev | 436 | net/inet/skbuff.c | skb->dev->pkt_queue--; |
dev | 499 | net/inet/skbuff.c | if(x->in_dev_queue && x->dev!=NULL) |
dev | 500 | net/inet/skbuff.c | x->dev->pkt_queue--; |
dev | 543 | net/inet/skbuff.c | n->dev=skb->dev; |
dev | 415 | net/inet/sock.c | if (sk->prot->rcv) sk->prot->rcv(skb, skb->dev, sk->opt, |
dev | 205 | net/inet/sock.h | struct device **dev, int type, |
dev | 211 | net/inet/sock.h | struct device *dev, struct sk_buff *skb, |
dev | 216 | net/inet/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
dev | 599 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, 0); |
dev | 658 | net/inet/tcp.c | struct device *dev = NULL; |
dev | 686 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
dev | 736 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 776 | net/inet/tcp.c | struct device *dev = NULL; |
dev | 1021 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
dev | 1032 | net/inet/tcp.c | skb->dev = dev; |
dev | 1116 | net/inet/tcp.c | struct device *dev = NULL; |
dev | 1150 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 1178 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 1470 | net/inet/tcp.c | struct device *dev = NULL; |
dev | 1528 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
dev | 1559 | net/inet/tcp.c | buff->dev = dev; |
dev | 1590 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
dev | 1646 | net/inet/tcp.c | struct proto *prot, struct options *opt, struct device *dev, int tos, int ttl) |
dev | 1664 | net/inet/tcp.c | buff->dev = dev; |
dev | 1717 | net/inet/tcp.c | prot->queue_xmit(NULL, dev, buff, 1); |
dev | 1800 | net/inet/tcp.c | struct options *opt, struct device *dev) |
dev | 1817 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
dev | 1925 | net/inet/tcp.c | if ((saddr ^ daddr) & dev->pa_mask) |
dev | 1932 | net/inet/tcp.c | newsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE); |
dev | 2000 | net/inet/tcp.c | newsk->prot->queue_xmit(newsk, dev, buff, 0); |
dev | 2022 | net/inet/tcp.c | struct device *dev=NULL; |
dev | 2139 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
dev | 2165 | net/inet/tcp.c | buff->dev = dev; |
dev | 2189 | net/inet/tcp.c | prot->queue_xmit(sk, dev, buff, 0); |
dev | 2259 | net/inet/tcp.c | skb->dev->hard_header_len); |
dev | 2269 | net/inet/tcp.c | sk->prot->queue_xmit(sk, skb->dev, skb, skb->free); |
dev | 2725 | net/inet/tcp.c | sk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl); |
dev | 2982 | net/inet/tcp.c | unsigned long saddr, struct device *dev) |
dev | 3117 | net/inet/tcp.c | struct device *dev=NULL; |
dev | 3194 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 3231 | net/inet/tcp.c | if ((sk->saddr ^ sk->daddr) & dev->pa_mask) |
dev | 3244 | net/inet/tcp.c | sk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE); |
dev | 3268 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
dev | 3280 | net/inet/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
dev | 3321 | net/inet/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
dev | 3332 | net/inet/tcp.c | tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 3343 | net/inet/tcp.c | if (!dev) |
dev | 3381 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
dev | 3450 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) { |
dev | 3490 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl); |
dev | 3518 | net/inet/tcp.c | if (th->fin && tcp_fin(skb, sk, th, saddr, dev)) { |
dev | 3537 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
dev | 3550 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
dev | 3564 | net/inet/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev); |
dev | 3583 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) |
dev | 3625 | net/inet/tcp.c | sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
dev | 3653 | net/inet/tcp.c | sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
dev | 3702 | net/inet/tcp.c | if (th->fin) tcp_fin(skb, sk, th, saddr, dev); |
dev | 3725 | net/inet/tcp.c | tcp_fin(skb, sk, th, saddr, dev); |
dev | 3741 | net/inet/tcp.c | struct device *dev=NULL; |
dev | 3773 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
dev | 3807 | net/inet/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
dev | 119 | net/inet/tcp.h | extern int tcp_rcv(struct sk_buff *skb, struct device *dev, |
dev | 250 | net/inet/udp.c | struct device *dev; |
dev | 277 | net/inet/udp.c | dev = NULL; |
dev | 279 | net/inet/udp.c | &dev, IPPROTO_UDP, sk->opt, skb->mem_len,sk->ip_tos,sk->ip_ttl); |
dev | 295 | net/inet/udp.c | skb->dev = dev; |
dev | 325 | net/inet/udp.c | sk->prot->queue_xmit(sk, dev, skb, 1); |
dev | 574 | net/inet/udp.c | int udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, |
dev | 610 | net/inet/udp.c | icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, dev); |
dev | 630 | net/inet/udp.c | skb->dev = dev; |
dev | 43 | net/inet/udp.h | extern int udp_rcv(struct sk_buff *skb, struct device *dev, |