Lines Matching full:message
40 * @message: the full message to display or scroll on the LCD
41 * @message_len: the length of the @message string
42 * @scroll_pos: index of the first character of @message currently displayed
55 char *message; member
225 * Scroll the current message along the LCD by one character, rearming the
234 /* update the current message string */ in img_ascii_lcd_scroll()
238 ctx->curr[i] = ctx->message[ch]; in img_ascii_lcd_scroll()
257 * img_ascii_lcd_display() - set the message to be displayed
259 * @msg: the message to display
262 * Display a new message @msg on the LCD. @msg can be longer than the number of
290 if (ctx->message) in img_ascii_lcd_display()
291 devm_kfree(&ctx->pdev->dev, ctx->message); in img_ascii_lcd_display()
293 ctx->message = new_msg; in img_ascii_lcd_display()
304 * message_show() - read message via sysfs
306 * @attr: the LCD message attribute
307 * @buf: the buffer to read the message into
309 * Read the current message being displayed or scrolled across the LCD display
319 return sprintf(buf, "%s\n", ctx->message); in message_show()
323 * message_store() - write a new message via sysfs
325 * @attr: the LCD message attribute
326 * @buf: the buffer containing the new message
327 * @count: the size of the message in @buf
329 * Write a new message to display or scroll across the LCD display from sysfs.
331 * Return: the size of the message on success, else -ERRNO
343 static DEVICE_ATTR_RW(message);
387 ctx->message = NULL; in img_ascii_lcd_probe()
391 /* initialise a timer for scrolling the message */ in img_ascii_lcd_probe()
396 /* display a default message */ in img_ascii_lcd_probe()