Lines Matching refs:cmd
1487 char cmd[42]; in lcd_proc_write() local
1492 len = min(count, sizeof(cmd) - 1); in lcd_proc_write()
1493 if (copy_from_user(cmd, buf, len)) in lcd_proc_write()
1495 cmd[len] = '\0'; in lcd_proc_write()
1498 if (sscanf(cmd, " brightness : %i", &value) != 1 && in lcd_proc_write()
1559 char *cmd; in video_proc_write() local
1566 cmd = memdup_user_nul(buf, count); in video_proc_write()
1567 if (IS_ERR(cmd)) in video_proc_write()
1568 return PTR_ERR(cmd); in video_proc_write()
1570 buffer = cmd; in video_proc_write()
1590 kfree(cmd); in video_proc_write()
1669 char cmd[42]; in fan_proc_write() local
1673 len = min(count, sizeof(cmd) - 1); in fan_proc_write()
1674 if (copy_from_user(cmd, buf, len)) in fan_proc_write()
1676 cmd[len] = '\0'; in fan_proc_write()
1678 if (sscanf(cmd, " force_on : %i", &value) != 1 && in fan_proc_write()
1740 char cmd[42]; in keys_proc_write() local
1744 len = min(count, sizeof(cmd) - 1); in keys_proc_write()
1745 if (copy_from_user(cmd, buf, len)) in keys_proc_write()
1747 cmd[len] = '\0'; in keys_proc_write()
1749 if (sscanf(cmd, " hotkey_ready : %i", &value) == 1 && value == 0) in keys_proc_write()
2616 static long toshiba_acpi_ioctl(struct file *fp, unsigned int cmd, in toshiba_acpi_ioctl() argument
2626 switch (cmd) { in toshiba_acpi_ioctl()