Lines Matching refs:lcv

214 	int lcv;  in hdr_build_meta()  local
225 for (lcv = 0, descr = layout->descr, ptr = meta->descrs; in hdr_build_meta()
226 lcv < layout->entries; ++lcv, ++descr, ptr += 12) { in hdr_build_meta()
239 int lcv; in dup_layout() local
243 for (lcv = 0; lcv < new->entries; ++lcv) { in dup_layout()
244 new->order[lcv] = (struct hfs_hdr_descr *) in dup_layout()
245 ((char *)(new->order[lcv]) + in dup_layout()
259 int lcv, entries = layout->entries; in init_layout() local
261 for (lcv = 0; lcv < entries; ++lcv, descrs += 12) { in init_layout()
262 layout->order[lcv] = &layout->descr[lcv]; in init_layout()
263 layout->descr[lcv].id = hfs_get_hl(descrs); in init_layout()
264 layout->descr[lcv].offset = hfs_get_hl(descrs + 4); in init_layout()
265 layout->descr[lcv].length = hfs_get_hl(descrs + 8); in init_layout()
267 for (lcv = layout->entries; lcv < HFS_HDR_MAX; ++lcv) { in init_layout()
268 layout->order[lcv] = NULL; in init_layout()
269 layout->descr[lcv].id = 0; in init_layout()
270 layout->descr[lcv].offset = 0; in init_layout()
271 layout->descr[lcv].length = 0; in init_layout()
293 int lcv; in adjust_forks() local
295 for (lcv = 0; lcv < layout->entries; ++lcv) { in adjust_forks()
296 const struct hfs_hdr_descr *descr = &layout->descr[lcv]; in adjust_forks()
390 int left, lcv, read = 0; in hdr_read() local
433 for (lcv = 0; count && (lcv < layout->entries); ++lcv) { in hdr_read()
434 const struct hfs_hdr_descr *descr = layout->order[lcv]; in hdr_read()
642 int left, lcv, written = 0; in hdr_write() local
722 for (lcv = 0; count && (lcv < layout->entries); ++lcv) { in hdr_write()
723 struct hfs_hdr_descr *descr = layout->order[lcv]; in hdr_write()
747 if (layout->order[lcv+1] && in hdr_write()
748 ((start + length) > layout->order[lcv+1]->offset)) { in hdr_write()
749 length = layout->order[lcv+1]->offset - start; in hdr_write()
982 int lcv, last; in hdr_truncate() local
991 for (lcv = 0; lcv <= last; ++lcv) { in hdr_truncate()
992 struct hfs_hdr_descr *descr = layout->order[lcv]; in hdr_truncate()
1016 if ((lcv != last) && ((offset + descr->length) <= size)) { in hdr_truncate()