Lines Matching refs:p_ptr
222 int tipc_port_reject_sections(struct tipc_port *p_ptr, struct tipc_msg *hdr,
245 static inline void tipc_port_unlock(struct tipc_port *p_ptr) in tipc_port_unlock() argument
247 spin_unlock_bh(p_ptr->lock); in tipc_port_unlock()
255 static inline u32 tipc_peer_port(struct tipc_port *p_ptr) in tipc_peer_port() argument
257 return msg_destport(&p_ptr->phdr); in tipc_peer_port()
260 static inline u32 tipc_peer_node(struct tipc_port *p_ptr) in tipc_peer_node() argument
262 return msg_destnode(&p_ptr->phdr); in tipc_peer_node()
265 static inline int tipc_port_congested(struct tipc_port *p_ptr) in tipc_port_congested() argument
267 return (p_ptr->sent - p_ptr->acked) >= (TIPC_FLOW_CONTROL_WIN * 2); in tipc_port_congested()
276 struct tipc_port *p_ptr; in tipc_port_recv_msg() local
289 p_ptr = tipc_port_lock(destport); in tipc_port_recv_msg()
290 if (likely(p_ptr)) { in tipc_port_recv_msg()
291 if (likely(p_ptr->connected)) { in tipc_port_recv_msg()
292 if ((unlikely(msg_origport(msg) != tipc_peer_port(p_ptr))) || in tipc_port_recv_msg()
293 (unlikely(msg_orignode(msg) != tipc_peer_node(p_ptr))) || in tipc_port_recv_msg()
296 tipc_port_unlock(p_ptr); in tipc_port_recv_msg()
300 err = p_ptr->dispatcher(p_ptr, buf); in tipc_port_recv_msg()
301 tipc_port_unlock(p_ptr); in tipc_port_recv_msg()