Lines Matching defs:cust_cfgs

713 	struct emif_custom_configs *cust_cfgs = emif->plat_data->custom_configs;
715 if (cust_cfgs && (cust_cfgs->mask & EMIF_CUSTOM_CONFIG_LPMODE)) {
716 lpmode = cust_cfgs->lpmode;
717 timeout_perf = cust_cfgs->lpmode_timeout_performance;
718 timeout_pwr = cust_cfgs->lpmode_timeout_power;
719 freq_threshold = cust_cfgs->lpmode_freq_threshold;
1195 static int is_custom_config_valid(struct emif_custom_configs *cust_cfgs,
1200 if ((cust_cfgs->mask & EMIF_CUSTOM_CONFIG_LPMODE) &&
1201 (cust_cfgs->lpmode != EMIF_LP_MODE_DISABLE))
1202 valid = cust_cfgs->lpmode_freq_threshold &&
1203 cust_cfgs->lpmode_timeout_performance &&
1204 cust_cfgs->lpmode_timeout_power;
1206 if (cust_cfgs->mask & EMIF_CUSTOM_CONFIG_TEMP_ALERT_POLL_INTERVAL)
1207 valid = valid && cust_cfgs->temp_alert_poll_interval_ms;
1219 struct emif_custom_configs *cust_cfgs = NULL;
1227 cust_cfgs = devm_kzalloc(emif->dev, sizeof(*cust_cfgs),
1230 if (!cust_cfgs)
1234 cust_cfgs->mask |= EMIF_CUSTOM_CONFIG_LPMODE;
1235 cust_cfgs->lpmode = be32_to_cpup(lpmode);
1238 &cust_cfgs->lpmode_timeout_performance);
1241 &cust_cfgs->lpmode_timeout_power);
1244 &cust_cfgs->lpmode_freq_threshold);
1248 cust_cfgs->mask |=
1250 cust_cfgs->temp_alert_poll_interval_ms =
1255 cust_cfgs->mask |= EMIF_CUSTOM_CONFIG_EXTENDED_TEMP_PART;
1257 if (!is_custom_config_valid(cust_cfgs, emif->dev)) {
1258 devm_kfree(emif->dev, cust_cfgs);
1262 emif->plat_data->custom_configs = cust_cfgs;
1387 struct emif_custom_configs *cust_cfgs;
1443 cust_cfgs = pd->custom_configs;
1444 if (cust_cfgs && is_custom_config_valid(cust_cfgs, dev)) {
1445 temp = devm_kzalloc(dev, sizeof(*cust_cfgs), GFP_KERNEL);
1447 memcpy(temp, cust_cfgs, sizeof(*cust_cfgs));