• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/partitions/

Lines Matching refs:vblk

581  * ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id
587 * list of vblk's.
589 * Return: Pointer, A matching vblk was found
592 static struct vblk * ldm_get_disk_objid (const struct ldmdb *ldb)
599 struct vblk *v = list_entry (item, struct vblk, list);
600 if (!memcmp (v->vblk.disk.disk_id, ldb->ph.disk_id, GUID_SIZE))
628 struct vblk *vb;
629 struct vblk *disk;
645 vb = list_entry (item, struct vblk, list);
646 part = &vb->vblk.part;
764 * ldm_parse_cmp3 - Read a raw VBLK Component object into a vblk structure
767 * @vb: In-memory vblk in which to return information
769 * Read a raw VBLK Component object (version 3) into a vblk structure.
774 static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb)
803 comp = &vb->vblk.comp;
815 * ldm_parse_dgr3 - Read a raw VBLK Disk Group object into a vblk structure
818 * @vb: In-memory vblk in which to return information
820 * Read a raw VBLK Disk Group object (version 3) into a vblk structure.
825 static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb)
852 dgrp = &vb->vblk.dgrp;
859 * ldm_parse_dgr4 - Read a raw VBLK Disk Group object into a vblk structure
862 * @vb: In-memory vblk in which to return information
864 * Read a raw VBLK Disk Group object (version 4) into a vblk structure.
869 static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb)
896 dgrp = &vb->vblk.dgrp;
903 * ldm_parse_dsk3 - Read a raw VBLK Disk object into a vblk structure
906 * @vb: In-memory vblk in which to return information
908 * Read a raw VBLK Disk object (version 3) into a vblk structure.
913 static bool ldm_parse_dsk3 (const u8 *buffer, int buflen, struct vblk *vb)
932 disk = &vb->vblk.disk;
942 * ldm_parse_dsk4 - Read a raw VBLK Disk object into a vblk structure
945 * @vb: In-memory vblk in which to return information
947 * Read a raw VBLK Disk object (version 4) into a vblk structure.
952 static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb)
969 disk = &vb->vblk.disk;
975 * ldm_parse_prt3 - Read a raw VBLK Partition object into a vblk structure
978 * @vb: In-memory vblk in which to return information
980 * Read a raw VBLK Partition object (version 3) into a vblk structure.
985 static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb)
1037 part = &vb->vblk.part;
1051 * ldm_parse_vol5 - Read a raw VBLK Volume object into a vblk structure
1054 * @vb: In-memory vblk in which to return information
1056 * Read a raw VBLK Volume object (version 5) into a vblk structure.
1061 static bool ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb)
1142 volu = &vb->vblk.volu;
1158 * ldm_parse_vblk - Read a raw VBLK object into a vblk structure
1161 * @vb: In-memory vblk in which to return information
1163 * Read a raw VBLK object into a vblk structure. This function just reads the
1170 static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb)
1224 struct vblk *vb;
1240 /* Put vblk into the correct list. */
1259 struct vblk *v = list_entry (item, struct vblk, list);
1260 if ((v->vblk.part.disk_id == vb->vblk.part.disk_id) &&
1261 (v->vblk.part.start > vb->vblk.part.start)) {
1422 for (v = 0; v < perbuf; v++, data+=size) { /* For each vblk */
1452 * ldm_free_vblks - Free a linked list of vblk's
1453 * @lh: Head of a linked list of struct vblk
1455 * Free a list of vblk's and free the memory used to maintain the list.
1466 kfree (list_entry (item, struct vblk, list));
1517 /* Initialize vblk lists in ldmdb struct */