Lines Matching defs:apm_cmd
202 ret = smi_data_buf_realloc(sizeof(struct apm_cmd));
350 struct apm_cmd *apm_cmd;
357 apm_cmd = (struct apm_cmd *)smi_data_buf;
358 apm_cmd->status = ESM_STATUS_CMD_UNSUCCESSFUL;
419 while (apm_cmd->status == ESM_STATUS_CMD_UNSUCCESSFUL) {
446 struct apm_cmd *apm_cmd;
460 if (smi_data_buf_size < sizeof(struct apm_cmd)) {
466 apm_cmd = (struct apm_cmd *)smi_data_buf;
470 apm_cmd->command = ESM_APM_POWER_CYCLE;
471 apm_cmd->reserved = 0;
472 *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 0;
475 apm_cmd->command = ESM_APM_POWER_CYCLE;
476 apm_cmd->reserved = 0;
477 *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 20;