Lines Matching refs:ofap
7706 struct pqi_ofa_memory *ofap; in pqi_ofa_alloc_mem() local
7713 ofap = ctrl_info->pqi_ofa_mem_virt_addr; in pqi_ofa_alloc_mem()
7733 mem_descriptor = &ofap->sg_descriptor[i]; in pqi_ofa_alloc_mem()
7742 put_unaligned_le16(sg_count, &ofap->num_memory_descriptors); in pqi_ofa_alloc_mem()
7743 put_unaligned_le32(size, &ofap->bytes_allocated); in pqi_ofa_alloc_mem()
7749 mem_descriptor = &ofap->sg_descriptor[i]; in pqi_ofa_alloc_mem()
7757 put_unaligned_le32 (0, &ofap->bytes_allocated); in pqi_ofa_alloc_mem()
7812 struct pqi_ofa_memory *ofap; in pqi_ofa_free_host_buffer() local
7814 ofap = ctrl_info->pqi_ofa_mem_virt_addr; in pqi_ofa_free_host_buffer()
7816 if (!ofap) in pqi_ofa_free_host_buffer()
7819 if (!ofap->bytes_allocated) in pqi_ofa_free_host_buffer()
7822 mem_descriptor = ofap->sg_descriptor; in pqi_ofa_free_host_buffer()
7824 for (i = 0; i < get_unaligned_le16(&ofap->num_memory_descriptors); in pqi_ofa_free_host_buffer()
7835 PQI_OFA_MEMORY_DESCRIPTOR_LENGTH, ofap, in pqi_ofa_free_host_buffer()
7844 struct pqi_ofa_memory *ofap; in pqi_ofa_host_memory_update() local
7848 ofap = ctrl_info->pqi_ofa_mem_virt_addr; in pqi_ofa_host_memory_update()
7856 if (ofap) { in pqi_ofa_host_memory_update()
7858 get_unaligned_le16(&ofap->num_memory_descriptors) * in pqi_ofa_host_memory_update()