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