Lines Matching refs:dr
34 struct adfs_discrecord *dr; in adfs_partition() local
40 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition()
42 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition()
45 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition()
46 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition()
54 return dr; in adfs_partition()
189 struct adfs_discrecord *dr; in adfspart_check_CUMANA() local
199 dr = adfs_partition(state, name, data, first_sector, slot++); in adfspart_check_CUMANA()
200 if (!dr) in adfspart_check_CUMANA()
206 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA()
207 dr->secspertrack; in adfspart_check_CUMANA()
261 struct adfs_discrecord *dr; in adfspart_check_ADFS() local
269 dr = adfs_partition(state, "ADFS", data, 0, slot++); in adfspart_check_ADFS()
270 if (!dr) { in adfspart_check_ADFS()
275 heads = dr->heads + ((dr->lowsector >> 6) & 1); in adfspart_check_ADFS()
276 sectscyl = dr->secspertrack * heads; in adfspart_check_ADFS()