Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 103) sorted by relevance

12345

/linux-2.6.39/drivers/net/tulip/
Ddmfe.c376 struct dmfe_board_info *db; /* board information structure */ in dmfe_init_one() local
403 dev = alloc_etherdev(sizeof(*db)); in dmfe_init_one()
447 db = netdev_priv(dev); in dmfe_init_one()
450 db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * in dmfe_init_one()
451 DESC_ALL_CNT + 0x20, &db->desc_pool_dma_ptr); in dmfe_init_one()
452 if (!db->desc_pool_ptr) in dmfe_init_one()
455 db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * in dmfe_init_one()
456 TX_DESC_CNT + 4, &db->buf_pool_dma_ptr); in dmfe_init_one()
457 if (!db->buf_pool_ptr) in dmfe_init_one()
460 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one()
[all …]
Duli526x.c279 struct uli526x_board_info *db; /* board information structure */ in uli526x_init_one() local
289 dev = alloc_etherdev(sizeof(*db)); in uli526x_init_one()
324 db = netdev_priv(dev); in uli526x_init_one()
327db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->… in uli526x_init_one()
328 if(db->desc_pool_ptr == NULL) in uli526x_init_one()
333db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, &db->buf_pool_dma_pt… in uli526x_init_one()
334 if(db->buf_pool_ptr == NULL) in uli526x_init_one()
340 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in uli526x_init_one()
341 db->first_tx_desc_dma = db->desc_pool_dma_ptr; in uli526x_init_one()
342 db->buf_pool_start = db->buf_pool_ptr; in uli526x_init_one()
[all …]
/linux-2.6.39/drivers/net/
Ddm9000.c141 #define dm9000_dbg(db, lev, msg...) do { \ argument
143 (lev) < db->debug_level) { \
144 dev_dbg(db->dev, msg); \
156 dm9000_reset(board_info_t * db) in dm9000_reset() argument
158 dev_dbg(db->dev, "resetting device\n"); in dm9000_reset()
161 writeb(DM9000_NCR, db->io_addr); in dm9000_reset()
163 writeb(NCR_RST, db->io_data); in dm9000_reset()
171 ior(board_info_t * db, int reg) in ior() argument
173 writeb(reg, db->io_addr); in ior()
174 return readb(db->io_data); in ior()
[all …]
Dbsd_comp.c173 static int bsd_init (void *db, unsigned char *options,
222 bsd_clear(struct bsd_db *db) in bsd_clear() argument
224 db->clear_count++; in bsd_clear()
225 db->max_ent = FIRST-1; in bsd_clear()
226 db->n_bits = BSD_INIT_BITS; in bsd_clear()
227 db->bytes_out = 0; in bsd_clear()
228 db->in_count = 0; in bsd_clear()
229 db->ratio = 0; in bsd_clear()
230 db->checkpoint = CHECK_GAP; in bsd_clear()
247 static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument
[all …]
Dtehuti.c938 static void bdx_rxdb_destroy(struct rxdb *db) in bdx_rxdb_destroy() argument
940 vfree(db); in bdx_rxdb_destroy()
945 struct rxdb *db; in bdx_rxdb_create() local
948 db = vmalloc(sizeof(struct rxdb) in bdx_rxdb_create()
951 if (likely(db != NULL)) { in bdx_rxdb_create()
952 db->stack = (int *)(db + 1); in bdx_rxdb_create()
953 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
954 db->nelem = nelem; in bdx_rxdb_create()
955 db->top = nelem; in bdx_rxdb_create()
957 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
[all …]
/linux-2.6.39/drivers/isdn/i4l/
Disdn_bsdcomp.c175 static void bsd_clear(struct bsd_db *db) in bsd_clear() argument
177 db->clear_count++; in bsd_clear()
178 db->max_ent = FIRST-1; in bsd_clear()
179 db->n_bits = BSD_INIT_BITS; in bsd_clear()
180 db->bytes_out = 0; in bsd_clear()
181 db->in_count = 0; in bsd_clear()
182 db->incomp_count = 0; in bsd_clear()
183 db->ratio = 0; in bsd_clear()
184 db->checkpoint = CHECK_GAP; in bsd_clear()
200 static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument
[all …]
/linux-2.6.39/sound/oss/
Dau1550_ac97.c445 struct dmabuf *db = &s->dma_dac; in stop_dac() local
449 if (db->stopped) in stop_dac()
464 au1xxx_dbdma_reset(db->dmanr); in stop_dac()
466 db->stopped = 1; in stop_dac()
474 struct dmabuf *db = &s->dma_adc; in stop_adc() local
478 if (db->stopped) in stop_adc()
493 au1xxx_dbdma_reset(db->dmanr); in stop_adc()
495 db->stopped = 1; in stop_adc()
580 struct dmabuf *db = &s->dma_dac; in start_dac() local
582 if (!db->stopped) in start_dac()
[all …]
/linux-2.6.39/arch/powerpc/platforms/ps3/
Dos-area.c389 static int db_verify(const struct os_area_db *db) in db_verify() argument
391 if (memcmp(db->magic_num, OS_AREA_DB_MAGIC_NUM, in db_verify()
392 sizeof(db->magic_num))) { in db_verify()
397 if (db->version != 1) { in db_verify()
411 const struct os_area_db *db; member
434 static int db_for_each_64(const struct os_area_db *db, in db_for_each_64() argument
438 if (!i->db) { in db_for_each_64()
439 i->db = db; in db_for_each_64()
441 i->idx = (void *)db + db->index_64; in db_for_each_64()
442 i->last_idx = i->idx + db->count_64; in db_for_each_64()
[all …]
/linux-2.6.39/lib/
Ddebugobjects.c216 struct debug_bucket *db = obj_hash; in debug_objects_oom() local
225 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_oom()
226 raw_spin_lock_irqsave(&db->lock, flags); in debug_objects_oom()
227 hlist_move_list(&db->list, &freelist); in debug_objects_oom()
228 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_objects_oom()
305 struct debug_bucket *db; in __debug_object_init() local
311 db = get_bucket((unsigned long) addr); in __debug_object_init()
313 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init()
315 obj = lookup_object(addr, db); in __debug_object_init()
317 obj = alloc_object(addr, db, descr); in __debug_object_init()
[all …]
/linux-2.6.39/drivers/net/mlx4/
Dalloc.c281 struct mlx4_db *db, int order) in mlx4_alloc_db_from_pgdir() argument
302 db->u.pgdir = pgdir; in mlx4_alloc_db_from_pgdir()
303 db->index = i; in mlx4_alloc_db_from_pgdir()
304 db->db = pgdir->db_page + db->index; in mlx4_alloc_db_from_pgdir()
305 db->dma = pgdir->db_dma + db->index * 4; in mlx4_alloc_db_from_pgdir()
306 db->order = order; in mlx4_alloc_db_from_pgdir()
311 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order) in mlx4_db_alloc() argument
320 if (!mlx4_alloc_db_from_pgdir(pgdir, db, order)) in mlx4_db_alloc()
332 WARN_ON(mlx4_alloc_db_from_pgdir(pgdir, db, order)); in mlx4_db_alloc()
341 void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db) in mlx4_db_free() argument
[all …]
Den_cq.c84 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
85 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
117 cq->wqres.db.dma, &cq->mcq, cq->vector, cq->is_tx); in mlx4_en_activate_cq()
/linux-2.6.39/drivers/infiniband/hw/mlx4/
Ddoorbell.c45 struct mlx4_db *db) in mlx4_ib_db_map_user() argument
77 db->dma = sg_dma_address(chunk->page_list) + (virt & ~PAGE_MASK); in mlx4_ib_db_map_user()
78 db->u.user_page = page; in mlx4_ib_db_map_user()
87 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) in mlx4_ib_db_unmap_user() argument
91 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
92 list_del(&db->u.user_page->list); in mlx4_ib_db_unmap_user()
93 ib_umem_release(db->u.user_page->umem); in mlx4_ib_db_unmap_user()
94 kfree(db->u.user_page); in mlx4_ib_db_unmap_user()
Dsrq.c131 ucmd.db_addr, &srq->db); in mlx4_ib_create_srq()
135 err = mlx4_db_alloc(dev->dev, &srq->db, 0); in mlx4_ib_create_srq()
139 *srq->db.db = 0; in mlx4_ib_create_srq()
178 srq->db.dma, &srq->msrq); in mlx4_ib_create_srq()
196 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in mlx4_ib_create_srq()
211 mlx4_db_free(dev->dev, &srq->db); in mlx4_ib_create_srq()
272 mlx4_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx4_ib_destroy_srq()
278 mlx4_db_free(dev->dev, &msrq->db); in mlx4_ib_destroy_srq()
354 *srq->db.db = cpu_to_be32(srq->wqe_ctr); in mlx4_ib_post_srq_recv()
Dmlx4_ib.h74 struct mlx4_db db; member
127 struct mlx4_db db; member
156 struct mlx4_db db; member
263 struct mlx4_db *db);
264 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db);
/linux-2.6.39/arch/powerpc/platforms/cell/
Dbeat.c148 u64 db[2]; in beat_get_term_char() local
151 ret = beat_get_characters_from_console(vterm, len, (u8 *)db); in beat_get_term_char()
153 *t1 = db[0]; in beat_get_term_char()
154 *t2 = db[1]; in beat_get_term_char()
162 u64 db[2]; in beat_put_term_char() local
164 db[0] = t1; in beat_put_term_char()
165 db[1] = t2; in beat_put_term_char()
166 return beat_put_characters_to_console(vterm, len, (u8 *)db); in beat_put_term_char()
/linux-2.6.39/drivers/infiniband/hw/mthca/
Dmthca_doorbell.h65 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) in mthca_write_db_rec() argument
67 *(u64 *) db = *(u64 *) val; in mthca_write_db_rec()
102 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) in mthca_write_db_rec() argument
104 db[0] = val[0]; in mthca_write_db_rec()
106 db[1] = val[1]; in mthca_write_db_rec()
/linux-2.6.39/fs/xfs/
Dxfs_dir2_leaf.h171 xfs_dir2_db_off_to_byte(struct xfs_mount *mp, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument
174 return ((xfs_dir2_off_t)(db) << \ in xfs_dir2_db_off_to_byte()
182 xfs_dir2_db_to_da(struct xfs_mount *mp, xfs_dir2_db_t db) in xfs_dir2_db_to_da() argument
184 return (xfs_dablk_t)((db) << (mp)->m_sb.sb_dirblklog); in xfs_dir2_db_to_da()
200 xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db, in xfs_dir2_db_off_to_dataptr() argument
203 return xfs_dir2_byte_to_dataptr(mp, xfs_dir2_db_off_to_byte(mp, db, o)); in xfs_dir2_db_off_to_dataptr()
250 struct xfs_dabuf *lbp, xfs_dir2_db_t db);
Dxfs_dir2_node.h64 xfs_dir2_db_to_fdb(struct xfs_mount *mp, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument
66 return (XFS_DIR2_FREE_FIRSTDB(mp) + (db) / XFS_DIR2_MAX_FREE_BESTS(mp)); in xfs_dir2_db_to_fdb()
73 xfs_dir2_db_to_fdindex(struct xfs_mount *mp, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument
75 return ((db) % XFS_DIR2_MAX_FREE_BESTS(mp)); in xfs_dir2_db_to_fdindex()
Dxfs_dir2_leaf.c1441 xfs_dir2_db_t db; /* data block number */ in xfs_dir2_leaf_removename() local
1476 db = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename()
1483 ASSERT(be16_to_cpu(bestsp[db]) == oldbest); in xfs_dir2_leaf_removename()
1510 bestsp[db] = data->hdr.bestfree[0].length; in xfs_dir2_leaf_removename()
1511 xfs_dir2_leaf_log_bests(tp, lbp, db, db); in xfs_dir2_leaf_removename()
1519 ASSERT(db != mp->m_dirdatablk); in xfs_dir2_leaf_removename()
1520 if ((error = xfs_dir2_shrink_inode(args, db, dbp))) { in xfs_dir2_leaf_removename()
1540 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1544 for (i = db - 1; i > 0; i--) { in xfs_dir2_leaf_removename()
1552 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
[all …]
/linux-2.6.39/drivers/video/
Dmodedb.c565 const struct fb_videomode *db, unsigned int dbsize, in fb_find_mode() argument
572 if (!db) { in fb_find_mode()
573 db = modedb; in fb_find_mode()
578 default_mode = &db[0]; in fb_find_mode()
691 if (db != modedb && in fb_find_mode()
704 if ((name_matches(db[i], name, namelen) || in fb_find_mode()
705 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode()
706 !fb_try_mode(var, info, &db[i], bpp)) { in fb_find_mode()
707 if (refresh_specified && db[i].refresh == refresh) { in fb_find_mode()
710 if (abs(db[i].refresh - refresh) < diff) { in fb_find_mode()
[all …]
/linux-2.6.39/net/iucv/
Diucv.c303 struct iucv_cmd_db db; member
475 parm->db.ipbfadr1 = virt_to_phys(iucv_irq_data[cpu]); in iucv_declare_cpu()
1171 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_receive()
1172 parm->db.ipbfln1f = (u32) size; in __iucv_message_receive()
1173 parm->db.ipmsgid = msg->id; in __iucv_message_receive()
1174 parm->db.ippathid = path->pathid; in __iucv_message_receive()
1175 parm->db.iptrgcls = msg->class; in __iucv_message_receive()
1176 parm->db.ipflags1 = (flags | IUCV_IPFGPID | in __iucv_message_receive()
1180 msg->flags = parm->db.ipflags1; in __iucv_message_receive()
1182 *residual = parm->db.ipbfln1f; in __iucv_message_receive()
[all …]
/linux-2.6.39/drivers/block/drbd/
Ddrbd_proc.c71 unsigned long db, dt, dbdt, rt, rs_left; in drbd_syncer_progress() local
124 db = mdev->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
125 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
130 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
141 db = mdev->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
142 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
153 db = mdev->rs_total - rs_left; in drbd_syncer_progress()
154 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
/linux-2.6.39/drivers/net/skfp/
Dess.c122 SMbuf *db ; in ess_raf_received_pack() local
204 if (!(db = smt_get_mbuf(smc))) in ess_raf_received_pack()
207 db->sm_len = mb->sm_len ; in ess_raf_received_pack()
208 db->sm_off = mb->sm_off ; in ess_raf_received_pack()
209 memcpy(((char *)(db->sm_data+db->sm_off)),(char *)sm, in ess_raf_received_pack()
210 (int)db->sm_len) ; in ess_raf_received_pack()
212 (struct smt_header *)(db->sm_data+db->sm_off), in ess_raf_received_pack()
214 smt_send_frame(smc,db,FC_SMT_INFO,0) ; in ess_raf_received_pack()
/linux-2.6.39/lib/raid6/
Drecov.c28 u8 px, qx, db; in raid6_2data_recov() local
61 *dq++ = db = pbmul[px] ^ qx; /* Reconstructed B */ in raid6_2data_recov()
62 *dp++ = db ^ px; /* Reconstructed A */ in raid6_2data_recov()
/linux-2.6.39/drivers/staging/generic_serial/
Dser_a2232fw.ax103 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 …]

12345