Lines Matching refs:mem_data
245 static bool ipa_mem_valid(struct ipa *ipa, const struct ipa_mem_data *mem_data) in ipa_mem_valid() argument
252 if (mem_data->local_count > IPA_MEM_COUNT) { in ipa_mem_valid()
254 mem_data->local_count, IPA_MEM_COUNT); in ipa_mem_valid()
258 for (i = 0; i < mem_data->local_count; i++) { in ipa_mem_valid()
259 const struct ipa_mem *mem = &mem_data->local[i]; in ipa_mem_valid()
615 int ipa_mem_init(struct ipa *ipa, const struct ipa_mem_data *mem_data) in ipa_mem_init() argument
622 if (!ipa_mem_valid(ipa, mem_data)) in ipa_mem_init()
625 ipa->mem_count = mem_data->local_count; in ipa_mem_init()
626 ipa->mem = mem_data->local; in ipa_mem_init()
651 ret = ipa_imem_init(ipa, mem_data->imem_addr, mem_data->imem_size); in ipa_mem_init()
655 ret = ipa_smem_init(ipa, mem_data->smem_id, mem_data->smem_size); in ipa_mem_init()