Lines Matching defs:count
260 * @count: length of msg, or -1
269 const char *msg, ssize_t count)
276 if (count == -1)
277 count = strlen(msg);
280 if (msg[count - 1] == '\n')
281 count--;
283 if (!count) {
293 new_msg = devm_kmalloc(&ctx->pdev->dev, count + 1, GFP_KERNEL);
297 memcpy(new_msg, msg, count);
298 new_msg[count] = 0;
304 ctx->message_len = count;
337 * @count: the size of the message in @buf
344 const char *buf, size_t count)
349 err = img_ascii_lcd_display(ctx, buf, count);
350 return err ?: count;