• Home
  • Raw
  • Download

Lines Matching refs:mem

34 		const struct ipa_mem *mem = &ipa->mem[i];  in ipa_mem_find()  local
36 if (mem->id == mem_id) in ipa_mem_find()
37 return mem; in ipa_mem_find()
48 const struct ipa_mem *mem = ipa_mem_find(ipa, mem_id); in ipa_mem_zero_region_add() local
51 if (!mem->size) in ipa_mem_zero_region_add()
54 ipa_cmd_dma_shared_mem_add(trans, mem->offset, mem->size, addr, true); in ipa_mem_zero_region_add()
79 const struct ipa_mem *mem; in ipa_mem_setup() local
98 mem = ipa_mem_find(ipa, IPA_MEM_MODEM_HEADER); in ipa_mem_setup()
99 offset = mem->offset; in ipa_mem_setup()
100 size = mem->size; in ipa_mem_setup()
101 mem = ipa_mem_find(ipa, IPA_MEM_AP_HEADER); in ipa_mem_setup()
102 if (mem) in ipa_mem_setup()
103 size += mem->size; in ipa_mem_setup()
114 mem = ipa_mem_find(ipa, IPA_MEM_MODEM_PROC_CTX); in ipa_mem_setup()
115 offset = ipa->mem_offset + mem->offset; in ipa_mem_setup()
209 static bool ipa_mem_valid_one(struct ipa *ipa, const struct ipa_mem *mem) in ipa_mem_valid_one() argument
212 enum ipa_mem_id mem_id = mem->id; in ipa_mem_valid_one()
221 if (!mem->size && !mem->canary_count) { in ipa_mem_valid_one()
228 if (mem->size % size_multiple) in ipa_mem_valid_one()
231 else if (mem->offset % 8) in ipa_mem_valid_one()
233 else if (mem->offset < mem->canary_count * sizeof(__le32)) in ipa_mem_valid_one()
235 mem_id, mem->canary_count); in ipa_mem_valid_one()
236 else if (mem_id == IPA_MEM_END_MARKER && mem->size) in ipa_mem_valid_one()
259 const struct ipa_mem *mem = &mem_data->local[i]; in ipa_mem_valid() local
261 if (__test_and_set_bit(mem->id, regions)) { in ipa_mem_valid()
262 dev_err(dev, "duplicate memory region %u\n", mem->id); in ipa_mem_valid()
267 if (!ipa_mem_valid_one(ipa, mem)) in ipa_mem_valid()
289 const struct ipa_mem *mem = &ipa->mem[i]; in ipa_mem_size_valid() local
291 if (mem->offset + mem->size <= limit) in ipa_mem_size_valid()
295 mem->id, limit); in ipa_mem_size_valid()
313 const struct ipa_mem *mem; in ipa_mem_config() local
356 u16 canary_count = ipa->mem[i].canary_count; in ipa_mem_config()
363 canary = ipa->mem_virt + ipa->mem_offset + ipa->mem[i].offset; in ipa_mem_config()
378 mem = ipa_mem_find(ipa, IPA_MEM_UC_EVENT_RING); in ipa_mem_config()
379 if (mem && mem->offset % 1024) { in ipa_mem_config()
626 ipa->mem = mem_data->local; in ipa_mem_init()