Lines Matching refs:res_prev

602 	struct resource_node *res_prev;  in ibmphp_add_resource()  local
686 res_prev = NULL; in ibmphp_add_resource()
693 res_prev = res_cur; in ibmphp_add_resource()
703 res_prev->nextRange = res; in ibmphp_add_resource()
711 res_prev = res_cur; in ibmphp_add_resource()
716 res_prev->next = res; in ibmphp_add_resource()
718 res->nextRange = res_prev->nextRange; in ibmphp_add_resource()
719 res_prev->nextRange = NULL; in ibmphp_add_resource()
722 if (!res_prev) { in ibmphp_add_resource()
734 } else if (res_prev->rangeno == res_cur->rangeno) in ibmphp_add_resource()
735 res_prev->next = res; in ibmphp_add_resource()
737 res_prev->nextRange = res; in ibmphp_add_resource()
744 if (!res_prev) { in ibmphp_add_resource()
763 res_prev->nextRange = res; in ibmphp_add_resource()
785 struct resource_node *res_prev; in ibmphp_remove_resource() local
819 res_prev = NULL; in ibmphp_remove_resource()
824 res_prev = res_cur; in ibmphp_remove_resource()
839 res_prev = NULL; in ibmphp_remove_resource()
859 if (!res_prev) in ibmphp_remove_resource()
862 res_prev->next = res_cur->next; in ibmphp_remove_resource()
866 res_prev = res_cur; in ibmphp_remove_resource()
881 if (!res_prev) { in ibmphp_remove_resource()
924 if (res_prev->rangeno == res_cur->rangeno) in ibmphp_remove_resource()
925 res_prev->next = res_cur->next; in ibmphp_remove_resource()
927 res_prev->nextRange = res_cur->next; in ibmphp_remove_resource()
929 res_prev->next = NULL; in ibmphp_remove_resource()
930 res_prev->nextRange = res_cur->nextRange; in ibmphp_remove_resource()
932 res_prev->next = NULL; in ibmphp_remove_resource()
933 res_prev->nextRange = NULL; in ibmphp_remove_resource()
981 struct resource_node *res_prev; in ibmphp_check_resource() local
1033 res_prev = NULL; in ibmphp_check_resource()
1045 if (!res_prev) { in ibmphp_check_resource()
1123 if (res_prev) { in ibmphp_check_resource()
1124 if (res_prev->rangeno != res_cur->rangeno) { in ibmphp_check_resource()
1162 if ((len_tmp = res_cur->start - 1 - res_prev->end - 1) >= res->len) { in ibmphp_check_resource()
1164 if (((res_prev->end + 1) % tmp_divide) == 0) { in ibmphp_check_resource()
1168 start_cur = res_prev->end + 1; in ibmphp_check_resource()
1171 tmp_start = res_prev->end + 1; in ibmphp_check_resource()
1198 res_prev = res_cur; in ibmphp_check_resource()
1206 if (!res_prev) { in ibmphp_check_resource()
1270 debug ("prev->rangeno = %d, noranges = %d\n", res_prev->rangeno, noranges); in ibmphp_check_resource()
1271 if (res_prev->rangeno < noranges) { in ibmphp_check_resource()