Lines Matching refs:xd

180 	struct tb_xdomain *xd;  member
242 struct tb_xdomain *xd = net->xd; in tbnet_login_response() local
245 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
246 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply), in tbnet_login_response()
251 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_login_response()
259 struct tb_xdomain *xd = net->xd; in tbnet_login_request() local
262 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
263 xd->remote_uuid, TBIP_LOGIN, sizeof(request), in tbnet_login_request()
269 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_login_request()
279 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() local
282 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_logout_response()
283 xd->remote_uuid, TBIP_STATUS, sizeof(reply), in tbnet_logout_response()
285 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_logout_response()
293 struct tb_xdomain *xd = net->xd; in tbnet_logout_request() local
296 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid, in tbnet_logout_request()
297 xd->remote_uuid, TBIP_LOGOUT, sizeof(request), in tbnet_logout_request()
300 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_logout_request()
387 ret = tb_xdomain_disable_paths(net->xd, in tbnet_tear_down()
395 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path); in tbnet_tear_down()
418 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid)) in tbnet_handle_packet()
420 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid)) in tbnet_handle_packet()
425 if (route != net->xd->route) in tbnet_handle_packet()
615 ret = tb_xdomain_alloc_in_hopid(net->xd, net->remote_transmit_path); in tbnet_connected_work()
639 ret = tb_xdomain_enable_paths(net->xd, net->local_transmit_path, in tbnet_connected_work()
659 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path); in tbnet_connected_work()
879 struct tb_xdomain *xd = net->xd; in tbnet_open() local
887 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
895 hopid = tb_xdomain_alloc_out_hopid(xd, -1); in tbnet_open()
912 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, flags, in tbnet_open()
917 tb_xdomain_release_out_hopid(xd, hopid); in tbnet_open()
942 tb_xdomain_release_out_hopid(net->xd, net->local_transmit_path); in tbnet_stop()
1223 const struct tb_xdomain *xd = net->xd; in tbnet_generate_mac() local
1228 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route)); in tbnet_generate_mac()
1232 hash = jhash2((u32 *)xd->local_uuid, 4, 0); in tbnet_generate_mac()
1234 hash = jhash2((u32 *)xd->local_uuid, 4, hash); in tbnet_generate_mac()
1241 struct tb_xdomain *xd = tb_service_parent(svc); in tbnet_probe() local
1261 net->xd = xd; in tbnet_probe()