Home
last modified time | relevance | path

Searched refs:lm_file (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/vfio/pci/pds/
H A Dlm.c27 lm_file = kzalloc(sizeof(*lm_file), GFP_KERNEL); in pds_vfio_get_lm_file()
28 if (!lm_file) in pds_vfio_get_lm_file()
32 lm_file->filep = in pds_vfio_get_lm_file()
37 stream_open(lm_file->filep->f_inode, lm_file->filep); in pds_vfio_get_lm_file()
76 return lm_file; in pds_vfio_get_lm_file()
86 kfree(lm_file); in pds_vfio_get_lm_file()
140 if (offset < lm_file->last_offset || !lm_file->last_offset_sg) { in pds_vfio_get_file_page()
142 lm_file->last_offset_sg = lm_file->sg_table.sgl; in pds_vfio_get_file_page()
172 kfree(lm_file); in pds_vfio_release_file()
263 if (!lm_file) { in pds_vfio_get_save_file()
[all …]
H A Dcmds.c213 if (!lm_file) in pds_vfio_dma_map_lm_file()
221 lm_file->num_sge = lm_file->sg_table.nents; in pds_vfio_dma_map_lm_file()
246 lm_file->sgl = sgl; in pds_vfio_dma_map_lm_file()
247 lm_file->sgl_addr = sgl_addr; in pds_vfio_dma_map_lm_file()
254 lm_file->num_sge = 0; in pds_vfio_dma_map_lm_file()
263 if (!lm_file) in pds_vfio_dma_unmap_lm_file()
267 if (lm_file->sgl) { in pds_vfio_dma_unmap_lm_file()
269 lm_file->num_sge * sizeof(*lm_file->sgl), in pds_vfio_dma_unmap_lm_file()
271 kfree(lm_file->sgl); in pds_vfio_dma_unmap_lm_file()
272 lm_file->sgl = NULL; in pds_vfio_dma_unmap_lm_file()
[all …]