Lines Matching refs:cust_cfgs

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