Home
last modified time | relevance | path

Searched refs:ideinfo (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/drivers/ide/raid/
Dpdcraid.c350 ide_drive_t *ideinfo; in calc_pdcblock_offset() local
353 ideinfo = ide_info_ptr (dev, 0); in calc_pdcblock_offset()
354 if (ideinfo==NULL) in calc_pdcblock_offset()
359 if (ideinfo->head==0) in calc_pdcblock_offset()
361 if (ideinfo->sect==0) in calc_pdcblock_offset()
363 if (ideinfo->head!=255) { in calc_pdcblock_offset()
364 lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect)); in calc_pdcblock_offset()
365 lba = lba * (ideinfo->head*ideinfo->sect); in calc_pdcblock_offset()
366 lba = lba - ideinfo->sect; } in calc_pdcblock_offset()
368 lba = ideinfo->capacity - ideinfo->sect; in calc_pdcblock_offset()
Dsilraid.c253 ide_drive_t *ideinfo; in calc_silblock_offset() local
256 ideinfo = ide_info_ptr (dev, 0); in calc_silblock_offset()
257 if (ideinfo==NULL) in calc_silblock_offset()
262 if (ideinfo->head==0) in calc_silblock_offset()
264 if (ideinfo->sect==0) in calc_silblock_offset()
266 cylinders = (ideinfo->capacity / (ideinfo->head*ideinfo->sect)); in calc_silblock_offset()
267 lba = (cylinders - 1) * (ideinfo->head*ideinfo->sect); in calc_silblock_offset()
268 lba = lba - ideinfo->head -1; in calc_silblock_offset()
Dhptraid.c588 ide_drive_t *ideinfo; in maxsectors() local
591 ideinfo = ide_info_ptr (dev, 0); in maxsectors()
592 if (ideinfo==NULL) in maxsectors()
597 if (ideinfo->head==0) in maxsectors()
599 if (ideinfo->sect==0) in maxsectors()
601 lba = (ideinfo->capacity); in maxsectors()