Lines Matching refs:xd
178 struct tb_xdomain *xd; member
236 struct tb_xdomain *xd = net->xd; in tbnet_login_response() local
239 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
240 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply), in tbnet_login_response()
245 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_login_response()
253 struct tb_xdomain *xd = net->xd; in tbnet_login_request() local
256 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
257 xd->remote_uuid, TBIP_LOGIN, sizeof(request), in tbnet_login_request()
263 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_login_request()
273 struct tb_xdomain *xd = net->xd; in tbnet_logout_response() local
276 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_logout_response()
277 xd->remote_uuid, TBIP_STATUS, sizeof(reply), in tbnet_logout_response()
279 return tb_xdomain_response(xd, &reply, sizeof(reply), in tbnet_logout_response()
287 struct tb_xdomain *xd = net->xd; in tbnet_logout_request() local
290 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid, in tbnet_logout_request()
291 xd->remote_uuid, TBIP_LOGOUT, sizeof(request), in tbnet_logout_request()
294 return tb_xdomain_request(xd, &request, sizeof(request), in tbnet_logout_request()
381 ret = tb_xdomain_disable_paths(net->xd, in tbnet_tear_down()
389 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path); in tbnet_tear_down()
412 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid)) in tbnet_handle_packet()
414 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid)) in tbnet_handle_packet()
419 if (route != net->xd->route) in tbnet_handle_packet()
609 ret = tb_xdomain_alloc_in_hopid(net->xd, net->remote_transmit_path); in tbnet_connected_work()
618 ret = tb_xdomain_enable_paths(net->xd, net->local_transmit_path, in tbnet_connected_work()
647 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path); in tbnet_connected_work()
867 struct tb_xdomain *xd = net->xd; in tbnet_open() local
874 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
882 hopid = tb_xdomain_alloc_out_hopid(xd, -1); in tbnet_open()
894 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, in tbnet_open()
923 tb_xdomain_release_out_hopid(net->xd, net->local_transmit_path); in tbnet_stop()
1204 const struct tb_xdomain *xd = net->xd; in tbnet_generate_mac() local
1209 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route)); in tbnet_generate_mac()
1213 hash = jhash2((u32 *)xd->local_uuid, 4, 0); in tbnet_generate_mac()
1215 hash = jhash2((u32 *)xd->local_uuid, 4, hash); in tbnet_generate_mac()
1222 struct tb_xdomain *xd = tb_service_parent(svc); in tbnet_probe() local
1242 net->xd = xd; in tbnet_probe()