Lines Matching defs:list

525  * ldm_get_disk_objid - Search a linked list of vblk's for a given Disk Id
528 * The LDM Database contains a list of all partitions on all dynamic disks.
531 * list of vblk's.
543 struct vblk *v = list_entry (item, struct vblk, list);
563 * objects in the linked list.
589 vb = list_entry (item, struct vblk, list);
1172 /* Put vblk into the correct list. */
1176 list_add (&vb->list, &ldb->v_dgrp);
1180 list_add (&vb->list, &ldb->v_disk);
1183 list_add (&vb->list, &ldb->v_volu);
1186 list_add (&vb->list, &ldb->v_comp);
1191 struct vblk *v = list_entry (item, struct vblk, list);
1194 list_add_tail (&vb->list, &v->list);
1198 list_add_tail (&vb->list, &ldb->v_part);
1205 * ldm_frag_add - Add a VBLK fragment to a list
1206 * @data: Raw fragment to be added to the list
1208 * @frags: Linked list of VBLK fragments
1211 * in a list so they can be pieced together later.
1213 * Return: 'true' Success, the VBLK was added to the list
1242 f = list_entry (item, struct frag, list);
1258 list_add_tail (&f->list, frags);
1279 * ldm_frag_free - Free a linked list of VBLK fragments
1280 * @list: Linked list of fragments
1282 * Free a linked list of VBLK fragments
1286 static void ldm_frag_free (struct list_head *list)
1290 BUG_ON (!list);
1292 list_for_each_safe (item, tmp, list)
1293 kfree (list_entry (item, struct frag, list));
1298 * @frags: Linked list of VBLK fragments
1315 f = list_entry (item, struct frag, list);
1394 * ldm_free_vblks - Free a linked list of vblk's
1395 * @lh: Head of a linked list of struct vblk
1397 * Free a list of vblk's and free the memory used to maintain the list.
1408 kfree (list_entry (item, struct vblk, list));