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