Lines Matching full:uuid
18 #include <linux/uuid.h>
44 [XDOMAIN_STATE_UUID] = "UUID",
79 /* UUID for XDomain discovery protocol: b638d70e-42ff-40bb-97c2-90e2c0b2ff07 */
111 if (!uuid_equal(&res_hdr->uuid, &req_hdr->uuid)) in tb_xdomain_match()
240 memcpy(&hdr->uuid, &tb_xdp_uuid, sizeof(tb_xdp_uuid)); in tb_xdp_fill_header()
264 uuid_t *uuid, u64 *remote_route) in tb_xdp_uuid_request() argument
286 uuid_copy(uuid, &res.src_uuid); in tb_xdp_uuid_request()
293 const uuid_t *uuid) in tb_xdp_uuid_response() argument
301 uuid_copy(&res.src_uuid, uuid); in tb_xdp_uuid_response()
469 int retry, const uuid_t *uuid) in tb_xdp_properties_changed_request() argument
478 uuid_copy(&req.src_uuid, uuid); in tb_xdp_properties_changed_request()
621 if (!handler->uuid || !handler->callback) in tb_register_protocol_handler()
623 if (uuid_equal(handler->uuid, &tb_xdp_uuid)) in tb_register_protocol_handler()
737 const uuid_t *uuid; in tb_xdp_handle_request() local
748 uuid = tb->root_switch->uuid; in tb_xdp_handle_request()
750 uuid = NULL; in tb_xdp_handle_request()
753 if (!uuid) { in tb_xdp_handle_request()
789 tb_dbg(tb, "%llx: received XDomain UUID request\n", route); in tb_xdp_handle_request()
790 ret = tb_xdp_uuid_response(ctl, route, sequence, uuid); in tb_xdp_handle_request()
794 * received UUID request from the remote host. in tb_xdp_handle_request()
1202 uuid_t uuid; in tb_xdomain_get_uuid() local
1206 dev_dbg(&xd->dev, "requesting remote UUID\n"); in tb_xdomain_get_uuid()
1208 ret = tb_xdp_uuid_request(tb->ctl, xd->route, xd->state_retries, &uuid, in tb_xdomain_get_uuid()
1212 dev_dbg(&xd->dev, "failed to request UUID, retrying\n"); in tb_xdomain_get_uuid()
1215 dev_dbg(&xd->dev, "failed to read remote UUID\n"); in tb_xdomain_get_uuid()
1219 dev_dbg(&xd->dev, "got remote UUID %pUb\n", &uuid); in tb_xdomain_get_uuid()
1221 if (uuid_equal(&uuid, xd->local_uuid)) { in tb_xdomain_get_uuid()
1232 * If the UUID is different, there is another domain connected in tb_xdomain_get_uuid()
1236 if (xd->remote_uuid && !uuid_equal(&uuid, xd->remote_uuid)) { in tb_xdomain_get_uuid()
1237 dev_dbg(&xd->dev, "remote UUID is different, unplugging\n"); in tb_xdomain_get_uuid()
1242 /* First time fill in the missing UUID */ in tb_xdomain_get_uuid()
1244 xd->remote_uuid = kmemdup(&uuid, sizeof(uuid_t), GFP_KERNEL); in tb_xdomain_get_uuid()
1528 dev_dbg(&xd->dev, "we have higher UUID, other side bonds the lanes\n"); in tb_xdomain_queue_bonding()
1531 dev_dbg(&xd->dev, "we have lower UUID, bonding lanes\n"); in tb_xdomain_queue_bonding()
1957 * @local_uuid: Our local domain UUID
1958 * @remote_uuid: UUID of the other domain (optional)
2014 dev_dbg(&xd->dev, "local UUID %pUb\n", local_uuid); in tb_xdomain_alloc()
2016 dev_dbg(&xd->dev, "remote UUID %pUb\n", remote_uuid); in tb_xdomain_alloc()
2300 const uuid_t *uuid; member
2317 if (lookup->uuid) { in switch_find_xdomain()
2319 uuid_equal(xd->remote_uuid, lookup->uuid)) in switch_find_xdomain()
2339 * tb_xdomain_find_by_uuid() - Find an XDomain by UUID
2341 * @uuid: UUID to look for
2355 struct tb_xdomain *tb_xdomain_find_by_uuid(struct tb *tb, const uuid_t *uuid) in tb_xdomain_find_by_uuid() argument
2361 lookup.uuid = uuid; in tb_xdomain_find_by_uuid()
2447 * other protocols (based on their UUID) we call registered in tb_xdomain_handle_request()
2450 if (uuid_equal(&hdr->uuid, &tb_xdp_uuid)) { in tb_xdomain_handle_request()
2458 if (!uuid_equal(&hdr->uuid, handler->uuid)) in tb_xdomain_handle_request()