Lines Matching refs:xd
178 struct tb_xdomain *xd; member
235 struct tb_xdomain *xd = net->xd; in tbnet_login_response() local
238 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
239 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply), in tbnet_login_response()
244 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_login_response()
252 struct tb_xdomain *xd = net->xd; in tbnet_login_request() local
255 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
256 xd->remote_uuid, TBIP_LOGIN, sizeof(request), in tbnet_login_request()
262 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_login_request()
272 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() local
275 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_logout_response()
276 xd->remote_uuid, TBIP_STATUS, sizeof(reply), in tbnet_logout_response()
278 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_logout_response()
286 struct tb_xdomain *xd = net->xd; in tbnet_logout_request() local
289 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid, in tbnet_logout_request()
290 xd->remote_uuid, TBIP_LOGOUT, sizeof(request), in tbnet_logout_request()
293 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_logout_request()
380 if (tb_xdomain_disable_paths(net->xd)) in tbnet_tear_down()
403 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid)) in tbnet_handle_packet()
405 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid)) in tbnet_handle_packet()
410 if (route != net->xd->route) in tbnet_handle_packet()
603 ret = tb_xdomain_enable_paths(net->xd, TBNET_LOCAL_PATH, in tbnet_connected_work()
851 struct tb_xdomain *xd = net->xd; in tbnet_open() local
857 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
868 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
1176 const struct tb_xdomain *xd = net->xd; in tbnet_generate_mac() local
1180 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route)); in tbnet_generate_mac()
1184 hash = jhash2((u32 *)xd->local_uuid, 4, 0); in tbnet_generate_mac()
1186 hash = jhash2((u32 *)xd->local_uuid, 4, hash); in tbnet_generate_mac()
1192 struct tb_xdomain *xd = tb_service_parent(svc); in tbnet_probe() local
1212 net->xd = xd; in tbnet_probe()