Lines Matching defs:packet
377 * mipi_dsi_packet_format_is_short - check if a packet is of the short format
378 * @type: MIPI DSI data type of the packet
380 * Return: true if the packet for the given data type is a short packet, false
415 * mipi_dsi_packet_format_is_long - check if a packet is of the long format
416 * @type: MIPI DSI data type of the packet
418 * Return: true if the packet for the given data type is a long packet, false
448 * mipi_dsi_create_packet - create a packet from a message according to the
450 * @packet: pointer to a DSI packet structure
451 * @msg: message to translate into a packet
455 int mipi_dsi_create_packet(struct mipi_dsi_packet *packet,
458 if (!packet || !msg)
469 memset(packet, 0, sizeof(*packet));
470 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f);
482 packet->header[1] = (msg->tx_len >> 0) & 0xff;
483 packet->header[2] = (msg->tx_len >> 8) & 0xff;
485 packet->payload_length = msg->tx_len;
486 packet->payload = msg->tx_buf;
490 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0;
491 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0;
494 packet->size = sizeof(packet->header) + packet->payload_length;
542 * the payload in a long packet transmitted from the peripheral back to the
616 * mipi_dsi_generic_write() - transmit data using a generic write packet
659 * mipi_dsi_generic_read() - receive data using a generic read packet
816 * mipi_dsi_dcs_nop() - send DCS nop packet