Lines Matching refs:host_memory_descriptor
95 …uct pqi_ctrl_info *ctrl_info, struct pqi_host_memory_descriptor *host_memory_descriptor, u32 total…
96 …buffer(struct pqi_ctrl_info *ctrl_info, struct pqi_host_memory_descriptor *host_memory_descriptor);
97 …uct pqi_ctrl_info *ctrl_info, struct pqi_host_memory_descriptor *host_memory_descriptor, u16 funct…
8911 struct pqi_host_memory_descriptor *host_memory_descriptor, in pqi_host_alloc_mem() argument
8925 host_memory_descriptor->host_chunk_virt_address = kmalloc(sg_count * sizeof(void *), GFP_KERNEL); in pqi_host_alloc_mem()
8926 if (!host_memory_descriptor->host_chunk_virt_address) in pqi_host_alloc_mem()
8930 host_memory = host_memory_descriptor->host_memory; in pqi_host_alloc_mem()
8933 …host_memory_descriptor->host_chunk_virt_address[i] = dma_alloc_coherent(dev, chunk_size, &dma_hand… in pqi_host_alloc_mem()
8934 if (!host_memory_descriptor->host_chunk_virt_address[i]) in pqi_host_alloc_mem()
8951 host_memory_descriptor->host_chunk_virt_address[i], in pqi_host_alloc_mem()
8954 kfree(host_memory_descriptor->host_chunk_virt_address); in pqi_host_alloc_mem()
8960 struct pqi_host_memory_descriptor *host_memory_descriptor, in pqi_host_alloc_buffer() argument
8977 host_memory_descriptor, total_required_size, in pqi_host_alloc_buffer()
8991 struct pqi_host_memory_descriptor *host_memory_descriptor, in pqi_host_setup_buffer() argument
9000 &host_memory_descriptor->host_memory_dma_handle, GFP_KERNEL); in pqi_host_setup_buffer()
9004 host_memory_descriptor->host_memory = host_memory; in pqi_host_setup_buffer()
9006 if (pqi_host_alloc_buffer(ctrl_info, host_memory_descriptor, in pqi_host_setup_buffer()
9010 host_memory_descriptor->host_memory_dma_handle); in pqi_host_setup_buffer()
9011 host_memory_descriptor->host_memory = NULL; in pqi_host_setup_buffer()
9017 struct pqi_host_memory_descriptor *host_memory_descriptor) in pqi_host_free_buffer() argument
9025 host_memory = host_memory_descriptor->host_memory; in pqi_host_free_buffer()
9040 host_memory_descriptor->host_chunk_virt_address[i], in pqi_host_free_buffer()
9043 kfree(host_memory_descriptor->host_chunk_virt_address); in pqi_host_free_buffer()
9047 host_memory_descriptor->host_memory_dma_handle); in pqi_host_free_buffer()
9048 host_memory_descriptor->host_memory = NULL; in pqi_host_free_buffer()
9052 struct pqi_host_memory_descriptor *host_memory_descriptor, in pqi_host_memory_update() argument
9065 host_memory = host_memory_descriptor->host_memory; in pqi_host_memory_update()
9069 …put_unaligned_le64((u64)host_memory_descriptor->host_memory_dma_handle, &request.data.host_memory_… in pqi_host_memory_update()