Lines Matching refs:dsi
262 struct mipi_dsi_device *dsi = &mipi->dsi;
281 int data_len = dsi->lanes - 1;
282 bool burst = dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST ? true : false;
283 bool eot_enable = dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET ?
332 switch (dsi->format) {
346 printf("%s: not support format %d\n", __func__, dsi->format);
376 static int nx_mipi_transfer_tx(struct mipi_dsi_device *dsi,
420 static int nx_mipi_transfer_done(struct mipi_dsi_device *dsi)
438 static int nx_mipi_transfer_rx(struct mipi_dsi_device *dsi,
538 static int nx_mipi_transfer(struct mipi_dsi_device *dsi,
572 err = nx_mipi_transfer_tx(dsi, &xfer);
575 err = nx_mipi_transfer_rx(dsi, &xfer);
577 nx_mipi_transfer_done(dsi);
582 static ssize_t nx_mipi_write_buffer(struct mipi_dsi_device *dsi,
586 .channel = dsi->channel,
605 if (dsi->mode_flags & MIPI_DSI_MODE_LPM)
608 return nx_mipi_transfer(dsi, &msg);
611 __weak int nx_mipi_dsi_lcd_bind(struct mipi_dsi_device *dsi)
630 struct mipi_dsi_device *dsi = &dev->dsi;
637 /* map mipi-dsi write callback func */
638 dsi->write_buffer = nx_mipi_write_buffer;
640 ret = nx_mipi_dsi_lcd_bind(dsi);
642 printf("Error: bind mipi-dsi lcd driver !\n");
665 if (dsi->ops && dsi->ops->prepare)
666 dsi->ops->prepare(dsi);
668 if (dsi->ops && dsi->ops->enable)
669 dsi->ops->enable(dsi);