Home | History | Annotate | Download | only in vold

Lines Matching full:persist_data

72 static struct crypt_persist_data *persist_data = NULL;
477 if (persist_data) {
489 persist_data = pdata;
519 if (persist_data == NULL) {
548 persist_data = pdata;
571 if (persist_data == NULL) {
633 if (unix_write(fd, persist_data, crypt_ftr.persist_data_size) ==
1777 if (!persist_data) {
1781 persist_data = pdata;
1784 if (persist_data) {
1948 if (persist_data == NULL) {
1951 for (i = 0; i < persist_data->persist_valid_entries; i++) {
1952 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
1954 strlcpy(value, persist_data->persist_entry[i].val, PROPERTY_VALUE_MAX);
1970 if (persist_data == NULL) {
1988 num = persist_data->persist_valid_entries;
1991 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
1993 memset(persist_data->persist_entry[i].val, 0, PROPERTY_VALUE_MAX);
1994 strlcpy(persist_data->persist_entry[i].val, value, PROPERTY_VALUE_MAX);
2000 if (persist_data->persist_valid_entries < max_persistent_entries) {
2001 memset(&persist_data->persist_entry[num], 0, sizeof(struct crypt_persist_entry));
2002 strlcpy(persist_data->persist_entry[num].key, fieldname, PROPERTY_KEY_MAX);
2003 strlcpy(persist_data->persist_entry[num].val, value, PROPERTY_VALUE_MAX);
2004 persist_data->persist_valid_entries++;
2021 if (persist_data == NULL) {
2023 if (persist_data == NULL) {
2053 if (persist_data == NULL) {
2055 if (persist_data == NULL) {