Lines Matching refs:fieldname
3403 static int persist_get_key(const char *fieldname, char *value) argument
3411 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
3421 static int persist_set_key(const char *fieldname, const char *value, int encrypted) argument
3436 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
3447 strlcpy(persist_data->persist_entry[num].key, fieldname, PROPERTY_KEY_MAX);
3494 static int persist_del_keys(const char *fieldname, unsigned index) argument
3509 if (!match_multi_entry(persist_data->persist_entry[i].key, fieldname, index)) {
3526 static int persist_count_keys(const char *fieldname) argument
3537 if (match_multi_entry(persist_data->persist_entry[i].key, fieldname, 0)) {
3546 int cryptfs_getfield(const char *fieldname, char *value, int len) argument
3573 if (!persist_get_key(fieldname, temp_value)) {
3583 if (snprintf(temp_field, sizeof(temp_field), "%s_%d", fieldname, i) >=
3612 int cryptfs_setfield(const char *fieldname, const char *value) argument
3650 max_keylen = strlen(fieldname);
3661 if (persist_data->persist_valid_entries + num_entries - persist_count_keys(fieldname) >
3669 persist_del_keys(fieldname, 0);
3671 if (persist_set_key(fieldname, value, encrypted)) {
3678 snprintf(temp_field, sizeof(temp_field), "%s_%d", fieldname, field_id);