• Home
  • Raw
  • Download

Lines Matching refs:active

71 		} active;  member
136 struct pvcalls_data_intf *intf = map->active.ring; in pvcalls_front_write_todo()
153 struct pvcalls_data_intf *intf = map->active.ring; in pvcalls_front_read_todo()
233 unbind_from_irqhandler(map->active.irq, map); in pvcalls_front_free_map()
241 gnttab_end_foreign_access(map->active.ring->ref[i], 0, 0); in pvcalls_front_free_map()
242 gnttab_end_foreign_access(map->active.ref, 0, 0); in pvcalls_front_free_map()
243 free_page((unsigned long)map->active.ring); in pvcalls_front_free_map()
255 wake_up_interruptible(&map->active.inflight_conn_req); in pvcalls_front_conn_handler()
337 if (!map->active.ring) in free_active_ring()
340 free_pages_exact(map->active.data.in, in free_active_ring()
341 PAGE_SIZE << map->active.ring->ring_order); in free_active_ring()
342 free_page((unsigned long)map->active.ring); in free_active_ring()
349 map->active.ring = (struct pvcalls_data_intf *) in alloc_active_ring()
351 if (!map->active.ring) in alloc_active_ring()
354 map->active.ring->ring_order = PVCALLS_RING_ORDER; in alloc_active_ring()
360 map->active.data.in = bytes; in alloc_active_ring()
361 map->active.data.out = bytes + in alloc_active_ring()
377 init_waitqueue_head(&map->active.inflight_conn_req); in create_active()
379 bytes = map->active.data.in; in create_active()
381 map->active.ring->ref[i] = gnttab_grant_foreign_access( in create_active()
385 map->active.ref = gnttab_grant_foreign_access( in create_active()
387 pfn_to_gfn(virt_to_pfn((void *)map->active.ring)), 0); in create_active()
399 map->active.irq = irq; in create_active()
401 mutex_init(&map->active.in_mutex); in create_active()
402 mutex_init(&map->active.out_mutex); in create_active()
457 req->u.connect.ref = map->active.ref; in pvcalls_front_connect()
547 mutex_lock(&map->active.out_mutex); in pvcalls_front_sendmsg()
549 mutex_unlock(&map->active.out_mutex); in pvcalls_front_sendmsg()
558 sent = __write_ring(map->active.ring, in pvcalls_front_sendmsg()
559 &map->active.data, &msg->msg_iter, in pvcalls_front_sendmsg()
564 notify_remote_via_irq(map->active.irq); in pvcalls_front_sendmsg()
571 mutex_unlock(&map->active.out_mutex); in pvcalls_front_sendmsg()
638 mutex_lock(&map->active.in_mutex); in pvcalls_front_recvmsg()
643 wait_event_interruptible(map->active.inflight_conn_req, in pvcalls_front_recvmsg()
646 ret = __read_ring(map->active.ring, &map->active.data, in pvcalls_front_recvmsg()
650 notify_remote_via_irq(map->active.irq); in pvcalls_front_recvmsg()
656 mutex_unlock(&map->active.in_mutex); in pvcalls_front_recvmsg()
850 req->u.accept.ref = map2->active.ref; in pvcalls_front_accept()
964 struct pvcalls_data_intf *intf = map->active.ring; in pvcalls_front_poll_active()
969 poll_wait(file, &map->active.inflight_conn_req, wait); in pvcalls_front_poll_active()
1047 map->active.ring->in_error = -EBADF; in pvcalls_front_release()
1048 wake_up_interruptible(&map->active.inflight_conn_req); in pvcalls_front_release()
1102 map->active.ring->in_error = -EBADF; in pvcalls_front_remove()
1103 wake_up_interruptible(&map->active.inflight_conn_req); in pvcalls_front_remove()