Lines Matching refs:msg
45 struct mipi_dsi_msg *msg) in mipi_dsi_device_transfer() argument
53 msg->flags |= MIPI_DSI_MSG_USE_LPM; in mipi_dsi_device_transfer()
55 return ops->transfer(dsi->host, msg); in mipi_dsi_device_transfer()
135 const struct mipi_dsi_msg *msg) in mipi_dsi_create_packet() argument
137 if (!packet || !msg) in mipi_dsi_create_packet()
141 if (!mipi_dsi_packet_format_is_short(msg->type) && in mipi_dsi_create_packet()
142 !mipi_dsi_packet_format_is_long(msg->type)) in mipi_dsi_create_packet()
145 if (msg->channel > 3) in mipi_dsi_create_packet()
149 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); in mipi_dsi_create_packet()
150 if (mipi_dsi_packet_format_is_long(msg->type)) { in mipi_dsi_create_packet()
151 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet()
152 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet()
154 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet()
155 packet->payload = msg->tx_buf; in mipi_dsi_create_packet()
157 const u8 *tx = msg->tx_buf; in mipi_dsi_create_packet()
159 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet()
160 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet()
176 struct mipi_dsi_msg msg = { in mipi_dsi_shutdown_peripheral() local
182 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_shutdown_peripheral()
195 struct mipi_dsi_msg msg = { in mipi_dsi_turn_on_peripheral() local
201 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_turn_on_peripheral()
219 struct mipi_dsi_msg msg = { in mipi_dsi_set_maximum_return_packet_size() local
225 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_set_maximum_return_packet_size()
244 struct mipi_dsi_msg msg = { in mipi_dsi_compression_mode() local
250 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_compression_mode()
267 struct mipi_dsi_msg msg = { in mipi_dsi_picture_parameter_set() local
273 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_picture_parameter_set()
293 struct mipi_dsi_msg msg = { in mipi_dsi_generic_write() local
301 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM; in mipi_dsi_generic_write()
304 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM; in mipi_dsi_generic_write()
307 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM; in mipi_dsi_generic_write()
310 msg.type = MIPI_DSI_GENERIC_LONG_WRITE; in mipi_dsi_generic_write()
314 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_generic_write()
334 struct mipi_dsi_msg msg = { in mipi_dsi_generic_read() local
344 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM; in mipi_dsi_generic_read()
348 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM; in mipi_dsi_generic_read()
352 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM; in mipi_dsi_generic_read()
359 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_generic_read()
377 struct mipi_dsi_msg msg = { in mipi_dsi_dcs_write_buffer() local
388 msg.type = MIPI_DSI_DCS_SHORT_WRITE; in mipi_dsi_dcs_write_buffer()
392 msg.type = MIPI_DSI_DCS_SHORT_WRITE_PARAM; in mipi_dsi_dcs_write_buffer()
396 msg.type = MIPI_DSI_DCS_LONG_WRITE; in mipi_dsi_dcs_write_buffer()
400 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_dcs_write_buffer()
457 struct mipi_dsi_msg msg = { in mipi_dsi_dcs_read() local
466 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_dcs_read()