Lines Matching refs:tipc_msg
148 struct tipc_msg { struct
200 static inline struct tipc_msg *buf_msg(struct sk_buff *skb) in buf_msg()
202 return (struct tipc_msg *)skb->data; in buf_msg()
205 static inline u32 msg_word(struct tipc_msg *m, u32 pos) in msg_word()
210 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word()
215 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits()
220 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits()
232 static inline u32 msg_version(struct tipc_msg *m) in msg_version()
237 static inline void msg_set_version(struct tipc_msg *m) in msg_set_version()
242 static inline u32 msg_user(struct tipc_msg *m) in msg_user()
247 static inline u32 msg_isdata(struct tipc_msg *m) in msg_isdata()
252 static inline void msg_set_user(struct tipc_msg *m, u32 n) in msg_set_user()
257 static inline u32 msg_hdr_sz(struct tipc_msg *m) in msg_hdr_sz()
262 static inline void msg_set_hdr_sz(struct tipc_msg *m, u32 n) in msg_set_hdr_sz()
267 static inline u32 msg_size(struct tipc_msg *m) in msg_size()
272 static inline u32 msg_blocks(struct tipc_msg *m) in msg_blocks()
277 static inline u32 msg_data_sz(struct tipc_msg *m) in msg_data_sz()
282 static inline int msg_non_seq(struct tipc_msg *m) in msg_non_seq()
287 static inline void msg_set_non_seq(struct tipc_msg *m, u32 n) in msg_set_non_seq()
292 static inline int msg_is_syn(struct tipc_msg *m) in msg_is_syn()
297 static inline void msg_set_syn(struct tipc_msg *m, u32 d) in msg_set_syn()
302 static inline int msg_dest_droppable(struct tipc_msg *m) in msg_dest_droppable()
307 static inline void msg_set_dest_droppable(struct tipc_msg *m, u32 d) in msg_set_dest_droppable()
312 static inline int msg_is_keepalive(struct tipc_msg *m) in msg_is_keepalive()
317 static inline void msg_set_is_keepalive(struct tipc_msg *m, u32 d) in msg_set_is_keepalive()
322 static inline int msg_src_droppable(struct tipc_msg *m) in msg_src_droppable()
327 static inline void msg_set_src_droppable(struct tipc_msg *m, u32 d) in msg_set_src_droppable()
332 static inline int msg_ack_required(struct tipc_msg *m) in msg_ack_required()
337 static inline void msg_set_ack_required(struct tipc_msg *m) in msg_set_ack_required()
342 static inline int msg_nagle_ack(struct tipc_msg *m) in msg_nagle_ack()
347 static inline void msg_set_nagle_ack(struct tipc_msg *m) in msg_set_nagle_ack()
352 static inline bool msg_is_rcast(struct tipc_msg *m) in msg_is_rcast()
357 static inline void msg_set_is_rcast(struct tipc_msg *m, bool d) in msg_set_is_rcast()
362 static inline void msg_set_size(struct tipc_msg *m, u32 sz) in msg_set_size()
367 static inline unchar *msg_data(struct tipc_msg *m) in msg_data()
372 static inline struct tipc_msg *msg_inner_hdr(struct tipc_msg *m) in msg_inner_hdr()
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()
385 static inline void msg_set_type(struct tipc_msg *m, u32 n) in msg_set_type()
390 static inline int msg_in_group(struct tipc_msg *m) in msg_in_group()
397 static inline bool msg_is_grp_evt(struct tipc_msg *m) in msg_is_grp_evt()
402 static inline u32 msg_named(struct tipc_msg *m) in msg_named()
407 static inline u32 msg_mcast(struct tipc_msg *m) in msg_mcast()
415 static inline u32 msg_connected(struct tipc_msg *m) in msg_connected()
420 static inline u32 msg_direct(struct tipc_msg *m) in msg_direct()
425 static inline u32 msg_errcode(struct tipc_msg *m) in msg_errcode()
430 static inline void msg_set_errcode(struct tipc_msg *m, u32 err) in msg_set_errcode()
435 static inline void msg_set_bulk(struct tipc_msg *m) in msg_set_bulk()
440 static inline u32 msg_is_bulk(struct tipc_msg *m) in msg_is_bulk()
445 static inline void msg_set_last_bulk(struct tipc_msg *m) in msg_set_last_bulk()
450 static inline u32 msg_is_last_bulk(struct tipc_msg *m) in msg_is_last_bulk()
455 static inline void msg_set_non_legacy(struct tipc_msg *m) in msg_set_non_legacy()
460 static inline u32 msg_is_legacy(struct tipc_msg *m) in msg_is_legacy()
465 static inline u32 msg_reroute_cnt(struct tipc_msg *m) in msg_reroute_cnt()
470 static inline void msg_incr_reroute_cnt(struct tipc_msg *m) in msg_incr_reroute_cnt()
475 static inline u32 msg_lookup_scope(struct tipc_msg *m) in msg_lookup_scope()
480 static inline void msg_set_lookup_scope(struct tipc_msg *m, u32 n) in msg_set_lookup_scope()
485 static inline u16 msg_bcast_ack(struct tipc_msg *m) in msg_bcast_ack()
490 static inline void msg_set_bcast_ack(struct tipc_msg *m, u16 n) in msg_set_bcast_ack()
498 static inline bool msg_dest_session_valid(struct tipc_msg *m) 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()
508 static inline u16 msg_dest_session(struct tipc_msg *m) in msg_dest_session()
513 static inline void msg_set_dest_session(struct tipc_msg *m, u16 n) in msg_set_dest_session()
521 static inline u16 msg_ack(struct tipc_msg *m) in msg_ack()
526 static inline void msg_set_ack(struct tipc_msg *m, u16 n) in msg_set_ack()
531 static inline u16 msg_seqno(struct tipc_msg *m) in msg_seqno()
536 static inline void msg_set_seqno(struct tipc_msg *m, u16 n) in msg_set_seqno()
544 static inline u32 msg_importance(struct tipc_msg *m) in msg_importance()
555 static inline void msg_set_importance(struct tipc_msg *m, u32 i) in msg_set_importance()
567 static inline u32 msg_prevnode(struct tipc_msg *m) in msg_prevnode()
572 static inline void msg_set_prevnode(struct tipc_msg *m, u32 a) in msg_set_prevnode()
577 static inline u32 msg_origport(struct tipc_msg *m) in msg_origport()
584 static inline void msg_set_origport(struct tipc_msg *m, u32 p) in msg_set_origport()
589 static inline u16 msg_named_seqno(struct tipc_msg *m) in msg_named_seqno()
594 static inline void msg_set_named_seqno(struct tipc_msg *m, u16 n) in msg_set_named_seqno()
599 static inline u32 msg_destport(struct tipc_msg *m) in msg_destport()
604 static inline void msg_set_destport(struct tipc_msg *m, u32 p) in msg_set_destport()
609 static inline u32 msg_mc_netid(struct tipc_msg *m) in msg_mc_netid()
614 static inline void msg_set_mc_netid(struct tipc_msg *m, u32 p) in msg_set_mc_netid()
619 static inline int msg_short(struct tipc_msg *m) in msg_short()
624 static inline u32 msg_orignode(struct tipc_msg *m) in msg_orignode()
631 static inline void msg_set_orignode(struct tipc_msg *m, u32 a) in msg_set_orignode()
636 static inline u32 msg_destnode(struct tipc_msg *m) in msg_destnode()
641 static inline void msg_set_destnode(struct tipc_msg *m, u32 a) in msg_set_destnode()
646 static inline u32 msg_nametype(struct tipc_msg *m) in msg_nametype()
651 static inline void msg_set_nametype(struct tipc_msg *m, u32 n) in msg_set_nametype()
656 static inline u32 msg_nameinst(struct tipc_msg *m) in msg_nameinst()
661 static inline u32 msg_namelower(struct tipc_msg *m) in msg_namelower()
666 static inline void msg_set_namelower(struct tipc_msg *m, u32 n) in msg_set_namelower()
671 static inline void msg_set_nameinst(struct tipc_msg *m, u32 n) in msg_set_nameinst()
676 static inline u32 msg_nameupper(struct tipc_msg *m) in msg_nameupper()
681 static inline void msg_set_nameupper(struct tipc_msg *m, u32 n) in msg_set_nameupper()
747 static inline u32 msg_seq_gap(struct tipc_msg *m) in msg_seq_gap()
752 static inline void msg_set_seq_gap(struct tipc_msg *m, u32 n) in msg_set_seq_gap()
757 static inline u32 msg_node_sig(struct tipc_msg *m) in msg_node_sig()
762 static inline void msg_set_node_sig(struct tipc_msg *m, u32 n) in msg_set_node_sig()
767 static inline u32 msg_node_capabilities(struct tipc_msg *m) in msg_node_capabilities()
772 static inline void msg_set_node_capabilities(struct tipc_msg *m, u32 n) in msg_set_node_capabilities()
780 static inline u32 msg_dest_domain(struct tipc_msg *m) in msg_dest_domain()
785 static inline void msg_set_dest_domain(struct tipc_msg *m, u32 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()
795 static inline u32 msg_bcgap_to(struct tipc_msg *m) in msg_bcgap_to()
800 static inline void msg_set_bcgap_to(struct tipc_msg *m, u32 n) in msg_set_bcgap_to()
808 static inline u32 msg_last_bcast(struct tipc_msg *m) in msg_last_bcast()
813 static inline u32 msg_bc_snd_nxt(struct tipc_msg *m) in msg_bc_snd_nxt()
818 static inline void msg_set_last_bcast(struct tipc_msg *m, u32 n) in msg_set_last_bcast()
823 static inline u32 msg_nof_fragms(struct tipc_msg *m) in msg_nof_fragms()
828 static inline void msg_set_nof_fragms(struct tipc_msg *m, u32 n) in msg_set_nof_fragms()
833 static inline u32 msg_fragm_no(struct tipc_msg *m) in msg_fragm_no()
838 static inline void msg_set_fragm_no(struct tipc_msg *m, u32 n) in msg_set_fragm_no()
843 static inline u16 msg_next_sent(struct tipc_msg *m) in msg_next_sent()
848 static inline void msg_set_next_sent(struct tipc_msg *m, u16 n) in msg_set_next_sent()
853 static inline u32 msg_bc_netid(struct tipc_msg *m) in msg_bc_netid()
858 static inline void msg_set_bc_netid(struct tipc_msg *m, u32 id) in msg_set_bc_netid()
863 static inline u32 msg_link_selector(struct tipc_msg *m) in msg_link_selector()
873 static inline u16 msg_session(struct tipc_msg *m) in msg_session()
878 static inline void msg_set_session(struct tipc_msg *m, u16 n) in msg_set_session()
883 static inline u32 msg_probe(struct tipc_msg *m) in msg_probe()
888 static inline void msg_set_probe(struct tipc_msg *m, u32 val) in msg_set_probe()
893 static inline char msg_net_plane(struct tipc_msg *m) in msg_net_plane()
898 static inline void msg_set_net_plane(struct tipc_msg *m, char n) in msg_set_net_plane()
903 static inline u32 msg_linkprio(struct tipc_msg *m) in msg_linkprio()
908 static inline void msg_set_linkprio(struct tipc_msg *m, u32 n) in msg_set_linkprio()
913 static inline u32 msg_bearer_id(struct tipc_msg *m) in msg_bearer_id()
918 static inline void msg_set_bearer_id(struct tipc_msg *m, u32 n) in msg_set_bearer_id()
923 static inline u32 msg_redundant_link(struct tipc_msg *m) in msg_redundant_link()
928 static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r) in msg_set_redundant_link()
933 static inline u32 msg_peer_stopping(struct tipc_msg *m) in msg_peer_stopping()
938 static inline void msg_set_peer_stopping(struct tipc_msg *m, u32 s) in msg_set_peer_stopping()
943 static inline bool msg_bc_ack_invalid(struct tipc_msg *m) 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()
960 static inline char *msg_media_addr(struct tipc_msg *m) in msg_media_addr()
965 static inline u32 msg_bc_gap(struct tipc_msg *m) in msg_bc_gap()
970 static inline void msg_set_bc_gap(struct tipc_msg *m, u32 n) in msg_set_bc_gap()
978 static inline u16 msg_msgcnt(struct tipc_msg *m) in msg_msgcnt()
983 static inline void msg_set_msgcnt(struct tipc_msg *m, u16 n) in msg_set_msgcnt()
988 static inline u16 msg_syncpt(struct tipc_msg *m) in msg_syncpt()
993 static inline void msg_set_syncpt(struct tipc_msg *m, u16 n) in msg_set_syncpt()
998 static inline u32 msg_conn_ack(struct tipc_msg *m) in msg_conn_ack()
1003 static inline void msg_set_conn_ack(struct tipc_msg *m, u32 n) in msg_set_conn_ack()
1008 static inline u16 msg_adv_win(struct tipc_msg *m) in msg_adv_win()
1013 static inline void msg_set_adv_win(struct tipc_msg *m, u16 n) in msg_set_adv_win()
1018 static inline u32 msg_max_pkt(struct tipc_msg *m) in msg_max_pkt()
1023 static inline void msg_set_max_pkt(struct tipc_msg *m, u32 n) in msg_set_max_pkt()
1028 static inline u32 msg_link_tolerance(struct tipc_msg *m) in msg_link_tolerance()
1033 static inline void msg_set_link_tolerance(struct tipc_msg *m, u32 n) in msg_set_link_tolerance()
1038 static inline u16 msg_grp_bc_syncpt(struct tipc_msg *m) 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()
1048 static inline u16 msg_grp_bc_acked(struct tipc_msg *m) 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()
1058 static inline u16 msg_grp_remitted(struct tipc_msg *m) in msg_grp_remitted()
1063 static inline void msg_set_grp_remitted(struct tipc_msg *m, u16 n) in msg_set_grp_remitted()
1070 static inline u16 msg_grp_evt(struct tipc_msg *m) in msg_grp_evt()
1075 static inline void msg_set_grp_evt(struct tipc_msg *m, int 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()
1085 static inline void msg_set_grp_bc_ack_req(struct tipc_msg *m, bool 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()
1095 static inline void msg_set_grp_bc_seqno(struct tipc_msg *m, u32 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()
1109 static inline bool msg_peer_node_is_up(struct tipc_msg *m) in msg_peer_node_is_up()
1116 static inline bool msg_is_reset(struct tipc_msg *hdr) in msg_is_reset()
1123 static inline void msg_set_peer_net_hash(struct tipc_msg *m, u32 n) in msg_set_peer_net_hash()
1128 static inline u32 msg_peer_net_hash(struct tipc_msg *m) in msg_peer_net_hash()
1135 static inline u32 msg_sugg_node_addr(struct tipc_msg *m) 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()
1145 static inline void msg_set_node_id(struct tipc_msg *hdr, u8 *id) in msg_set_node_id()
1150 static inline u8 *msg_node_id(struct tipc_msg *hdr) in msg_node_id()
1160 void tipc_msg_init(u32 own_addr, struct tipc_msg *m, u32 user, u32 type,
1169 int tipc_msg_fragment(struct sk_buff *skb, const struct tipc_msg *hdr,
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,