Lines Matching refs:old
260 static bool fpds_equal(struct cper_fru_poison_desc *old, struct cper_fru_poison_desc *new) in fpds_equal() argument
268 if (MASK_ADDR(old->addr) != MASK_ADDR(new->addr)) in fpds_equal()
271 if (old->hw_id != new->hw_id) in fpds_equal()
274 if (old->addr_type != new->addr_type) in fpds_equal()
277 if (old->hw_id_type != new->hw_id_type) in fpds_equal()
636 static struct fru_rec *get_valid_record(struct fru_rec *old) in get_valid_record() argument
640 if (!fmp_is_valid(old)) { in get_valid_record()
645 new = get_fru_record(old->fmp.fru_id); in get_valid_record()
662 struct fru_rec *old, *new; in get_saved_records() local
667 old = kmalloc(FMPM_MAX_REC_LEN, GFP_KERNEL); in get_saved_records()
668 if (!old) { in get_saved_records()
684 memset(old, 0, FMPM_MAX_REC_LEN); in get_saved_records()
686 len = erst_read_record(record_id, &old->hdr, FMPM_MAX_REC_LEN, in get_saved_records()
691 new = get_valid_record(old); in get_saved_records()
711 memcpy(new, old, len); in get_saved_records()
716 kfree(old); in get_saved_records()