Lines Matching refs:mdev
234 const struct mipi_dsi_device *mdev) in mipi_dsi_stm32_attach() argument
241 if (!(mdev->mode_flags & MIPI_DSI_MODE_VIDEO)) { in mipi_dsi_stm32_attach()
249 if (mdev->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) { in mipi_dsi_stm32_attach()
251 } else if (mdev->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) { in mipi_dsi_stm32_attach()
257 vcfg->PacketSize = mdev->timings.hactive; in mipi_dsi_stm32_attach()
262 (mdev->timings.hsync * data->lane_clk_khz) / data->pixel_clk_khz; in mipi_dsi_stm32_attach()
264 (mdev->timings.hbp * data->lane_clk_khz) / data->pixel_clk_khz; in mipi_dsi_stm32_attach()
266 ((mdev->timings.hactive + mdev->timings.hsync + mdev->timings.hbp + in mipi_dsi_stm32_attach()
267 mdev->timings.hfp) * data->lane_clk_khz) / data->pixel_clk_khz; in mipi_dsi_stm32_attach()
268 vcfg->VerticalSyncActive = mdev->timings.vsync; in mipi_dsi_stm32_attach()
269 vcfg->VerticalBackPorch = mdev->timings.vbp; in mipi_dsi_stm32_attach()
270 vcfg->VerticalFrontPorch = mdev->timings.vfp; in mipi_dsi_stm32_attach()
271 vcfg->VerticalActive = mdev->timings.vactive; in mipi_dsi_stm32_attach()
273 if (mdev->mode_flags & MIPI_DSI_MODE_LPM) { in mipi_dsi_stm32_attach()