Lines Matching refs:pkg

127 	struct icm_pkg_header *pkg;  member
272 const struct ctl_pkg *pkg) in icm_match() argument
274 const struct icm_pkg_header *res_hdr = pkg->buffer; in icm_match()
277 if (pkg->frame.eof != req->response_type) in icm_match()
285 static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg) in icm_copy() argument
287 const struct icm_pkg_header *hdr = pkg->buffer; in icm_copy()
292 memcpy(req->response + offset, pkg->buffer, req->response_size); in icm_copy()
722 const struct icm_fr_event_device_connected *pkg = in icm_fr_device_connected() local
736 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
737 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
739 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
740 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in icm_fr_device_connected()
742 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_fr_device_connected()
743 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE; in icm_fr_device_connected()
744 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3; in icm_fr_device_connected()
746 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_fr_device_connected()
752 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in icm_fr_device_connected()
785 update_switch(sw, route, pkg->connection_id, in icm_fr_device_connected()
786 pkg->connection_key, link, depth, boot); in icm_fr_device_connected()
843 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid); in icm_fr_device_connected()
845 sw->connection_id = pkg->connection_id; in icm_fr_device_connected()
846 sw->connection_key = pkg->connection_key; in icm_fr_device_connected()
855 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, sizeof(pkg->ep_name)); in icm_fr_device_connected()
870 const struct icm_fr_event_device_disconnected *pkg = in icm_fr_device_disconnected() local
875 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_disconnected()
876 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_disconnected()
904 const struct icm_fr_event_xdomain_connected *pkg = in icm_fr_xdomain_connected() local
911 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_xdomain_connected()
912 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_xdomain_connected()
920 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_fr_xdomain_connected()
922 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_connected()
982 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link, in icm_fr_xdomain_connected()
990 const struct icm_fr_event_xdomain_disconnected *pkg = in icm_fr_xdomain_disconnected() local
999 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_disconnected()
1201 const struct icm_tr_event_device_connected *pkg = in __icm_tr_device_connected() local
1216 if (pkg->hdr.packet_id) in __icm_tr_device_connected()
1219 route = get_route(pkg->route_hi, pkg->route_lo); in __icm_tr_device_connected()
1220 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in __icm_tr_device_connected()
1221 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in __icm_tr_device_connected()
1223 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in __icm_tr_device_connected()
1224 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE; in __icm_tr_device_connected()
1225 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3; in __icm_tr_device_connected()
1227 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in __icm_tr_device_connected()
1233 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in __icm_tr_device_connected()
1237 update_switch(sw, route, pkg->connection_id, 0, 0, 0, in __icm_tr_device_connected()
1269 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid); in __icm_tr_device_connected()
1271 sw->connection_id = pkg->connection_id; in __icm_tr_device_connected()
1280 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, in __icm_tr_device_connected()
1281 sizeof(pkg->ep_name)); in __icm_tr_device_connected()
1302 const struct icm_tr_event_device_disconnected *pkg = in icm_tr_device_disconnected() local
1307 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_device_disconnected()
1327 const struct icm_tr_event_xdomain_connected *pkg = in icm_tr_xdomain_connected() local
1336 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_tr_xdomain_connected()
1338 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_tr_xdomain_connected()
1374 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0); in icm_tr_xdomain_connected()
1381 const struct icm_tr_event_xdomain_disconnected *pkg = in icm_tr_xdomain_disconnected() local
1386 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_xdomain_disconnected()
1665 const struct icm_icl_event_rtd3_veto *pkg = in icm_icl_rtd3_veto() local
1668 tb_dbg(tb, "ICM rtd3 veto=0x%08x\n", pkg->veto_reason); in icm_icl_rtd3_veto()
1670 if (pkg->veto_reason) in icm_icl_rtd3_veto()
1706 switch (n->pkg->code) { in icm_handle_notification()
1708 icm->device_connected(tb, n->pkg); in icm_handle_notification()
1711 icm->device_disconnected(tb, n->pkg); in icm_handle_notification()
1715 icm->xdomain_connected(tb, n->pkg); in icm_handle_notification()
1719 icm->xdomain_disconnected(tb, n->pkg); in icm_handle_notification()
1722 icm->rtd3_veto(tb, n->pkg); in icm_handle_notification()
1729 kfree(n->pkg); in icm_handle_notification()
1742 n->pkg = kmemdup(buf, size, GFP_KERNEL); in icm_handle_event()
1743 if (!n->pkg) { in icm_handle_event()