Lines Matching refs:tb
32 struct tb *tb; member
142 return __tb_xdomain_response(xd->tb->ctl, response, size, type); in tb_xdomain_response()
196 return __tb_xdomain_request(xd->tb->ctl, request, request_size, in tb_xdomain_request()
391 static int tb_xdp_properties_response(struct tb *tb, struct tb_ctl *ctl, in tb_xdp_properties_response() argument
583 struct tb *tb = xw->tb; in tb_xdp_handle_request() local
584 struct tb_ctl *ctl = tb->ctl; in tb_xdp_handle_request()
595 mutex_lock(&tb->lock); in tb_xdp_handle_request()
596 if (tb->root_switch) in tb_xdp_handle_request()
597 uuid = tb->root_switch->uuid; in tb_xdp_handle_request()
600 mutex_unlock(&tb->lock); in tb_xdp_handle_request()
607 tb_dbg(tb, "%llx: received XDomain request %#x\n", route, pkg->type); in tb_xdp_handle_request()
609 xd = tb_xdomain_find_by_route_locked(tb, route); in tb_xdp_handle_request()
616 ret = tb_xdp_properties_response(tb, ctl, xd, sequence, in tb_xdp_handle_request()
630 queue_delayed_work(tb->wq, &xd->get_properties_work, in tb_xdp_handle_request()
649 tb_warn(tb, "failed to send XDomain response for %#x\n", in tb_xdp_handle_request()
657 tb_domain_put(tb); in tb_xdp_handle_request()
661 tb_xdp_schedule_request(struct tb *tb, const struct tb_xdp_header *hdr, in tb_xdp_schedule_request() argument
676 xw->tb = tb_domain_get(tb); in tb_xdp_schedule_request()
1011 struct tb *tb = xd->tb; in tb_xdomain_get_uuid() local
1017 ret = tb_xdp_uuid_request(tb->ctl, xd->route, xd->uuid_retries, &uuid); in tb_xdomain_get_uuid()
1021 queue_delayed_work(xd->tb->wq, &xd->get_uuid_work, in tb_xdomain_get_uuid()
1053 queue_delayed_work(xd->tb->wq, &xd->properties_changed_work, in tb_xdomain_get_uuid()
1055 queue_delayed_work(xd->tb->wq, &xd->get_properties_work, in tb_xdomain_get_uuid()
1064 struct tb *tb = xd->tb; in tb_xdomain_get_properties() local
1072 ret = tb_xdp_properties_request(tb->ctl, xd->route, xd->local_uuid, in tb_xdomain_get_properties()
1079 queue_delayed_work(xd->tb->wq, &xd->get_properties_work, in tb_xdomain_get_properties()
1162 ret = tb_xdp_properties_changed_request(xd->tb->ctl, xd->route, in tb_xdomain_properties_changed()
1168 queue_delayed_work(xd->tb->wq, in tb_xdomain_properties_changed()
1316 queue_delayed_work(xd->tb->wq, &xd->get_uuid_work, in start_handshake()
1320 queue_delayed_work(xd->tb->wq, &xd->properties_changed_work, in start_handshake()
1322 queue_delayed_work(xd->tb->wq, &xd->get_properties_work, in start_handshake()
1373 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent, in tb_xdomain_alloc() argument
1389 xd->tb = tb; in tb_xdomain_alloc()
1419 dev_set_name(&xd->dev, "%u-%llx", tb->index, route); in tb_xdomain_alloc()
1654 return tb_domain_approve_xdomain_paths(xd->tb, xd, transmit_path, in tb_xdomain_enable_paths()
1679 return tb_domain_disconnect_xdomain_paths(xd->tb, xd, transmit_path, in tb_xdomain_disable_paths()
1740 struct tb_xdomain *tb_xdomain_find_by_uuid(struct tb *tb, const uuid_t *uuid) in tb_xdomain_find_by_uuid() argument
1748 xd = switch_find_xdomain(tb->root_switch, &lookup); in tb_xdomain_find_by_uuid()
1769 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link, in tb_xdomain_find_by_link_depth() argument
1779 xd = switch_find_xdomain(tb->root_switch, &lookup); in tb_xdomain_find_by_link_depth()
1798 struct tb_xdomain *tb_xdomain_find_by_route(struct tb *tb, u64 route) in tb_xdomain_find_by_route() argument
1806 xd = switch_find_xdomain(tb->root_switch, &lookup); in tb_xdomain_find_by_route()
1811 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type, in tb_xdomain_handle_request() argument
1833 return tb_xdp_schedule_request(tb, hdr, size); in tb_xdomain_handle_request()
1860 queue_delayed_work(xd->tb->wq, &xd->properties_changed_work, in update_xdomain()