tag | line | file | source code |
xd_info | 39 | drivers/block/xd.c | XD_INFO xd_info[XD_MAXDRIVES]; |
xd_info | 96 | drivers/block/xd.c | (void *) xd_info, /* internal */ |
xd_info | 169 | drivers/block/xd.c | printk("xd_geninit: drive %d geometry - heads = %d, cylinders = %d, sectors = %d\n",i,xd_info[i].heads,xd_info[i].cylinders,xd_info[i].sectors); |
xd_info | 182 | drivers/block/xd.c | xd[i << 6].nr_sects = xd_info[i].heads * xd_info[i].cylinders * xd_info[i].sectors; |
xd_info | 249 | drivers/block/xd.c | put_user(xd_info[dev].heads, &geometry->heads); |
xd_info | 250 | drivers/block/xd.c | put_user(xd_info[dev].sectors, &geometry->sectors); |
xd_info | 251 | drivers/block/xd.c | put_user(xd_info[dev].cylinders, &geometry->cylinders); |
xd_info | 314 | drivers/block/xd.c | xd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors; |
xd_info | 334 | drivers/block/xd.c | control = xd_info[drive].control; |
xd_info | 338 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
xd_info | 339 | drivers/block/xd.c | head = track % xd_info[drive].heads; |
xd_info | 340 | drivers/block/xd.c | cylinder = track / xd_info[drive].heads; |
xd_info | 341 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
xd_info | 544 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
xd_info | 545 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
xd_info | 546 | drivers/block/xd.c | xd_info[drive].sectors = 17; /* sectors */ |
xd_info | 548 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
xd_info | 549 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
xd_info | 550 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
xd_info | 552 | drivers/block/xd.c | xd_info[drive].control = 0; /* control byte */ |
xd_info | 554 | drivers/block/xd.c | xd_setparam(CMD_DTCSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf + 1))[0x05],((u_short *) (buf + 1))[0x06],buf[0x0F]); |
xd_info | 588 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
xd_info | 589 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
xd_info | 590 | drivers/block/xd.c | xd_info[drive].sectors = 17; /* sectors */ |
xd_info | 592 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
xd_info | 593 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
xd_info | 594 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
xd_info | 596 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
xd_info | 598 | drivers/block/xd.c | xd_setparam(CMD_WDSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf))[0xD8],((u_short *) (buf))[0xDA],buf[0x1B4]); |
xd_info | 627 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
xd_info | 628 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
xd_info | 629 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
xd_info | 630 | drivers/block/xd.c | xd_info[drive].control = 0; /* control byte */ |
xd_info | 661 | drivers/block/xd.c | xd_info[drive].control = 2; |
xd_info | 682 | drivers/block/xd.c | xd_info[drive].heads = (u_char) min[0] + 1; |
xd_info | 683 | drivers/block/xd.c | xd_info[drive].cylinders = (u_short) min[1] + 1; |
xd_info | 684 | drivers/block/xd.c | xd_info[drive].sectors = (u_char) min[2] + 1; |
xd_info | 685 | drivers/block/xd.c | xd_info[drive].control = 0; |