Searched refs:new_defect (Results 1 – 2 of 2) sorted by relevance
288 struct defect_entry *new_defect; in ata_convert_list() local294 new_defect = calloc(ap->ap_tblp->alts_ent_used, in ata_convert_list()296 if (new_defect == NULL) { in ata_convert_list()303 list->list = new_defect; in ata_convert_list()305 i++, new_defect++) { in ata_convert_list()306 new_defect->cyl = in ata_convert_list()308 new_defect->head = in ata_convert_list()310 new_defect->bfi = UNKNOWN; in ata_convert_list()311 new_defect->sect = in ata_convert_list()313 new_defect->nbits = UNKNOWN; in ata_convert_list()[all …]
1886 register struct defect_entry *new_defect; local1901 new_defect = (struct defect_entry *)1906 list->list = new_defect;1908 for (i = 0, new_len = 0; i < len; new_defect++, new_len++) {1910 new_defect->cyl = (cp[0] << 16 | cp[1] << 8) | cp[2];1911 new_defect->head = old_defect->head;1912 new_defect->bfi = (int)old_defect->bytes_from_index;1913 new_defect->bfi = BE_32(new_defect->bfi);1914 new_defect->nbits = 0; /* size of defect */1928 obfi = new_defect->bfi;[all …]