Lines Matching refs:persist_data

102 static struct crypt_persist_data *persist_data = NULL;  variable
849 if (persist_data) { in load_persistent_data()
861 persist_data = pdata; in load_persistent_data()
892 if (persist_data == NULL) { in load_persistent_data()
921 persist_data = pdata; in load_persistent_data()
943 if (persist_data == NULL) { in save_persistent_data()
1006 if (unix_write(fd, persist_data, crypt_ftr.persist_data_size) == in save_persistent_data()
3077 if (!persist_data) {
3081 persist_data = pdata;
3084 if (persist_data) {
3323 if (persist_data == NULL) {
3326 for (i = 0; i < persist_data->persist_valid_entries; i++) {
3327 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
3329 strlcpy(value, persist_data->persist_entry[i].val, PROPERTY_VALUE_MAX);
3343 if (persist_data == NULL) {
3349 num = persist_data->persist_valid_entries;
3352 if (!strncmp(persist_data->persist_entry[i].key, fieldname, PROPERTY_KEY_MAX)) {
3354 memset(persist_data->persist_entry[i].val, 0, PROPERTY_VALUE_MAX);
3355 strlcpy(persist_data->persist_entry[i].val, value, PROPERTY_VALUE_MAX);
3361 if (persist_data->persist_valid_entries < max_persistent_entries) {
3362 memset(&persist_data->persist_entry[num], 0, sizeof(struct crypt_persist_entry));
3363 strlcpy(persist_data->persist_entry[num].key, fieldname, PROPERTY_KEY_MAX);
3364 strlcpy(persist_data->persist_entry[num].val, value, PROPERTY_VALUE_MAX);
3365 persist_data->persist_valid_entries++;
3416 if (persist_data == NULL) {
3420 num = persist_data->persist_valid_entries;
3425 if (!match_multi_entry(persist_data->persist_entry[i].key, fieldname, index)) {
3426 persist_data->persist_entry[j] = persist_data->persist_entry[i];
3432 persist_data->persist_valid_entries = j;
3434 memset(&persist_data->persist_entry[j], 0, (num - j) * sizeof(struct crypt_persist_entry));
3447 if (persist_data == NULL) {
3452 for (i = 0; i < persist_data->persist_valid_entries; i++) {
3453 if (match_multi_entry(persist_data->persist_entry[i].key, fieldname, 0)) {
3478 if (persist_data == NULL) {
3480 if (persist_data == NULL) {
3542 if (persist_data == NULL) {
3544 if (persist_data == NULL) {
3575 if (persist_data->persist_valid_entries + num_entries - persist_count_keys(fieldname) >