Lines Matching refs:port

40     mach_port_t port;		/* Port. */  member
50 const mach_port_t port = _hurd_port_get (__p, &__link); \
52 _hurd_port_free (__p, &__link, port); \
63 extern void _hurd_port_init (struct hurd_port *port, mach_port_t init);
68 _hurd_port_init (struct hurd_port *port, mach_port_t init) in _hurd_port_init() argument
70 __spin_lock_init (&port->lock); in _hurd_port_init()
71 port->users = NULL; in _hurd_port_init()
72 port->port = init; in _hurd_port_init()
85 _hurd_port_locked_get (struct hurd_port *port,
91 _hurd_port_locked_get (struct hurd_port *port, in _hurd_port_locked_get() argument
95 result = port->port; in _hurd_port_locked_get()
100 _hurd_userlink_link (&port->users, link); in _hurd_port_locked_get()
102 __spin_unlock (&port->lock); in _hurd_port_locked_get()
111 _hurd_port_get (struct hurd_port *port,
117 _hurd_port_get (struct hurd_port *port, in _hurd_port_get() argument
122 __spin_lock (&port->lock); in _hurd_port_get()
123 result = _hurd_port_locked_get (port, link); in _hurd_port_get()
135 _hurd_port_move (struct hurd_port *port,
142 _hurd_port_move (struct hurd_port *port, in _hurd_port_move() argument
147 __spin_lock (&port->lock); in _hurd_port_move()
149 __spin_unlock (&port->lock); in _hurd_port_move()
159 _hurd_port_free (struct hurd_port *port,
166 _hurd_port_free (struct hurd_port *port, in _hurd_port_free() argument
177 __spin_lock (&port->lock); in _hurd_port_free()
179 __spin_unlock (&port->lock); in _hurd_port_free()
191 extern void _hurd_port_locked_set (struct hurd_port *port, mach_port_t newport);
196 _hurd_port_locked_set (struct hurd_port *port, mach_port_t newport) in _hurd_port_locked_set() argument
199 old = _hurd_userlink_clear (&port->users) ? port->port : MACH_PORT_NULL; in _hurd_port_locked_set()
200 port->port = newport; in _hurd_port_locked_set()
201 __spin_unlock (&port->lock); in _hurd_port_locked_set()
210 extern void _hurd_port_set (struct hurd_port *port, mach_port_t newport);
215 _hurd_port_set (struct hurd_port *port, mach_port_t newport) in _hurd_port_set() argument
218 __spin_lock (&port->lock); in _hurd_port_set()
219 _hurd_port_locked_set (port, newport); in _hurd_port_set()