emif_data 72 drivers/memory/emif.c static struct emif_data *emif1; emif_data 79 drivers/memory/emif.c static void do_emif_regdump_show(struct seq_file *s, struct emif_data *emif, emif_data 117 drivers/memory/emif.c struct emif_data *emif = s->private; emif_data 147 drivers/memory/emif.c struct emif_data *emif = s->private; emif_data 164 drivers/memory/emif.c static int __init_or_module emif_debugfs_init(struct emif_data *emif) emif_data 197 drivers/memory/emif.c static void __exit emif_debugfs_exit(struct emif_data *emif) emif_data 203 drivers/memory/emif.c static inline int __init_or_module emif_debugfs_init(struct emif_data *emif) emif_data 208 drivers/memory/emif.c static inline void __exit emif_debugfs_exit(struct emif_data *emif) emif_data 228 drivers/memory/emif.c static u32 get_emif_bus_width(struct emif_data *emif) emif_data 243 drivers/memory/emif.c static u32 get_cl(struct emif_data *emif) emif_data 253 drivers/memory/emif.c static void set_lpmode(struct emif_data *emif, u8 lpmode) emif_data 301 drivers/memory/emif.c struct emif_data *emif; emif_data 377 drivers/memory/emif.c static const struct lpddr2_timings *get_timings_table(struct emif_data *emif, emif_data 745 drivers/memory/emif.c static u32 get_pwr_mgmt_ctrl(u32 freq, struct emif_data *emif, u32 ip_rev) emif_data 836 drivers/memory/emif.c static void get_temperature_level(struct emif_data *emif) emif_data 870 drivers/memory/emif.c static void setup_registers(struct emif_data *emif, struct emif_regs *regs) emif_data 891 drivers/memory/emif.c static void setup_volt_sensitive_regs(struct emif_data *emif, emif_data 919 drivers/memory/emif.c static void setup_temperature_sensitive_regs(struct emif_data *emif, emif_data 951 drivers/memory/emif.c static irqreturn_t handle_temp_alert(void __iomem *base, struct emif_data *emif) emif_data 1013 drivers/memory/emif.c struct emif_data *emif = dev_id; emif_data 1048 drivers/memory/emif.c struct emif_data *emif = dev_id; emif_data 1077 drivers/memory/emif.c static void clear_all_interrupts(struct emif_data *emif) emif_data 1088 drivers/memory/emif.c static void disable_and_clear_all_interrupts(struct emif_data *emif) emif_data 1103 drivers/memory/emif.c static int __init_or_module setup_interrupts(struct emif_data *emif, u32 irq) emif_data 1134 drivers/memory/emif.c static void __init_or_module emif_onetime_settings(struct emif_data *emif) emif_data 1199 drivers/memory/emif.c static void get_default_timings(struct emif_data *emif) emif_data 1260 drivers/memory/emif.c struct emif_data *emif) emif_data 1342 drivers/memory/emif.c static struct emif_data * __init_or_module of_get_memory_device_details( emif_data 1345 drivers/memory/emif.c struct emif_data *emif = NULL; emif_data 1354 drivers/memory/emif.c emif = devm_kzalloc(dev, sizeof(struct emif_data), GFP_KERNEL); emif_data 1417 drivers/memory/emif.c static struct emif_data * __init_or_module of_get_memory_device_details( emif_data 1424 drivers/memory/emif.c static struct emif_data *__init_or_module get_device_details( emif_data 1428 drivers/memory/emif.c struct emif_data *emif = NULL; emif_data 1539 drivers/memory/emif.c struct emif_data *emif; emif_data 1599 drivers/memory/emif.c struct emif_data *emif = platform_get_drvdata(pdev); emif_data 1608 drivers/memory/emif.c struct emif_data *emif = platform_get_drvdata(pdev); emif_data 1613 drivers/memory/emif.c static int get_emif_reg_values(struct emif_data *emif, u32 freq, emif_data 1622 drivers/memory/emif.c struct emif_data *emif_for_calc; emif_data 1724 drivers/memory/emif.c static struct emif_regs *get_regs(struct emif_data *emif, u32 freq) emif_data 1786 drivers/memory/emif.c static void do_volt_notify_handling(struct emif_data *emif, u32 volt_state) emif_data 1809 drivers/memory/emif.c struct emif_data *emif; emif_data 1820 drivers/memory/emif.c static void do_freq_pre_notify_handling(struct emif_data *emif, u32 new_freq) emif_data 1858 drivers/memory/emif.c struct emif_data *emif; emif_data 1885 drivers/memory/emif.c static void do_freq_post_notify_handling(struct emif_data *emif) emif_data 1903 drivers/memory/emif.c struct emif_data *emif; emif_data 40 drivers/memory/ti-emif-pm.c static u32 sram_suspend_address(struct ti_emif_data *emif_data, emif_data 43 drivers/memory/ti-emif-pm.c return (emif_data->ti_emif_sram_virt + emif_data 47 drivers/memory/ti-emif-pm.c static phys_addr_t sram_resume_address(struct ti_emif_data *emif_data, emif_data 50 drivers/memory/ti-emif-pm.c return ((unsigned long)emif_data->ti_emif_sram_phys + emif_data 54 drivers/memory/ti-emif-pm.c static void ti_emif_free_sram(struct ti_emif_data *emif_data) emif_data 56 drivers/memory/ti-emif-pm.c gen_pool_free(emif_data->sram_pool_code, emif_data->ti_emif_sram_virt, emif_data 58 drivers/memory/ti-emif-pm.c gen_pool_free(emif_data->sram_pool_data, emif_data 59 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_data_virt, emif_data 64 drivers/memory/ti-emif-pm.c struct ti_emif_data *emif_data) emif_data 69 drivers/memory/ti-emif-pm.c emif_data->sram_pool_code = of_gen_pool_get(np, "sram", 0); emif_data 70 drivers/memory/ti-emif-pm.c if (!emif_data->sram_pool_code) { emif_data 75 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_virt = emif_data 76 drivers/memory/ti-emif-pm.c gen_pool_alloc(emif_data->sram_pool_code, emif_data 78 drivers/memory/ti-emif-pm.c if (!emif_data->ti_emif_sram_virt) { emif_data 84 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_phys = emif_data 85 drivers/memory/ti-emif-pm.c gen_pool_virt_to_phys(emif_data->sram_pool_code, emif_data 86 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_virt); emif_data 89 drivers/memory/ti-emif-pm.c emif_data->sram_pool_data = of_gen_pool_get(np, "sram", 1); emif_data 90 drivers/memory/ti-emif-pm.c if (!emif_data->sram_pool_data) { emif_data 96 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_data_virt = emif_data 97 drivers/memory/ti-emif-pm.c gen_pool_alloc(emif_data->sram_pool_data, emif_data 99 drivers/memory/ti-emif-pm.c if (!emif_data->ti_emif_sram_data_virt) { emif_data 106 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_data_phys = emif_data 107 drivers/memory/ti-emif-pm.c gen_pool_virt_to_phys(emif_data->sram_pool_data, emif_data 108 drivers/memory/ti-emif-pm.c emif_data->ti_emif_sram_data_virt); emif_data 113 drivers/memory/ti-emif-pm.c emif_data->pm_functions.save_context = emif_data 114 drivers/memory/ti-emif-pm.c sram_suspend_address(emif_data, emif_data 116 drivers/memory/ti-emif-pm.c emif_data->pm_functions.enter_sr = emif_data 117 drivers/memory/ti-emif-pm.c sram_suspend_address(emif_data, emif_data 119 drivers/memory/ti-emif-pm.c emif_data->pm_functions.abort_sr = emif_data 120 drivers/memory/ti-emif-pm.c sram_suspend_address(emif_data, emif_data 127 drivers/memory/ti-emif-pm.c emif_data->pm_functions.restore_context = emif_data 128 drivers/memory/ti-emif-pm.c sram_resume_address(emif_data, emif_data 130 drivers/memory/ti-emif-pm.c emif_data->pm_functions.exit_sr = emif_data 131 drivers/memory/ti-emif-pm.c sram_resume_address(emif_data, emif_data 133 drivers/memory/ti-emif-pm.c emif_data->pm_functions.run_hw_leveling = emif_data 134 drivers/memory/ti-emif-pm.c sram_resume_address(emif_data, emif_data 137 drivers/memory/ti-emif-pm.c emif_data->pm_data.regs_virt = emif_data 138 drivers/memory/ti-emif-pm.c (struct emif_regs_amx3 *)emif_data->ti_emif_sram_data_virt; emif_data 139 drivers/memory/ti-emif-pm.c emif_data->pm_data.regs_phys = emif_data->ti_emif_sram_data_phys; emif_data 144 drivers/memory/ti-emif-pm.c gen_pool_free(emif_data->sram_pool_code, emif_data->ti_emif_sram_virt, emif_data 149 drivers/memory/ti-emif-pm.c static int ti_emif_push_sram(struct device *dev, struct ti_emif_data *emif_data) emif_data 154 drivers/memory/ti-emif-pm.c copy_addr = sram_exec_copy(emif_data->sram_pool_code, emif_data 155 drivers/memory/ti-emif-pm.c (void *)emif_data->ti_emif_sram_virt, emif_data 162 drivers/memory/ti-emif-pm.c data_addr = sram_suspend_address(emif_data, emif_data 164 drivers/memory/ti-emif-pm.c copy_addr = sram_exec_copy(emif_data->sram_pool_code, emif_data 166 drivers/memory/ti-emif-pm.c &emif_data->pm_data, emif_data 167 drivers/memory/ti-emif-pm.c sizeof(emif_data->pm_data)); emif_data 183 drivers/memory/ti-emif-pm.c static void ti_emif_configure_sr_delay(struct ti_emif_data *emif_data) emif_data 186 drivers/memory/ti-emif-pm.c (emif_data->pm_data.ti_emif_base_addr_virt + emif_data 190 drivers/memory/ti-emif-pm.c (emif_data->pm_data.ti_emif_base_addr_virt + emif_data 281 drivers/memory/ti-emif-pm.c struct ti_emif_data *emif_data; emif_data 283 drivers/memory/ti-emif-pm.c emif_data = devm_kzalloc(dev, sizeof(*emif_data), GFP_KERNEL); emif_data 284 drivers/memory/ti-emif-pm.c if (!emif_data) emif_data 291 drivers/memory/ti-emif-pm.c emif_data->pm_data.ti_emif_sram_config = (unsigned long)match->data; emif_data 294 drivers/memory/ti-emif-pm.c emif_data->pm_data.ti_emif_base_addr_virt = devm_ioremap_resource(dev, emif_data 296 drivers/memory/ti-emif-pm.c if (IS_ERR(emif_data->pm_data.ti_emif_base_addr_virt)) { emif_data 297 drivers/memory/ti-emif-pm.c ret = PTR_ERR(emif_data->pm_data.ti_emif_base_addr_virt); emif_data 301 drivers/memory/ti-emif-pm.c emif_data->pm_data.ti_emif_base_addr_phys = res->start; emif_data 303 drivers/memory/ti-emif-pm.c ti_emif_configure_sr_delay(emif_data); emif_data 305 drivers/memory/ti-emif-pm.c ret = ti_emif_alloc_sram(dev, emif_data); emif_data 309 drivers/memory/ti-emif-pm.c ret = ti_emif_push_sram(dev, emif_data); emif_data 313 drivers/memory/ti-emif-pm.c emif_instance = emif_data; emif_data 318 drivers/memory/ti-emif-pm.c ti_emif_free_sram(emif_data); emif_data 325 drivers/memory/ti-emif-pm.c struct ti_emif_data *emif_data = emif_instance; emif_data 329 drivers/memory/ti-emif-pm.c ti_emif_free_sram(emif_data);