Lines Matching refs:uid
53 static struct alias_server *_find_server(struct dasd_uid *uid) in _find_server() argument
57 if (!strncmp(pos->uid.vendor, uid->vendor, in _find_server()
58 sizeof(uid->vendor)) in _find_server()
59 && !strncmp(pos->uid.serial, uid->serial, in _find_server()
60 sizeof(uid->serial))) in _find_server()
67 struct dasd_uid *uid) in _find_lcu() argument
71 if (pos->uid.ssid == uid->ssid) in _find_lcu()
78 struct dasd_uid *uid) in _find_group() argument
93 if (uid->type == UA_BASE_DEVICE) in _find_group()
94 search_unit_addr = uid->real_unit_addr; in _find_group()
96 search_unit_addr = uid->base_unit_addr; in _find_group()
98 if (pos->uid.base_unit_addr == search_unit_addr && in _find_group()
99 !strncmp(pos->uid.vduit, uid->vduit, sizeof(uid->vduit))) in _find_group()
105 static struct alias_server *_allocate_server(struct dasd_uid *uid) in _allocate_server() argument
112 memcpy(server->uid.vendor, uid->vendor, sizeof(uid->vendor)); in _allocate_server()
113 memcpy(server->uid.serial, uid->serial, sizeof(uid->serial)); in _allocate_server()
124 static struct alias_lcu *_allocate_lcu(struct dasd_uid *uid) in _allocate_lcu() argument
145 memcpy(lcu->uid.vendor, uid->vendor, sizeof(uid->vendor)); in _allocate_lcu()
146 memcpy(lcu->uid.serial, uid->serial, sizeof(uid->serial)); in _allocate_lcu()
147 lcu->uid.ssid = uid->ssid; in _allocate_lcu()
193 struct dasd_uid uid; in dasd_alias_make_device_known_to_lcu() local
195 device->discipline->get_uid(device, &uid); in dasd_alias_make_device_known_to_lcu()
197 server = _find_server(&uid); in dasd_alias_make_device_known_to_lcu()
200 newserver = _allocate_server(&uid); in dasd_alias_make_device_known_to_lcu()
204 server = _find_server(&uid); in dasd_alias_make_device_known_to_lcu()
214 lcu = _find_lcu(server, &uid); in dasd_alias_make_device_known_to_lcu()
217 newlcu = _allocate_lcu(&uid); in dasd_alias_make_device_known_to_lcu()
221 lcu = _find_lcu(server, &uid); in dasd_alias_make_device_known_to_lcu()
251 struct dasd_uid uid; in dasd_alias_disconnect_device_from_lcu() local
257 device->discipline->get_uid(device, &uid); in dasd_alias_disconnect_device_from_lcu()
298 server = _find_server(&uid); in dasd_alias_disconnect_device_from_lcu()
319 struct dasd_uid uid; in _add_device_to_lcu() local
322 private->uid.type = lcu->uac->unit[private->uid.real_unit_addr].ua_type; in _add_device_to_lcu()
323 private->uid.base_unit_addr = in _add_device_to_lcu()
324 lcu->uac->unit[private->uid.real_unit_addr].base_ua; in _add_device_to_lcu()
325 uid = private->uid; in _add_device_to_lcu()
332 group = _find_group(lcu, &uid); in _add_device_to_lcu()
337 memcpy(group->uid.vendor, uid.vendor, sizeof(uid.vendor)); in _add_device_to_lcu()
338 memcpy(group->uid.serial, uid.serial, sizeof(uid.serial)); in _add_device_to_lcu()
339 group->uid.ssid = uid.ssid; in _add_device_to_lcu()
340 if (uid.type == UA_BASE_DEVICE) in _add_device_to_lcu()
341 group->uid.base_unit_addr = uid.real_unit_addr; in _add_device_to_lcu()
343 group->uid.base_unit_addr = uid.base_unit_addr; in _add_device_to_lcu()
344 memcpy(group->uid.vduit, uid.vduit, sizeof(uid.vduit)); in _add_device_to_lcu()
350 if (uid.type == UA_BASE_DEVICE) in _add_device_to_lcu()
622 __u8 uaddr = private->uid.real_unit_addr; in dasd_alias_add_device()
633 if (private->uid.type != lcu->uac->unit[uaddr].ua_type) { in dasd_alias_add_device()
770 if (private->uid.type != UA_BASE_DEVICE) in _restart_all_base_devices_on_lcu()
777 if (private->uid.type != UA_BASE_DEVICE) in _restart_all_base_devices_on_lcu()
813 if (private->uid.type == UA_BASE_DEVICE) in flush_all_alias_devices_on_lcu()