Lines Matching refs:sz
83 size_t sz; in afs_is_v1() local
86 ret = mtd_read(mtd, ptr, 4, &sz, (u_char *)&magic); in afs_is_v1()
92 if (ret >= 0 && sz != 4) in afs_is_v1()
103 size_t sz; in afs_is_v2() local
106 ret = mtd_read(mtd, ptr, 8, &sz, (u_char *)foot); in afs_is_v2()
112 if (ret >= 0 && sz != 8) in afs_is_v2()
132 size_t sz; in afs_parse_v1_partition() local
143 ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); in afs_parse_v1_partition()
144 if (ret >= 0 && sz != sizeof(fs)) in afs_parse_v1_partition()
182 ret = mtd_read(mtd, iis_ptr, sizeof(iis), &sz, (u_char *)&iis); in afs_parse_v1_partition()
189 if (sz != sizeof(iis)) in afs_parse_v1_partition()
230 size_t sz; in afs_parse_v2_partition() local
240 ret = mtd_read(mtd, ptr, sizeof(footer), &sz, (u_char *)footer); in afs_parse_v2_partition()
241 if ((ret < 0) || (ret >= 0 && sz != sizeof(footer))) { in afs_parse_v2_partition()
254 ret = mtd_read(mtd, ptr, sizeof(imginfo), &sz, (u_char *)imginfo); in afs_parse_v2_partition()
255 if ((ret < 0) || (ret >= 0 && sz != sizeof(imginfo))) { in afs_parse_v2_partition()
328 u_int off, sz; in parse_afs_partitions() local
333 for (i = off = sz = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions()
335 sz += sizeof(struct mtd_partition); in parse_afs_partitions()
339 sz += sizeof(struct mtd_partition); in parse_afs_partitions()
347 parts = kzalloc(sz, GFP_KERNEL); in parse_afs_partitions()