Home
last modified time | relevance | path

Searched refs:p_ptr (Results 1 – 3 of 3) sorted by relevance

/net/tipc/
Dport.c69 static u32 port_peernode(struct port *p_ptr) in port_peernode() argument
71 return msg_destnode(&p_ptr->publ.phdr); in port_peernode()
74 static u32 port_peerport(struct port *p_ptr) in port_peerport() argument
76 return msg_destport(&p_ptr->publ.phdr); in port_peerport()
79 static u32 port_out_seqno(struct port *p_ptr) in port_out_seqno() argument
81 return msg_transp_seqno(&p_ptr->publ.phdr); in port_out_seqno()
84 static void port_incr_out_seqno(struct port *p_ptr) in port_incr_out_seqno() argument
86 struct tipc_msg *m = &p_ptr->publ.phdr; in port_incr_out_seqno()
224 struct port *p_ptr; in tipc_createport_raw() local
228 p_ptr = kzalloc(sizeof(*p_ptr), GFP_ATOMIC); in tipc_createport_raw()
[all …]
Dport.h114 int tipc_port_recv_sections(struct port *p_ptr, u32 num_sect,
116 int tipc_port_reject_sections(struct port *p_ptr, struct tipc_msg *hdr,
140 static inline void tipc_port_unlock(struct port *p_ptr) in tipc_port_unlock() argument
142 spin_unlock_bh(p_ptr->publ.lock); in tipc_port_unlock()
150 static inline u32 tipc_peer_port(struct port *p_ptr) in tipc_peer_port() argument
152 return msg_destport(&p_ptr->publ.phdr); in tipc_peer_port()
155 static inline u32 tipc_peer_node(struct port *p_ptr) in tipc_peer_node() argument
157 return msg_destnode(&p_ptr->publ.phdr); in tipc_peer_node()
160 static inline int tipc_port_congested(struct port *p_ptr) in tipc_port_congested() argument
162 return((p_ptr->sent - p_ptr->acked) >= (TIPC_FLOW_CONTROL_WIN * 2)); in tipc_port_congested()
[all …]
Dlink.c555 struct port *p_ptr; in link_schedule_port() local
558 p_ptr = tipc_port_lock(origport); in link_schedule_port()
559 if (p_ptr) { in link_schedule_port()
560 if (!p_ptr->wakeup) in link_schedule_port()
562 if (!list_empty(&p_ptr->wait_list)) in link_schedule_port()
564 p_ptr->congested_link = l_ptr; in link_schedule_port()
565 p_ptr->publ.congested = 1; in link_schedule_port()
566 p_ptr->waiting_pkts = 1 + ((sz - 1) / link_max_pkt(l_ptr)); in link_schedule_port()
567 list_add_tail(&p_ptr->wait_list, &l_ptr->waiting_ports); in link_schedule_port()
570 tipc_port_unlock(p_ptr); in link_schedule_port()
[all …]