Lines Matching defs:smi_cmd
242 struct smi_cmd *smi_cmd = par;
256 : "a" (smi_cmd->command_code),
257 "d" (smi_cmd->command_address),
258 "b" (smi_cmd->ebx),
259 "c" (smi_cmd->ecx)
270 int dcdbas_smi_request(struct smi_cmd *smi_cmd)
274 if (smi_cmd->magic != SMI_CMD_MAGIC) {
282 ret = smp_call_on_cpu(0, raise_smi, smi_cmd, true);
296 * User application writes smi_cmd to smi_data before telling driver
303 struct smi_cmd *smi_cmd;
309 if (smi_data_buf_size < sizeof(struct smi_cmd)) {
313 smi_cmd = (struct smi_cmd *)smi_data_buf;
318 ret = dcdbas_smi_request(smi_cmd);
327 * the struct smi_cmd to BIOS.
329 * Because the address that smi_cmd (smi_data_buf) points to
331 * is present, we can't use virt_to_phys() on smi_cmd, so
333 * the virtual address for smi_cmd was received.
335 smi_cmd->ebx = smi_data_buf_phys_addr +
336 offsetof(struct smi_cmd, command_buffer);
337 ret = dcdbas_smi_request(smi_cmd);