Lines Matching refs:fieldname
3319 static int persist_get_key(const char *fieldname, char *value) argument
3327 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
3337 static int persist_set_key(const char *fieldname, const char *value, int encrypted) argument
3352 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
3363 strlcpy(persist_data->persist_entry[num].key, fieldname, PROPERTY_KEY_MAX);
3410 static int persist_del_keys(const char *fieldname, unsigned index) argument
3425 if (!match_multi_entry(persist_data->persist_entry[i].key, fieldname, index)) {
3442 static int persist_count_keys(const char *fieldname) argument
3453 if (match_multi_entry(persist_data->persist_entry[i].key, fieldname, 0)) {
3462 int cryptfs_getfield(const char *fieldname, char *value, int len) argument
3465 return e4crypt_get_field(DATA_MNT_POINT, fieldname, value, len);
3488 if (!persist_get_key(fieldname, temp_value)) {
3498 if (snprintf(temp_field, sizeof(temp_field), "%s_%d", fieldname, i) >=
3527 int cryptfs_setfield(const char *fieldname, const char *value) argument
3530 return e4crypt_set_field(DATA_MNT_POINT, fieldname, value);
3564 max_keylen = strlen(fieldname);
3575 if (persist_data->persist_valid_entries + num_entries - persist_count_keys(fieldname) >
3583 persist_del_keys(fieldname, 0);
3585 if (persist_set_key(fieldname, value, encrypted)) {
3592 snprintf(temp_field, sizeof(temp_field), "%s_%d", fieldname, field_id);