Lines Matching refs:route
49 #define TBNET_L0_PORT_NUM(route) ((route) & GENMASK(5, 0)) argument
220 static void tbnet_fill_header(struct thunderbolt_ip_header *hdr, u64 route, in tbnet_fill_header() argument
230 hdr->route_hi = upper_32_bits(route); in tbnet_fill_header()
231 hdr->route_lo = lower_32_bits(route); in tbnet_fill_header()
240 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument
247 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_login_response()
264 tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid, in tbnet_login_request()
277 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument
284 tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid, in tbnet_logout_response()
298 tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid, in tbnet_logout_request()
425 u64 route; in tbnet_handle_packet() local
435 route = ((u64)pkg->hdr.route_hi << 32) | pkg->hdr.route_lo; in tbnet_handle_packet()
436 route &= ~BIT_ULL(63); in tbnet_handle_packet()
437 if (route != net->xd->route) in tbnet_handle_packet()
450 ret = tbnet_login_response(net, route, sequence, in tbnet_handle_packet()
477 ret = tbnet_logout_response(net, route, sequence, command_id); in tbnet_handle_packet()
1275 phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route)); in tbnet_generate_mac()