Lines Matching defs:packet
459 * mipi_dsi_packet_format_is_short - check if a packet is of the short format
460 * @type: MIPI DSI data type of the packet
462 * Return: true if the packet for the given data type is a short packet, false
497 * mipi_dsi_packet_format_is_long - check if a packet is of the long format
498 * @type: MIPI DSI data type of the packet
500 * Return: true if the packet for the given data type is a long packet, false
530 * mipi_dsi_create_packet - create a packet from a message according to the
532 * @packet: pointer to a DSI packet structure
533 * @msg: message to translate into a packet
537 int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
540 if (!packet || !msg)
551 memset(packet, 0, sizeof(*packet));
552 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f);
564 packet->header[1] = (msg->tx_len >> 0) & 0xff;
565 packet->header[2] = (msg->tx_len >> 8) & 0xff;
567 packet->payload_length = msg->tx_len;
568 packet->payload = msg->tx_buf;
572 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0;
573 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0;
576 packet->size = sizeof(packet->header) + packet->payload_length;
624 * the payload in a long packet transmitted from the peripheral back to the
698 * mipi_dsi_generic_write() - transmit data using a generic write packet
741 * mipi_dsi_generic_read() - receive data using a generic read packet
898 * mipi_dsi_dcs_nop() - send DCS nop packet