Lines Matching refs:agp_fe
46 struct agp_front_data agp_fe; variable
52 if (agp_fe.current_controller == NULL) in agp_find_mem_by_key()
55 curr = agp_fe.current_controller->pool; in agp_find_mem_by_key()
89 agp_fe.current_controller->pool = next; in agp_remove_from_pool()
203 prev = agp_fe.current_controller->pool; in agp_insert_into_pool()
209 agp_fe.current_controller->pool = temp; in agp_insert_into_pool()
219 curr = agp_fe.file_priv_list; in agp_find_private()
234 prev = agp_fe.file_priv_list; in agp_insert_file_private()
239 agp_fe.file_priv_list = priv; in agp_insert_file_private()
260 agp_fe.file_priv_list = next; in agp_remove_file_private()
297 controller = agp_fe.controllers; in agp_find_controller_by_pid()
324 prev_controller = agp_fe.controllers; in agp_insert_controller()
330 agp_fe.controllers = controller; in agp_insert_controller()
389 agp_fe.controllers = next_controller; in agp_remove_controller()
395 if (agp_fe.current_controller == controller) { in agp_remove_controller()
396 agp_fe.current_controller = NULL; in agp_remove_controller()
397 agp_fe.backend_acquired = false; in agp_remove_controller()
422 agp_fe.current_controller = controller; in agp_controller_make_current()
444 agp_fe.current_controller = NULL; in agp_controller_release_current()
445 agp_fe.used_by_controller = false; in agp_controller_release_current()
477 controller = agp_fe.controllers; in agp_find_controller_for_client()
492 if (agp_fe.current_controller == NULL) in agp_find_client_by_pid()
495 temp = agp_find_client_in_controller(agp_fe.current_controller, id); in agp_find_client_by_pid()
503 prev_client = agp_fe.current_controller->clients; in agp_insert_client()
509 agp_fe.current_controller->clients = client; in agp_insert_client()
510 agp_fe.current_controller->num_clients++; in agp_insert_client()
573 mutex_lock(&(agp_fe.agp_mutex)); in agp_mmap()
575 if (agp_fe.backend_acquired != true) in agp_mmap()
609 mutex_unlock(&(agp_fe.agp_mutex)); in agp_mmap()
626 mutex_unlock(&(agp_fe.agp_mutex)); in agp_mmap()
631 mutex_unlock(&(agp_fe.agp_mutex)); in agp_mmap()
635 mutex_unlock(&(agp_fe.agp_mutex)); in agp_mmap()
639 mutex_unlock(&(agp_fe.agp_mutex)); in agp_mmap()
647 mutex_lock(&(agp_fe.agp_mutex)); in agp_release()
657 if (controller == agp_fe.current_controller) in agp_release()
670 mutex_unlock(&(agp_fe.agp_mutex)); in agp_release()
683 mutex_lock(&(agp_fe.agp_mutex)); in agp_open()
687 mutex_unlock(&(agp_fe.agp_mutex)); in agp_open()
708 mutex_unlock(&(agp_fe.agp_mutex)); in agp_open()
746 if (agp_fe.current_controller != NULL) in agpioc_acquire_wrap()
757 agp_fe.backend_acquired = true; in agpioc_acquire_wrap()
767 agp_fe.backend_acquired = false; in agpioc_acquire_wrap()
783 agp_controller_release_current(agp_fe.current_controller, priv); in agpioc_release_wrap()
956 mutex_lock(&(agp_fe.agp_mutex)); in agp_ioctl()
958 if ((agp_fe.current_controller == NULL) && in agp_ioctl()
963 if ((agp_fe.backend_acquired != true) && in agp_ioctl()
976 if (agp_fe.current_controller->pid != curr_priv->my_pid) { in agp_ioctl()
1029 mutex_unlock(&(agp_fe.agp_mutex)); in agp_ioctl()
1055 memset(&agp_fe, 0, sizeof(struct agp_front_data)); in agp_frontend_initialize()
1056 mutex_init(&(agp_fe.agp_mutex)); in agp_frontend_initialize()