Home | History | Annotate | Download | only in atactl

Lines Matching defs:idle

195 	{ "setidle",	"idle-timer",		device_setidle },
198 { "idle", "", device_idle },
1505 * device idle:
1507 * issue the IDLE IMMEDIATE command to the drive
1520 if (strcmp(cmdname, "idle") == 0)
1567 * Set the idle timer on the disk. Set it for either idle mode or
1574 unsigned long idle;
1582 idle = strtoul(argv[0], &end, 0);
1585 fprintf(stderr, "Invalid idle time: \"%s\"\n", argv[0]);
1589 if (idle > 19800) {
1590 fprintf(stderr, "Idle time has a maximum value of 5.5 "
1595 if (idle != 0 && idle < 5) {
1596 fprintf(stderr, "Idle timer must be at least 5 seconds\n");
1602 if (idle <= 240*5)
1603 req.sec_count = idle / 5;
1605 req.sec_count = idle / (30*60) + 240;
1643 printf("Idle mode\n");