Lines Matching refs:ramdump_info

2150 	struct cnss_ramdump_info *ramdump_info;  in cnss_get_virt_ramdump_mem()  local
2155 ramdump_info = &plat_priv->ramdump_info; in cnss_get_virt_ramdump_mem()
2156 *size = ramdump_info->ramdump_size; in cnss_get_virt_ramdump_mem()
2158 return ramdump_info->ramdump_va; in cnss_get_virt_ramdump_mem()
3002 struct cnss_ramdump_info *ramdump_info = &plat_priv->ramdump_info; in cnss_do_ramdump() local
3006 segment.v_address = (void __iomem *)ramdump_info->ramdump_va; in cnss_do_ramdump()
3007 segment.size = ramdump_info->ramdump_size; in cnss_do_ramdump()
3009 return qcom_ramdump(ramdump_info->ramdump_dev, &segment, 1); in cnss_do_ramdump()
3117 struct cnss_ramdump_info *ramdump_info = &plat_priv->ramdump_info; in cnss_do_ramdump() local
3127 segment.va = ramdump_info->ramdump_va; in cnss_do_ramdump()
3128 segment.size = ramdump_info->ramdump_size; in cnss_do_ramdump()
3131 return qcom_dump(&head, ramdump_info->ramdump_dev); in cnss_do_ramdump()
3625 struct cnss_ramdump_info *ramdump_info; in cnss_init_dump_entry() local
3628 ramdump_info = &plat_priv->ramdump_info; in cnss_init_dump_entry()
3629 ramdump_info->dump_data.addr = ramdump_info->ramdump_pa; in cnss_init_dump_entry()
3630 ramdump_info->dump_data.len = ramdump_info->ramdump_size; in cnss_init_dump_entry()
3631 ramdump_info->dump_data.version = CNSS_DUMP_FORMAT_VER; in cnss_init_dump_entry()
3632 ramdump_info->dump_data.magic = CNSS_DUMP_MAGIC_VER_V2; in cnss_init_dump_entry()
3633 strlcpy(ramdump_info->dump_data.name, CNSS_DUMP_NAME, in cnss_init_dump_entry()
3634 sizeof(ramdump_info->dump_data.name)); in cnss_init_dump_entry()
3636 dump_entry.addr = virt_to_phys(&ramdump_info->dump_data); in cnss_init_dump_entry()
3646 struct cnss_ramdump_info *ramdump_info; in cnss_register_ramdump_v1() local
3650 ramdump_info = &plat_priv->ramdump_info; in cnss_register_ramdump_v1()
3663 ramdump_info->ramdump_va = in cnss_register_ramdump_v1()
3665 &ramdump_info->ramdump_pa, in cnss_register_ramdump_v1()
3668 if (ramdump_info->ramdump_va) in cnss_register_ramdump_v1()
3669 ramdump_info->ramdump_size = ramdump_size; in cnss_register_ramdump_v1()
3673 ramdump_info->ramdump_va, &ramdump_info->ramdump_pa); in cnss_register_ramdump_v1()
3675 if (ramdump_info->ramdump_size == 0) { in cnss_register_ramdump_v1()
3686 ramdump_info->ramdump_dev = cnss_create_ramdump_device(plat_priv); in cnss_register_ramdump_v1()
3687 if (!ramdump_info->ramdump_dev) { in cnss_register_ramdump_v1()
3695 dma_free_coherent(dev, ramdump_info->ramdump_size, in cnss_register_ramdump_v1()
3696 ramdump_info->ramdump_va, ramdump_info->ramdump_pa); in cnss_register_ramdump_v1()
3704 struct cnss_ramdump_info *ramdump_info; in cnss_unregister_ramdump_v1() local
3707 ramdump_info = &plat_priv->ramdump_info; in cnss_unregister_ramdump_v1()
3709 if (ramdump_info->ramdump_dev) in cnss_unregister_ramdump_v1()
3711 ramdump_info->ramdump_dev); in cnss_unregister_ramdump_v1()
3713 if (ramdump_info->ramdump_va) in cnss_unregister_ramdump_v1()
3714 dma_free_coherent(dev, ramdump_info->ramdump_size, in cnss_unregister_ramdump_v1()
3715 ramdump_info->ramdump_va, in cnss_unregister_ramdump_v1()
3716 ramdump_info->ramdump_pa); in cnss_unregister_ramdump_v1()