/drivers/gpu/drm/mediatek/ |
D | mtk_dpi.c | 124 static void mtk_dpi_mask(struct mtk_dpi *dpi, u32 offset, u32 val, u32 mask) in mtk_dpi_mask() argument 126 u32 tmp = readl(dpi->regs + offset) & ~mask; in mtk_dpi_mask() 129 writel(tmp, dpi->regs + offset); in mtk_dpi_mask() 132 static void mtk_dpi_sw_reset(struct mtk_dpi *dpi, bool reset) in mtk_dpi_sw_reset() argument 134 mtk_dpi_mask(dpi, DPI_RET, reset ? RST : 0, RST); in mtk_dpi_sw_reset() 137 static void mtk_dpi_enable(struct mtk_dpi *dpi) in mtk_dpi_enable() argument 139 mtk_dpi_mask(dpi, DPI_EN, EN, EN); in mtk_dpi_enable() 142 static void mtk_dpi_disable(struct mtk_dpi *dpi) in mtk_dpi_disable() argument 144 mtk_dpi_mask(dpi, DPI_EN, 0, EN); in mtk_dpi_disable() 147 static void mtk_dpi_config_hsync(struct mtk_dpi *dpi, in mtk_dpi_config_hsync() argument [all …]
|
/drivers/gpu/drm/omapdrm/dss/ |
D | dpi.c | 53 static enum dss_clk_source dpi_get_clk_src_dra7xx(struct dpi_data *dpi, in dpi_get_clk_src_dra7xx() argument 66 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_1)) in dpi_get_clk_src_dra7xx() 72 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_3)) in dpi_get_clk_src_dra7xx() 74 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL2_3)) in dpi_get_clk_src_dra7xx() 80 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL2_1)) in dpi_get_clk_src_dra7xx() 82 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_3)) in dpi_get_clk_src_dra7xx() 93 static enum dss_clk_source dpi_get_clk_src(struct dpi_data *dpi) in dpi_get_clk_src() argument 95 enum omap_channel channel = dpi->output.dispc_channel; in dpi_get_clk_src() 102 switch (dpi->dss_model) { in dpi_get_clk_src() 129 return dpi_get_clk_src_dra7xx(dpi, channel); in dpi_get_clk_src() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dpi.c | 219 static bool dpi_dsi_clk_calc(struct dpi_data *dpi, unsigned long pck, in dpi_dsi_clk_calc() argument 226 ctx->pll = dpi->pll; in dpi_dsi_clk_calc() 271 static int dpi_set_dsi_clk(struct dpi_data *dpi, enum omap_channel channel, in dpi_set_dsi_clk() argument 279 ok = dpi_dsi_clk_calc(dpi, pck_req, &ctx); in dpi_set_dsi_clk() 283 r = dss_pll_set_config(dpi->pll, &ctx.dsi_cinfo); in dpi_set_dsi_clk() 290 dpi->mgr_config.clock_info = ctx.dispc_cinfo; in dpi_set_dsi_clk() 299 static int dpi_set_dispc_clk(struct dpi_data *dpi, unsigned long pck_req, in dpi_set_dispc_clk() argument 314 dpi->mgr_config.clock_info = ctx.dispc_cinfo; in dpi_set_dispc_clk() 323 static int dpi_set_mode(struct dpi_data *dpi) in dpi_set_mode() argument 325 struct omap_dss_device *out = &dpi->output; in dpi_set_mode() [all …]
|
D | Makefile | 10 omapdss-$(CONFIG_FB_OMAP2_DSS_DPI) += dpi.o
|
/drivers/gpu/drm/vc4/ |
D | vc4_dpi.c | 98 #define DPI_READ(offset) readl(dpi->regs + (offset)) 99 #define DPI_WRITE(offset, val) writel(val, dpi->regs + (offset)) 104 struct vc4_dpi *dpi; member 121 struct vc4_dpi *dpi = vc4_encoder->dpi; in vc4_dpi_encoder_disable() local 123 clk_disable_unprepare(dpi->pixel_clock); in vc4_dpi_encoder_disable() 131 struct vc4_dpi *dpi = vc4_encoder->dpi; in vc4_dpi_encoder_enable() local 207 ret = clk_set_rate(dpi->pixel_clock, mode->clock * 1000); in vc4_dpi_encoder_enable() 211 ret = clk_prepare_enable(dpi->pixel_clock); in vc4_dpi_encoder_enable() 239 static int vc4_dpi_init_bridge(struct vc4_dpi *dpi) in vc4_dpi_init_bridge() argument 241 struct device *dev = &dpi->pdev->dev; in vc4_dpi_init_bridge() [all …]
|
/drivers/video/fbdev/omap2/omapfb/displays/ |
D | encoder-tfp410.c | 39 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect() 66 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect() 81 in->ops.dpi->set_timings(in, &ddata->timings); in tfp410_enable() 83 in->ops.dpi->set_data_lines(in, ddata->data_lines); in tfp410_enable() 85 r = in->ops.dpi->enable(in); in tfp410_enable() 108 in->ops.dpi->disable(in); in tfp410_disable() 131 in->ops.dpi->set_timings(in, timings); in tfp410_set_timings() 150 return in->ops.dpi->check_timings(in, timings); in tfp410_check_timings() 227 dssdev->phy.dpi.data_lines = ddata->data_lines; in tfp410_probe()
|
D | panel-dpi.c | 44 return in->ops.dpi->connect(in, dssdev); in panel_dpi_connect() 55 in->ops.dpi->disconnect(in, dssdev); in panel_dpi_disconnect() 71 in->ops.dpi->set_data_lines(in, ddata->data_lines); in panel_dpi_enable() 72 in->ops.dpi->set_timings(in, &ddata->videomode); in panel_dpi_enable() 74 r = in->ops.dpi->enable(in); in panel_dpi_enable() 101 in->ops.dpi->disable(in); in panel_dpi_disable() 115 in->ops.dpi->set_timings(in, timings); in panel_dpi_set_timings() 132 return in->ops.dpi->check_timings(in, timings); in panel_dpi_check_timings() 267 dssdev->phy.dpi.data_lines = ddata->data_lines; in panel_dpi_probe()
|
D | panel-sharp-ls037v7dw01.c | 66 return in->ops.dpi->connect(in, dssdev); in sharp_ls_connect() 77 in->ops.dpi->disconnect(in, dssdev); in sharp_ls_disconnect() 93 in->ops.dpi->set_data_lines(in, ddata->data_lines); in sharp_ls_enable() 94 in->ops.dpi->set_timings(in, &ddata->videomode); in sharp_ls_enable() 102 r = in->ops.dpi->enable(in); in sharp_ls_enable() 140 in->ops.dpi->disable(in); in sharp_ls_disable() 157 in->ops.dpi->set_timings(in, timings); in sharp_ls_set_timings() 174 return in->ops.dpi->check_timings(in, timings); in sharp_ls_check_timings() 282 dssdev->phy.dpi.data_lines = ddata->data_lines; in sharp_ls_probe()
|
D | panel-lgphilips-lb035q02.c | 126 r = in->ops.dpi->connect(in, dssdev); in lb035q02_connect() 143 in->ops.dpi->disconnect(in, dssdev); in lb035q02_disconnect() 159 in->ops.dpi->set_data_lines(in, ddata->data_lines); in lb035q02_enable() 160 in->ops.dpi->set_timings(in, &ddata->videomode); in lb035q02_enable() 162 r = in->ops.dpi->enable(in); in lb035q02_enable() 191 in->ops.dpi->disable(in); in lb035q02_disable() 205 in->ops.dpi->set_timings(in, timings); in lb035q02_set_timings() 222 return in->ops.dpi->check_timings(in, timings); in lb035q02_check_timings() 303 dssdev->phy.dpi.data_lines = ddata->data_lines; in lb035q02_panel_spi_probe()
|
D | panel-nec-nl8048hl11.c | 125 r = in->ops.dpi->connect(in, dssdev); in nec_8048_connect() 140 in->ops.dpi->disconnect(in, dssdev); in nec_8048_disconnect() 156 in->ops.dpi->set_data_lines(in, ddata->data_lines); in nec_8048_enable() 157 in->ops.dpi->set_timings(in, &ddata->videomode); in nec_8048_enable() 159 r = in->ops.dpi->enable(in); in nec_8048_enable() 182 in->ops.dpi->disable(in); in nec_8048_disable() 196 in->ops.dpi->set_timings(in, timings); in nec_8048_set_timings() 213 return in->ops.dpi->check_timings(in, timings); in nec_8048_check_timings()
|
D | panel-tpo-td028ttec1.c | 167 r = in->ops.dpi->connect(in, dssdev); in td028ttec1_panel_connect() 182 in->ops.dpi->disconnect(in, dssdev); in td028ttec1_panel_disconnect() 198 in->ops.dpi->set_data_lines(in, ddata->data_lines); in td028ttec1_panel_enable() 199 in->ops.dpi->set_timings(in, &ddata->videomode); in td028ttec1_panel_enable() 201 r = in->ops.dpi->enable(in); in td028ttec1_panel_enable() 310 in->ops.dpi->disable(in); in td028ttec1_panel_disable() 324 in->ops.dpi->set_timings(in, timings); in td028ttec1_panel_set_timings() 341 return in->ops.dpi->check_timings(in, timings); in td028ttec1_panel_check_timings() 413 dssdev->phy.dpi.data_lines = ddata->data_lines; in td028ttec1_panel_probe()
|
D | panel-tpo-td043mtea1.c | 344 return in->ops.dpi->connect(in, dssdev); in tpo_td043_connect() 355 in->ops.dpi->disconnect(in, dssdev); in tpo_td043_disconnect() 371 in->ops.dpi->set_data_lines(in, ddata->data_lines); in tpo_td043_enable() 372 in->ops.dpi->set_timings(in, &ddata->videomode); in tpo_td043_enable() 374 r = in->ops.dpi->enable(in); in tpo_td043_enable() 385 in->ops.dpi->disable(in); in tpo_td043_enable() 403 in->ops.dpi->disable(in); in tpo_td043_disable() 420 in->ops.dpi->set_timings(in, timings); in tpo_td043_set_timings() 437 return in->ops.dpi->check_timings(in, timings); in tpo_td043_check_timings()
|
D | Makefile | 8 obj-$(CONFIG_FB_OMAP2_PANEL_DPI) += panel-dpi.o
|
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.c | 741 struct bnxt_qplib_dpi *dpi, in bnxt_qplib_alloc_dpi() argument 754 dpi->dpi = bit_num; in bnxt_qplib_alloc_dpi() 755 dpi->dbr = dpit->dbr_bar_reg_iomem + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi() 756 dpi->umdbr = dpit->unmapped_dbr + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi() 763 struct bnxt_qplib_dpi *dpi) in bnxt_qplib_dealloc_dpi() argument 765 if (dpi->dpi >= dpit->max) { in bnxt_qplib_dealloc_dpi() 766 dev_warn(&res->pdev->dev, "Invalid DPI? dpi = %d\n", dpi->dpi); in bnxt_qplib_dealloc_dpi() 769 if (test_and_set_bit(dpi->dpi, dpit->tbl)) { in bnxt_qplib_dealloc_dpi() 771 dpi->dpi); in bnxt_qplib_dealloc_dpi() 775 dpit->app_tbl[dpi->dpi] = NULL; in bnxt_qplib_dealloc_dpi() [all …]
|
D | qplib_res.h | 195 u32 dpi; member 355 struct bnxt_qplib_dpi *dpi, 359 struct bnxt_qplib_dpi *dpi);
|
D | qplib_fp.c | 662 req.dpi = cpu_to_le32(srq->dpi->dpi); in bnxt_qplib_create_srq() 691 srq->dbinfo.db = srq->dpi->dbr; in bnxt_qplib_create_srq() 858 req.dpi = cpu_to_le32(qp->dpi->dpi); in bnxt_qplib_create_qp1() 933 sq->dbinfo.db = qp->dpi->dbr; in bnxt_qplib_create_qp1() 938 rq->dbinfo.db = qp->dpi->dbr; in bnxt_qplib_create_qp1() 1001 req.dpi = cpu_to_le32(qp->dpi->dpi); in bnxt_qplib_create_qp() 1139 sq->dbinfo.db = qp->dpi->dbr; in bnxt_qplib_create_qp() 1144 rq->dbinfo.db = qp->dpi->dbr; in bnxt_qplib_create_qp() 2072 if (!cq->dpi) { in bnxt_qplib_create_cq() 2089 req.dpi = cpu_to_le32(cq->dpi->dpi); in bnxt_qplib_create_cq() [all …]
|
D | qplib_fp.h | 91 struct bnxt_qplib_dpi *dpi; member 271 struct bnxt_qplib_dpi *dpi; member 396 struct bnxt_qplib_dpi *dpi; member
|
D | ib_verbs.c | 569 if (!ucntx->dpi.dbr) { in bnxt_re_alloc_pd() 575 &ucntx->dpi, ucntx)) { in bnxt_re_alloc_pd() 583 resp.dpi = ucntx->dpi.dpi; in bnxt_re_alloc_pd() 584 resp.dbr = (u64)ucntx->dpi.umdbr; in bnxt_re_alloc_pd() 972 qplib_qp->dpi = &cntx->dpi; in bnxt_re_init_user_qp() 1078 qp->qplib_qp.dpi = &rdev->dpi_privileged; in bnxt_re_create_shadow_qp() 1280 qplqp->dpi = &rdev->dpi_privileged; /* Doorbell page */ in bnxt_re_init_qp_attr() 1606 qplib_srq->dpi = &cntx->dpi; in bnxt_re_init_user_srq() 1642 srq->qplib_srq.dpi = &rdev->dpi_privileged; in bnxt_re_create_srq() 2861 cq->qplib_cq.dpi = &uctx->dpi; in bnxt_re_create_cq() [all …]
|
/drivers/net/ethernet/ |
D | jme.c | 356 register struct dynpcc_info *dpi = &(jme->dpi); in jme_start_irq() local 359 dpi->cur = PCC_P1; in jme_start_irq() 360 dpi->attempt = PCC_P1; in jme_start_irq() 361 dpi->cnt = 0; in jme_start_irq() 1112 jme_attempt_pcc(struct dynpcc_info *dpi, int atmp) in jme_attempt_pcc() argument 1114 if (likely(atmp == dpi->cur)) { in jme_attempt_pcc() 1115 dpi->cnt = 0; in jme_attempt_pcc() 1119 if (dpi->attempt == atmp) { in jme_attempt_pcc() 1120 ++(dpi->cnt); in jme_attempt_pcc() 1122 dpi->attempt = atmp; in jme_attempt_pcc() [all …]
|
/drivers/target/ |
D | target_core_user.c | 511 int i, cnt, dbi, dpi; in tcmu_get_empty_block() local 518 dpi = dbi * udev->data_pages_per_blk; in tcmu_get_empty_block() 520 xas_set(&xas, dpi); in tcmu_get_empty_block() 532 if (xa_store(&udev->data_pages, dpi + i, page, GFP_NOIO)) { in tcmu_get_empty_block() 709 int page_cnt, page_inx, dpi; in tcmu_copy_data() local 732 dpi = dbi * udev->data_pages_per_blk; in tcmu_copy_data() 734 page_inx++, dpi++) { in tcmu_copy_data() 735 page = xa_load(&udev->data_pages, dpi); in tcmu_copy_data() 1665 unsigned long dpi; in tcmu_blocks_release() local 1670 xa_for_each_range(&udev->data_pages, dpi, page, first, last) { in tcmu_blocks_release() [all …]
|
/drivers/infiniband/hw/qedr/ |
D | qedr.h | 148 u16 dpi; member 236 u16 dpi; member 506 u16 dpi; member
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.c | 802 out_params->dpi = (u16)returned_id; in qed_rdma_add_user() 808 out_params->dpi * p_hwfn->dpi_size; in qed_rdma_add_user() 812 ((out_params->dpi) * p_hwfn->dpi_size); in qed_rdma_add_user() 1104 p_ramrod->dpi = cpu_to_le16(params->dpi); in qed_rdma_create_cq() 1336 qp->dpi = in_params->dpi; in qed_rdma_create_qp() 1956 static void qed_rdma_remove_user(void *rdma_cxt, u16 dpi) in qed_rdma_remove_user() argument 1960 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "dpi = %08x\n", dpi); in qed_rdma_remove_user() 1963 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->dpi_map, dpi); in qed_rdma_remove_user()
|
D | qed_rdma.h | 113 u16 dpi; member
|
D | qed_roce.c | 325 p_ramrod->dpi = cpu_to_le16(qp->dpi); in qed_roce_sp_create_responder() 460 p_ramrod->dpi = cpu_to_le16(qp->dpi); in qed_roce_sp_create_requester()
|
/drivers/gpu/drm/omapdrm/ |
D | Makefile | 23 omapdrm-$(CONFIG_OMAP2_DSS_DPI) += dss/dpi.o
|