Lines Matching defs:session
76 * BATADV_TP_FIRST_SEQ - First seqno of each session. The number is rather high
91 * batadv_tp_session_cookie() - generate session cookie based on session ids
92 * @session: TP session identifier
93 * @icmp_uid: icmp pseudo uid of the tp session
95 * Return: 32 bit tp_meter session cookie
97 static u32 batadv_tp_session_cookie(const u8 session[2], u8 icmp_uid)
102 cookie |= session[0] << 8;
103 cookie |= session[1];
135 * @tp_vars: the private data of the current TP meter session
138 * 1) if the session is in Slow Start, the CWND has to be increased by 1
140 * 2) if the session is in Congestion Avoidance, the CWND has to be
171 * @tp_vars: the private data of the current TP meter session
207 * @reason: reason for tp meter session stop
208 * @dst: destination of tp_meter session
212 * @cookie: cookie of tp_meter session
239 * @reason: reason for tp meter session stop
240 * @dst: destination of tp_meter session
242 * @cookie: cookie of tp_meter session
273 * process..it makes sens to pay more when the session is
288 * batadv_tp_list_find_session() - find tp_vars session object in the global
292 * @session: session identifier
294 * Look for a tp_vars object matching dst as end_point, session as tp meter
295 * session and return it after having increment the refcounter. Return NULL
302 const u8 *session)
311 if (memcmp(pos->session, session, sizeof(pos->session)) != 0)
315 * process..it makes sense to pay more when the session is
357 * @tp_vars: the private data of the current TP meter session to be free'd
370 * @tp_vars: the private data of the current TP meter session to cleanup
398 * batadv_tp_sender_end() - print info about ended session and inform client
400 * @tp_vars: the private data of the current TP meter session
419 session_cookie = batadv_tp_session_cookie(tp_vars->session,
432 * @tp_vars: the private data of the current TP meter session
433 * @reason: reason for tp meter session stop
445 * batadv_tp_sender_finish() - stop sender session after test_length was reached
462 * @tp_vars: the private TP meter data for this session
530 * @tp_vars: the private TP meter data for this session
562 * @tp_vars: the private TP meter data for this session
567 * @session: session identifier
579 u32 seqno, size_t len, const u8 *session,
605 memcpy(icmp->session, session, sizeof(icmp->session));
646 icmp->session);
688 icmp->session, icmp->uid,
727 packet_len, icmp->session,
761 * @tp_vars: the private data of the current TP meter session
780 * @tp_vars: the private data of the current TP meter session
800 * batadv_tp_send() - main sending thread of a tp meter session
863 tp_vars->session, tp_vars->icmp_uid,
899 * @tp_vars: the private data of the current TP meter session
910 session_cookie = batadv_tp_session_cookie(tp_vars->session,
929 * batadv_tp_start() - start a new tp meter session
933 * @cookie: session cookie
986 memcpy(tp_vars->session, session_id, sizeof(session_id));
1054 * batadv_tp_stop() - stop currently running tp meter session
1057 * @return_value: reason for tp meter session stop
1087 * @tp_vars: the private data of the current TP meter session
1148 * @session: session identifier
1155 u32 seq, __be32 timestamp, const u8 *session,
1193 memcpy(icmp->session, session, sizeof(icmp->session));
1214 * @tp_vars: the private data of the current TP meter session
1291 * @tp_vars: the private data of the current TP meter session
1336 icmp->session);
1352 memcpy(tp_vars->session, icmp->session, sizeof(tp_vars->session));
1404 icmp->session);
1453 icmp->timestamp, icmp->session, icmp->uid);