Lines Matching refs:bootmode
326 char *bootmode; in bootmode_show() local
331 bootmode = mdev->bootmode; in bootmode_show()
333 if (bootmode) in bootmode_show()
334 return scnprintf(buf, PAGE_SIZE, "%s\n", bootmode); in bootmode_show()
351 kfree(mdev->bootmode); in bootmode_store()
353 mdev->bootmode = kmalloc(count + 1, GFP_KERNEL); in bootmode_store()
354 if (!mdev->bootmode) { in bootmode_store()
359 strncpy(mdev->bootmode, buf, count); in bootmode_store()
361 if (mdev->bootmode[count - 1] == '\n') in bootmode_store()
362 mdev->bootmode[count - 1] = '\0'; in bootmode_store()
364 mdev->bootmode[count] = '\0'; in bootmode_store()
369 static DEVICE_ATTR_RW(bootmode);