Home
last modified time | relevance | path

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

12345678

/drivers/net/ethernet/dec/tulip/
Ddmfe.c354 struct dmfe_board_info *db; /* board information structure */ in dmfe_init_one() local
378 dev = alloc_etherdev(sizeof(*db)); in dmfe_init_one()
422 db = netdev_priv(dev); in dmfe_init_one()
425 db->desc_pool_ptr = dma_alloc_coherent(&pdev->dev, in dmfe_init_one()
427 &db->desc_pool_dma_ptr, GFP_KERNEL); in dmfe_init_one()
428 if (!db->desc_pool_ptr) { in dmfe_init_one()
433 db->buf_pool_ptr = dma_alloc_coherent(&pdev->dev, in dmfe_init_one()
435 &db->buf_pool_dma_ptr, GFP_KERNEL); in dmfe_init_one()
436 if (!db->buf_pool_ptr) { in dmfe_init_one()
441 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one()
[all …]
Duli526x.c226 static void phy_write_1bit(struct uli526x_board_info *db, u32);
227 static u16 phy_read_1bit(struct uli526x_board_info *db);
239 static void srom_clk_write(struct uli526x_board_info *db, u32 data) in srom_clk_write() argument
241 void __iomem *ioaddr = db->ioaddr; in srom_clk_write()
272 struct uli526x_board_info *db; /* board information structure */ in uli526x_init_one() local
281 dev = alloc_etherdev(sizeof(*db)); in uli526x_init_one()
316 db = netdev_priv(dev); in uli526x_init_one()
321 db->desc_pool_ptr = dma_alloc_coherent(&pdev->dev, in uli526x_init_one()
323 &db->desc_pool_dma_ptr, GFP_KERNEL); in uli526x_init_one()
324 if (!db->desc_pool_ptr) in uli526x_init_one()
[all …]
/drivers/net/ethernet/davicom/
Ddm9051.c119 static int dm9051_set_reg(struct board_info *db, unsigned int reg, unsigned int val) in dm9051_set_reg() argument
123 ret = regmap_write(db->regmap_dm, reg, val); in dm9051_set_reg()
125 netif_err(db, drv, db->ndev, "%s: error %d set reg %02x\n", in dm9051_set_reg()
130 static int dm9051_update_bits(struct board_info *db, unsigned int reg, unsigned int mask, in dm9051_update_bits() argument
135 ret = regmap_update_bits(db->regmap_dm, reg, mask, val); in dm9051_update_bits()
137 netif_err(db, drv, db->ndev, "%s: error %d update bits reg %02x\n", in dm9051_update_bits()
144 static int dm9051_dumpblk(struct board_info *db, u8 reg, size_t count) in dm9051_dumpblk() argument
146 struct net_device *ndev = db->ndev; in dm9051_dumpblk()
155 ret = regmap_read(db->regmap_dm, reg, &rb); in dm9051_dumpblk()
157 netif_err(db, drv, ndev, "%s: error %d dumping read reg %02x\n", in dm9051_dumpblk()
[all …]
Ddm9000.c141 #define dm9000_dbg(db, lev, msg...) do { \ argument
143 dev_dbg(db->dev, msg); \
158 ior(struct board_info *db, int reg) in ior() argument
160 writeb(reg, db->io_addr); in ior()
161 return readb(db->io_data); in ior()
169 iow(struct board_info *db, int reg, int value) in iow() argument
171 writeb(reg, db->io_addr); in iow()
172 writeb(value, db->io_data); in iow()
176 dm9000_reset(struct board_info *db) in dm9000_reset() argument
178 dev_dbg(db->dev, "resetting device\n"); in dm9000_reset()
[all …]
/drivers/net/ethernet/allwinner/
Dsun4i-emac.c95 struct emac_board_info *db; member
104 struct emac_board_info *db = netdev_priv(dev); in emac_update_speed() local
108 reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed()
110 if (db->speed == SPEED_100) in emac_update_speed()
112 writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); in emac_update_speed()
117 struct emac_board_info *db = netdev_priv(dev); in emac_update_duplex() local
121 reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex()
123 if (db->duplex) in emac_update_duplex()
125 writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); in emac_update_duplex()
130 struct emac_board_info *db = netdev_priv(dev); in emac_handle_link_change() local
[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/gpu/drm/panel/
Dpanel-magnachip-d53e6ea8966.c42 void (*panel_init_seq)(struct d53e6ea8966 *db);
44 int (*backlight_register)(struct d53e6ea8966 *db);
166 static void ams495qa01_panel_init(struct d53e6ea8966 *db) in ams495qa01_panel_init() argument
168 struct mipi_dbi *dbi = &db->dbi; in ams495qa01_panel_init()
206 struct d53e6ea8966 *db = to_d53e6ea8966(panel); in d53e6ea8966_prepare() local
210 ret = regulator_enable(db->reg_vdd); in d53e6ea8966_prepare()
212 dev_err(db->dev, "failed to enable vdd regulator: %d\n", ret); in d53e6ea8966_prepare()
216 if (db->reg_elvdd) { in d53e6ea8966_prepare()
217 ret = regulator_enable(db->reg_elvdd); in d53e6ea8966_prepare()
219 dev_err(db->dev, in d53e6ea8966_prepare()
[all …]
Dpanel-samsung-db7430.c89 static int db7430_power_on(struct db7430 *db) in db7430_power_on() argument
91 struct mipi_dbi *dbi = &db->dbi; in db7430_power_on()
95 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators), in db7430_power_on()
96 db->regulators); in db7430_power_on()
98 dev_err(db->dev, "failed to enable regulators: %d\n", ret); in db7430_power_on()
104 gpiod_set_value_cansleep(db->reset, 1); in db7430_power_on()
107 gpiod_set_value_cansleep(db->reset, 0); in db7430_power_on()
110 dev_dbg(db->dev, "de-asserted RESET\n"); in db7430_power_on()
164 static int db7430_power_off(struct db7430 *db) in db7430_power_off() argument
167 gpiod_set_value_cansleep(db->reset, 1); in db7430_power_off()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_db.c11 struct hns_roce_db *db) in hns_roce_db_map_user() argument
44 db->dma = sg_dma_address(page->umem->sgt_append.sgt.sgl) + offset; in hns_roce_db_map_user()
45 db->virt_addr = sg_virt(page->umem->sgt_append.sgt.sgl) + offset; in hns_roce_db_map_user()
46 db->u.user_page = page; in hns_roce_db_map_user()
56 struct hns_roce_db *db) in hns_roce_db_unmap_user() argument
60 refcount_dec(&db->u.user_page->refcount); in hns_roce_db_unmap_user()
61 if (refcount_dec_if_one(&db->u.user_page->refcount)) { in hns_roce_db_unmap_user()
62 list_del(&db->u.user_page->list); in hns_roce_db_unmap_user()
63 ib_umem_release(db->u.user_page->umem); in hns_roce_db_unmap_user()
64 kfree(db->u.user_page); in hns_roce_db_unmap_user()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_hwinfo.c129 hwinfo_db_validate(struct nfp_cpp *cpp, struct nfp_hwinfo *db, u32 len) in hwinfo_db_validate() argument
133 size = le32_to_cpu(db->size); in hwinfo_db_validate()
140 crc = crc32_posix(db, size); in hwinfo_db_validate()
141 if (crc != get_unaligned_le32(db->start + size)) { in hwinfo_db_validate()
143 crc, get_unaligned_le32(db->start + size)); in hwinfo_db_validate()
148 return hwinfo_db_walk(cpp, db, size); in hwinfo_db_validate()
159 u8 *db; in hwinfo_try_fetch() local
181 db = kmalloc(*cpp_size + 1, GFP_KERNEL); in hwinfo_try_fetch()
182 if (!db) in hwinfo_try_fetch()
185 err = nfp_cpp_read(cpp, cpp_id, cpp_addr, db, *cpp_size); in hwinfo_try_fetch()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c163 struct mlx5_db *db) in mlx5_alloc_db_from_pgdir() argument
175 db->u.pgdir = pgdir; in mlx5_alloc_db_from_pgdir()
176 db->index = i; in mlx5_alloc_db_from_pgdir()
177 offset = db->index * cache_line_size(); in mlx5_alloc_db_from_pgdir()
178 db->db = pgdir->db_page + offset / sizeof(*pgdir->db_page); in mlx5_alloc_db_from_pgdir()
179 db->dma = pgdir->db_dma + offset; in mlx5_alloc_db_from_pgdir()
181 db->db[0] = 0; in mlx5_alloc_db_from_pgdir()
182 db->db[1] = 0; in mlx5_alloc_db_from_pgdir()
187 int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db, int node) in mlx5_db_alloc_node() argument
195 if (!mlx5_alloc_db_from_pgdir(pgdir, db)) in mlx5_db_alloc_node()
[all …]
Dwq.c46 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_cyc_create()
52 wq->db = wq_ctrl->db.db; in mlx5_wq_cyc_create()
69 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create()
113 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_qp_create()
146 wq->rq.db = &wq_ctrl->db.db[MLX5_RCV_DBR]; in mlx5_wq_qp_create()
147 wq->sq.db = &wq_ctrl->db.db[MLX5_SND_DBR]; in mlx5_wq_qp_create()
154 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_qp_create()
168 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_cqwq_create()
174 wq->db = wq_ctrl->db.db; in mlx5_cqwq_create()
192 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_cqwq_create()
[all …]
/drivers/mailbox/
Dtegra-hsp.c149 static bool tegra_hsp_doorbell_can_ring(struct tegra_hsp_doorbell *db) in tegra_hsp_doorbell_can_ring() argument
153 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); in tegra_hsp_doorbell_can_ring()
173 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_get() local
177 db = __tegra_hsp_doorbell_get(hsp, master); in tegra_hsp_doorbell_get()
180 return db; in tegra_hsp_doorbell_get()
186 struct tegra_hsp_doorbell *db; in tegra_hsp_doorbell_irq() local
189 db = tegra_hsp_doorbell_get(hsp, TEGRA_HSP_DB_MASTER_CCPLEX); in tegra_hsp_doorbell_irq()
190 if (!db) in tegra_hsp_doorbell_irq()
193 value = tegra_hsp_channel_readl(&db->channel, HSP_DB_PENDING); in tegra_hsp_doorbell_irq()
194 tegra_hsp_channel_writel(&db->channel, value, HSP_DB_PENDING); in tegra_hsp_doorbell_irq()
[all …]
/drivers/net/ethernet/tehuti/
Dtehuti.c917 static void bdx_rxdb_destroy(struct rxdb *db) in bdx_rxdb_destroy() argument
919 vfree(db); in bdx_rxdb_destroy()
924 struct rxdb *db; in bdx_rxdb_create() local
927 db = vmalloc(sizeof(struct rxdb) in bdx_rxdb_create()
930 if (likely(db != NULL)) { in bdx_rxdb_create()
931 db->stack = (int *)(db + 1); in bdx_rxdb_create()
932 db->elems = (void *)(db->stack + nelem); in bdx_rxdb_create()
933 db->nelem = nelem; in bdx_rxdb_create()
934 db->top = nelem; in bdx_rxdb_create()
936 db->stack[i] = nelem - i - 1; /* to make first allocs in bdx_rxdb_create()
[all …]
/drivers/infiniband/hw/mlx5/
Ddoorbell.c49 struct mlx5_db *db) in mlx5_ib_db_map_user() argument
82 db->dma = sg_dma_address(page->umem->sgt_append.sgt.sgl) + in mlx5_ib_db_map_user()
84 db->u.user_page = page; in mlx5_ib_db_map_user()
93 void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db) in mlx5_ib_db_unmap_user() argument
97 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user()
98 list_del(&db->u.user_page->list); in mlx5_ib_db_unmap_user()
99 mmdrop(db->u.user_page->mm); in mlx5_ib_db_unmap_user()
100 ib_umem_release(db->u.user_page->umem); in mlx5_ib_db_unmap_user()
101 kfree(db->u.user_page); in mlx5_ib_db_unmap_user()
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdma.c15 struct lan966x_db *db) in lan966x_fdma_rx_alloc_page() argument
23 db->dataptr = page_pool_get_dma_addr(page) + XDP_PACKET_HEADROOM; in lan966x_fdma_rx_alloc_page()
54 struct lan966x_db *db; in lan966x_fdma_rx_add_dcb() local
58 db = &dcb->db[i]; in lan966x_fdma_rx_add_dcb()
59 db->status = FDMA_DCB_STATUS_INTR; in lan966x_fdma_rx_add_dcb()
108 struct lan966x_db *db; in lan966x_fdma_rx_alloc() local
135 db = &dcb->db[j]; in lan966x_fdma_rx_alloc()
136 page = lan966x_fdma_rx_alloc_page(rx, db); in lan966x_fdma_rx_alloc()
140 db->status = 0; in lan966x_fdma_rx_alloc()
244 struct lan966x_db *db; in lan966x_fdma_tx_alloc() local
[all …]
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_fdma.c87 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_rx_add_dcb() local
89 db->status = FDMA_DCB_STATUS_INTR; in sparx5_fdma_rx_add_dcb()
105 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_tx_add_dcb() local
107 db->status = FDMA_DCB_STATUS_DONE; in sparx5_fdma_tx_add_dcb()
216 db_hw = &rx->dcb_entries[rx->dcb_index].db[rx->db_index]; in sparx5_fdma_rx_get_frame()
315 struct sparx5_db *db; in sparx5_fdma_xmit() local
318 db_hw = &next_dcb_hw->db[0]; in sparx5_fdma_xmit()
321 db = list_first_entry(&tx->db_list, struct sparx5_db, list); in sparx5_fdma_xmit()
322 list_move_tail(&db->list, &tx->db_list); in sparx5_fdma_xmit()
328 memset(db->cpu_addr, 0, FDMA_XTR_BUFFER_SIZE); in sparx5_fdma_xmit()
[all …]
/drivers/gpu/drm/
Ddrm_edid.c4729 static bool hdmi_vsdb_latency_present(const u8 *db) in hdmi_vsdb_latency_present() argument
4731 return db[8] & BIT(7); in hdmi_vsdb_latency_present()
4734 static bool hdmi_vsdb_i_latency_present(const u8 *db) in hdmi_vsdb_i_latency_present() argument
4736 return hdmi_vsdb_latency_present(db) && db[8] & BIT(6); in hdmi_vsdb_i_latency_present()
4739 static int hdmi_vsdb_latency_length(const u8 *db) in hdmi_vsdb_latency_length() argument
4741 if (hdmi_vsdb_i_latency_present(db)) in hdmi_vsdb_latency_length()
4743 else if (hdmi_vsdb_latency_present(db)) in hdmi_vsdb_latency_length()
4759 do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len) in do_hdmi_vsdb_modes() argument
4770 if (!(db[8] & (1 << 5))) in do_hdmi_vsdb_modes()
4773 offset += hdmi_vsdb_latency_length(db); in do_hdmi_vsdb_modes()
[all …]
/drivers/infiniband/hw/mlx4/
Ddoorbell.c46 struct mlx4_db *db) in mlx4_ib_db_map_user() argument
78 db->dma = sg_dma_address(page->umem->sgt_append.sgt.sgl) + in mlx4_ib_db_map_user()
80 db->u.user_page = page; in mlx4_ib_db_map_user()
89 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) in mlx4_ib_db_unmap_user() argument
93 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
94 list_del(&db->u.user_page->list); in mlx4_ib_db_unmap_user()
95 ib_umem_release(db->u.user_page->umem); in mlx4_ib_db_unmap_user()
96 kfree(db->u.user_page); in mlx4_ib_db_unmap_user()
Dsrq.c132 err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &srq->db); in mlx4_ib_create_srq()
136 err = mlx4_db_alloc(dev->dev, &srq->db, 0); in mlx4_ib_create_srq()
140 *srq->db.db = 0; in mlx4_ib_create_srq()
186 &srq->mtt, srq->db.dma, &srq->msrq); in mlx4_ib_create_srq()
205 mlx4_ib_db_unmap_user(ucontext, &srq->db); in mlx4_ib_create_srq()
219 mlx4_db_free(dev->dev, &srq->db); in mlx4_ib_create_srq()
282 &msrq->db); in mlx4_ib_destroy_srq()
287 mlx4_db_free(dev->dev, &msrq->db); in mlx4_ib_destroy_srq()
367 *srq->db.db = cpu_to_be32(srq->wqe_ctr); in mlx4_ib_post_srq_recv()
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c685 struct mlx4_db *db, int order) in mlx4_alloc_db_from_pgdir() argument
706 db->u.pgdir = pgdir; in mlx4_alloc_db_from_pgdir()
707 db->index = i; in mlx4_alloc_db_from_pgdir()
708 db->db = pgdir->db_page + db->index; in mlx4_alloc_db_from_pgdir()
709 db->dma = pgdir->db_dma + db->index * 4; in mlx4_alloc_db_from_pgdir()
710 db->order = order; in mlx4_alloc_db_from_pgdir()
715 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order) in mlx4_db_alloc() argument
724 if (!mlx4_alloc_db_from_pgdir(pgdir, db, order)) in mlx4_db_alloc()
736 WARN_ON(mlx4_alloc_db_from_pgdir(pgdir, db, order)); in mlx4_db_alloc()
745 void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db) in mlx4_db_free() argument
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_doorbell.c190 void write_kernel_doorbell(void __iomem *db, u32 value) in write_kernel_doorbell() argument
192 if (db) { in write_kernel_doorbell()
193 writel(value, db); in write_kernel_doorbell()
194 pr_debug("Writing %d to doorbell address %p\n", value, db); in write_kernel_doorbell()
198 void write_kernel_doorbell64(void __iomem *db, u64 value) in write_kernel_doorbell64() argument
200 if (db) { in write_kernel_doorbell64()
201 WARN(((unsigned long)db & 7) != 0, in write_kernel_doorbell64()
203 writeq(value, (u64 __iomem *)db); in write_kernel_doorbell64()
204 pr_debug("writing %llu to doorbell address %p\n", value, db); in write_kernel_doorbell64()
/drivers/video/fbdev/core/
Dmodedb.c624 const struct fb_videomode *db, unsigned int dbsize, in fb_find_mode() argument
632 if (!db) { in fb_find_mode()
633 db = modedb; in fb_find_mode()
638 default_mode = &db[0]; in fb_find_mode()
769 if (db != modedb && in fb_find_mode()
782 if ((name_matches(db[i], name, namelen) || in fb_find_mode()
783 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode()
784 !fb_try_mode(var, info, &db[i], bpp)) { in fb_find_mode()
785 const int db_interlace = (db[i].vmode & in fb_find_mode()
787 int score = abs(db[i].refresh - refresh); in fb_find_mode()
[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/block/drbd/
Ddrbd_proc.c93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
148 db = device->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
149 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
154 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
165 db = device->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
166 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
177 db = rs_total - rs_left; in drbd_syncer_progress()
178 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()

12345678