Lines Matching refs:p_ptr
421 struct tipc_port *p_ptr; in link_schedule_port() local
424 p_ptr = tipc_port_lock(origport); in link_schedule_port()
425 if (p_ptr) { in link_schedule_port()
426 if (!p_ptr->wakeup) in link_schedule_port()
428 if (!list_empty(&p_ptr->wait_list)) in link_schedule_port()
430 p_ptr->congested = 1; in link_schedule_port()
431 p_ptr->waiting_pkts = 1 + ((sz - 1) / l_ptr->max_pkt); in link_schedule_port()
432 list_add_tail(&p_ptr->wait_list, &l_ptr->waiting_ports); in link_schedule_port()
435 tipc_port_unlock(p_ptr); in link_schedule_port()
443 struct tipc_port *p_ptr; in tipc_link_wakeup_ports() local
455 list_for_each_entry_safe(p_ptr, temp_p_ptr, &l_ptr->waiting_ports, in tipc_link_wakeup_ports()
459 list_del_init(&p_ptr->wait_list); in tipc_link_wakeup_ports()
460 spin_lock_bh(p_ptr->lock); in tipc_link_wakeup_ports()
461 p_ptr->congested = 0; in tipc_link_wakeup_ports()
462 p_ptr->wakeup(p_ptr); in tipc_link_wakeup_ports()
463 win -= p_ptr->waiting_pkts; in tipc_link_wakeup_ports()
464 spin_unlock_bh(p_ptr->lock); in tipc_link_wakeup_ports()