• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/tipc/

Lines Matching refs:publ

120 	struct publication *publ = kzalloc(sizeof(*publ), GFP_ATOMIC);
121 if (publ == NULL) {
126 publ->type = type;
127 publ->lower = lower;
128 publ->upper = upper;
129 publ->scope = scope;
130 publ->node = node;
131 publ->ref = port_ref;
132 publ->key = key;
133 INIT_LIST_HEAD(&publ->local_list);
134 INIT_LIST_HEAD(&publ->pport_list);
135 INIT_LIST_HEAD(&publ->subscr.nodesub_list);
136 return publ;
244 struct publication *publ;
314 publ = publ_create(type, lower, upper, scope, node, port, key);
315 if (!publ)
317 dbg("inserting publ %p, node=0x%x publ->node=0x%x, subscr->node=%p\n",
318 publ, node, publ->node, publ->subscr.node);
321 sseq->zone_list = publ->zone_list_next = publ;
323 publ->zone_list_next = sseq->zone_list->zone_list_next;
324 sseq->zone_list->zone_list_next = publ;
329 sseq->cluster_list = publ->cluster_list_next = publ;
331 publ->cluster_list_next =
333 sseq->cluster_list->cluster_list_next = publ;
339 sseq->node_list = publ->node_list_next = publ;
341 publ->node_list_next = sseq->node_list->node_list_next;
342 sseq->node_list->node_list_next = publ;
352 publ->lower,
353 publ->upper,
355 publ->ref,
356 publ->node,
359 return publ;
377 struct publication *publ;
394 publ = sseq->zone_list->zone_list_next;
395 while ((publ->key != key) || (publ->ref != ref) ||
396 (publ->node && (publ->node != node))) {
397 prev = publ;
398 publ = publ->zone_list_next;
406 if (publ != sseq->zone_list)
407 prev->zone_list_next = publ->zone_list_next;
408 else if (publ->zone_list_next != publ) {
409 prev->zone_list_next = publ->zone_list_next;
410 sseq->zone_list = publ->zone_list_next;
420 while (curr != publ) {
429 publ->type, publ->lower, publ->node,
430 publ->ref, publ->key);
434 if (publ != sseq->cluster_list)
435 prev->cluster_list_next = publ->cluster_list_next;
436 else if (publ->cluster_list_next != publ) {
437 prev->cluster_list_next = publ->cluster_list_next;
438 sseq->cluster_list = publ->cluster_list_next;
450 while (curr != publ) {
459 publ->type, publ->lower, publ->node,
460 publ->ref, publ->key);
464 if (publ != sseq->node_list)
465 prev->node_list_next = publ->node_list_next;
466 else if (publ->node_list_next != publ) {
467 prev->node_list_next = publ->node_list_next;
468 sseq->node_list = publ->node_list_next;
487 publ->lower,
488 publ->upper,
490 publ->ref,
491 publ->node,
495 return publ;
582 struct publication *publ;
589 publ = tipc_nameseq_remove_publ(seq, lower, node, ref, key);
596 return publ;
610 struct publication *publ = NULL;
628 publ = sseq->node_list;
629 if (publ) {
630 sseq->node_list = publ->node_list_next;
632 ref = publ->ref;
633 *destnode = publ->node;
638 publ = sseq->cluster_list;
639 if (publ) {
640 sseq->cluster_list = publ->cluster_list_next;
643 publ = sseq->zone_list;
644 if (publ) {
645 sseq->zone_list = publ->zone_list_next;
652 publ = sseq->node_list;
653 if (publ) {
654 sseq->node_list = publ->node_list_next;
658 publ = sseq->cluster_list;
659 if (publ) {
660 sseq->cluster_list = publ->cluster_list_next;
664 publ = sseq->zone_list;
665 if (publ) {
666 sseq->zone_list = publ->zone_list_next;
708 struct publication *publ;
712 publ = sseq->cluster_list;
713 if (publ && (publ->scope <= limit))
715 if (publ->node == tipc_own_addr)
716 tipc_port_list_add(dports, publ->ref);
719 publ = publ->cluster_list_next;
720 } while (publ != sseq->cluster_list);
751 struct publication *publ;
766 publ = tipc_nametbl_insert_publ(type, lower, upper, scope,
768 if (publ && (scope != TIPC_NODE_SCOPE)) {
769 tipc_named_publish(publ);
772 return publ;
781 struct publication *publ;
785 publ = tipc_nametbl_remove_publ(type, lower, tipc_own_addr, ref, key);
786 if (likely(publ)) {
788 if (publ->scope != TIPC_NODE_SCOPE)
789 tipc_named_withdraw(publ);
791 list_del_init(&publ->pport_list);
792 kfree(publ);
862 struct publication *publ = sseq->zone_list;
866 if (depth == 2 || !publ) {
873 tipc_zone(publ->node), tipc_cluster(publ->node),
874 tipc_node(publ->node), publ->ref);
877 if (publ->node != tipc_own_addr)
879 else if (publ->scope == TIPC_NODE_SCOPE)
881 else if (publ->scope == TIPC_CLUSTER_SCOPE)
885 tipc_printf(buf, "%-10u %s", publ->key, scopeStr);
888 publ = publ->zone_list_next;
889 if (publ == sseq->zone_list)