Lines Matching refs:vblk
527 * ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id
533 * list of vblk's.
535 * Return: Pointer, A matching vblk was found
538 static struct vblk * ldm_get_disk_objid (const struct ldmdb *ldb)
545 struct vblk *v = list_entry (item, struct vblk, list);
546 if (uuid_equal(&v->vblk.disk.disk_id, &ldb->ph.disk_id))
574 struct vblk *vb;
575 struct vblk *disk;
591 vb = list_entry (item, struct vblk, list);
592 part = &vb->vblk.part;
710 * ldm_parse_cmp3 - Read a raw VBLK Component object into a vblk structure
713 * @vb: In-memory vblk in which to return information
715 * Read a raw VBLK Component object (version 3) into a vblk structure.
720 static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb)
748 comp = &vb->vblk.comp;
760 * ldm_parse_dgr3 - Read a raw VBLK Disk Group object into a vblk structure
763 * @vb: In-memory vblk in which to return information
765 * Read a raw VBLK Disk Group object (version 3) into a vblk structure.
770 static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb)
794 dgrp = &vb->vblk.dgrp;
801 * ldm_parse_dgr4 - Read a raw VBLK Disk Group object into a vblk structure
804 * @vb: In-memory vblk in which to return information
806 * Read a raw VBLK Disk Group object (version 4) into a vblk structure.
811 static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb)
839 * ldm_parse_dsk3 - Read a raw VBLK Disk object into a vblk structure
842 * @vb: In-memory vblk in which to return information
844 * Read a raw VBLK Disk object (version 3) into a vblk structure.
849 static bool ldm_parse_dsk3 (const u8 *buffer, int buflen, struct vblk *vb)
868 disk = &vb->vblk.disk;
878 * ldm_parse_dsk4 - Read a raw VBLK Disk object into a vblk structure
881 * @vb: In-memory vblk in which to return information
883 * Read a raw VBLK Disk object (version 4) into a vblk structure.
888 static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
905 disk = &vb->vblk.disk;
911 * ldm_parse_prt3 - Read a raw VBLK Partition object into a vblk structure
914 * @vb: In-memory vblk in which to return information
916 * Read a raw VBLK Partition object (version 3) into a vblk structure.
921 static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb)
971 part = &vb->vblk.part;
985 * ldm_parse_vol5 - Read a raw VBLK Volume object into a vblk structure
988 * @vb: In-memory vblk in which to return information
990 * Read a raw VBLK Volume object (version 5) into a vblk structure.
995 static bool ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb)
1076 volu = &vb->vblk.volu;
1092 * ldm_parse_vblk - Read a raw VBLK object into a vblk structure
1095 * @vb: In-memory vblk in which to return information
1097 * Read a raw VBLK object into a vblk structure. This function just reads the
1104 static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb)
1158 struct vblk *vb;
1174 /* Put vblk into the correct list. */
1193 struct vblk *v = list_entry (item, struct vblk, list);
1194 if ((v->vblk.part.disk_id == vb->vblk.part.disk_id) &&
1195 (v->vblk.part.start > vb->vblk.part.start)) {
1366 for (v = 0; v < perbuf; v++, data+=size) { /* For each vblk */
1396 * ldm_free_vblks - Free a linked list of vblk's
1397 * @lh: Head of a linked list of struct vblk
1399 * Free a list of vblk's and free the memory used to maintain the list.
1410 kfree (list_entry (item, struct vblk, list));
1461 /* Initialize vblk lists in ldmdb struct */