Lines Matching refs:pkg
111 struct icm_pkg_header *pkg;
256 const struct ctl_pkg *pkg)
258 const struct icm_pkg_header *res_hdr = pkg->buffer;
261 if (pkg->frame.eof != req->response_type)
269 static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg)
271 const struct icm_pkg_header *hdr = pkg->buffer;
276 memcpy(req->response + offset, pkg->buffer, req->response_size);
704 const struct icm_fr_event_device_connected *pkg =
718 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
719 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
721 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED;
722 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
724 boot = pkg->link_info & ICM_LINK_INFO_BOOT;
725 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE;
726 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3;
728 if (pkg->link_info & ICM_LINK_INFO_REJECTED) {
734 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid);
768 update_switch(parent_sw, sw, route, pkg->connection_id,
769 pkg->connection_key, link, depth, boot);
826 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid);
828 sw->connection_id = pkg->connection_id;
829 sw->connection_key = pkg->connection_key;
837 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, sizeof(pkg->ep_name));
852 const struct icm_fr_event_device_disconnected *pkg =
857 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
858 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
880 const struct icm_fr_event_xdomain_connected *pkg =
887 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
888 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
896 route = get_route(pkg->local_route_hi, pkg->local_route_lo);
898 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid);
958 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link,
966 const struct icm_fr_event_xdomain_disconnected *pkg =
975 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid);
1170 const struct icm_tr_event_device_connected *pkg =
1185 if (pkg->hdr.packet_id)
1188 route = get_route(pkg->route_hi, pkg->route_lo);
1189 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED;
1190 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
1192 boot = pkg->link_info & ICM_LINK_INFO_BOOT;
1193 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE;
1194 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3;
1196 if (pkg->link_info & ICM_LINK_INFO_REJECTED) {
1202 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid);
1207 update_switch(parent_sw, sw, route, pkg->connection_id,
1239 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid);
1241 sw->connection_id = pkg->connection_id;
1249 sw->rpm = intel_vss_is_rtd3(pkg->ep_name,
1250 sizeof(pkg->ep_name));
1271 const struct icm_tr_event_device_disconnected *pkg =
1276 route = get_route(pkg->route_hi, pkg->route_lo);
1291 const struct icm_tr_event_xdomain_connected *pkg =
1300 route = get_route(pkg->local_route_hi, pkg->local_route_lo);
1302 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid);
1338 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0);
1345 const struct icm_tr_event_xdomain_disconnected *pkg =
1350 route = get_route(pkg->route_hi, pkg->route_lo);
1625 const struct icm_icl_event_rtd3_veto *pkg =
1628 tb_dbg(tb, "ICM rtd3 veto=0x%08x\n", pkg->veto_reason);
1630 if (pkg->veto_reason)
1662 switch (n->pkg->code) {
1664 icm->device_connected(tb, n->pkg);
1667 icm->device_disconnected(tb, n->pkg);
1670 icm->xdomain_connected(tb, n->pkg);
1673 icm->xdomain_disconnected(tb, n->pkg);
1676 icm->rtd3_veto(tb, n->pkg);
1683 kfree(n->pkg);
1697 n->pkg = kmemdup(buf, size, GFP_KERNEL);