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 | 251 | drivers/block/xd.c | put_user(xd_info[dev].heads, &geometry->heads); |
xd_info | 252 | drivers/block/xd.c | put_user(xd_info[dev].sectors, &geometry->sectors); |
xd_info | 253 | drivers/block/xd.c | put_user(xd_info[dev].cylinders, &geometry->cylinders); |
xd_info | 324 | drivers/block/xd.c | xd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors; |
xd_info | 344 | drivers/block/xd.c | control = xd_info[drive].control; |
xd_info | 348 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
xd_info | 349 | drivers/block/xd.c | head = track % xd_info[drive].heads; |
xd_info | 350 | drivers/block/xd.c | cylinder = track / xd_info[drive].heads; |
xd_info | 351 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
xd_info | 554 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
xd_info | 555 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
xd_info | 556 | drivers/block/xd.c | xd_info[drive].sectors = 17; /* sectors */ |
xd_info | 558 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
xd_info | 559 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
xd_info | 560 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
xd_info | 562 | drivers/block/xd.c | xd_info[drive].control = 0; /* control byte */ |
xd_info | 564 | 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 | 598 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
xd_info | 599 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
xd_info | 600 | drivers/block/xd.c | xd_info[drive].sectors = 17; /* sectors */ |
xd_info | 602 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
xd_info | 603 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
xd_info | 604 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
xd_info | 606 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
xd_info | 608 | 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 | 637 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
xd_info | 638 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
xd_info | 639 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
xd_info | 640 | drivers/block/xd.c | xd_info[drive].control = 0; /* control byte */ |
xd_info | 671 | drivers/block/xd.c | xd_info[drive].control = 2; |
xd_info | 692 | drivers/block/xd.c | xd_info[drive].heads = (u_char) min[0] + 1; |
xd_info | 693 | drivers/block/xd.c | xd_info[drive].cylinders = (u_short) min[1] + 1; |
xd_info | 694 | drivers/block/xd.c | xd_info[drive].sectors = (u_char) min[2] + 1; |
xd_info | 695 | drivers/block/xd.c | xd_info[drive].control = 0; |