Lines Matching refs:bootmode
327 char *bootmode; in bootmode_show() local
332 bootmode = cdev->bootmode; in bootmode_show()
334 if (bootmode) in bootmode_show()
335 return scnprintf(buf, PAGE_SIZE, "%s\n", bootmode); in bootmode_show()
352 kfree(cdev->bootmode); in bootmode_store()
354 cdev->bootmode = kmalloc(count + 1, GFP_KERNEL); in bootmode_store()
355 if (!cdev->bootmode) { in bootmode_store()
360 strncpy(cdev->bootmode, buf, count); in bootmode_store()
362 if (cdev->bootmode[count - 1] == '\n') in bootmode_store()
363 cdev->bootmode[count - 1] = '\0'; in bootmode_store()
365 cdev->bootmode[count] = '\0'; in bootmode_store()
370 static DEVICE_ATTR_RW(bootmode);