Lines Matching refs:hi

363 					      struct host_info *hi,  in nodemgr_create_node()  argument
366 struct hpsb_host *host = hi->host; in nodemgr_create_node()
1018 struct host_info *hi, nodeid_t nodeid, in nodemgr_update_node() argument
1124 static void nodemgr_node_probe_one(struct host_info *hi, in nodemgr_node_probe_one() argument
1127 struct hpsb_host *host = hi->host; in nodemgr_node_probe_one()
1155 nodemgr_create_node(guid, buffer[2], hi, nodeid, generation); in nodemgr_node_probe_one()
1157 nodemgr_update_node(ne, buffer[2], hi, nodeid, generation); in nodemgr_node_probe_one()
1187 static void nodemgr_node_probe(struct host_info *hi, int generation) in nodemgr_node_probe() argument
1190 struct hpsb_host *host = hi->host; in nodemgr_node_probe()
1203 nodemgr_node_probe_one(hi, nodeid++, generation); in nodemgr_node_probe()
1293 struct host_info *hi = (struct host_info *)__hi; in nodemgr_host_thread() local
1294 struct hpsb_host *host = hi->host; in nodemgr_host_thread()
1300 strcpy(current->comm, hi->daemon_name); in nodemgr_host_thread()
1304 while (!down_interruptible(&hi->reset_sem) && in nodemgr_host_thread()
1327 while (!down_trylock(&hi->reset_sem)) in nodemgr_host_thread()
1339 nodemgr_node_probe(hi, generation); in nodemgr_host_thread()
1348 complete_and_exit(&hi->exited, 0); in nodemgr_host_thread()
1428 struct host_info *hi; in nodemgr_add_host() local
1430 hi = hpsb_create_hostinfo(&nodemgr_highlevel, host, sizeof(*hi)); in nodemgr_add_host()
1432 if (!hi) { in nodemgr_add_host()
1437 hi->host = host; in nodemgr_add_host()
1438 init_completion(&hi->exited); in nodemgr_add_host()
1439 sema_init(&hi->reset_sem, 0); in nodemgr_add_host()
1441 sprintf(hi->daemon_name, "knodemgrd_%d", host->id); in nodemgr_add_host()
1443 hi->pid = kernel_thread(nodemgr_host_thread, hi, in nodemgr_add_host()
1446 if (hi->pid < 0) { in nodemgr_add_host()
1448 hi->daemon_name, host->driver->name); in nodemgr_add_host()
1458 struct host_info *hi = hpsb_get_hostinfo(&nodemgr_highlevel, host); in nodemgr_host_reset() local
1460 if (hi != NULL) { in nodemgr_host_reset()
1461 HPSB_VERBOSE("NodeMgr: Processing host reset for %s", hi->daemon_name); in nodemgr_host_reset()
1462 up(&hi->reset_sem); in nodemgr_host_reset()
1473 struct host_info *hi = hpsb_get_hostinfo(&nodemgr_highlevel, host); in nodemgr_remove_host() local
1475 if (hi) { in nodemgr_remove_host()
1476 if (hi->pid >= 0) { in nodemgr_remove_host()
1477 kill_proc(hi->pid, SIGTERM, 1); in nodemgr_remove_host()
1478 wait_for_completion(&hi->exited); in nodemgr_remove_host()