Lines Matching full:message

28  * Scroll the current message along the display by one character, rearming the
37 /* update the current message string */ in linedisp_scroll()
41 linedisp->buf[i] = linedisp->message[ch]; in linedisp_scroll()
60 * linedisp_display() - set the message to be displayed
62 * @msg: the message to display
65 * Display a new message @msg on the display. @msg can be longer than the
88 kfree(linedisp->message); in linedisp_display()
89 linedisp->message = NULL; in linedisp_display()
100 kfree(linedisp->message); in linedisp_display()
102 linedisp->message = new_msg; in linedisp_display()
113 * message_show() - read message via sysfs
115 * @attr: the display message attribute
116 * @buf: the buffer to read the message into
118 * Read the current message being displayed or scrolled across the display into
128 return sysfs_emit(buf, "%s\n", linedisp->message); in message_show()
132 * message_store() - write a new message via sysfs
134 * @attr: the display message attribute
135 * @buf: the buffer containing the new message
136 * @count: the size of the message in @buf
138 * Write a new message to display or scroll across the display from sysfs.
140 * Return: the size of the message on success, else -ERRNO
152 static DEVICE_ATTR_RW(message);
173 if (linedisp->message && linedisp->message_len > linedisp->num_chars) { in scroll_step_ms_store()
224 /* initialise a timer for scrolling the message */ in linedisp_register()
231 /* display a default message */ in linedisp_register()
256 kfree(linedisp->message); in linedisp_unregister()