Lines Matching full:dsi
3 * MIPI DSI Bus
24 * struct mipi_dsi_msg - read/write DSI buffer
49 * struct mipi_dsi_packet - represents a MIPI DSI packet in protocol format
67 * struct mipi_dsi_host_ops - DSI bus operations
68 * @attach: attach DSI device to DSI host
69 * @detach: detach DSI device from DSI host
70 * @transfer: transmit a DSI packet
72 * DSI packets transmitted by .transfer() are passed in as mipi_dsi_msg
80 * Note that typically DSI packet transmission is atomic, so the .transfer()
91 struct mipi_dsi_device *dsi);
93 struct mipi_dsi_device *dsi);
99 * struct mipi_dsi_host - DSI host device
100 * @dev: driver model device node for this DSI host
101 * @ops: DSI host operations
114 /* DSI mode flags */
136 /* device supports non-continuous clock behavior (DSI spec 5.6.1) */
154 * @type: DSI peripheral chip type
155 * @channel: DSI virtual channel assigned to peripheral
159 * DSI device
168 * struct mipi_dsi_device - DSI peripheral device
169 * @host: DSI host for this peripheral
171 * @name: DSI peripheral chip type
175 * @mode_flags: DSI operation mode related flags
198 #define MIPI_DSI_MODULE_PREFIX "mipi-dsi:"
207 * given pixel format defined by the MIPI DSI
209 * @fmt: MIPI DSI pixel format
233 void mipi_dsi_device_unregister(struct mipi_dsi_device *dsi);
238 int mipi_dsi_attach(struct mipi_dsi_device *dsi);
239 int mipi_dsi_detach(struct mipi_dsi_device *dsi);
240 int devm_mipi_dsi_attach(struct device *dev, struct mipi_dsi_device *dsi);
241 int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi);
242 int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi);
243 int mipi_dsi_set_maximum_return_packet_size(struct mipi_dsi_device *dsi,
245 ssize_t mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable);
246 ssize_t mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi,
249 ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload,
251 ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params,
272 ssize_t mipi_dsi_dcs_write_buffer(struct mipi_dsi_device *dsi,
274 ssize_t mipi_dsi_dcs_write(struct mipi_dsi_device *dsi, u8 cmd,
276 ssize_t mipi_dsi_dcs_read(struct mipi_dsi_device *dsi, u8 cmd, void *data,
278 int mipi_dsi_dcs_nop(struct mipi_dsi_device *dsi);
279 int mipi_dsi_dcs_soft_reset(struct mipi_dsi_device *dsi);
280 int mipi_dsi_dcs_get_power_mode(struct mipi_dsi_device *dsi, u8 *mode);
281 int mipi_dsi_dcs_get_pixel_format(struct mipi_dsi_device *dsi, u8 *format);
282 int mipi_dsi_dcs_enter_sleep_mode(struct mipi_dsi_device *dsi);
283 int mipi_dsi_dcs_exit_sleep_mode(struct mipi_dsi_device *dsi);
284 int mipi_dsi_dcs_set_display_off(struct mipi_dsi_device *dsi);
285 int mipi_dsi_dcs_set_display_on(struct mipi_dsi_device *dsi);
286 int mipi_dsi_dcs_set_column_address(struct mipi_dsi_device *dsi, u16 start,
288 int mipi_dsi_dcs_set_page_address(struct mipi_dsi_device *dsi, u16 start,
290 int mipi_dsi_dcs_set_tear_off(struct mipi_dsi_device *dsi);
291 int mipi_dsi_dcs_set_tear_on(struct mipi_dsi_device *dsi,
293 int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format);
294 int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline);
295 int mipi_dsi_dcs_set_display_brightness(struct mipi_dsi_device *dsi,
297 int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi,
302 * @dsi: DSI peripheral device
306 #define mipi_dsi_dcs_write_seq(dsi, cmd, seq...) do { \ argument
308 struct device *dev = &dsi->dev; \
310 ret = mipi_dsi_dcs_write_buffer(dsi, d, ARRAY_SIZE(d)); \
318 * struct mipi_dsi_driver - DSI driver
326 int(*probe)(struct mipi_dsi_device *dsi);
327 void (*remove)(struct mipi_dsi_device *dsi);
328 void (*shutdown)(struct mipi_dsi_device *dsi);
337 static inline void *mipi_dsi_get_drvdata(const struct mipi_dsi_device *dsi) in mipi_dsi_get_drvdata() argument
339 return dev_get_drvdata(&dsi->dev); in mipi_dsi_get_drvdata()
342 static inline void mipi_dsi_set_drvdata(struct mipi_dsi_device *dsi, void *data) in mipi_dsi_set_drvdata() argument
344 dev_set_drvdata(&dsi->dev, data); in mipi_dsi_set_drvdata()