Lines Matching full:dr

53 static int adfs_checkdiscrecord(struct adfs_discrecord *dr)  in adfs_checkdiscrecord()  argument
59 if (dr->log2secsize != 8 && in adfs_checkdiscrecord()
60 dr->log2secsize != 9 && in adfs_checkdiscrecord()
61 dr->log2secsize != 10) in adfs_checkdiscrecord()
65 if (dr->idlen < dr->log2secsize + 3) in adfs_checkdiscrecord()
72 if (le32_to_cpu(dr->disc_size_high) >> dr->log2secsize) in adfs_checkdiscrecord()
80 max_idlen = dr->format_version ? 19 : 16; in adfs_checkdiscrecord()
81 if (dr->idlen > max_idlen) in adfs_checkdiscrecord()
85 for (i = 0; i < sizeof(dr->unused52); i++) in adfs_checkdiscrecord()
86 if (dr->unused52[i] != 0) in adfs_checkdiscrecord()
286 struct adfs_discrecord *dr; in adfs_probe() local
311 ret = validate(sb, bh, &dr); in adfs_probe()
318 blocksize = 1 << dr->log2secsize; in adfs_probe()
320 asb->s_map = adfs_read_map(sb, dr); in adfs_probe()
334 struct adfs_discrecord *dr; in adfs_validate_bblk() local
342 dr = (struct adfs_discrecord *)(b_data + ADFS_DR_OFFSET); in adfs_validate_bblk()
343 if (adfs_checkdiscrecord(dr)) in adfs_validate_bblk()
346 *drp = dr; in adfs_validate_bblk()
353 struct adfs_discrecord *dr; in adfs_validate_dr0() local
356 dr = (struct adfs_discrecord *)(bh->b_data + 4); in adfs_validate_dr0()
357 if (adfs_checkdiscrecord(dr) || dr->nzones_high || dr->nzones != 1) in adfs_validate_dr0()
360 *drp = dr; in adfs_validate_dr0()
366 struct adfs_discrecord *dr; in adfs_fill_super() local
409 dr = adfs_map_discrecord(asb->s_map); in adfs_fill_super()
411 root_obj.parent_id = root_obj.indaddr = le32_to_cpu(dr->root); in adfs_fill_super()
424 if (dr->format_version) { in adfs_fill_super()
425 root_obj.size = le32_to_cpu(dr->root_size); in adfs_fill_super()