Lines Matching refs:nodes
64 struct cmatest_node *nodes;
274 node = &test.nodes[test.conn_index++];
375 test.nodes = malloc(sizeof *test.nodes * connections);
376 if (!test.nodes) {
377 printf("cmatose: unable to allocate memory for test nodes\n");
380 memset(test.nodes, 0, sizeof *test.nodes * connections);
383 test.nodes[i].id = i;
386 &test.nodes[i].cma_id,
387 &test.nodes[i], hints.ai_port_space);
395 rdma_destroy_id(test.nodes[i].cma_id);
396 free(test.nodes);
405 destroy_node(&test.nodes[i]);
406 free(test.nodes);
415 if (!test.nodes[i].connected)
419 ret = ibv_poll_cq(test.nodes[i].cq[index], 8, wc);
485 ret = rdma_migrate_id(test.nodes[i].cma_id, channel);
533 ret = post_sends(&test.nodes[i]);
559 if (!test.nodes[i].connected)
562 test.nodes[i].connected = 0;
563 rdma_disconnect(test.nodes[i].cma_id);
589 ret = rdma_resolve_addr(test.nodes[i].cma_id, test.rai->ai_src_addr,
610 ret = post_sends(&test.nodes[i]);