Lines Matching refs:xd
182 struct tb_xdomain *xd; member
244 struct tb_xdomain *xd = net->xd; in tbnet_login_response() local
247 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
248 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply), in tbnet_login_response()
253 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_login_response()
261 struct tb_xdomain *xd = net->xd; in tbnet_login_request() local
264 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
265 xd->remote_uuid, TBIP_LOGIN, sizeof(request), in tbnet_login_request()
271 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_login_request()
281 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() local
284 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_logout_response()
285 xd->remote_uuid, TBIP_STATUS, sizeof(reply), in tbnet_logout_response()
287 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_logout_response()
295 struct tb_xdomain *xd = net->xd; in tbnet_logout_request() local
298 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid, in tbnet_logout_request()
299 xd->remote_uuid, TBIP_LOGOUT, sizeof(request), in tbnet_logout_request()
302 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_logout_request()
397 ret = tb_xdomain_disable_paths(net->xd, in tbnet_tear_down()
405 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path); in tbnet_tear_down()
430 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid)) in tbnet_handle_packet()
432 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid)) in tbnet_handle_packet()
437 if (route != net->xd->route) in tbnet_handle_packet()
640 ret = tb_xdomain_alloc_in_hopid(net->xd, net->remote_transmit_path); in tbnet_connected_work()
664 ret = tb_xdomain_enable_paths(net->xd, net->local_transmit_path, in tbnet_connected_work()
686 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path); in tbnet_connected_work()
918 struct tb_xdomain *xd = net->xd; in tbnet_open() local
926 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
934 hopid = tb_xdomain_alloc_out_hopid(xd, -1); in tbnet_open()
951 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, flags, in tbnet_open()
956 tb_xdomain_release_out_hopid(xd, hopid); in tbnet_open()
981 tb_xdomain_release_out_hopid(net->xd, net->local_transmit_path); in tbnet_stop()
1269 const struct tb_xdomain *xd = net->xd; in tbnet_generate_mac() local
1274 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route)); in tbnet_generate_mac()
1278 hash = jhash2((u32 *)xd->local_uuid, 4, 0); in tbnet_generate_mac()
1280 hash = jhash2((u32 *)xd->local_uuid, 4, hash); in tbnet_generate_mac()
1287 struct tb_xdomain *xd = tb_service_parent(svc); in tbnet_probe() local
1307 net->xd = xd; in tbnet_probe()