Home
last modified time | relevance | path

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

12345

/drivers/net/ethernet/dec/tulip/
Ddmfe.c369 struct dmfe_board_info *db; /* board information structure */ in dmfe_init_one() local
396 dev = alloc_etherdev(sizeof(*db)); in dmfe_init_one()
440 db = netdev_priv(dev); in dmfe_init_one()
443 db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * in dmfe_init_one()
444 DESC_ALL_CNT + 0x20, &db->desc_pool_dma_ptr); in dmfe_init_one()
445 if (!db->desc_pool_ptr) { in dmfe_init_one()
450 db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * in dmfe_init_one()
451 TX_DESC_CNT + 4, &db->buf_pool_dma_ptr); in dmfe_init_one()
452 if (!db->buf_pool_ptr) { in dmfe_init_one()
457 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one()
[all …]
Duli526x.c240 static void phy_write_1bit(struct uli526x_board_info *db, u32);
241 static u16 phy_read_1bit(struct uli526x_board_info *db);
253 static void srom_clk_write(struct uli526x_board_info *db, u32 data) in srom_clk_write() argument
255 void __iomem *ioaddr = db->ioaddr; in srom_clk_write()
287 struct uli526x_board_info *db; /* board information structure */ in uli526x_init_one() local
298 dev = alloc_etherdev(sizeof(*db)); in uli526x_init_one()
333 db = netdev_priv(dev); in uli526x_init_one()
338db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->… in uli526x_init_one()
339 if (!db->desc_pool_ptr) in uli526x_init_one()
342db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, &db->buf_pool_dma_pt… in uli526x_init_one()
[all …]
/drivers/isdn/i4l/
Disdn_bsdcomp.c174 static void bsd_clear(struct bsd_db *db) in bsd_clear() argument
176 db->clear_count++; in bsd_clear()
177 db->max_ent = FIRST - 1; in bsd_clear()
178 db->n_bits = BSD_INIT_BITS; in bsd_clear()
179 db->bytes_out = 0; in bsd_clear()
180 db->in_count = 0; in bsd_clear()
181 db->incomp_count = 0; in bsd_clear()
182 db->ratio = 0; in bsd_clear()
183 db->checkpoint = CHECK_GAP; in bsd_clear()
199 static int bsd_check(struct bsd_db *db) /* 1=output CLEAR */ in bsd_check() argument
[all …]
/drivers/net/ethernet/davicom/
Ddm9000.c150 #define dm9000_dbg(db, lev, msg...) do { \ argument
152 dev_dbg(db->dev, msg); \
167 ior(struct board_info *db, int reg) in ior() argument
169 writeb(reg, db->io_addr); in ior()
170 return readb(db->io_data); in ior()
178 iow(struct board_info *db, int reg, int value) in iow() argument
180 writeb(reg, db->io_addr); in iow()
181 writeb(value, db->io_data); in iow()
185 dm9000_reset(struct board_info *db) in dm9000_reset() argument
187 dev_dbg(db->dev, "resetting device\n"); in dm9000_reset()
[all …]
/drivers/net/ppp/
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 …]
/drivers/net/ethernet/allwinner/
Dsun4i-emac.c90 struct emac_board_info *db = netdev_priv(dev); in emac_update_speed() local
94 reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed()
96 if (db->speed == SPEED_100) in emac_update_speed()
98 writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed()
103 struct emac_board_info *db = netdev_priv(dev); in emac_update_duplex() local
107 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex()
109 if (db->duplex) in emac_update_duplex()
111 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex()
116 struct emac_board_info *db = netdev_priv(dev); in emac_handle_link_change() local
122 if (db->speed != phydev->speed) { in emac_handle_link_change()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c142 struct mlx5_db *db) in mlx5_alloc_db_from_pgdir() argument
154 db->u.pgdir = pgdir; in mlx5_alloc_db_from_pgdir()
155 db->index = i; in mlx5_alloc_db_from_pgdir()
156 offset = db->index * cache_line_size(); in mlx5_alloc_db_from_pgdir()
157 db->db = pgdir->db_page + offset / sizeof(*pgdir->db_page); in mlx5_alloc_db_from_pgdir()
158 db->dma = pgdir->db_dma + offset; in mlx5_alloc_db_from_pgdir()
160 db->db[0] = 0; in mlx5_alloc_db_from_pgdir()
161 db->db[1] = 0; in mlx5_alloc_db_from_pgdir()
166 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db, int node) in mlx5_db_alloc_node() argument
174 if (!mlx5_alloc_db_from_pgdir(pgdir, db)) in mlx5_db_alloc_node()
[all …]
Dwq.c76 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_cyc_create()
90 wq->db = wq_ctrl->db.db; in mlx5_wq_cyc_create()
97 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create()
112 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_cqwq_create()
126 wq->db = wq_ctrl->db.db; in mlx5_cqwq_create()
133 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_cqwq_create()
149 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_ll_create()
163 wq->db = wq_ctrl->db.db; in mlx5_wq_ll_create()
177 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_ll_create()
185 mlx5_db_free(wq_ctrl->mdev, &wq_ctrl->db); in mlx5_wq_destroy()
Dwq.h47 struct mlx5_db db; member
52 __be32 *db; member
59 __be32 *db; member
68 __be32 *db; member
134 *wq->db = cpu_to_be32(wq->cc & 0xffffff); in mlx5_cqwq_update_db_record()
169 *wq->db = cpu_to_be32(wq->wqe_ctr); in mlx5_wq_ll_update_db_record()
Den_tx.c86 sq->db.txq.dma_fifo[i].addr = addr; in mlx5e_dma_push()
87 sq->db.txq.dma_fifo[i].size = size; in mlx5e_dma_push()
88 sq->db.txq.dma_fifo[i].type = map_type; in mlx5e_dma_push()
94 return &sq->db.txq.dma_fifo[i & sq->dma_fifo_mask]; in mlx5e_dma_get()
225 struct mlx5e_tx_wqe_info *wi = &sq->db.txq.wqe_info[pi]; in mlx5e_sq_xmit()
348 sq->db.txq.skb[pi] = skb; in mlx5e_sq_xmit()
376 sq->db.txq.skb[pi] = NULL; in mlx5e_sq_xmit()
449 skb = sq->db.txq.skb[ci]; in mlx5e_poll_tx_cq()
450 wi = &sq->db.txq.wqe_info[ci]; in mlx5e_poll_tx_cq()
508 skb = sq->db.txq.skb[ci]; in mlx5e_free_txq_sq_descs()
[all …]
/drivers/net/ethernet/tehuti/
Dtehuti.c930 static void bdx_rxdb_destroy(struct rxdb *db) in bdx_rxdb_destroy() argument
932 vfree(db); in bdx_rxdb_destroy()
937 struct rxdb *db; in bdx_rxdb_create() local
940 db = vmalloc(sizeof(struct rxdb) in bdx_rxdb_create()
943 if (likely(db != NULL)) { in bdx_rxdb_create()
944 db->stack = (int *)(db + 1); in bdx_rxdb_create()
945 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
946 db->nelem = nelem; in bdx_rxdb_create()
947 db->top = nelem; in bdx_rxdb_create()
949 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
[all …]
/drivers/infiniband/hw/mlx5/
Ddoorbell.c47 struct mlx5_db *db) in mlx5_ib_db_map_user() argument
77 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); in mlx5_ib_db_map_user()
78 db->u.user_page = page; in mlx5_ib_db_map_user()
87 void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db) in mlx5_ib_db_unmap_user() argument
91 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user()
92 list_del(&db->u.user_page->list); in mlx5_ib_db_unmap_user()
93 ib_umem_release(db->u.user_page->umem); in mlx5_ib_db_unmap_user()
94 kfree(db->u.user_page); in mlx5_ib_db_unmap_user()
/drivers/infiniband/hw/mlx4/
Ddoorbell.c45 struct mlx4_db *db) in mlx4_ib_db_map_user() argument
75 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); in mlx4_ib_db_map_user()
76 db->u.user_page = page; in mlx4_ib_db_map_user()
85 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) in mlx4_ib_db_unmap_user() argument
89 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
90 list_del(&db->u.user_page->list); in mlx4_ib_db_unmap_user()
91 ib_umem_release(db->u.user_page->umem); in mlx4_ib_db_unmap_user()
92 kfree(db->u.user_page); in mlx4_ib_db_unmap_user()
Dsrq.c134 ucmd.db_addr, &srq->db); in mlx4_ib_create_srq()
138 err = mlx4_db_alloc(dev->dev, &srq->db, 0, GFP_KERNEL); in mlx4_ib_create_srq()
142 *srq->db.db = 0; in mlx4_ib_create_srq()
192 srq->db.dma, &srq->msrq); in mlx4_ib_create_srq()
211 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in mlx4_ib_create_srq()
226 mlx4_db_free(dev->dev, &srq->db); in mlx4_ib_create_srq()
287 mlx4_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx4_ib_destroy_srq()
293 mlx4_db_free(dev->dev, &msrq->db); in mlx4_ib_destroy_srq()
376 *srq->db.db = cpu_to_be32(srq->wqe_ctr); in mlx4_ib_post_srq_recv()
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c689 struct mlx4_db *db, int order) in mlx4_alloc_db_from_pgdir() argument
710 db->u.pgdir = pgdir; in mlx4_alloc_db_from_pgdir()
711 db->index = i; in mlx4_alloc_db_from_pgdir()
712 db->db = pgdir->db_page + db->index; in mlx4_alloc_db_from_pgdir()
713 db->dma = pgdir->db_dma + db->index * 4; in mlx4_alloc_db_from_pgdir()
714 db->order = order; in mlx4_alloc_db_from_pgdir()
719 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order, gfp_t gfp) in mlx4_db_alloc() argument
728 if (!mlx4_alloc_db_from_pgdir(pgdir, db, order)) in mlx4_db_alloc()
740 WARN_ON(mlx4_alloc_db_from_pgdir(pgdir, db, order)); in mlx4_db_alloc()
749 void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db) in mlx4_db_free() argument
[all …]
Den_cq.c101 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
102 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
152 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq()
/drivers/misc/mic/card/
Dmic_x100.c119 static inline int mic_get_sbox_irq(int db) in mic_get_sbox_irq() argument
121 return MIC_X100_IRQ_BASE + db; in mic_get_sbox_irq()
129 void mic_send_p2p_intr(int db, struct mic_mw *mw) in mic_send_p2p_intr() argument
133 if (db < MIC_X100_NUM_SBOX_IRQ) { in mic_send_p2p_intr()
134 mic_x100_send_sbox_intr(mw, db); in mic_send_p2p_intr()
136 rdmasr_index = db - MIC_X100_NUM_SBOX_IRQ; in mic_send_p2p_intr()
160 int mic_db_to_irq(struct mic_driver *mdrv, int db) in mic_db_to_irq() argument
168 if (db < MIC_X100_NUM_SBOX_IRQ) { in mic_db_to_irq()
169 return mic_get_sbox_irq(db); in mic_db_to_irq()
171 rdmasr_index = db - MIC_X100_NUM_SBOX_IRQ; in mic_db_to_irq()
Dmic_device.c188 int db) in ___mic_request_irq() argument
190 return mic_request_card_irq(func, NULL, name, data, db); in ___mic_request_irq()
212 static void ___mic_send_intr(struct scif_hw_dev *scdev, int db) in ___mic_send_intr() argument
216 mic_send_intr(&mdrv->mdev, db); in ___mic_send_intr()
219 static void ___mic_send_p2p_intr(struct scif_hw_dev *scdev, int db, in ___mic_send_p2p_intr() argument
222 mic_send_p2p_intr(db, mw); in ___mic_send_p2p_intr()
290 static void __mic_send_intr(struct vop_device *vpdev, int db) in __mic_send_intr() argument
294 mic_send_intr(&mdrv->mdev, db); in __mic_send_intr()
/drivers/gpu/drm/
Ddrm_edid.c2851 do_cea_modes(struct drm_connector *connector, const u8 *db, u8 len) in do_cea_modes() argument
2857 mode = drm_display_mode_from_vic_index(connector, db, len, i); in do_cea_modes()
3000 do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, in do_hdmi_vsdb_modes() argument
3012 if (!(db[8] & (1 << 5))) in do_hdmi_vsdb_modes()
3016 if (db[8] & (1 << 7)) in do_hdmi_vsdb_modes()
3020 if (db[8] & (1 << 6)) in do_hdmi_vsdb_modes()
3030 if (db[8 + offset] & (1 << 7)) { in do_hdmi_vsdb_modes()
3034 multi_present = (db[8 + offset] & 0x60) >> 5; in do_hdmi_vsdb_modes()
3038 vic_len = db[8 + offset] >> 5; in do_hdmi_vsdb_modes()
3039 hdmi_3d_len = db[8 + offset] & 0x1f; in do_hdmi_vsdb_modes()
[all …]
/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()
/drivers/video/fbdev/core/
Dmodedb.c674 const struct fb_videomode *db, unsigned int dbsize, in fb_find_mode() argument
681 if (!db) { in fb_find_mode()
682 db = modedb; in fb_find_mode()
687 default_mode = &db[0]; in fb_find_mode()
806 if (db != modedb && in fb_find_mode()
819 if ((name_matches(db[i], name, namelen) || in fb_find_mode()
820 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode()
821 !fb_try_mode(var, info, &db[i], bpp)) { in fb_find_mode()
822 if (refresh_specified && db[i].refresh == refresh) in fb_find_mode()
825 if (abs(db[i].refresh - refresh) < diff) { in fb_find_mode()
[all …]
/drivers/block/drbd/
Ddrbd_proc.c116 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
171 db = device->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
172 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
177 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
188 db = device->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
189 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
200 db = rs_total - rs_left; in drbd_syncer_progress()
201 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v1.c457 struct hns_roce_db_table *db; in hns_roce_set_sdb_ext() local
462 db = &priv->db_table; in hns_roce_set_sdb_ext()
469 sdb_dma_addr = db->ext_db->sdb_buf_list->map; in hns_roce_set_sdb_ext()
476 db->ext_db->esdb_dep); in hns_roce_set_sdb_ext()
486 dev_dbg(dev, "ext SDB depth: 0x%x\n", db->ext_db->esdb_dep); in hns_roce_set_sdb_ext()
496 struct hns_roce_db_table *db; in hns_roce_set_odb_ext() local
501 db = &priv->db_table; in hns_roce_set_odb_ext()
508 odb_dma_addr = db->ext_db->odb_buf_list->map; in hns_roce_set_odb_ext()
515 db->ext_db->eodb_dep); in hns_roce_set_odb_ext()
518 db->ext_db->eodb_dep); in hns_roce_set_odb_ext()
[all …]
/drivers/net/fddi/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()
/drivers/net/ethernet/qlogic/qed/
Dqed_spq.c196 struct core_db_data db; in qed_spq_hw_post() local
208 memset(&db, 0, sizeof(db)); in qed_spq_hw_post()
209 SET_FIELD(db.params, CORE_DB_DATA_DEST, DB_DEST_XCM); in qed_spq_hw_post()
210 SET_FIELD(db.params, CORE_DB_DATA_AGG_CMD, DB_AGG_CMD_SET); in qed_spq_hw_post()
211 SET_FIELD(db.params, CORE_DB_DATA_AGG_VAL_SEL, in qed_spq_hw_post()
213 db.agg_flags = DQ_XCM_CORE_DQ_CF_CMD; in qed_spq_hw_post()
214 db.spq_prod = cpu_to_le16(qed_chain_get_prod_idx(p_chain)); in qed_spq_hw_post()
219 DOORBELL(p_hwfn, qed_db_addr(p_spq->cid, DQ_DEMS_LEGACY), *(u32 *)&db); in qed_spq_hw_post()
227 p_spq->cid, db.params, db.agg_flags, in qed_spq_hw_post()

12345