Lines Matching refs:apm_cmd
214 ret = smi_data_buf_realloc(sizeof(struct apm_cmd));
376 struct apm_cmd *apm_cmd;
383 apm_cmd = (struct apm_cmd *)smi_buf.virt;
384 apm_cmd->status = ESM_STATUS_CMD_UNSUCCESSFUL;
444 while (apm_cmd->status == ESM_STATUS_CMD_UNSUCCESSFUL) {
471 struct apm_cmd *apm_cmd;
485 if (smi_buf.size < sizeof(struct apm_cmd)) {
491 apm_cmd = (struct apm_cmd *)smi_buf.virt;
495 apm_cmd->command = ESM_APM_POWER_CYCLE;
496 apm_cmd->reserved = 0;
497 *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 0;
500 apm_cmd->command = ESM_APM_POWER_CYCLE;
501 apm_cmd->reserved = 0;
502 *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 20;