Searched refs:c_ptr (Results 1 – 6 of 6) sorted by relevance
/net/tipc/ |
D | cluster.c | 47 static void tipc_cltr_multicast(struct cluster *c_ptr, struct sk_buff *buf, 58 struct cluster *c_ptr; in tipc_cltr_create() local 61 c_ptr = kzalloc(sizeof(*c_ptr), GFP_ATOMIC); in tipc_cltr_create() 62 if (c_ptr == NULL) { in tipc_cltr_create() 67 c_ptr->addr = tipc_addr(tipc_zone(addr), tipc_cluster(addr), 0); in tipc_cltr_create() 73 c_ptr->nodes = kcalloc(max_nodes + 1, sizeof(void*), GFP_ATOMIC); in tipc_cltr_create() 74 if (c_ptr->nodes == NULL) { in tipc_cltr_create() 76 kfree(c_ptr); in tipc_cltr_create() 81 tipc_local_nodes = c_ptr->nodes; in tipc_cltr_create() 82 c_ptr->highest_slave = LOWEST_SLAVE - 1; in tipc_cltr_create() [all …]
|
D | zone.c | 79 void tipc_zone_attach_cluster(struct _zone *z_ptr, struct cluster *c_ptr) in tipc_zone_attach_cluster() argument 81 u32 c_num = tipc_cluster(c_ptr->addr); in tipc_zone_attach_cluster() 83 assert(c_ptr->addr); in tipc_zone_attach_cluster() 86 z_ptr->clusters[c_num] = c_ptr; in tipc_zone_attach_cluster() 116 struct cluster *c_ptr; in tipc_zone_select_remote_node() local 122 c_ptr = z_ptr->clusters[tipc_cluster(addr)]; in tipc_zone_select_remote_node() 123 if (!c_ptr) in tipc_zone_select_remote_node() 125 n_ptr = tipc_cltr_select_node(c_ptr, ref); in tipc_zone_select_remote_node() 131 c_ptr = z_ptr->clusters[c_num]; in tipc_zone_select_remote_node() 132 if (!c_ptr) in tipc_zone_select_remote_node() [all …]
|
D | cluster.h | 67 void tipc_cltr_remove_as_router(struct cluster *c_ptr, u32 router); 68 void tipc_cltr_send_ext_routes(struct cluster *c_ptr, u32 dest); 69 struct tipc_node *tipc_cltr_select_node(struct cluster *c_ptr, u32 selector); 70 u32 tipc_cltr_select_router(struct cluster *c_ptr, u32 ref); 73 void tipc_cltr_delete(struct cluster *c_ptr); 74 void tipc_cltr_attach_node(struct cluster *c_ptr, struct tipc_node *n_ptr); 75 void tipc_cltr_send_slave_routes(struct cluster *c_ptr, u32 dest); 78 u32 tipc_cltr_next_node(struct cluster *c_ptr, u32 addr); 79 void tipc_cltr_bcast_new_route(struct cluster *c_ptr, u32 dest, u32 lo, u32 hi); 80 void tipc_cltr_send_local_routes(struct cluster *c_ptr, u32 dest); [all …]
|
D | node.c | 71 struct cluster *c_ptr; in tipc_node_create() local 93 c_ptr = tipc_cltr_find(addr); in tipc_node_create() 94 if (!c_ptr) { in tipc_node_create() 95 c_ptr = tipc_cltr_create(addr); in tipc_node_create() 97 if (!c_ptr) { in tipc_node_create() 106 n_ptr->owner = c_ptr; in tipc_node_create() 107 tipc_cltr_attach_node(c_ptr, n_ptr); in tipc_node_create() 343 struct cluster *c_ptr; in node_established_contact() local 357 c_ptr = tipc_cltr_find(tipc_own_addr); in node_established_contact() 358 if (!c_ptr) in node_established_contact() [all …]
|
D | node.h | 121 struct cluster *c_ptr = tipc_cltr_find(addr); in tipc_node_find() local 123 if (c_ptr) in tipc_node_find() 124 return c_ptr->nodes[tipc_node(addr)]; in tipc_node_find()
|
D | zone.h | 63 void tipc_zone_attach_cluster(struct _zone *z_ptr, struct cluster *c_ptr);
|