Lines Matching defs:pd_scratch
250 static char pd_scratch[512]; /* scratch block buffer */
718 pi_read_block(disk->pi, pd_scratch, 512);
719 disk->can_lba = pd_scratch[99] & 2;
720 disk->sectors = le16_to_cpu(*(__le16 *) (pd_scratch + 12));
721 disk->heads = le16_to_cpu(*(__le16 *) (pd_scratch + 6));
722 disk->cylinders = le16_to_cpu(*(__le16 *) (pd_scratch + 2));
724 disk->capacity = le32_to_cpu(*(__le32 *) (pd_scratch + 120));
729 id[j ^ 1] = pd_scratch[j + PD_ID_OFF];
736 disk->removable = pd_scratch[0] & 0x80;
967 if (pi_init(disk->pi, 1, -1, -1, -1, -1, -1, pd_scratch,
981 pd_scratch, PI_PD, verbose, disk->name)) {