Lines Matching refs:NULL

51 	if (agp_fe.current_controller == NULL)  in agp_find_mem_by_key()
52 return NULL; in agp_find_mem_by_key()
56 while (curr != NULL) { in agp_find_mem_by_key()
74 if (agp_find_mem_by_key(temp->key) != NULL) { in agp_remove_from_pool()
78 if (prev != NULL) { in agp_remove_from_pool()
80 if (next != NULL) in agp_remove_from_pool()
85 if (next != NULL) in agp_remove_from_pool()
86 next->prev = NULL; in agp_remove_from_pool()
122 return NULL; in agp_find_seg_in_client()
129 if (client->segments != NULL) { in agp_remove_seg_from_client()
130 if (*(client->segments) != NULL) { in agp_remove_seg_from_client()
136 client->segments = NULL; in agp_remove_seg_from_client()
147 if (prev_seg != NULL) in agp_add_seg_to_client()
171 if (seg == NULL) { in agp_create_segment()
173 region->seg_list = NULL; in agp_create_segment()
184 region->seg_list = NULL; in agp_create_segment()
187 if (ret_seg == NULL) { in agp_create_segment()
205 if (prev != NULL) { in agp_insert_into_pool()
221 while (curr != NULL) { in agp_find_private()
227 return NULL; in agp_find_private()
236 if (prev != NULL) in agp_insert_file_private()
250 if (prev != NULL) { in agp_remove_file_private()
253 if (next != NULL) in agp_remove_file_private()
257 if (next != NULL) in agp_remove_file_private()
258 next->prev = NULL; in agp_remove_file_private()
281 if (memory == NULL) in agp_allocate_memory_wrap()
282 return NULL; in agp_allocate_memory_wrap()
299 while (controller != NULL) { in agp_find_controller_by_pid()
305 return NULL; in agp_find_controller_by_pid()
313 if (controller == NULL) in agp_create_controller()
314 return NULL; in agp_create_controller()
327 if (prev_controller != NULL) in agp_insert_controller()
349 if (priv != NULL) { in agp_remove_all_clients()
380 if (prev_controller != NULL) { in agp_remove_controller()
382 if (next_controller != NULL) in agp_remove_controller()
386 if (next_controller != NULL) in agp_remove_controller()
387 next_controller->prev = NULL; in agp_remove_controller()
396 agp_fe.current_controller = NULL; in agp_remove_controller()
410 while (clients != NULL) { in agp_controller_make_current()
415 if (priv != NULL) { in agp_controller_make_current()
433 while (clients != NULL) { in agp_controller_release_current()
438 if (priv != NULL) in agp_controller_release_current()
444 agp_fe.current_controller = NULL; in agp_controller_release_current()
459 if (controller == NULL) in agp_find_client_in_controller()
460 return NULL; in agp_find_client_in_controller()
464 while (client != NULL) { in agp_find_client_in_controller()
470 return NULL; in agp_find_client_in_controller()
479 while (controller != NULL) { in agp_find_controller_for_client()
480 if ((agp_find_client_in_controller(controller, id)) != NULL) in agp_find_controller_for_client()
485 return NULL; in agp_find_controller_for_client()
492 if (agp_fe.current_controller == NULL) in agp_find_client_by_pid()
493 return NULL; in agp_find_client_by_pid()
506 if (prev_client != NULL) in agp_insert_client()
518 if (new_client == NULL) in agp_create_client()
519 return NULL; in agp_create_client()
534 if (controller == NULL) in agp_remove_client()
538 if (client == NULL) in agp_remove_client()
544 if (prev_client != NULL) { in agp_remove_client()
546 if (next_client != NULL) in agp_remove_client()
550 if (next_client != NULL) in agp_remove_client()
551 next_client->prev = NULL; in agp_remove_client()
594 if (client == NULL) in agp_mmap()
656 if (controller != NULL) { in agp_release()
660 controller = NULL; in agp_release()
669 file->private_data = NULL; in agp_release()
686 if (priv == NULL) { in agp_open()
700 if (client != NULL) { in agp_open()
746 if (agp_fe.current_controller != NULL) in agpioc_acquire_wrap()
761 if (controller != NULL) { in agpioc_acquire_wrap()
766 if (controller == NULL) { in agpioc_acquire_wrap()
818 if (client_priv != NULL) { in agpioc_reserve_wrap()
822 if (client == NULL) { in agpioc_reserve_wrap()
836 if (segment == NULL) in agpioc_reserve_wrap()
846 if (client == NULL) { in agpioc_reserve_wrap()
850 if (client == NULL) { in agpioc_reserve_wrap()
856 if (client_priv != NULL) { in agpioc_reserve_wrap()
888 if (memory == NULL) in agpioc_allocate_wrap()
908 if (memory == NULL) in agpioc_deallocate_wrap()
926 if (memory == NULL) in agpioc_bind_wrap()
943 if (memory == NULL) in agpioc_unbind_wrap()
958 if ((agp_fe.current_controller == NULL) && in agp_ioctl()