Lines Matching refs:sr_data
31 struct omap_sr_data *sr_data) in sr_set_nvalues() argument
36 sr_data->nvalue_count = 0; in sr_set_nvalues()
37 sr_data->nvalue_table = NULL; in sr_set_nvalues()
83 sr_data->nvalue_table = nvalue_table; in sr_set_nvalues()
84 sr_data->nvalue_count = j; in sr_set_nvalues()
91 struct omap_sr_data *sr_data = NULL; in sr_init_by_name() local
97 sr_data = &omap_sr_pdata[OMAP_SR_MPU]; in sr_init_by_name()
99 sr_data = &omap_sr_pdata[OMAP_SR_CORE]; in sr_init_by_name()
101 sr_data = &omap_sr_pdata[OMAP_SR_IVA]; in sr_init_by_name()
103 if (!sr_data) { in sr_init_by_name()
108 sr_data->name = name; in sr_init_by_name()
110 sr_data->ip_type = 1; in sr_init_by_name()
112 sr_data->ip_type = 2; in sr_init_by_name()
113 sr_data->senn_mod = 0x1; in sr_init_by_name()
114 sr_data->senp_mod = 0x1; in sr_init_by_name()
117 sr_data->err_weight = OMAP3430_SR_ERRWEIGHT; in sr_init_by_name()
118 sr_data->err_maxlimit = OMAP3430_SR_ERRMAXLIMIT; in sr_init_by_name()
119 sr_data->accum_data = OMAP3430_SR_ACCUMDATA; in sr_init_by_name()
120 if (!(strcmp(sr_data->name, "smartreflex_mpu"))) { in sr_init_by_name()
121 sr_data->senn_avgweight = OMAP3430_SR1_SENNAVGWEIGHT; in sr_init_by_name()
122 sr_data->senp_avgweight = OMAP3430_SR1_SENPAVGWEIGHT; in sr_init_by_name()
124 sr_data->senn_avgweight = OMAP3430_SR2_SENNAVGWEIGHT; in sr_init_by_name()
125 sr_data->senp_avgweight = OMAP3430_SR2_SENPAVGWEIGHT; in sr_init_by_name()
129 sr_data->voltdm = voltdm_lookup(voltdm); in sr_init_by_name()
130 if (!sr_data->voltdm) { in sr_init_by_name()
136 omap_voltage_get_volttable(sr_data->voltdm, &volt_data); in sr_init_by_name()
143 sr_set_nvalues(volt_data, sr_data); in sr_init_by_name()