/linux-2.4.37.9/drivers/net/ |
D | dmfe.c | 339 struct dmfe_board_info *db; /* board information structure */ in dmfe_init_one() local 350 dev = alloc_etherdev(sizeof(*db)); in dmfe_init_one() 397 db = dev->priv; in dmfe_init_one() 400 …db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->… in dmfe_init_one() 401 …db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, &db->buf_pool_dma_pt… in dmfe_init_one() 403 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one() 404 db->first_tx_desc_dma = db->desc_pool_dma_ptr; in dmfe_init_one() 405 db->buf_pool_start = db->buf_pool_ptr; in dmfe_init_one() 406 db->buf_pool_dma_start = db->buf_pool_dma_ptr; in dmfe_init_one() 408 db->chip_id = ent->driver_data; in dmfe_init_one() [all …]
|
D | bsd_comp.c | 170 static int bsd_init (void *db, unsigned char *options, 219 bsd_clear(struct bsd_db *db) in bsd_clear() argument 221 db->clear_count++; in bsd_clear() 222 db->max_ent = FIRST-1; in bsd_clear() 223 db->n_bits = BSD_INIT_BITS; in bsd_clear() 224 db->bytes_out = 0; in bsd_clear() 225 db->in_count = 0; in bsd_clear() 226 db->ratio = 0; in bsd_clear() 227 db->checkpoint = CHECK_GAP; in bsd_clear() 244 static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument [all …]
|
/linux-2.4.37.9/drivers/isdn/ |
D | isdn_bsdcomp.c | 177 static void bsd_clear(struct bsd_db *db) in bsd_clear() argument 179 db->clear_count++; in bsd_clear() 180 db->max_ent = FIRST-1; in bsd_clear() 181 db->n_bits = BSD_INIT_BITS; in bsd_clear() 182 db->bytes_out = 0; in bsd_clear() 183 db->in_count = 0; in bsd_clear() 184 db->incomp_count = 0; in bsd_clear() 185 db->ratio = 0; in bsd_clear() 186 db->checkpoint = CHECK_GAP; in bsd_clear() 202 static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument [all …]
|
/linux-2.4.37.9/drivers/sound/ |
D | au1550_i2s.c | 312 struct dmabuf *db = &s->dma_dac; in stop_dac() local 317 if (db->stopped) in stop_dac() 333 au1xxx_dbdma_reset(db->dmanr); in stop_dac() 335 db->stopped = 1; in stop_dac() 343 struct dmabuf *db = &s->dma_adc; in stop_adc() local 348 if (db->stopped) in stop_adc() 364 au1xxx_dbdma_reset(db->dmanr); in stop_adc() 366 db->stopped = 1; in stop_adc() 391 struct dmabuf *db = &s->dma_dac; in start_dac() local 395 if (!db->stopped) in start_dac() [all …]
|
D | au1550_psc.c | 469 struct dmabuf *db = &s->dma_dac; in stop_dac() local 473 if (db->stopped) in stop_dac() 488 au1xxx_dbdma_reset(db->dmanr); in stop_dac() 490 db->stopped = 1; in stop_dac() 498 struct dmabuf *db = &s->dma_adc; in stop_adc() local 502 if (db->stopped) in stop_adc() 517 au1xxx_dbdma_reset(db->dmanr); in stop_adc() 519 db->stopped = 1; in stop_adc() 603 struct dmabuf *db = &s->dma_dac; in start_dac() local 606 if (!db->stopped) in start_dac() [all …]
|
D | au1000.c | 437 struct dmabuf *db = &s->dma_dac; in stop_dac() local 440 if (db->stopped) in stop_dac() 445 disable_dma(db->dmanr); in stop_dac() 447 db->stopped = 1; in stop_dac() 454 struct dmabuf *db = &s->dma_adc; in stop_adc() local 457 if (db->stopped) in stop_adc() 462 disable_dma(db->dmanr); in stop_adc() 464 db->stopped = 1; in stop_adc() 505 struct dmabuf *db = &s->dma_dac; in start_dac() local 509 if (!db->stopped) in start_dac() [all …]
|
D | nec_vrc5477.c | 408 struct dmabuf* db = &s->dma_dac; in stop_dac() local 414 if (db->stopped) { in stop_dac() 441 db->stopped = 1; in stop_dac() 448 struct dmabuf* db = &s->dma_dac; in start_dac() local 455 if (!db->stopped) { in start_dac() 461 ASSERT(db->count >= db->fragSize); in start_dac() 473 outl(db->lbufDma + db->nextOut, s->io + VRC5477_DAC1_BADDR); in start_dac() 475 outl(db->lbufDma + db->nextOut, s->io + VRC5477_DAC2_BADDR); in start_dac() 477 outl(db->rbufDma + db->nextOut, s->io + VRC5477_DAC2_BADDR); in start_dac() 481 dmaLength = db->fragSize >> 4; in start_dac() [all …]
|
D | ite8172.c | 537 struct dmabuf* db = &s->dma_adc; in stop_adc() local 541 if (db->stopped) in stop_adc() 554 db->stopped = 1; in stop_adc() 561 struct dmabuf* db = &s->dma_dac; in stop_dac() local 565 if (db->stopped) in stop_dac() 578 db->stopped = 1; in stop_dac() 585 struct dmabuf* db = &s->dma_dac; in start_dac() local 590 if (!db->stopped) in start_dac() 596 buf1 = virt_to_bus(db->nextOut); in start_dac() 597 buf2 = buf1 + db->fragsize; in start_dac() [all …]
|
D | maestro3.c | 740 struct dmabuf *db = &s->dma_dac; in m3_play_setup() local 844 if(db->in_lists == 0) { in m3_play_setup() 846 db->msrc_index = m3_add_list(s->card, &s->card->msrc_list, in m3_play_setup() 849 db->dma_index = m3_add_list(s->card, &s->card->dma_list, in m3_play_setup() 852 db->mixer_index = m3_add_list(s->card, &s->card->mixer_list, in m3_play_setup() 855 db->in_lists = 1; in m3_play_setup() 900 struct dmabuf *db = &s->dma_adc; in m3_rec_setup() local 996 if(db->in_lists == 0) { in m3_rec_setup() 998 db->adc1_index = m3_add_list(s->card, &s->card->adc1_list, in m3_rec_setup() 1001 db->dma_index = m3_add_list(s->card, &s->card->dma_list, in m3_rec_setup() [all …]
|
D | sonicvibes.c | 704 static void dealloc_dmabuf(struct sv_state *s, struct dmabuf *db) in dealloc_dmabuf() argument 708 if (db->rawbuf) { in dealloc_dmabuf() 710 pend = virt_to_page(db->rawbuf + (PAGE_SIZE << db->buforder) - 1); in dealloc_dmabuf() 711 for (page = virt_to_page(db->rawbuf); page <= pend; page++) in dealloc_dmabuf() 713 pci_free_consistent(s->dev, PAGE_SIZE << db->buforder, db->rawbuf, db->dmaaddr); in dealloc_dmabuf() 715 db->rawbuf = NULL; in dealloc_dmabuf() 716 db->mapped = db->ready = 0; in dealloc_dmabuf() 724 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() local 745 db->hwptr = db->swptr = db->total_bytes = db->count = db->error = db->endcleared = 0; in prog_dmabuf() 746 if (!db->rawbuf) { in prog_dmabuf() [all …]
|
D | esssolo1.c | 418 static inline void dealloc_dmabuf(struct solo1_state *s, struct dmabuf *db) in dealloc_dmabuf() argument 422 if (db->rawbuf) { in dealloc_dmabuf() 424 pend = virt_to_page(db->rawbuf + (PAGE_SIZE << db->buforder) - 1); in dealloc_dmabuf() 425 for (page = virt_to_page(db->rawbuf); page <= pend; page++) in dealloc_dmabuf() 427 pci_free_consistent(s->dev, PAGE_SIZE << db->buforder, db->rawbuf, db->dmaaddr); in dealloc_dmabuf() 429 db->rawbuf = NULL; in dealloc_dmabuf() 430 db->mapped = db->ready = 0; in dealloc_dmabuf() 433 static int prog_dmabuf(struct solo1_state *s, struct dmabuf *db) in prog_dmabuf() argument 440 db->hwptr = db->swptr = db->total_bytes = db->count = db->error = db->endcleared = 0; in prog_dmabuf() 441 if (!db->rawbuf) { in prog_dmabuf() [all …]
|
D | es1370.c | 553 static inline void dealloc_dmabuf(struct es1370_state *s, struct dmabuf *db) in dealloc_dmabuf() argument 557 if (db->rawbuf) { in dealloc_dmabuf() 559 pend = virt_to_page(db->rawbuf + (PAGE_SIZE << db->buforder) - 1); in dealloc_dmabuf() 560 for (page = virt_to_page(db->rawbuf); page <= pend; page++) in dealloc_dmabuf() 562 pci_free_consistent(s->dev, PAGE_SIZE << db->buforder, db->rawbuf, db->dmaaddr); in dealloc_dmabuf() 564 db->rawbuf = NULL; in dealloc_dmabuf() 565 db->mapped = db->ready = 0; in dealloc_dmabuf() 568 static int prog_dmabuf(struct es1370_state *s, struct dmabuf *db, unsigned rate, unsigned fmt, unsi… in prog_dmabuf() argument 575 db->hwptr = db->swptr = db->total_bytes = db->count = db->error = db->endcleared = 0; in prog_dmabuf() 576 if (!db->rawbuf) { in prog_dmabuf() [all …]
|
D | es1371.c | 888 static inline void dealloc_dmabuf(struct es1371_state *s, struct dmabuf *db) in dealloc_dmabuf() argument 892 if (db->rawbuf) { in dealloc_dmabuf() 894 pend = virt_to_page(db->rawbuf + (PAGE_SIZE << db->buforder) - 1); in dealloc_dmabuf() 895 for (page = virt_to_page(db->rawbuf); page <= pend; page++) in dealloc_dmabuf() 897 pci_free_consistent(s->dev, PAGE_SIZE << db->buforder, db->rawbuf, db->dmaaddr); in dealloc_dmabuf() 899 db->rawbuf = NULL; in dealloc_dmabuf() 900 db->mapped = db->ready = 0; in dealloc_dmabuf() 903 static int prog_dmabuf(struct es1371_state *s, struct dmabuf *db, unsigned rate, unsigned fmt, unsi… in prog_dmabuf() argument 910 db->hwptr = db->swptr = db->total_bytes = db->count = db->error = db->endcleared = 0; in prog_dmabuf() 911 if (!db->rawbuf) { in prog_dmabuf() [all …]
|
D | cmpci.c | 1210 static void dealloc_dmabuf(struct dmabuf *db) in dealloc_dmabuf() argument 1214 if (db->rawbuf) { in dealloc_dmabuf() 1216 pend = virt_to_page(db->rawbuf + (PAGE_SIZE << db->buforder) - 1); in dealloc_dmabuf() 1217 for (pstart = virt_to_page(db->rawbuf); pstart <= pend; pstart++) in dealloc_dmabuf() 1219 free_pages((unsigned long)db->rawbuf, db->buforder); in dealloc_dmabuf() 1221 db->rawbuf = NULL; in dealloc_dmabuf() 1222 db->mapped = db->ready = 0; in dealloc_dmabuf() 1229 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() local 1248 db->hwptr = db->swptr = db->total_bytes = db->count = db->error = db->endcleared = 0; in prog_dmabuf() 1249 if (!db->rawbuf) { in prog_dmabuf() [all …]
|
D | maestro.c | 1737 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() local 1756 db->hwptr = db->swptr = db->total_bytes = db->count = db->error = db->endcleared = 0; in prog_dmabuf() 1760 bufs = PAGE_SIZE << db->buforder; in prog_dmabuf() 1761 if (db->ossfragshift) { in prog_dmabuf() 1762 if ((1000 << db->ossfragshift) < bytepersec) in prog_dmabuf() 1763 db->fragshift = ld2(bytepersec/1000); in prog_dmabuf() 1765 db->fragshift = db->ossfragshift; in prog_dmabuf() 1767 db->fragshift = ld2(bytepersec/100/(db->subdivision ? db->subdivision : 1)); in prog_dmabuf() 1768 if (db->fragshift < 3) in prog_dmabuf() 1769 db->fragshift = 3; in prog_dmabuf() [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_dir2_node.h | 89 xfs_dir2_db_to_fdb(struct xfs_mount *mp, xfs_dir2_db_t db); 90 #define XFS_DIR2_DB_TO_FDB(mp,db) xfs_dir2_db_to_fdb(mp, db) argument 92 #define XFS_DIR2_DB_TO_FDB(mp,db) \ argument 93 (XFS_DIR2_FREE_FIRSTDB(mp) + (db) / XFS_DIR2_MAX_FREE_BESTS(mp)) 101 xfs_dir2_db_to_fdindex(struct xfs_mount *mp, xfs_dir2_db_t db); 102 #define XFS_DIR2_DB_TO_FDINDEX(mp,db) xfs_dir2_db_to_fdindex(mp, db) argument 104 #define XFS_DIR2_DB_TO_FDINDEX(mp,db) ((db) % XFS_DIR2_MAX_FREE_BESTS(mp)) argument
|
D | xfs_dir2_leaf.h | 207 xfs_dir2_db_off_to_byte(struct xfs_mount *mp, xfs_dir2_db_t db, 209 #define XFS_DIR2_DB_OFF_TO_BYTE(mp,db,o) \ argument 210 xfs_dir2_db_off_to_byte(mp, db, o) 212 #define XFS_DIR2_DB_OFF_TO_BYTE(mp,db,o) \ argument 213 (((xfs_dir2_off_t)(db) << \ 259 xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db, 261 #define XFS_DIR2_DB_OFF_TO_DATAPTR(mp,db,o) \ argument 262 xfs_dir2_db_off_to_dataptr(mp, db, o) 264 #define XFS_DIR2_DB_OFF_TO_DATAPTR(mp,db,o) \ argument 265 XFS_DIR2_BYTE_TO_DATAPTR(mp, XFS_DIR2_DB_OFF_TO_BYTE(mp, db, o)) [all …]
|
/linux-2.4.37.9/drivers/usb/storage/ |
D | scsiglue.c | 499 int sb=0,si=0,db=0,di=0; in usb_stor_scsiSense10to6() local 577 db=i; in usb_stor_scsiSense10to6() 600 db >= the10->use_sg || in usb_stor_scsiSense10to6() 601 di >= sg[db].length ) in usb_stor_scsiSense10to6() 609 sg[db].address[di] = sg[sb].address[si]; in usb_stor_scsiSense10to6() 612 if ( sg[db].length-1 == di ) in usb_stor_scsiSense10to6() 614 db++; in usb_stor_scsiSense10to6() 639 if ( db >= the10->use_sg || in usb_stor_scsiSense10to6() 640 di >= sg[db].length ) in usb_stor_scsiSense10to6() 647 sg[db].address[di] = 0; in usb_stor_scsiSense10to6() [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | modedb.c | 339 const struct fb_videomode *db, unsigned int dbsize, in fb_find_mode() argument 346 if (!db) { in fb_find_mode() 347 db = modedb; in fb_find_mode() 404 if ((name_matches(db[j], name, namelen) || in fb_find_mode() 405 (res_specified && res_matches(db[j], xres, yres))) && in fb_find_mode() 406 (!i || db[j].refresh == refresh) && in fb_find_mode() 407 __fb_try_mode(var, info, &db[j], bpp)) in fb_find_mode() 418 if (__fb_try_mode(var, info, &db[i], default_bpp)) in fb_find_mode()
|
/linux-2.4.37.9/drivers/usb/ |
D | audio.c | 508 static void dmabuf_release(struct dmabuf *db) in dmabuf_release() argument 514 if (!(p = db->sgbuf[nr])) in dmabuf_release() 518 db->sgbuf[nr] = NULL; in dmabuf_release() 520 db->mapped = db->ready = 0; in dmabuf_release() 523 static int dmabuf_init(struct dmabuf *db) in dmabuf_init() argument 529 db->rdptr = db->wrptr = db->total_bytes = db->count = db->error = 0; in dmabuf_init() 531 bytepersec = db->srate * AFMT_SAMPLEBYTES(db->format); in dmabuf_init() 533 if (db->ossfragshift) { in dmabuf_init() 534 if ((1000 << db->ossfragshift) < bytepersec) in dmabuf_init() 535 db->fragshift = ld2(bytepersec/1000); in dmabuf_init() [all …]
|
/linux-2.4.37.9/drivers/ieee1394/ |
D | amdtp.c | 123 struct descriptor_block *db; member 379 pl->packets[PACKET_LIST_SIZE - 1].db->payload_desc.branch = 0; in stream_put_dma_packet_list() 388 last->db->payload_desc.branch = pl->packets[0].db_bus | 3; in stream_put_dma_packet_list() 389 last->db->header_desc.skip = pl->packets[0].db_bus | 3; in stream_put_dma_packet_list() 423 if (last->db->payload_desc.status == 0) { in stream_shift_packet_lists() 431 if (last->db->payload_desc.branch == 0) in stream_shift_packet_lists() 442 diff = (last->db->payload_desc.status - pl->last_cycle_count) & 0xf; in stream_shift_packet_lists() 541 p->db->header_desc.control = in packet_initialize() 545 p->db->payload_desc.control = in packet_initialize() 547 p->db->payload_desc.branch = next->db_bus | 3; in packet_initialize() [all …]
|
/linux-2.4.37.9/drivers/sound/cs4281/ |
D | cs4281m.c | 1748 extern void dealloc_dmabuf(struct cs4281_state *s, struct dmabuf *db) in dealloc_dmabuf() argument 1752 if (db->rawbuf) { in dealloc_dmabuf() 1754 mapend = virt_to_page(db->rawbuf + in dealloc_dmabuf() 1755 (PAGE_SIZE << db->buforder) - 1); in dealloc_dmabuf() 1756 for (map = virt_to_page(db->rawbuf); map <= mapend; map++) in dealloc_dmabuf() 1758 pci_free_consistent(s->pcidev, PAGE_SIZE << db->buforder, in dealloc_dmabuf() 1759 db->rawbuf, db->dmaaddr); in dealloc_dmabuf() 1761 if (s->tmpbuff && (db->type == CS_TYPE_ADC)) { in dealloc_dmabuf() 1771 db->rawbuf = NULL; in dealloc_dmabuf() 1772 db->mapped = db->ready = 0; in dealloc_dmabuf() [all …]
|
/linux-2.4.37.9/drivers/net/skfp/ |
D | ess.c | 131 SMbuf *db ; local 213 if (!(db = smt_get_mbuf(smc))) 216 db->sm_len = mb->sm_len ; 217 db->sm_off = mb->sm_off ; 218 memcpy(((char *)(db->sm_data+db->sm_off)),(char *)sm, 219 (int)db->sm_len) ; 221 (struct smt_header *)(db->sm_data+db->sm_off), 223 smt_send_frame(smc,db,FC_SMT_INFO,0) ;
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | prom.c | 591 struct device_node *db; in interpret_dbdma_props() local 594 for (db = np->parent; db != NULL; db = db->parent) { in interpret_dbdma_props() 595 if (!strcmp(db->type, "dbdma") && db->n_addrs != 0) { in interpret_dbdma_props() 596 base_address = db->addrs[0].address; in interpret_dbdma_props() 643 struct device_node *db; in interpret_macio_props() local 646 for (db = np->parent; db != NULL; db = db->parent) { in interpret_macio_props() 647 if (!strcmp(db->type, "mac-io") && db->n_addrs != 0) { in interpret_macio_props() 648 base_address = db->addrs[0].address; in interpret_macio_props()
|
/linux-2.4.37.9/drivers/char/ |
D | ser_a2232fw.ax | 103 db $64,\1 107 db $9e,<\1,>\1 112 db $89,\1 116 db $87,\1 119 db $97,\1 122 db $a7,\1 125 db $b7,\1 128 db $c7,\1 131 db $d7,\1 134 db $e7,\1 [all …]
|