Lines Matching refs:wwn_list

361 				 * Node wwn is required for the wwn_list
490 * wwn_list pointer:
493 * wwn_list points to a linked list of wwn's.
551 * remove it from the wwn_list.
749 g_free_wwn_list(struct wwn_list_struct **wwn_list)
753 /* return if wwn_list is NULL */
754 if (wwn_list == NULL) {
758 for (; *wwn_list != NULL; *wwn_list = next) {
759 next = (*wwn_list)->wwn_next;
760 if ((*wwn_list)->physical_path != NULL)
761 (void) g_destroy_data((*wwn_list)->physical_path);
762 if ((*wwn_list)->logical_path != NULL)
763 (void) g_destroy_data((*wwn_list)->logical_path);
764 (void) g_destroy_data(*wwn_list);
766 wwn_list = NULL;
773 g_sort_wwn_list(struct wwn_list_struct **wwn_list)
782 * Count the number of wwn_list in the list
784 for (n = 0, wwn_list_ptr = *wwn_list;
794 * Allocate a simple wwn_list array and fill it in
800 for (wwn_list_ptr = *wwn_list;
808 * Sort the wwn_list array
814 * Rebuild the linked list wwn_list structure
817 *wwn_list = *wwn_list_array_ptr1;
4243 WWN_list *wwn_list, *wwn_list_ptr;
4249 wwn_list = wwn_list_ptr = NULL;
4255 if (err = g_get_wwn_list(&wwn_list, verbose)) {
4259 for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
4269 (void) g_free_wwn_list(&wwn_list);
4286 (void) g_free_wwn_list(&wwn_list);
4306 struct wwn_list_struct *wwn_list, int verbose)
4318 if ((multipath_list == NULL) || (wwn_list == NULL)) {
4323 err = get_multipath_disk(devpath, multipath_list, wwn_list);
4325 err = get_multipath(devpath, multipath_list, wwn_list);
4336 * wwn_list: returned from g_get_wwn_list or devices_get_all
4345 struct wwn_list_struct *wwn_list)
4354 if (wwn_list == NULL || multipath_list == NULL || devpath == NULL) {
4378 for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
4425 struct wwn_list_struct *wwn_list)
4450 if (wwn_list == NULL) {
4454 for (*node_wwn_s = NULL, wwn_list_ptr = wwn_list;
4480 for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
5541 WWN_list *wwn_list, *l1, *l2;
5550 wwn_list = *wwn_list_ptr = NULL;
5650 if (wwn_list == NULL) {
5651 l1 = wwn_list = l2;
5662 *wwn_list_ptr = wwn_list; /* pass back ptr to list */
5725 WWN_list *wwn_list, *wwn_list_save;
5738 wwn_list = *wwn_list_ptr;
5763 for (wwn_list = *wwn_list_ptr; wwn_list != NULL;
5764 wwn_list = wwn_list->wwn_next) {
5765 if (strcmp(wwn_list->physical_path, result) == 0) {
5769 if ((wwn_list->logical_path = (char *)
5774 strcpy(wwn_list->logical_path, namebuf);
5789 wwn_list = *wwn_list_ptr;
5790 while (wwn_list != NULL) {
5791 if (wwn_list->logical_path == NULL) {
5792 free(wwn_list->physical_path);
5793 wwn_list_save = wwn_list;
5794 if (wwn_list->wwn_prev != NULL) {
5795 wwn_list->wwn_prev->wwn_next =
5796 wwn_list->wwn_next;
5801 *wwn_list_ptr = wwn_list->wwn_next;
5803 if (wwn_list->wwn_next != NULL) {
5804 wwn_list->wwn_next->wwn_prev =
5805 wwn_list->wwn_prev;
5807 wwn_list = wwn_list->wwn_next;
5810 wwn_list = wwn_list->wwn_next;