Lines Matching refs:packet
323 int mipi_dsi_create_packet(struct mipi_dsi_packet *packet, in mipi_dsi_create_packet() argument
326 if (!packet || !msg) in mipi_dsi_create_packet()
337 memset(packet, 0, sizeof(*packet)); in mipi_dsi_create_packet()
338 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); 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()
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()
362 packet->size = sizeof(packet->header) + packet->payload_length; in mipi_dsi_create_packet()