Lines Matching refs:msg
235 struct mipi_dsi_msg *msg) in mipi_dsi_device_transfer() argument
243 msg->flags |= MIPI_DSI_MSG_USE_LPM; in mipi_dsi_device_transfer()
245 return ops->transfer(dsi->host, msg); in mipi_dsi_device_transfer()
324 const struct mipi_dsi_msg *msg) in mipi_dsi_create_packet() argument
326 if (!packet || !msg) in mipi_dsi_create_packet()
330 if (!mipi_dsi_packet_format_is_short(msg->type) && in mipi_dsi_create_packet()
331 !mipi_dsi_packet_format_is_long(msg->type)) in mipi_dsi_create_packet()
334 if (msg->channel > 3) in mipi_dsi_create_packet()
338 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); in mipi_dsi_create_packet()
349 if (mipi_dsi_packet_format_is_long(msg->type)) { in mipi_dsi_create_packet()
350 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet()
351 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet()
353 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet()
354 packet->payload = msg->tx_buf; in mipi_dsi_create_packet()
356 const u8 *tx = msg->tx_buf; in mipi_dsi_create_packet()
358 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet()
359 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet()
381 struct mipi_dsi_msg msg = { in mipi_dsi_set_maximum_return_packet_size() local
388 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_set_maximum_return_packet_size()
407 struct mipi_dsi_msg msg = { in mipi_dsi_generic_write() local
415 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM; in mipi_dsi_generic_write()
419 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM; in mipi_dsi_generic_write()
423 msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM; in mipi_dsi_generic_write()
427 msg.type = MIPI_DSI_GENERIC_LONG_WRITE; in mipi_dsi_generic_write()
431 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_generic_write()
452 struct mipi_dsi_msg msg = { in mipi_dsi_generic_read() local
462 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM; in mipi_dsi_generic_read()
466 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM; in mipi_dsi_generic_read()
470 msg.type = MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM; in mipi_dsi_generic_read()
477 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_generic_read()
496 struct mipi_dsi_msg msg = { in mipi_dsi_dcs_write_buffer() local
507 msg.type = MIPI_DSI_DCS_SHORT_WRITE; in mipi_dsi_dcs_write_buffer()
511 msg.type = MIPI_DSI_DCS_SHORT_WRITE_PARAM; in mipi_dsi_dcs_write_buffer()
515 msg.type = MIPI_DSI_DCS_LONG_WRITE; in mipi_dsi_dcs_write_buffer()
519 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_dcs_write_buffer()
579 struct mipi_dsi_msg msg = { in mipi_dsi_dcs_read() local
588 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_dcs_read()