Lines Matching refs:trans

1093 	struct sctp_transport *trans;  in sctp_assoc_update()  local
1107 trans = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_update()
1108 if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) { in sctp_assoc_update()
1109 sctp_assoc_rm_peer(asoc, trans); in sctp_assoc_update()
1114 sctp_transport_reset(trans); in sctp_assoc_update()
1146 list_for_each_entry(trans, &new->peer.transport_addr_list, in sctp_assoc_update()
1148 if (!sctp_assoc_lookup_paddr(asoc, &trans->ipaddr)) in sctp_assoc_update()
1149 sctp_assoc_add_peer(asoc, &trans->ipaddr, in sctp_assoc_update()
1150 GFP_ATOMIC, trans->state); in sctp_assoc_update()
1222 static u8 sctp_trans_score(const struct sctp_transport *trans) in sctp_trans_score() argument
1224 return sctp_trans_state_to_prio_map[trans->state]; in sctp_trans_score()
1266 struct sctp_transport *trans = asoc->peer.retran_path; in sctp_assoc_update_retran_path() local
1280 for (trans = list_next_entry(trans, transports); 1; in sctp_assoc_update_retran_path()
1281 trans = list_next_entry(trans, transports)) { in sctp_assoc_update_retran_path()
1283 if (&trans->transports == &asoc->peer.transport_addr_list) in sctp_assoc_update_retran_path()
1285 if (trans->state == SCTP_UNCONFIRMED) in sctp_assoc_update_retran_path()
1287 trans_next = sctp_trans_elect_best(trans, trans_next); in sctp_assoc_update_retran_path()
1292 if (trans == asoc->peer.retran_path) in sctp_assoc_update_retran_path()
1304 struct sctp_transport *trans, *trans_pri = NULL, *trans_sec = NULL; in sctp_select_active_and_retran_path() local
1308 list_for_each_entry(trans, &asoc->peer.transport_addr_list, in sctp_select_active_and_retran_path()
1311 if (trans->state == SCTP_INACTIVE || in sctp_select_active_and_retran_path()
1312 trans->state == SCTP_UNCONFIRMED) in sctp_select_active_and_retran_path()
1317 if (trans->state == SCTP_PF) { in sctp_select_active_and_retran_path()
1318 trans_pf = sctp_trans_elect_best(trans, trans_pf); in sctp_select_active_and_retran_path()
1323 ktime_after(trans->last_time_heard, in sctp_select_active_and_retran_path()
1326 trans_pri = trans; in sctp_select_active_and_retran_path()
1328 ktime_after(trans->last_time_heard, in sctp_select_active_and_retran_path()
1330 trans_sec = trans; in sctp_select_active_and_retran_path()