Lines Matching defs:chs
273 short *chs;
307 (void) sprintf(buf, "SUNW-ata-%p-d%d-chs", (void *) ata_ctlp->ac_data,
310 buf, (caddr_t)&chs, &len) == DDI_PROP_SUCCESS) {
317 if (chs[1] == (ata_drvp->ad_drvrhd - 1) &&
318 chs[2] == ata_drvp->ad_drvrsec)
319 /* Set chs[0] to zero-based number of cylinders. */
320 chs[0] = aidp->ai_fixcyls - 1;
334 * chs[0,1] are zero-based; make them one-based.
336 ata_drvp->ad_drvrcyl = chs[0] + 1;
337 ata_drvp->ad_drvrhd = chs[1] + 1;
338 ata_drvp->ad_drvrsec = chs[2];
339 kmem_free(chs, len);