Lines Matching defs:adsp_info
50 static struct adsp_info adsp_info;
61 void adsp_set_image(struct adsp_info *info, uint32_t image)
78 ptr = adsp_info.init_info_ptr->module_entries;
79 num_mod_entries = adsp_info.init_info_ptr->module_table_size;
91 uint32_t adsp_get_module(struct adsp_info *info, uint32_t task)
97 uint32_t adsp_get_queue_offset(struct adsp_info *info, uint32_t queue_id)
155 for (mod_idx = 0; mod_idx < adsp_info.module_count; mod_idx++)
156 if (adsp_info.module[mod_idx].id == id)
164 struct adsp_info *info, uint32_t id)
179 struct adsp_info *info, const char *name)
216 adsp_info.init_info_rpc_client = msm_rpc_connect(
220 if (IS_ERR(adsp_info.init_info_rpc_client)) {
221 rc = PTR_ERR(adsp_info.init_info_rpc_client);
222 adsp_info.init_info_rpc_client = 0;
229 msm_rpc_get_vers(adsp_info.init_info_rpc_client),
237 rc = msm_rpc_write(adsp_info.init_info_rpc_client,
254 init_waitqueue_head(&adsp_info.init_info_wait);
255 rc = wait_event_timeout(adsp_info.init_info_wait,
256 adsp_info.init_info_state == ADSP_STATE_INIT_INFO,
266 module = find_adsp_module_by_name(&adsp_info, name);
391 struct adsp_info *info = module->info;
611 iptr = adsp_info.init_info_ptr;
644 adsp_info.init_info_state = ADSP_STATE_INIT_INFO;
647 wake_up(&adsp_info.init_info_wait);
661 module = find_adsp_module_by_id(&adsp_info, module_id);
805 struct adsp_info *info, void *dsp_addr)
856 static int adsp_get_event(struct adsp_info *info)
941 struct adsp_info *info = &adsp_info;
1047 adsp_info.init_info_ptr = kzalloc(
1049 if (!adsp_info.init_info_ptr)
1053 rc = adsp_init_info(&adsp_info);
1056 adsp_info.send_irq += (uint32_t) MSM_AD5_BASE;
1057 adsp_info.read_ctrl += (uint32_t) MSM_AD5_BASE;
1058 adsp_info.write_ctrl += (uint32_t) MSM_AD5_BASE;
1059 count = adsp_info.module_count;
1064 max_module_id = adsp_info.max_module_id + 1;
1073 adsp_info.id_to_module = (void *) (adsp_modules + count);
1106 mod->info = &adsp_info;
1107 mod->name = adsp_info.module[i].name;
1108 mod->id = adsp_info.module[i].id;
1109 if (adsp_info.module[i].clk_name)
1110 mod->clk = clk_get(NULL, adsp_info.module[i].clk_name);
1113 if (mod->clk && adsp_info.module[i].clk_rate)
1114 clk_set_rate(mod->clk, adsp_info.module[i].clk_rate);
1115 mod->verify_cmd = adsp_info.module[i].verify_cmd;
1116 mod->patch_event = adsp_info.module[i].patch_event;
1118 mod->pdev.name = adsp_info.module[i].pdev_name;
1121 adsp_info.id_to_module[i] = mod;
1123 adsp_info.id_to_module[mod->id] = mod;
1141 kfree(adsp_info.init_info_ptr);