Lines Matching defs:behavior

97 do_ioctl(int ioctl_cmd, char *keyword, char *behavior, int suppress)
103 mesg(MERR, "%s %s failed, %s\n", keyword, behavior,
107 mesg(MDEBUG, "%s %s failed, %s\n", keyword, behavior,
117 * Check for valid cpupm behavior and communicate it to the kernel.
123 char *behavior;
137 char *behavior;
140 behavior = LINEARG(1);
145 if (strcmp(behavior, bp->behavior) == 0 &&
152 mesg(MERR, "invalid cpupm behavior \"%s\"\n", behavior);
154 mesg(MERR, "invalid cpupm behavior \"%s %s\"\n",
155 behavior, mode);
161 behavior, strerror(errno));
174 char *behavior;
185 char *behavior;
187 for (behavior = LINEARG(1), bp = blist; bp->cmd; bp++) {
188 if (strcmp(behavior, bp->behavior) == 0)
192 mesg(MERR, "invalid cpu_deep_idle behavior \"%s\"\n", behavior);
197 behavior, strerror(errno));
222 char *behavior, int *didyes, int suppress)
241 blacklist, yesstr, nostr, keyword, behavior);
259 return (do_ioctl(no, keyword, behavior, suppress));
273 return (do_ioctl(no, keyword, behavior, suppress));
310 return (do_ioctl(no, keyword, behavior,
313 ret = do_ioctl(yes, keyword, behavior,
322 ret = do_ioctl(yes, keyword, behavior, suppress);
326 return (do_ioctl(no, keyword, behavior, suppress));
334 char *behavior;
344 char *behavior;
347 for (behavior = LINEARG(1), bp = blist; bp->cmd; bp++) {
348 if (strcmp(behavior, bp->behavior) == 0)
352 mesg(MERR, "invalid S3-support behavior \"%s\"\n", behavior);
361 return (do_ioctl(bp->cmd, "S3-support", behavior, EBUSY));
370 PM_ENABLE_S3, PM_DISABLE_S3, "S3-support", behavior,
374 mesg(MERR, "S3-support %s failed, %s\n", behavior,
381 * Check for valid autoS3 behavior and save after ioctl success.
387 char *behavior;
397 char *behavior;
400 for (behavior = LINEARG(1), bp = blist; bp->cmd; bp++) {
401 if (strcmp(behavior, bp->behavior) == 0)
405 mesg(MERR, "invalid autoS3 behavior \"%s\"\n", behavior);
412 behavior, strerror(errno));
418 return (do_ioctl(bp->cmd, "autoS3", behavior, EBUSY));
422 PM_START_AUTOS3, PM_STOP_AUTOS3, "autoS3", behavior,
429 * Check for valid autopm behavior and save after ioctl success.
435 char *behavior;
445 char *behavior;
447 for (behavior = LINEARG(1), bp = blist; bp->cmd; bp++) {
448 if (strcmp(behavior, bp->behavior) == 0)
452 mesg(MERR, "invalid autopm behavior \"%s\"\n", behavior);
457 * for "default" behavior, do not enable autopm if not ESTAR_V3
463 behavior, strerror(errno));
467 (void) strcpy(new_cc.apm_behavior, behavior);
474 behavior, strerror(errno));
477 mesg(MDEBUG, "autopm %s succeeded\n", behavior);
483 PM_START_PM, PM_STOP_PM, "autopm", behavior, &didenable,
488 (void) strcpy(new_cc.apm_behavior, behavior);
517 * check and record autoshutdown behavior.
522 char **bp, *behavior;
523 char *unrec = gettext("unrecognized autoshutdown behavior");
537 for (behavior = LINEARG(4), bp = blist; *bp; bp++) {
538 if (strcmp(behavior, *bp) == 0)
542 mesg(MERR, "%s: \"%s\"\n", unrec, behavior);