Lines Matching defs: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;
225 * Scroll the current message along the LCD by one character, rearming the
234 /* update the current message string */
238 ctx->curr[i] = ctx->message[ch];
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
285 devm_kfree(&ctx->pdev->dev, ctx->message);
286 ctx->message = NULL;
300 if (ctx->message)
301 devm_kfree(&ctx->pdev->dev, ctx->message);
303 ctx->message = new_msg;
314 * message_show() - read message via sysfs
316 * @attr: the LCD message attribute
317 * @buf: the buffer to read the message into
319 * Read the current message being displayed or scrolled across the LCD display
329 return sprintf(buf, "%s\n", ctx->message);
333 * message_store() - write a new message via sysfs
335 * @attr: the LCD message attribute
336 * @buf: the buffer containing the new message
337 * @count: the size of the message in @buf
339 * Write a new message to display or scroll across the LCD display from sysfs.
341 * Return: the size of the message on success, else -ERRNO
353 static DEVICE_ATTR_RW(message);
397 ctx->message = NULL;
401 /* initialise a timer for scrolling the message */
406 /* display a default message */