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