Lines Matching refs:xd
151 * @xd: XDomain the service belongs to
182 struct tb_xdomain *xd;
244 struct tb_xdomain *xd = net->xd;
247 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid,
248 xd->remote_uuid, TBIP_LOGIN_RESPONSE, sizeof(reply),
253 return tb_xdomain_response(xd, &reply, sizeof(reply),
261 struct tb_xdomain *xd = net->xd;
264 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid,
265 xd->remote_uuid, TBIP_LOGIN, sizeof(request),
271 return tb_xdomain_request(xd, &request, sizeof(request),
281 struct tb_xdomain *xd = net->xd;
284 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid,
285 xd->remote_uuid, TBIP_STATUS, sizeof(reply),
287 return tb_xdomain_response(xd, &reply, sizeof(reply),
295 struct tb_xdomain *xd = net->xd;
298 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid,
299 xd->remote_uuid, TBIP_LOGOUT, sizeof(request),
302 return tb_xdomain_request(xd, &request, sizeof(request),
397 ret = tb_xdomain_disable_paths(net->xd,
405 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path);
430 if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid))
432 if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid))
437 if (route != net->xd->route)
640 ret = tb_xdomain_alloc_in_hopid(net->xd, net->remote_transmit_path);
664 ret = tb_xdomain_enable_paths(net->xd, net->local_transmit_path,
686 tb_xdomain_release_in_hopid(net->xd, net->remote_transmit_path);
919 struct tb_xdomain *xd = net->xd;
927 ring = tb_ring_alloc_tx(xd->tb->nhi, -1, TBNET_RING_SIZE,
935 hopid = tb_xdomain_alloc_out_hopid(xd, -1);
952 ring = tb_ring_alloc_rx(xd->tb->nhi, -1, TBNET_RING_SIZE, flags,
957 tb_xdomain_release_out_hopid(xd, hopid);
982 tb_xdomain_release_out_hopid(net->xd, net->local_transmit_path);
1271 const struct tb_xdomain *xd = net->xd;
1276 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route));
1280 hash = jhash2((u32 *)xd->local_uuid, 4, 0);
1282 hash = jhash2((u32 *)xd->local_uuid, 4, hash);
1289 struct tb_xdomain *xd = tb_service_parent(svc);
1309 net->xd = xd;