Lines Matching refs:key_val
241 struct adf_cfg_key_val *key_val; in adf_cfg_add_key_value_param() local
249 key_val = kzalloc(sizeof(*key_val), GFP_KERNEL); in adf_cfg_add_key_value_param()
250 if (!key_val) in adf_cfg_add_key_value_param()
253 INIT_LIST_HEAD(&key_val->list); in adf_cfg_add_key_value_param()
254 strscpy(key_val->key, key, sizeof(key_val->key)); in adf_cfg_add_key_value_param()
257 snprintf(key_val->val, ADF_CFG_MAX_VAL_LEN_IN_BYTES, in adf_cfg_add_key_value_param()
260 strscpy(key_val->val, (char *)val, sizeof(key_val->val)); in adf_cfg_add_key_value_param()
262 snprintf(key_val->val, ADF_CFG_MAX_VAL_LEN_IN_BYTES, in adf_cfg_add_key_value_param()
266 kfree(key_val); in adf_cfg_add_key_value_param()
269 key_val->type = type; in adf_cfg_add_key_value_param()
280 if (strncmp(temp_val, key_val->val, sizeof(temp_val))) { in adf_cfg_add_key_value_param()
283 kfree(key_val); in adf_cfg_add_key_value_param()
289 adf_cfg_keyval_add(key_val, section); in adf_cfg_add_key_value_param()