Lines Matching full:mem

286 	const struct ipa_mem *mem;  in init_modem_driver_req()  local
299 mem = &ipa->mem[IPA_MEM_MODEM_HEADER]; in init_modem_driver_req()
300 if (mem->size) { in init_modem_driver_req()
302 req.hdr_tbl_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
303 req.hdr_tbl_info.end = req.hdr_tbl_info.start + mem->size - 1; in init_modem_driver_req()
306 mem = &ipa->mem[IPA_MEM_V4_ROUTE]; in init_modem_driver_req()
308 req.v4_route_tbl_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
309 req.v4_route_tbl_info.count = mem->size / IPA_TABLE_ENTRY_SIZE; in init_modem_driver_req()
311 mem = &ipa->mem[IPA_MEM_V6_ROUTE]; in init_modem_driver_req()
313 req.v6_route_tbl_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
314 req.v6_route_tbl_info.count = mem->size / IPA_TABLE_ENTRY_SIZE; in init_modem_driver_req()
316 mem = &ipa->mem[IPA_MEM_V4_FILTER]; in init_modem_driver_req()
318 req.v4_filter_tbl_start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
320 mem = &ipa->mem[IPA_MEM_V6_FILTER]; in init_modem_driver_req()
322 req.v6_filter_tbl_start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
324 mem = &ipa->mem[IPA_MEM_MODEM]; in init_modem_driver_req()
325 if (mem->size) { in init_modem_driver_req()
327 req.modem_mem_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
328 req.modem_mem_info.size = mem->size; in init_modem_driver_req()
337 mem = &ipa->mem[IPA_MEM_MODEM_PROC_CTX]; in init_modem_driver_req()
338 if (mem->size) { in init_modem_driver_req()
341 ipa->mem_offset + mem->offset; in init_modem_driver_req()
343 req.hdr_proc_ctx_tbl_info.start + mem->size - 1; in init_modem_driver_req()
348 mem = &ipa->mem[IPA_MEM_V4_ROUTE_HASHED]; in init_modem_driver_req()
349 if (mem->size) { in init_modem_driver_req()
352 ipa->mem_offset + mem->offset; in init_modem_driver_req()
354 mem->size / IPA_TABLE_ENTRY_SIZE; in init_modem_driver_req()
357 mem = &ipa->mem[IPA_MEM_V6_ROUTE_HASHED]; in init_modem_driver_req()
358 if (mem->size) { in init_modem_driver_req()
361 ipa->mem_offset + mem->offset; in init_modem_driver_req()
363 mem->size / IPA_TABLE_ENTRY_SIZE; in init_modem_driver_req()
366 mem = &ipa->mem[IPA_MEM_V4_FILTER_HASHED]; in init_modem_driver_req()
367 if (mem->size) { in init_modem_driver_req()
369 req.v4_hash_filter_tbl_start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
372 mem = &ipa->mem[IPA_MEM_V6_FILTER_HASHED]; in init_modem_driver_req()
373 if (mem->size) { in init_modem_driver_req()
375 req.v6_hash_filter_tbl_start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
381 mem = &ipa->mem[IPA_MEM_STATS_QUOTA]; in init_modem_driver_req()
382 if (mem->size) { in init_modem_driver_req()
385 ipa->mem_offset + mem->offset; in init_modem_driver_req()
387 req.hw_stats_quota_size = ipa->mem_offset + mem->size; in init_modem_driver_req()
390 mem = &ipa->mem[IPA_MEM_STATS_DROP]; in init_modem_driver_req()
391 if (mem->size) { in init_modem_driver_req()
394 ipa->mem_offset + mem->offset; in init_modem_driver_req()
396 req.hw_stats_drop_size = ipa->mem_offset + mem->size; in init_modem_driver_req()