Lines Matching refs:head
122 unsigned int head, sect, cyl, wpcom, lzone, ctl; member
182 if (hd_info[0].head != 0) in hd_setup()
184 hd_info[hdind].head = ints[2]; in hd_setup()
290 static int controller_ready(unsigned int drive, unsigned int head) in controller_ready() argument
297 outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); in controller_ready()
307 unsigned int head, in hd_out() argument
320 if (!controller_ready(disk->unit, head)) { in hd_out()
332 outb_p(0xA0 | (disk->unit << 4) | head, ++port); in hd_out()
383 hd_out(disk, disk->sect, disk->sect, disk->head-1, in reset_hd()
561 if (disk->head > 16) { in do_special_op()
581 unsigned int block, nsect, sec, track, head, cyl; in hd_request() local
621 head = track % disk->head; in hd_request()
622 cyl = track / disk->head; in hd_request()
627 cyl, head, sec, nsect, bio_data(req->bio)); in hd_request()
632 hd_out(disk, nsect, sec, head, cyl, ATA_CMD_PIO_READ, in hd_request()
638 hd_out(disk, nsect, sec, head, cyl, ATA_CMD_PIO_WRITE, in hd_request()
665 geo->heads = disk->head; in hd_getgeo()
745 set_capacity(disk, p->head * p->sect * p->cyl); in hd_init()
751 p->cyl, p->head, p->sect); in hd_init()