Lines Matching full:commands

45 	 * MIPI commands to execute when the display pipeline is enabled.
48 * The commands are stored in a byte array with the format:
51 * Some commands require a pause before the next command can be received.
68 u8 commands[]; member
80 struct panel_mipi_dbi_commands *commands; in panel_mipi_dbi_check_commands() local
104 u8 command = config->commands[i++]; in panel_mipi_dbi_check_commands()
105 u8 num_parameters = config->commands[i++]; in panel_mipi_dbi_check_commands()
106 const u8 *parameters = &config->commands[i]; in panel_mipi_dbi_check_commands()
127 commands = devm_kzalloc(dev, sizeof(*commands), GFP_KERNEL); in panel_mipi_dbi_check_commands()
128 if (!commands) in panel_mipi_dbi_check_commands()
131 commands->len = commands_len; in panel_mipi_dbi_check_commands()
132 commands->buf = devm_kmemdup(dev, config->commands, commands->len, GFP_KERNEL); in panel_mipi_dbi_check_commands()
133 if (!commands->buf) in panel_mipi_dbi_check_commands()
136 return commands; in panel_mipi_dbi_check_commands()
141 struct panel_mipi_dbi_commands *commands; in panel_mipi_dbi_commands_from_fw() local
160 commands = panel_mipi_dbi_check_commands(dev, fw); in panel_mipi_dbi_commands_from_fw()
163 return commands; in panel_mipi_dbi_commands_from_fw()
167 struct panel_mipi_dbi_commands *commands) in panel_mipi_dbi_commands_execute() argument
171 if (!commands) in panel_mipi_dbi_commands_execute()
174 while (i < commands->len) { in panel_mipi_dbi_commands_execute()
175 u8 command = commands->buf[i++]; in panel_mipi_dbi_commands_execute()
176 u8 num_parameters = commands->buf[i++]; in panel_mipi_dbi_commands_execute()
177 const u8 *parameters = &commands->buf[i]; in panel_mipi_dbi_commands_execute()