diff options
Diffstat (limited to 'net/tipc/bcast.h')
-rw-r--r-- | net/tipc/bcast.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/net/tipc/bcast.h b/net/tipc/bcast.h index 5430e524b4f9..0e3be2ab3307 100644 --- a/net/tipc/bcast.h +++ b/net/tipc/bcast.h | |||
@@ -70,14 +70,14 @@ struct port_list { | |||
70 | 70 | ||
71 | struct node; | 71 | struct node; |
72 | 72 | ||
73 | extern char bc_link_name[]; | 73 | extern char tipc_bclink_name[]; |
74 | 74 | ||
75 | 75 | ||
76 | /** | 76 | /** |
77 | * nmap_get - determine if node exists in a node map | 77 | * nmap_get - determine if node exists in a node map |
78 | */ | 78 | */ |
79 | 79 | ||
80 | static inline int nmap_get(struct node_map *nm_ptr, u32 node) | 80 | static inline int tipc_nmap_get(struct node_map *nm_ptr, u32 node) |
81 | { | 81 | { |
82 | int n = tipc_node(node); | 82 | int n = tipc_node(node); |
83 | int w = n / WSIZE; | 83 | int w = n / WSIZE; |
@@ -90,7 +90,7 @@ static inline int nmap_get(struct node_map *nm_ptr, u32 node) | |||
90 | * nmap_add - add a node to a node map | 90 | * nmap_add - add a node to a node map |
91 | */ | 91 | */ |
92 | 92 | ||
93 | static inline void nmap_add(struct node_map *nm_ptr, u32 node) | 93 | static inline void tipc_nmap_add(struct node_map *nm_ptr, u32 node) |
94 | { | 94 | { |
95 | int n = tipc_node(node); | 95 | int n = tipc_node(node); |
96 | int w = n / WSIZE; | 96 | int w = n / WSIZE; |
@@ -106,7 +106,7 @@ static inline void nmap_add(struct node_map *nm_ptr, u32 node) | |||
106 | * nmap_remove - remove a node from a node map | 106 | * nmap_remove - remove a node from a node map |
107 | */ | 107 | */ |
108 | 108 | ||
109 | static inline void nmap_remove(struct node_map *nm_ptr, u32 node) | 109 | static inline void tipc_nmap_remove(struct node_map *nm_ptr, u32 node) |
110 | { | 110 | { |
111 | int n = tipc_node(node); | 111 | int n = tipc_node(node); |
112 | int w = n / WSIZE; | 112 | int w = n / WSIZE; |
@@ -122,7 +122,7 @@ static inline void nmap_remove(struct node_map *nm_ptr, u32 node) | |||
122 | * nmap_equal - test for equality of node maps | 122 | * nmap_equal - test for equality of node maps |
123 | */ | 123 | */ |
124 | 124 | ||
125 | static inline int nmap_equal(struct node_map *nm_a, struct node_map *nm_b) | 125 | static inline int tipc_nmap_equal(struct node_map *nm_a, struct node_map *nm_b) |
126 | { | 126 | { |
127 | return !memcmp(nm_a, nm_b, sizeof(*nm_a)); | 127 | return !memcmp(nm_a, nm_b, sizeof(*nm_a)); |
128 | } | 128 | } |
@@ -134,8 +134,8 @@ static inline int nmap_equal(struct node_map *nm_a, struct node_map *nm_b) | |||
134 | * @nm_diff: output node map A-B (i.e. nodes of A that are not in B) | 134 | * @nm_diff: output node map A-B (i.e. nodes of A that are not in B) |
135 | */ | 135 | */ |
136 | 136 | ||
137 | static inline void nmap_diff(struct node_map *nm_a, struct node_map *nm_b, | 137 | static inline void tipc_nmap_diff(struct node_map *nm_a, struct node_map *nm_b, |
138 | struct node_map *nm_diff) | 138 | struct node_map *nm_diff) |
139 | { | 139 | { |
140 | int stop = sizeof(nm_a->map) / sizeof(u32); | 140 | int stop = sizeof(nm_a->map) / sizeof(u32); |
141 | int w; | 141 | int w; |
@@ -159,7 +159,7 @@ static inline void nmap_diff(struct node_map *nm_a, struct node_map *nm_b, | |||
159 | * port_list_add - add a port to a port list, ensuring no duplicates | 159 | * port_list_add - add a port to a port list, ensuring no duplicates |
160 | */ | 160 | */ |
161 | 161 | ||
162 | static inline void port_list_add(struct port_list *pl_ptr, u32 port) | 162 | static inline void tipc_port_list_add(struct port_list *pl_ptr, u32 port) |
163 | { | 163 | { |
164 | struct port_list *item = pl_ptr; | 164 | struct port_list *item = pl_ptr; |
165 | int i; | 165 | int i; |
@@ -194,7 +194,7 @@ static inline void port_list_add(struct port_list *pl_ptr, u32 port) | |||
194 | * Note: First item is on stack, so it doesn't need to be released | 194 | * Note: First item is on stack, so it doesn't need to be released |
195 | */ | 195 | */ |
196 | 196 | ||
197 | static inline void port_list_free(struct port_list *pl_ptr) | 197 | static inline void tipc_port_list_free(struct port_list *pl_ptr) |
198 | { | 198 | { |
199 | struct port_list *item; | 199 | struct port_list *item; |
200 | struct port_list *next; | 200 | struct port_list *next; |
@@ -206,18 +206,18 @@ static inline void port_list_free(struct port_list *pl_ptr) | |||
206 | } | 206 | } |
207 | 207 | ||
208 | 208 | ||
209 | int bclink_init(void); | 209 | int tipc_bclink_init(void); |
210 | void bclink_stop(void); | 210 | void tipc_bclink_stop(void); |
211 | void bclink_acknowledge(struct node *n_ptr, u32 acked); | 211 | void tipc_bclink_acknowledge(struct node *n_ptr, u32 acked); |
212 | int bclink_send_msg(struct sk_buff *buf); | 212 | int tipc_bclink_send_msg(struct sk_buff *buf); |
213 | void bclink_recv_pkt(struct sk_buff *buf); | 213 | void tipc_bclink_recv_pkt(struct sk_buff *buf); |
214 | u32 bclink_get_last_sent(void); | 214 | u32 tipc_bclink_get_last_sent(void); |
215 | u32 bclink_acks_missing(struct node *n_ptr); | 215 | u32 tipc_bclink_acks_missing(struct node *n_ptr); |
216 | void bclink_check_gap(struct node *n_ptr, u32 seqno); | 216 | void tipc_bclink_check_gap(struct node *n_ptr, u32 seqno); |
217 | int bclink_stats(char *stats_buf, const u32 buf_size); | 217 | int tipc_bclink_stats(char *stats_buf, const u32 buf_size); |
218 | int bclink_reset_stats(void); | 218 | int tipc_bclink_reset_stats(void); |
219 | int bclink_set_queue_limits(u32 limit); | 219 | int tipc_bclink_set_queue_limits(u32 limit); |
220 | void bcbearer_sort(void); | 220 | void tipc_bcbearer_sort(void); |
221 | void bcbearer_push(void); | 221 | void tipc_bcbearer_push(void); |
222 | 222 | ||
223 | #endif | 223 | #endif |