Lines Matching refs:virt
56 smi_buffer->virt = dma_alloc_coherent(&dcdbas_pdev->dev, size,
58 if (!smi_buffer->virt) {
75 if (!smi_buffer->virt)
81 smi_buffer->virt, smi_buffer->dma);
82 smi_buffer->virt = NULL;
93 if (!smi_buf.virt || wsmt_enabled)
119 if (smi_buf.virt)
120 memcpy(tmp.virt, smi_buf.virt, smi_buf.size);
171 ret = memory_read_from_buffer(buf, count, &pos, smi_buf.virt,
192 memcpy(smi_buf.virt + pos, buf, count);
327 smi_cmd = (struct smi_cmd *)smi_buf.virt;
343 * Because the address that smi_cmd (smi_buf.virt) points to
356 memset(smi_buf.virt, 0, smi_buf.size);
372 * Caller must set up the host control command in smi_buf.virt.
383 apm_cmd = (struct apm_cmd *)smi_buf.virt;
466 * use smi_buf.virt at this point because the system has finished
480 if (!smi_buf.virt) {
491 apm_cmd = (struct apm_cmd *)smi_buf.virt;
599 /* First 8 bytes is for a semaphore, not part of the smi_buf.virt */
601 smi_buf.virt = bios_buffer + 8;