Lines Matching +full:10 +full:m

81 #define  TUNNEL_PROTOCOL      10
157 * link deferdq: 1 2 3 4 10 11 13 14 15 20
205 static inline u32 msg_word(struct tipc_msg *m, u32 pos) in msg_word() argument
207 return ntohl(m->hdr[pos]); in msg_word()
210 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word() argument
212 m->hdr[w] = htonl(val); in msg_set_word()
215 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits() argument
217 return (msg_word(m, w) >> pos) & mask; in msg_bits()
220 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits() argument
225 m->hdr[w] &= ~htonl(mask); in msg_set_bits()
226 m->hdr[w] |= htonl(val); in msg_set_bits()
232 static inline u32 msg_version(struct tipc_msg *m) in msg_version() argument
234 return msg_bits(m, 0, 29, 7); in msg_version()
237 static inline void msg_set_version(struct tipc_msg *m) in msg_set_version() argument
239 msg_set_bits(m, 0, 29, 7, TIPC_VERSION); in msg_set_version()
242 static inline u32 msg_user(struct tipc_msg *m) in msg_user() argument
244 return msg_bits(m, 0, 25, 0xf); in msg_user()
247 static inline u32 msg_isdata(struct tipc_msg *m) in msg_isdata() argument
249 return msg_user(m) <= TIPC_CRITICAL_IMPORTANCE; in msg_isdata()
252 static inline void msg_set_user(struct tipc_msg *m, u32 n) in msg_set_user() argument
254 msg_set_bits(m, 0, 25, 0xf, n); in msg_set_user()
257 static inline u32 msg_hdr_sz(struct tipc_msg *m) in msg_hdr_sz() argument
259 return msg_bits(m, 0, 21, 0xf) << 2; in msg_hdr_sz()
262 static inline void msg_set_hdr_sz(struct tipc_msg *m, u32 n) in msg_set_hdr_sz() argument
264 msg_set_bits(m, 0, 21, 0xf, n>>2); in msg_set_hdr_sz()
267 static inline u32 msg_size(struct tipc_msg *m) in msg_size() argument
269 return msg_bits(m, 0, 0, 0x1ffff); in msg_size()
272 static inline u32 msg_blocks(struct tipc_msg *m) in msg_blocks() argument
274 return (msg_size(m) / 1024) + 1; in msg_blocks()
277 static inline u32 msg_data_sz(struct tipc_msg *m) in msg_data_sz() argument
279 return msg_size(m) - msg_hdr_sz(m); in msg_data_sz()
282 static inline int msg_non_seq(struct tipc_msg *m) in msg_non_seq() argument
284 return msg_bits(m, 0, 20, 1); in msg_non_seq()
287 static inline void msg_set_non_seq(struct tipc_msg *m, u32 n) in msg_set_non_seq() argument
289 msg_set_bits(m, 0, 20, 1, n); in msg_set_non_seq()
292 static inline int msg_is_syn(struct tipc_msg *m) in msg_is_syn() argument
294 return msg_bits(m, 0, 17, 1); in msg_is_syn()
297 static inline void msg_set_syn(struct tipc_msg *m, u32 d) in msg_set_syn() argument
299 msg_set_bits(m, 0, 17, 1, d); in msg_set_syn()
302 static inline int msg_dest_droppable(struct tipc_msg *m) in msg_dest_droppable() argument
304 return msg_bits(m, 0, 19, 1); in msg_dest_droppable()
307 static inline void msg_set_dest_droppable(struct tipc_msg *m, u32 d) in msg_set_dest_droppable() argument
309 msg_set_bits(m, 0, 19, 1, d); in msg_set_dest_droppable()
312 static inline int msg_is_keepalive(struct tipc_msg *m) in msg_is_keepalive() argument
314 return msg_bits(m, 0, 19, 1); in msg_is_keepalive()
317 static inline void msg_set_is_keepalive(struct tipc_msg *m, u32 d) in msg_set_is_keepalive() argument
319 msg_set_bits(m, 0, 19, 1, d); in msg_set_is_keepalive()
322 static inline int msg_src_droppable(struct tipc_msg *m) in msg_src_droppable() argument
324 return msg_bits(m, 0, 18, 1); in msg_src_droppable()
327 static inline void msg_set_src_droppable(struct tipc_msg *m, u32 d) in msg_set_src_droppable() argument
329 msg_set_bits(m, 0, 18, 1, d); in msg_set_src_droppable()
332 static inline int msg_ack_required(struct tipc_msg *m) in msg_ack_required() argument
334 return msg_bits(m, 0, 18, 1); in msg_ack_required()
337 static inline void msg_set_ack_required(struct tipc_msg *m) in msg_set_ack_required() argument
339 msg_set_bits(m, 0, 18, 1, 1); in msg_set_ack_required()
342 static inline int msg_nagle_ack(struct tipc_msg *m) in msg_nagle_ack() argument
344 return msg_bits(m, 0, 18, 1); in msg_nagle_ack()
347 static inline void msg_set_nagle_ack(struct tipc_msg *m) in msg_set_nagle_ack() argument
349 msg_set_bits(m, 0, 18, 1, 1); in msg_set_nagle_ack()
352 static inline bool msg_is_rcast(struct tipc_msg *m) in msg_is_rcast() argument
354 return msg_bits(m, 0, 18, 0x1); in msg_is_rcast()
357 static inline void msg_set_is_rcast(struct tipc_msg *m, bool d) in msg_set_is_rcast() argument
359 msg_set_bits(m, 0, 18, 0x1, d); in msg_set_is_rcast()
362 static inline void msg_set_size(struct tipc_msg *m, u32 sz) in msg_set_size() argument
364 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); in msg_set_size()
367 static inline unchar *msg_data(struct tipc_msg *m) in msg_data() argument
369 return ((unchar *)m) + msg_hdr_sz(m); in msg_data()
372 static inline struct tipc_msg *msg_inner_hdr(struct tipc_msg *m) in msg_inner_hdr() argument
374 return (struct tipc_msg *)msg_data(m); in msg_inner_hdr()
380 static inline u32 msg_type(struct tipc_msg *m) in msg_type() argument
382 return msg_bits(m, 1, 29, 0x7); in msg_type()
385 static inline void msg_set_type(struct tipc_msg *m, u32 n) in msg_set_type() argument
387 msg_set_bits(m, 1, 29, 0x7, n); in msg_set_type()
390 static inline int msg_in_group(struct tipc_msg *m) in msg_in_group() argument
392 int mtyp = msg_type(m); in msg_in_group()
397 static inline bool msg_is_grp_evt(struct tipc_msg *m) in msg_is_grp_evt() argument
399 return msg_type(m) == TIPC_GRP_MEMBER_EVT; in msg_is_grp_evt()
402 static inline u32 msg_named(struct tipc_msg *m) in msg_named() argument
404 return msg_type(m) == TIPC_NAMED_MSG; in msg_named()
407 static inline u32 msg_mcast(struct tipc_msg *m) in msg_mcast() argument
409 int mtyp = msg_type(m); in msg_mcast()
415 static inline u32 msg_connected(struct tipc_msg *m) in msg_connected() argument
417 return msg_type(m) == TIPC_CONN_MSG; in msg_connected()
420 static inline u32 msg_direct(struct tipc_msg *m) in msg_direct() argument
422 return msg_type(m) == TIPC_DIRECT_MSG; in msg_direct()
425 static inline u32 msg_errcode(struct tipc_msg *m) in msg_errcode() argument
427 return msg_bits(m, 1, 25, 0xf); in msg_errcode()
430 static inline void msg_set_errcode(struct tipc_msg *m, u32 err) in msg_set_errcode() argument
432 msg_set_bits(m, 1, 25, 0xf, err); in msg_set_errcode()
435 static inline void msg_set_bulk(struct tipc_msg *m) in msg_set_bulk() argument
437 msg_set_bits(m, 1, 28, 0x1, 1); in msg_set_bulk()
440 static inline u32 msg_is_bulk(struct tipc_msg *m) in msg_is_bulk() argument
442 return msg_bits(m, 1, 28, 0x1); in msg_is_bulk()
445 static inline void msg_set_last_bulk(struct tipc_msg *m) in msg_set_last_bulk() argument
447 msg_set_bits(m, 1, 27, 0x1, 1); in msg_set_last_bulk()
450 static inline u32 msg_is_last_bulk(struct tipc_msg *m) in msg_is_last_bulk() argument
452 return msg_bits(m, 1, 27, 0x1); in msg_is_last_bulk()
455 static inline void msg_set_non_legacy(struct tipc_msg *m) in msg_set_non_legacy() argument
457 msg_set_bits(m, 1, 26, 0x1, 1); in msg_set_non_legacy()
460 static inline u32 msg_is_legacy(struct tipc_msg *m) in msg_is_legacy() argument
462 return !msg_bits(m, 1, 26, 0x1); in msg_is_legacy()
465 static inline u32 msg_reroute_cnt(struct tipc_msg *m) in msg_reroute_cnt() argument
467 return msg_bits(m, 1, 21, 0xf); in msg_reroute_cnt()
470 static inline void msg_incr_reroute_cnt(struct tipc_msg *m) in msg_incr_reroute_cnt() argument
472 msg_set_bits(m, 1, 21, 0xf, msg_reroute_cnt(m) + 1); in msg_incr_reroute_cnt()
475 static inline u32 msg_lookup_scope(struct tipc_msg *m) in msg_lookup_scope() argument
477 return msg_bits(m, 1, 19, 0x3); in msg_lookup_scope()
480 static inline void msg_set_lookup_scope(struct tipc_msg *m, u32 n) in msg_set_lookup_scope() argument
482 msg_set_bits(m, 1, 19, 0x3, n); in msg_set_lookup_scope()
485 static inline u16 msg_bcast_ack(struct tipc_msg *m) in msg_bcast_ack() argument
487 return msg_bits(m, 1, 0, 0xffff); in msg_bcast_ack()
490 static inline void msg_set_bcast_ack(struct tipc_msg *m, u16 n) in msg_set_bcast_ack() argument
492 msg_set_bits(m, 1, 0, 0xffff, n); in msg_set_bcast_ack()
498 static inline bool msg_dest_session_valid(struct tipc_msg *m) in msg_dest_session_valid() argument
500 return msg_bits(m, 1, 16, 0x1); in msg_dest_session_valid()
503 static inline void msg_set_dest_session_valid(struct tipc_msg *m, bool valid) in msg_set_dest_session_valid() argument
505 msg_set_bits(m, 1, 16, 0x1, valid); in msg_set_dest_session_valid()
508 static inline u16 msg_dest_session(struct tipc_msg *m) in msg_dest_session() argument
510 return msg_bits(m, 1, 0, 0xffff); in msg_dest_session()
513 static inline void msg_set_dest_session(struct tipc_msg *m, u16 n) in msg_set_dest_session() argument
515 msg_set_bits(m, 1, 0, 0xffff, n); in msg_set_dest_session()
521 static inline u16 msg_ack(struct tipc_msg *m) in msg_ack() argument
523 return msg_bits(m, 2, 16, 0xffff); in msg_ack()
526 static inline void msg_set_ack(struct tipc_msg *m, u16 n) in msg_set_ack() argument
528 msg_set_bits(m, 2, 16, 0xffff, n); in msg_set_ack()
531 static inline u16 msg_seqno(struct tipc_msg *m) in msg_seqno() argument
533 return msg_bits(m, 2, 0, 0xffff); in msg_seqno()
536 static inline void msg_set_seqno(struct tipc_msg *m, u16 n) in msg_set_seqno() argument
538 msg_set_bits(m, 2, 0, 0xffff, n); in msg_set_seqno()
542 * Words 3-10
544 static inline u32 msg_importance(struct tipc_msg *m) in msg_importance() argument
546 int usr = msg_user(m); in msg_importance()
548 if (likely((usr <= TIPC_CRITICAL_IMPORTANCE) && !msg_errcode(m))) in msg_importance()
551 return msg_bits(m, 9, 0, 0x7); in msg_importance()
555 static inline void msg_set_importance(struct tipc_msg *m, u32 i) in msg_set_importance() argument
557 int usr = msg_user(m); in msg_set_importance()
560 msg_set_bits(m, 9, 0, 0x7, i); in msg_set_importance()
562 msg_set_user(m, i); in msg_set_importance()
567 static inline u32 msg_prevnode(struct tipc_msg *m) in msg_prevnode() argument
569 return msg_word(m, 3); in msg_prevnode()
572 static inline void msg_set_prevnode(struct tipc_msg *m, u32 a) in msg_set_prevnode() argument
574 msg_set_word(m, 3, a); in msg_set_prevnode()
577 static inline u32 msg_origport(struct tipc_msg *m) in msg_origport() argument
579 if (msg_user(m) == MSG_FRAGMENTER) in msg_origport()
580 m = msg_inner_hdr(m); in msg_origport()
581 return msg_word(m, 4); in msg_origport()
584 static inline void msg_set_origport(struct tipc_msg *m, u32 p) in msg_set_origport() argument
586 msg_set_word(m, 4, p); in msg_set_origport()
589 static inline u16 msg_named_seqno(struct tipc_msg *m) in msg_named_seqno() argument
591 return msg_bits(m, 4, 0, 0xffff); in msg_named_seqno()
594 static inline void msg_set_named_seqno(struct tipc_msg *m, u16 n) in msg_set_named_seqno() argument
596 msg_set_bits(m, 4, 0, 0xffff, n); in msg_set_named_seqno()
599 static inline u32 msg_destport(struct tipc_msg *m) in msg_destport() argument
601 return msg_word(m, 5); in msg_destport()
604 static inline void msg_set_destport(struct tipc_msg *m, u32 p) in msg_set_destport() argument
606 msg_set_word(m, 5, p); in msg_set_destport()
609 static inline u32 msg_mc_netid(struct tipc_msg *m) in msg_mc_netid() argument
611 return msg_word(m, 5); in msg_mc_netid()
614 static inline void msg_set_mc_netid(struct tipc_msg *m, u32 p) in msg_set_mc_netid() argument
616 msg_set_word(m, 5, p); in msg_set_mc_netid()
619 static inline int msg_short(struct tipc_msg *m) in msg_short() argument
621 return msg_hdr_sz(m) == SHORT_H_SIZE; in msg_short()
624 static inline u32 msg_orignode(struct tipc_msg *m) in msg_orignode() argument
626 if (likely(msg_short(m))) in msg_orignode()
627 return msg_prevnode(m); in msg_orignode()
628 return msg_word(m, 6); in msg_orignode()
631 static inline void msg_set_orignode(struct tipc_msg *m, u32 a) in msg_set_orignode() argument
633 msg_set_word(m, 6, a); in msg_set_orignode()
636 static inline u32 msg_destnode(struct tipc_msg *m) in msg_destnode() argument
638 return msg_word(m, 7); in msg_destnode()
641 static inline void msg_set_destnode(struct tipc_msg *m, u32 a) in msg_set_destnode() argument
643 msg_set_word(m, 7, a); in msg_set_destnode()
646 static inline u32 msg_nametype(struct tipc_msg *m) in msg_nametype() argument
648 return msg_word(m, 8); in msg_nametype()
651 static inline void msg_set_nametype(struct tipc_msg *m, u32 n) in msg_set_nametype() argument
653 msg_set_word(m, 8, n); in msg_set_nametype()
656 static inline u32 msg_nameinst(struct tipc_msg *m) in msg_nameinst() argument
658 return msg_word(m, 9); in msg_nameinst()
661 static inline u32 msg_namelower(struct tipc_msg *m) in msg_namelower() argument
663 return msg_nameinst(m); in msg_namelower()
666 static inline void msg_set_namelower(struct tipc_msg *m, u32 n) in msg_set_namelower() argument
668 msg_set_word(m, 9, n); in msg_set_namelower()
671 static inline void msg_set_nameinst(struct tipc_msg *m, u32 n) in msg_set_nameinst() argument
673 msg_set_namelower(m, n); in msg_set_nameinst()
676 static inline u32 msg_nameupper(struct tipc_msg *m) in msg_nameupper() argument
678 return msg_word(m, 10); in msg_nameupper()
681 static inline void msg_set_nameupper(struct tipc_msg *m, u32 n) in msg_set_nameupper() argument
683 msg_set_word(m, 10, n); in msg_set_nameupper()
747 static inline u32 msg_seq_gap(struct tipc_msg *m) in msg_seq_gap() argument
749 return msg_bits(m, 1, 16, 0x1fff); in msg_seq_gap()
752 static inline void msg_set_seq_gap(struct tipc_msg *m, u32 n) in msg_set_seq_gap() argument
754 msg_set_bits(m, 1, 16, 0x1fff, n); in msg_set_seq_gap()
757 static inline u32 msg_node_sig(struct tipc_msg *m) in msg_node_sig() argument
759 return msg_bits(m, 1, 0, 0xffff); in msg_node_sig()
762 static inline void msg_set_node_sig(struct tipc_msg *m, u32 n) in msg_set_node_sig() argument
764 msg_set_bits(m, 1, 0, 0xffff, n); in msg_set_node_sig()
767 static inline u32 msg_node_capabilities(struct tipc_msg *m) in msg_node_capabilities() argument
769 return msg_bits(m, 1, 15, 0x1fff); in msg_node_capabilities()
772 static inline void msg_set_node_capabilities(struct tipc_msg *m, u32 n) in msg_set_node_capabilities() argument
774 msg_set_bits(m, 1, 15, 0x1fff, n); in msg_set_node_capabilities()
780 static inline u32 msg_dest_domain(struct tipc_msg *m) in msg_dest_domain() argument
782 return msg_word(m, 2); in msg_dest_domain()
785 static inline void msg_set_dest_domain(struct tipc_msg *m, u32 n) in msg_set_dest_domain() argument
787 msg_set_word(m, 2, n); in msg_set_dest_domain()
790 static inline void msg_set_bcgap_after(struct tipc_msg *m, u32 n) in msg_set_bcgap_after() argument
792 msg_set_bits(m, 2, 16, 0xffff, n); in msg_set_bcgap_after()
795 static inline u32 msg_bcgap_to(struct tipc_msg *m) in msg_bcgap_to() argument
797 return msg_bits(m, 2, 0, 0xffff); in msg_bcgap_to()
800 static inline void msg_set_bcgap_to(struct tipc_msg *m, u32 n) in msg_set_bcgap_to() argument
802 msg_set_bits(m, 2, 0, 0xffff, n); in msg_set_bcgap_to()
808 static inline u32 msg_last_bcast(struct tipc_msg *m) in msg_last_bcast() argument
810 return msg_bits(m, 4, 16, 0xffff); in msg_last_bcast()
813 static inline u32 msg_bc_snd_nxt(struct tipc_msg *m) in msg_bc_snd_nxt() argument
815 return msg_last_bcast(m) + 1; in msg_bc_snd_nxt()
818 static inline void msg_set_last_bcast(struct tipc_msg *m, u32 n) in msg_set_last_bcast() argument
820 msg_set_bits(m, 4, 16, 0xffff, n); in msg_set_last_bcast()
823 static inline u32 msg_nof_fragms(struct tipc_msg *m) in msg_nof_fragms() argument
825 return msg_bits(m, 4, 0, 0xffff); in msg_nof_fragms()
828 static inline void msg_set_nof_fragms(struct tipc_msg *m, u32 n) in msg_set_nof_fragms() argument
830 msg_set_bits(m, 4, 0, 0xffff, n); in msg_set_nof_fragms()
833 static inline u32 msg_fragm_no(struct tipc_msg *m) in msg_fragm_no() argument
835 return msg_bits(m, 4, 16, 0xffff); in msg_fragm_no()
838 static inline void msg_set_fragm_no(struct tipc_msg *m, u32 n) in msg_set_fragm_no() argument
840 msg_set_bits(m, 4, 16, 0xffff, n); in msg_set_fragm_no()
843 static inline u16 msg_next_sent(struct tipc_msg *m) in msg_next_sent() argument
845 return msg_bits(m, 4, 0, 0xffff); in msg_next_sent()
848 static inline void msg_set_next_sent(struct tipc_msg *m, u16 n) in msg_set_next_sent() argument
850 msg_set_bits(m, 4, 0, 0xffff, n); in msg_set_next_sent()
853 static inline u32 msg_bc_netid(struct tipc_msg *m) in msg_bc_netid() argument
855 return msg_word(m, 4); in msg_bc_netid()
858 static inline void msg_set_bc_netid(struct tipc_msg *m, u32 id) in msg_set_bc_netid() argument
860 msg_set_word(m, 4, id); in msg_set_bc_netid()
863 static inline u32 msg_link_selector(struct tipc_msg *m) in msg_link_selector() argument
865 if (msg_user(m) == MSG_FRAGMENTER) in msg_link_selector()
866 m = (void *)msg_data(m); in msg_link_selector()
867 return msg_bits(m, 4, 0, 1); in msg_link_selector()
873 static inline u16 msg_session(struct tipc_msg *m) in msg_session() argument
875 return msg_bits(m, 5, 16, 0xffff); in msg_session()
878 static inline void msg_set_session(struct tipc_msg *m, u16 n) in msg_set_session() argument
880 msg_set_bits(m, 5, 16, 0xffff, n); in msg_set_session()
883 static inline u32 msg_probe(struct tipc_msg *m) in msg_probe() argument
885 return msg_bits(m, 5, 0, 1); in msg_probe()
888 static inline void msg_set_probe(struct tipc_msg *m, u32 val) in msg_set_probe() argument
890 msg_set_bits(m, 5, 0, 1, val); in msg_set_probe()
893 static inline char msg_net_plane(struct tipc_msg *m) in msg_net_plane() argument
895 return msg_bits(m, 5, 1, 7) + 'A'; in msg_net_plane()
898 static inline void msg_set_net_plane(struct tipc_msg *m, char n) in msg_set_net_plane() argument
900 msg_set_bits(m, 5, 1, 7, (n - 'A')); in msg_set_net_plane()
903 static inline u32 msg_linkprio(struct tipc_msg *m) in msg_linkprio() argument
905 return msg_bits(m, 5, 4, 0x1f); in msg_linkprio()
908 static inline void msg_set_linkprio(struct tipc_msg *m, u32 n) in msg_set_linkprio() argument
910 msg_set_bits(m, 5, 4, 0x1f, n); in msg_set_linkprio()
913 static inline u32 msg_bearer_id(struct tipc_msg *m) in msg_bearer_id() argument
915 return msg_bits(m, 5, 9, 0x7); in msg_bearer_id()
918 static inline void msg_set_bearer_id(struct tipc_msg *m, u32 n) in msg_set_bearer_id() argument
920 msg_set_bits(m, 5, 9, 0x7, n); in msg_set_bearer_id()
923 static inline u32 msg_redundant_link(struct tipc_msg *m) in msg_redundant_link() argument
925 return msg_bits(m, 5, 12, 0x1); in msg_redundant_link()
928 static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r) in msg_set_redundant_link() argument
930 msg_set_bits(m, 5, 12, 0x1, r); in msg_set_redundant_link()
933 static inline u32 msg_peer_stopping(struct tipc_msg *m) in msg_peer_stopping() argument
935 return msg_bits(m, 5, 13, 0x1); in msg_peer_stopping()
938 static inline void msg_set_peer_stopping(struct tipc_msg *m, u32 s) in msg_set_peer_stopping() argument
940 msg_set_bits(m, 5, 13, 0x1, s); in msg_set_peer_stopping()
943 static inline bool msg_bc_ack_invalid(struct tipc_msg *m) in msg_bc_ack_invalid() argument
945 switch (msg_user(m)) { in msg_bc_ack_invalid()
949 return msg_bits(m, 5, 14, 0x1); in msg_bc_ack_invalid()
955 static inline void msg_set_bc_ack_invalid(struct tipc_msg *m, bool invalid) in msg_set_bc_ack_invalid() argument
957 msg_set_bits(m, 5, 14, 0x1, invalid); in msg_set_bc_ack_invalid()
960 static inline char *msg_media_addr(struct tipc_msg *m) in msg_media_addr() argument
962 return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET]; in msg_media_addr()
965 static inline u32 msg_bc_gap(struct tipc_msg *m) in msg_bc_gap() argument
967 return msg_bits(m, 8, 0, 0x3ff); in msg_bc_gap()
970 static inline void msg_set_bc_gap(struct tipc_msg *m, u32 n) in msg_set_bc_gap() argument
972 msg_set_bits(m, 8, 0, 0x3ff, n); in msg_set_bc_gap()
978 static inline u16 msg_msgcnt(struct tipc_msg *m) in msg_msgcnt() argument
980 return msg_bits(m, 9, 16, 0xffff); in msg_msgcnt()
983 static inline void msg_set_msgcnt(struct tipc_msg *m, u16 n) in msg_set_msgcnt() argument
985 msg_set_bits(m, 9, 16, 0xffff, n); in msg_set_msgcnt()
988 static inline u16 msg_syncpt(struct tipc_msg *m) in msg_syncpt() argument
990 return msg_bits(m, 9, 16, 0xffff); in msg_syncpt()
993 static inline void msg_set_syncpt(struct tipc_msg *m, u16 n) in msg_set_syncpt() argument
995 msg_set_bits(m, 9, 16, 0xffff, n); in msg_set_syncpt()
998 static inline u32 msg_conn_ack(struct tipc_msg *m) in msg_conn_ack() argument
1000 return msg_bits(m, 9, 16, 0xffff); in msg_conn_ack()
1003 static inline void msg_set_conn_ack(struct tipc_msg *m, u32 n) in msg_set_conn_ack() argument
1005 msg_set_bits(m, 9, 16, 0xffff, n); in msg_set_conn_ack()
1008 static inline u16 msg_adv_win(struct tipc_msg *m) in msg_adv_win() argument
1010 return msg_bits(m, 9, 0, 0xffff); in msg_adv_win()
1013 static inline void msg_set_adv_win(struct tipc_msg *m, u16 n) in msg_set_adv_win() argument
1015 msg_set_bits(m, 9, 0, 0xffff, n); in msg_set_adv_win()
1018 static inline u32 msg_max_pkt(struct tipc_msg *m) in msg_max_pkt() argument
1020 return msg_bits(m, 9, 16, 0xffff) * 4; in msg_max_pkt()
1023 static inline void msg_set_max_pkt(struct tipc_msg *m, u32 n) in msg_set_max_pkt() argument
1025 msg_set_bits(m, 9, 16, 0xffff, (n / 4)); in msg_set_max_pkt()
1028 static inline u32 msg_link_tolerance(struct tipc_msg *m) in msg_link_tolerance() argument
1030 return msg_bits(m, 9, 0, 0xffff); in msg_link_tolerance()
1033 static inline void msg_set_link_tolerance(struct tipc_msg *m, u32 n) in msg_set_link_tolerance() argument
1035 msg_set_bits(m, 9, 0, 0xffff, n); in msg_set_link_tolerance()
1038 static inline u16 msg_grp_bc_syncpt(struct tipc_msg *m) in msg_grp_bc_syncpt() argument
1040 return msg_bits(m, 9, 16, 0xffff); in msg_grp_bc_syncpt()
1043 static inline void msg_set_grp_bc_syncpt(struct tipc_msg *m, u16 n) in msg_set_grp_bc_syncpt() argument
1045 msg_set_bits(m, 9, 16, 0xffff, n); in msg_set_grp_bc_syncpt()
1048 static inline u16 msg_grp_bc_acked(struct tipc_msg *m) in msg_grp_bc_acked() argument
1050 return msg_bits(m, 9, 16, 0xffff); in msg_grp_bc_acked()
1053 static inline void msg_set_grp_bc_acked(struct tipc_msg *m, u16 n) in msg_set_grp_bc_acked() argument
1055 msg_set_bits(m, 9, 16, 0xffff, n); in msg_set_grp_bc_acked()
1058 static inline u16 msg_grp_remitted(struct tipc_msg *m) in msg_grp_remitted() argument
1060 return msg_bits(m, 9, 16, 0xffff); in msg_grp_remitted()
1063 static inline void msg_set_grp_remitted(struct tipc_msg *m, u16 n) in msg_set_grp_remitted() argument
1065 msg_set_bits(m, 9, 16, 0xffff, n); in msg_set_grp_remitted()
1068 /* Word 10
1070 static inline u16 msg_grp_evt(struct tipc_msg *m) in msg_grp_evt() argument
1072 return msg_bits(m, 10, 0, 0x3); in msg_grp_evt()
1075 static inline void msg_set_grp_evt(struct tipc_msg *m, int n) in msg_set_grp_evt() argument
1077 msg_set_bits(m, 10, 0, 0x3, n); in msg_set_grp_evt()
1080 static inline u16 msg_grp_bc_ack_req(struct tipc_msg *m) in msg_grp_bc_ack_req() argument
1082 return msg_bits(m, 10, 0, 0x1); in msg_grp_bc_ack_req()
1085 static inline void msg_set_grp_bc_ack_req(struct tipc_msg *m, bool n) in msg_set_grp_bc_ack_req() argument
1087 msg_set_bits(m, 10, 0, 0x1, n); in msg_set_grp_bc_ack_req()
1090 static inline u16 msg_grp_bc_seqno(struct tipc_msg *m) in msg_grp_bc_seqno() argument
1092 return msg_bits(m, 10, 16, 0xffff); in msg_grp_bc_seqno()
1095 static inline void msg_set_grp_bc_seqno(struct tipc_msg *m, u32 n) in msg_set_grp_bc_seqno() argument
1097 msg_set_bits(m, 10, 16, 0xffff, n); in msg_set_grp_bc_seqno()
1100 static inline bool msg_peer_link_is_up(struct tipc_msg *m) in msg_peer_link_is_up() argument
1102 if (likely(msg_user(m) != LINK_PROTOCOL)) in msg_peer_link_is_up()
1104 if (msg_type(m) == STATE_MSG) in msg_peer_link_is_up()
1109 static inline bool msg_peer_node_is_up(struct tipc_msg *m) in msg_peer_node_is_up() argument
1111 if (msg_peer_link_is_up(m)) in msg_peer_node_is_up()
1113 return msg_redundant_link(m); in msg_peer_node_is_up()
1123 static inline void msg_set_peer_net_hash(struct tipc_msg *m, u32 n) in msg_set_peer_net_hash() argument
1125 msg_set_word(m, 13, n); in msg_set_peer_net_hash()
1128 static inline u32 msg_peer_net_hash(struct tipc_msg *m) in msg_peer_net_hash() argument
1130 return msg_word(m, 13); in msg_peer_net_hash()
1135 static inline u32 msg_sugg_node_addr(struct tipc_msg *m) in msg_sugg_node_addr() argument
1137 return msg_word(m, 14); in msg_sugg_node_addr()
1140 static inline void msg_set_sugg_node_addr(struct tipc_msg *m, u32 n) in msg_set_sugg_node_addr() argument
1142 msg_set_word(m, 14, n); in msg_set_sugg_node_addr()
1160 void tipc_msg_init(u32 own_addr, struct tipc_msg *m, u32 user, u32 type,
1171 int tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m,
1173 int tipc_msg_append(struct tipc_msg *hdr, struct msghdr *m, int dlen,