Lines Matching refs:ha

386     struct disk_dos_part_entry *ha;  in setup_handover()  local
387 uint32_t synth_size = sizeof *ha; in setup_handover()
396 ha = malloc(synth_size); in setup_handover()
397 if (!ha) { in setup_handover()
404 lba2chs(&ha->start, &iter->di, 0, L2C_CADD); in setup_handover()
405 lba2chs(&ha->end, &iter->di, len - 1, L2C_CADD); in setup_handover()
406 ha->active_flag = 0x80; in setup_handover()
407 ha->ostype = 0xDA; /* "Non-FS Data", anything is good here though ... */ in setup_handover()
408 ha->start_lba = 0; in setup_handover()
409 ha->length = len; in setup_handover()
414 ha = malloc(synth_size); in setup_handover()
415 if (!ha) { in setup_handover()
419 lba2chs(&ha->start, &iter->di, iter->abs_lba, L2C_CADD); in setup_handover()
420 lba2chs(&ha->end, &iter->di, iter->abs_lba + iter->length - 1, L2C_CADD); in setup_handover()
421 ha->active_flag = 0x80; in setup_handover()
422 ha->ostype = 0xED; in setup_handover()
424 ha->start_lba = ~0u; in setup_handover()
425 ha->length = ~0u; in setup_handover()
427 if (iter->abs_lba < ha->start_lba) in setup_handover()
428 ha->start_lba = iter->abs_lba; in setup_handover()
429 if (iter->length < ha->length) in setup_handover()
430 ha->length = iter->length; in setup_handover()
432 plen = (uint32_t *)(ha + 1); in setup_handover()
438 disk_dos_part_dump(ha); in setup_handover()
444 ha = malloc(synth_size); in setup_handover()
445 if (!ha) { in setup_handover()
449 memcpy(ha, iter->record, synth_size); in setup_handover()
451 lba2chs(&ha->start, &iter->di, iter->abs_lba, L2C_CADD); in setup_handover()
452 lba2chs(&ha->end, &iter->di, iter->abs_lba + iter->length - 1, L2C_CADD); in setup_handover()
453 ha->start_lba = iter->abs_lba; in setup_handover()
454 ha->length = iter->length; in setup_handover()
458 disk_dos_part_dump(ha); in setup_handover()
467 data->data = (void *)ha; in setup_handover()