Lines Matching refs:server
55 list_for_each_entry(pos, &aliastree.serverlist, server) { in _find_server()
65 static struct alias_lcu *_find_lcu(struct alias_server *server, in _find_lcu() argument
69 list_for_each_entry(pos, &server->lculist, lcu) { in _find_lcu()
106 struct alias_server *server; in _allocate_server() local
108 server = kzalloc(sizeof(*server), GFP_KERNEL); in _allocate_server()
109 if (!server) in _allocate_server()
111 memcpy(server->uid.vendor, uid->vendor, sizeof(uid->vendor)); in _allocate_server()
112 memcpy(server->uid.serial, uid->serial, sizeof(uid->serial)); in _allocate_server()
113 INIT_LIST_HEAD(&server->server); in _allocate_server()
114 INIT_LIST_HEAD(&server->lculist); in _allocate_server()
115 return server; in _allocate_server()
118 static void _free_server(struct alias_server *server) in _free_server() argument
120 kfree(server); in _free_server()
190 struct alias_server *server, *newserver; in dasd_alias_make_device_known_to_lcu() local
198 server = _find_server(&uid); in dasd_alias_make_device_known_to_lcu()
199 if (!server) { in dasd_alias_make_device_known_to_lcu()
205 server = _find_server(&uid); in dasd_alias_make_device_known_to_lcu()
206 if (!server) { in dasd_alias_make_device_known_to_lcu()
207 list_add(&newserver->server, &aliastree.serverlist); in dasd_alias_make_device_known_to_lcu()
208 server = newserver; in dasd_alias_make_device_known_to_lcu()
215 lcu = _find_lcu(server, &uid); in dasd_alias_make_device_known_to_lcu()
222 lcu = _find_lcu(server, &uid); in dasd_alias_make_device_known_to_lcu()
224 list_add(&newlcu->lcu, &server->lculist); in dasd_alias_make_device_known_to_lcu()
250 struct alias_server *server; in dasd_alias_disconnect_device_from_lcu() local
300 server = _find_server(&uid); in dasd_alias_disconnect_device_from_lcu()
301 if (server && list_empty(&server->lculist)) { in dasd_alias_disconnect_device_from_lcu()
302 list_del(&server->server); in dasd_alias_disconnect_device_from_lcu()
303 _free_server(server); in dasd_alias_disconnect_device_from_lcu()