Lines Matching refs:ofap
7712 struct pqi_ofa_memory *ofap; in pqi_ofa_alloc_mem() local
7719 ofap = ctrl_info->pqi_ofa_mem_virt_addr; in pqi_ofa_alloc_mem()
7739 mem_descriptor = &ofap->sg_descriptor[i]; in pqi_ofa_alloc_mem()
7748 put_unaligned_le16(sg_count, &ofap->num_memory_descriptors); in pqi_ofa_alloc_mem()
7749 put_unaligned_le32(size, &ofap->bytes_allocated); in pqi_ofa_alloc_mem()
7755 mem_descriptor = &ofap->sg_descriptor[i]; in pqi_ofa_alloc_mem()
7763 put_unaligned_le32 (0, &ofap->bytes_allocated); in pqi_ofa_alloc_mem()
7818 struct pqi_ofa_memory *ofap; in pqi_ofa_free_host_buffer() local
7820 ofap = ctrl_info->pqi_ofa_mem_virt_addr; in pqi_ofa_free_host_buffer()
7822 if (!ofap) in pqi_ofa_free_host_buffer()
7825 if (!ofap->bytes_allocated) in pqi_ofa_free_host_buffer()
7828 mem_descriptor = ofap->sg_descriptor; in pqi_ofa_free_host_buffer()
7830 for (i = 0; i < get_unaligned_le16(&ofap->num_memory_descriptors); in pqi_ofa_free_host_buffer()
7841 PQI_OFA_MEMORY_DESCRIPTOR_LENGTH, ofap, in pqi_ofa_free_host_buffer()
7850 struct pqi_ofa_memory *ofap; in pqi_ofa_host_memory_update() local
7854 ofap = ctrl_info->pqi_ofa_mem_virt_addr; in pqi_ofa_host_memory_update()
7862 if (ofap) { in pqi_ofa_host_memory_update()
7864 get_unaligned_le16(&ofap->num_memory_descriptors) * in pqi_ofa_host_memory_update()