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)
749 comp = &vb->vblk.comp;
761 * ldm_parse_dgr3 - Read a raw VBLK Disk Group object into a vblk structure
764 * @vb: In-memory vblk in which to return information
766 * Read a raw VBLK Disk Group object (version 3) into a vblk structure.
771 static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb)
798 dgrp = &vb->vblk.dgrp;
805 * ldm_parse_dgr4 - Read a raw VBLK Disk Group object into a vblk structure
808 * @vb: In-memory vblk in which to return information
810 * Read a raw VBLK Disk Group object (version 4) into a vblk structure.
815 static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb)
846 * ldm_parse_dsk3 - Read a raw VBLK Disk object into a vblk structure
849 * @vb: In-memory vblk in which to return information
851 * Read a raw VBLK Disk object (version 3) into a vblk structure.
856 static bool ldm_parse_dsk3 (const u8 *buffer, int buflen, struct vblk *vb)
875 disk = &vb->vblk.disk;
885 * ldm_parse_dsk4 - Read a raw VBLK Disk object into a vblk structure
888 * @vb: In-memory vblk in which to return information
890 * Read a raw VBLK Disk object (version 4) into a vblk structure.
895 static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
912 disk = &vb->vblk.disk;
918 * ldm_parse_prt3 - Read a raw VBLK Partition object into a vblk structure
921 * @vb: In-memory vblk in which to return information
923 * Read a raw VBLK Partition object (version 3) into a vblk structure.
928 static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb)
980 part = &vb->vblk.part;
994 * ldm_parse_vol5 - Read a raw VBLK Volume object into a vblk structure
997 * @vb: In-memory vblk in which to return information
999 * Read a raw VBLK Volume object (version 5) into a vblk structure.
1004 static bool ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb)
1085 volu = &vb->vblk.volu;
1101 * ldm_parse_vblk - Read a raw VBLK object into a vblk structure
1104 * @vb: In-memory vblk in which to return information
1106 * Read a raw VBLK object into a vblk structure. This function just reads the
1113 static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb)
1167 struct vblk *vb;
1183 /* Put vblk into the correct list. */
1202 struct vblk *v = list_entry (item, struct vblk, list);
1203 if ((v->vblk.part.disk_id == vb->vblk.part.disk_id) &&
1204 (v->vblk.part.start > vb->vblk.part.start)) {
1375 for (v = 0; v < perbuf; v++, data+=size) { /* For each vblk */
1405 * ldm_free_vblks - Free a linked list of vblk's
1406 * @lh: Head of a linked list of struct vblk
1408 * Free a list of vblk's and free the memory used to maintain the list.
1419 kfree (list_entry (item, struct vblk, list));
1470 /* Initialize vblk lists in ldmdb struct */