Lines Matching refs:new_record
1320 pldm_pdr_record *new_record) in pldm_pdr_replace_record() argument
1325 assert(new_record); in pldm_pdr_replace_record()
1331 if (repo->size + new_record->size < new_record->size) { in pldm_pdr_replace_record()
1336 repo->first = new_record; in pldm_pdr_replace_record()
1338 prev->next = new_record; in pldm_pdr_replace_record()
1340 new_record->next = record->next; in pldm_pdr_replace_record()
1343 repo->last = new_record; in pldm_pdr_replace_record()
1346 repo->size = (repo->size - record->size) + new_record->size; in pldm_pdr_replace_record()
1354 pldm_pdr_record *new_record) in pldm_pdr_insert_record() argument
1358 assert(new_record); in pldm_pdr_insert_record()
1360 if (repo->size + new_record->size < new_record->size) { in pldm_pdr_insert_record()
1368 new_record->next = record->next; in pldm_pdr_insert_record()
1369 record->next = new_record; in pldm_pdr_insert_record()
1372 repo->last = new_record; in pldm_pdr_insert_record()
1375 repo->size = repo->size + new_record->size; in pldm_pdr_insert_record()
1434 pldm_pdr_record *new_record = malloc(sizeof(pldm_pdr_record)); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr() local
1435 if (!new_record) { in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1439 new_record->data = malloc(record->size + sizeof(pldm_entity)); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1440 if (!new_record->data) { in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1445 new_record->record_handle = record->record_handle; in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1446 new_record->size = record->size + sizeof(struct pldm_entity); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1447 new_record->is_remote = record->is_remote; in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1452 new_record->data, new_record->size); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1522 rc = pldm_pdr_replace_record(repo, record, prev, new_record); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1531 free(new_record->data); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1533 free(new_record); in pldm_entity_association_pdr_add_contained_entity_to_remote_pdr()
1575 pldm_pdr_record *new_record = malloc(sizeof(pldm_pdr_record)); in pldm_entity_association_pdr_create_new() local
1576 if (!new_record) { in pldm_entity_association_pdr_create_new()
1580 new_record->data = malloc(new_pdr_size); in pldm_entity_association_pdr_create_new()
1581 if (!new_record->data) { in pldm_entity_association_pdr_create_new()
1589 new_record->record_handle = *entity_record_handle; in pldm_entity_association_pdr_create_new()
1590 new_record->size = new_pdr_size; in pldm_entity_association_pdr_create_new()
1591 new_record->is_remote = false; in pldm_entity_association_pdr_create_new()
1594 new_record->data, new_record->size); in pldm_entity_association_pdr_create_new()
1661 rc = pldm_pdr_insert_record(repo, record, new_record); in pldm_entity_association_pdr_create_new()
1668 free(new_record->data); in pldm_entity_association_pdr_create_new()
1670 free(new_record); in pldm_entity_association_pdr_create_new()