Lines Matching refs:xd
181 struct tb_xdomain *xd; member
238 struct tb_xdomain *xd = net->xd; in tbnet_login_response() local
241 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
242 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply), in tbnet_login_response()
247 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_login_response()
255 struct tb_xdomain *xd = net->xd; in tbnet_login_request() local
258 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
259 xd->remote_uuid, TBIP_LOGIN, sizeof(request), in tbnet_login_request()
265 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_login_request()
275 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() local
278 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_logout_response()
279 xd->remote_uuid, TBIP_STATUS, sizeof(reply), in tbnet_logout_response()
281 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_logout_response()
289 struct tb_xdomain *xd = net->xd; in tbnet_logout_request() local
292 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid, in tbnet_logout_request()
293 xd->remote_uuid, TBIP_LOGOUT, sizeof(request), in tbnet_logout_request()
296 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_logout_request()
383 if (tb_xdomain_disable_paths(net->xd)) in tbnet_tear_down()
406 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid)) in tbnet_handle_packet()
408 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid)) in tbnet_handle_packet()
413 if (route != net->xd->route) in tbnet_handle_packet()
606 ret = tb_xdomain_enable_paths(net->xd, TBNET_LOCAL_PATH, in tbnet_connected_work()
854 struct tb_xdomain *xd = net->xd; in tbnet_open() local
860 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
871 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
1179 const struct tb_xdomain *xd = net->xd; in tbnet_generate_mac() local
1183 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route)); in tbnet_generate_mac()
1187 hash = jhash2((u32 *)xd->local_uuid, 4, 0); in tbnet_generate_mac()
1189 hash = jhash2((u32 *)xd->local_uuid, 4, hash); in tbnet_generate_mac()
1195 struct tb_xdomain *xd = tb_service_parent(svc); in tbnet_probe() local
1215 net->xd = xd; in tbnet_probe()