Lines Matching refs:packet
369 * mipi_dsi_packet_format_is_short - check if a packet is of the short format
370 * @type: MIPI DSI data type of the packet
372 * Return: true if the packet for the given data type is a short packet, false
407 * mipi_dsi_packet_format_is_long - check if a packet is of the long format
408 * @type: MIPI DSI data type of the packet
410 * Return: true if the packet for the given data type is a long packet, false
440 * mipi_dsi_create_packet - create a packet from a message according to the
442 * @packet: pointer to a DSI packet structure
443 * @msg: message to translate into a packet
447 int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
450 if (!packet || !msg)
461 memset(packet, 0, sizeof(*packet));
462 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f);
474 packet->header[1] = (msg->tx_len >> 0) & 0xff;
475 packet->header[2] = (msg->tx_len >> 8) & 0xff;
477 packet->payload_length = msg->tx_len;
478 packet->payload = msg->tx_buf;
482 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0;
483 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0;
486 packet->size = sizeof(packet->header) + packet->payload_length;
534 * the payload in a long packet transmitted from the peripheral back to the
608 * mipi_dsi_generic_write() - transmit data using a generic write packet
651 * mipi_dsi_generic_read() - receive data using a generic read packet
808 * mipi_dsi_dcs_nop() - send DCS nop packet