• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/net/tipc/

Lines Matching defs:ref

64 static void port_handle_node_down(unsigned long ref);
67 static void port_timeout(unsigned long ref);
98 int tipc_multicast(u32 ref, struct tipc_name_seq const *seq, u32 domain,
105 struct port *oport = tipc_port_deref(ref);
227 u32 ref;
234 ref = tipc_ref_acquire(p_ptr, &p_ptr->publ.lock);
235 if (!ref) {
241 tipc_port_lock(ref);
242 p_ptr->publ.ref = ref;
247 msg_set_origport(msg, ref);
259 k_init_timer(&p_ptr->timer, (Handler)port_timeout, ref);
266 return ref;
269 int tipc_deleteport(u32 ref)
274 tipc_withdraw(ref, 0, NULL);
275 p_ptr = tipc_port_lock(ref);
279 tipc_ref_discard(ref);
298 dbg("Deleted port %u\n", ref);
304 * tipc_get_port() - return port associated with 'ref'
309 struct tipc_port *tipc_get_port(const u32 ref)
311 return (struct tipc_port *)tipc_ref_deref(ref);
315 * tipc_get_handle - return user handle associated to port 'ref'
318 void *tipc_get_handle(const u32 ref)
323 p_ptr = tipc_port_lock(ref);
336 int tipc_portunreliable(u32 ref, unsigned int *isunreliable)
340 p_ptr = tipc_port_lock(ref);
348 int tipc_set_portunreliable(u32 ref, unsigned int isunreliable)
352 p_ptr = tipc_port_lock(ref);
365 int tipc_portunreturnable(u32 ref, unsigned int *isunrejectable)
369 p_ptr = tipc_port_lock(ref);
377 int tipc_set_portunreturnable(u32 ref, unsigned int isunrejectable)
381 p_ptr = tipc_port_lock(ref);
503 static void port_timeout(unsigned long ref)
505 struct port *p_ptr = tipc_port_lock(ref);
522 p_ptr->publ.ref,
538 static void port_handle_node_down(unsigned long ref)
540 struct port *p_ptr = tipc_port_lock(ref);
559 return port_build_proto_msg(p_ptr->publ.ref,
581 p_ptr->publ.ref,
673 tipc_node(tipc_own_addr), p_ptr->publ.ref);
675 tipc_printf(buf, "%-10u:", p_ptr->publ.ref);
787 orig.ref = msg_origport(msg);
951 static void port_wakeup_sh(unsigned long ref)
958 p_ptr = tipc_port_lock(ref);
968 cb(uh, ref);
974 tipc_k_signal((Handler)port_wakeup_sh, p_ptr->ref);
977 void tipc_acknowledge(u32 ref, u32 ack)
982 p_ptr = tipc_port_lock(ref);
989 ref,
1020 u32 ref;
1027 ref = tipc_createport_raw(NULL, port_dispatcher, port_wakeup, importance);
1028 p_ptr = tipc_port_lock(ref);
1037 up_ptr->ref = p_ptr->publ.ref;
1047 *portref = p_ptr->publ.ref;
1048 dbg(" tipc_createport: %x with ref %u\n", p_ptr, p_ptr->publ.ref);
1053 int tipc_ownidentity(u32 ref, struct tipc_portid *id)
1055 id->ref = ref;
1060 int tipc_portimportance(u32 ref, unsigned int *importance)
1064 p_ptr = tipc_port_lock(ref);
1072 int tipc_set_portimportance(u32 ref, unsigned int imp)
1079 p_ptr = tipc_port_lock(ref);
1088 int tipc_publish(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
1095 p_ptr = tipc_port_lock(ref);
1101 ref, p_ptr, p_ptr->publ.connected, scope, seq->lower, seq->upper);
1108 key = ref + p_ptr->pub_count + 1;
1109 if (key == ref) {
1114 scope, p_ptr->publ.ref, key);
1126 int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
1133 p_ptr = tipc_port_lock(ref);
1140 publ->ref, publ->key);
1155 publ->ref, publ->key);
1166 int tipc_connect2port(u32 ref, struct tipc_portid const *peer)
1172 p_ptr = tipc_port_lock(ref);
1177 if (!peer->ref)
1182 msg_set_destport(msg, peer->ref);
1184 msg_set_origport(msg, p_ptr->publ.ref);
1198 (void *)(unsigned long)ref,
1203 p_ptr->max_pkt = tipc_link_get_max_pkt(peer->node, ref);
1212 int tipc_disconnect(u32 ref)
1217 p_ptr = tipc_port_lock(ref);
1233 int tipc_shutdown(u32 ref)
1238 p_ptr = tipc_port_lock(ref);
1248 ref,
1258 return tipc_disconnect(ref);
1261 int tipc_isconnected(u32 ref, int *isconnected)
1265 p_ptr = tipc_port_lock(ref);
1273 int tipc_peer(u32 ref, struct tipc_portid *peer)
1278 p_ptr = tipc_port_lock(ref);
1282 peer->ref = port_peerport(p_ptr);
1291 int tipc_ref_valid(u32 ref)
1294 return !!tipc_ref_deref(ref);
1320 int tipc_send(u32 ref, unsigned int num_sect, struct iovec const *msg_sect)
1326 p_ptr = tipc_port_deref(ref);
1358 int tipc_send_buf(u32 ref, struct sk_buff *buf, unsigned int dsz)
1367 p_ptr = tipc_port_deref(ref);
1407 int tipc_forward2name(u32 ref,
1421 p_ptr = tipc_port_deref(ref);
1428 msg_set_origport(msg, orig->ref);
1461 int tipc_send2name(u32 ref,
1469 orig.ref = ref;
1471 return tipc_forward2name(ref, name, domain, num_sect, msg_sect, &orig,
1479 int tipc_forward_buf2name(u32 ref,
1493 p_ptr = (struct port *)tipc_ref_deref(ref);
1502 msg_set_origport(msg, orig->ref);
1535 int tipc_send_buf2name(u32 ref,
1543 orig.ref = ref;
1545 return tipc_forward_buf2name(ref, dest, domain, buf, dsz, &orig,
1553 int tipc_forward2port(u32 ref,
1564 p_ptr = tipc_port_deref(ref);
1571 msg_set_origport(msg, orig->ref);
1573 msg_set_destport(msg, dest->ref);
1594 int tipc_send2port(u32 ref,
1601 orig.ref = ref;
1603 return tipc_forward2port(ref, dest, num_sect, msg_sect, &orig,
1610 int tipc_forward_buf2port(u32 ref,
1621 p_ptr = (struct port *)tipc_ref_deref(ref);
1628 msg_set_origport(msg, orig->ref);
1630 msg_set_destport(msg, dest->ref);
1656 int tipc_send_buf2port(u32 ref,
1663 orig.ref = ref;
1665 return tipc_forward_buf2port(ref, dest, buf, dsz, &orig,