• Home
  • Raw
  • Download

Lines Matching refs:len

722 	int r_objid, r_name, r_vstate, r_child, r_parent, r_stripe, r_cols, len;  in ldm_parse_cmp3()  local
736 len = r_cols; in ldm_parse_cmp3()
740 len = r_parent; in ldm_parse_cmp3()
742 if (len < 0) in ldm_parse_cmp3()
745 len += VBLK_SIZE_CMP3; in ldm_parse_cmp3()
746 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_cmp3()
773 int r_objid, r_name, r_diskid, r_id1, r_id2, len; in ldm_parse_dgr3() local
785 len = r_id2; in ldm_parse_dgr3()
789 len = r_diskid; in ldm_parse_dgr3()
791 if (len < 0) in ldm_parse_dgr3()
794 len += VBLK_SIZE_DGR3; in ldm_parse_dgr3()
795 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_dgr3()
818 int r_objid, r_name, r_id1, r_id2, len; in ldm_parse_dgr4() local
828 len = r_id2; in ldm_parse_dgr4()
832 len = r_name; in ldm_parse_dgr4()
834 if (len < 0) in ldm_parse_dgr4()
837 len += VBLK_SIZE_DGR4; in ldm_parse_dgr4()
838 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_dgr4()
858 int r_objid, r_name, r_diskid, r_altname, len; in ldm_parse_dsk3() local
867 len = r_altname; in ldm_parse_dsk3()
868 if (len < 0) in ldm_parse_dsk3()
871 len += VBLK_SIZE_DSK3; in ldm_parse_dsk3()
872 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_dsk3()
897 int r_objid, r_name, len; in ldm_parse_dsk4() local
904 len = r_name; in ldm_parse_dsk4()
905 if (len < 0) in ldm_parse_dsk4()
908 len += VBLK_SIZE_DSK4; in ldm_parse_dsk4()
909 if (len != get_unaligned_be32(buffer + 0x14)) in ldm_parse_dsk4()
930 int r_objid, r_name, r_size, r_parent, r_diskid, r_index, len; in ldm_parse_prt3() local
965 len = r_index; in ldm_parse_prt3()
968 len = r_diskid; in ldm_parse_prt3()
970 if (len < 0) { in ldm_parse_prt3()
971 ldm_error("len %d < 0", len); in ldm_parse_prt3()
974 len += VBLK_SIZE_PRT3; in ldm_parse_prt3()
975 if (len > get_unaligned_be32(buffer + 0x14)) { in ldm_parse_prt3()
976 ldm_error("len %d > BE32(buffer + 0x14) %d", len, in ldm_parse_prt3()
1007 int r_id1, r_id2, r_size2, r_drive, len; in ldm_parse_vol5() local
1074 len = r_drive; in ldm_parse_vol5()
1075 if (len < 0) { in ldm_parse_vol5()
1076 ldm_error("len %d < 0", len); in ldm_parse_vol5()
1079 len += VBLK_SIZE_VOL5; in ldm_parse_vol5()
1080 if (len > get_unaligned_be32(buffer + 0x14)) { in ldm_parse_vol5()
1081 ldm_error("len %d > BE32(buffer + 0x14) %d", len, in ldm_parse_vol5()
1113 static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb) in ldm_parse_vblk() argument
1120 r_objid = ldm_relative (buf, len, 0x18, 0); in ldm_parse_vblk()
1132 case VBLK_CMP3: result = ldm_parse_cmp3 (buf, len, vb); break; in ldm_parse_vblk()
1133 case VBLK_DSK3: result = ldm_parse_dsk3 (buf, len, vb); break; in ldm_parse_vblk()
1134 case VBLK_DSK4: result = ldm_parse_dsk4 (buf, len, vb); break; in ldm_parse_vblk()
1135 case VBLK_DGR3: result = ldm_parse_dgr3 (buf, len, vb); break; in ldm_parse_vblk()
1136 case VBLK_DGR4: result = ldm_parse_dgr4 (buf, len, vb); break; in ldm_parse_vblk()
1137 case VBLK_PRT3: result = ldm_parse_prt3 (buf, len, vb); break; in ldm_parse_vblk()
1138 case VBLK_VOL5: result = ldm_parse_vol5 (buf, len, vb); break; in ldm_parse_vblk()
1165 static bool ldm_ldmdb_add (u8 *data, int len, struct ldmdb *ldb) in ldm_ldmdb_add() argument
1178 if (!ldm_parse_vblk (data, len, vb)) { in ldm_ldmdb_add()