Lines Matching refs:wd
29 static int hfsplus_read_mdb(unsigned char *bufptr, struct hfsplus_wd *wd) in hfsplus_read_mdb() argument
42 wd->ablk_size = be32_to_cpu(*(u32 *)(bufptr + HFSP_WRAPOFF_ABLKSIZE)); in hfsplus_read_mdb()
43 if (wd->ablk_size < HFSPLUS_SECTOR_SIZE) in hfsplus_read_mdb()
45 if (wd->ablk_size % HFSPLUS_SECTOR_SIZE) in hfsplus_read_mdb()
47 wd->ablk_start = be16_to_cpu(*(u16 *)(bufptr + HFSP_WRAPOFF_ABLKSTART)); in hfsplus_read_mdb()
50 wd->embed_start = (extent >> 16) & 0xFFFF; in hfsplus_read_mdb()
51 wd->embed_count = extent & 0xFFFF; in hfsplus_read_mdb()
64 struct hfsplus_wd wd; in hfsplus_read_wrapper() local
86 if (!hfsplus_read_mdb(bufptr, &wd)) in hfsplus_read_wrapper()
88 vhsect = (wd.ablk_start + wd.embed_start * (wd.ablk_size >> 9)) in hfsplus_read_wrapper()
98 HFSPLUS_SB(sb).sect_count = wd.embed_count * (wd.ablk_size >> 9); in hfsplus_read_wrapper()
100 wd.ablk_start = 0; in hfsplus_read_wrapper()
101 wd.ablk_size = blocksize; in hfsplus_read_wrapper()
102 wd.embed_start = 0; in hfsplus_read_wrapper()
119 blockoffset = wd.ablk_start + wd.embed_start * (wd.ablk_size >> 9); in hfsplus_read_wrapper()