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()
724 const struct icm_fr_event_device_connected *pkg = in icm_fr_device_connected() local
738 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
739 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
741 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
742 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in icm_fr_device_connected()
744 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_fr_device_connected()
745 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE; in icm_fr_device_connected()
746 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3; in icm_fr_device_connected()
748 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_fr_device_connected()
754 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in icm_fr_device_connected()
788 update_switch(parent_sw, sw, route, pkg->connection_id, in icm_fr_device_connected()
789 pkg->connection_key, link, depth, boot); in icm_fr_device_connected()
846 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid); in icm_fr_device_connected()
848 sw->connection_id = pkg->connection_id; in icm_fr_device_connected()
849 sw->connection_key = pkg->connection_key; in icm_fr_device_connected()
857 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, sizeof(pkg->ep_name)); in icm_fr_device_connected()
872 const struct icm_fr_event_device_disconnected *pkg = in icm_fr_device_disconnected() local
877 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_disconnected()
878 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_disconnected()
906 const struct icm_fr_event_xdomain_connected *pkg = in icm_fr_xdomain_connected() local
913 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_xdomain_connected()
914 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_xdomain_connected()
922 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_fr_xdomain_connected()
924 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_connected()
984 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link, in icm_fr_xdomain_connected()
992 const struct icm_fr_event_xdomain_disconnected *pkg = in icm_fr_xdomain_disconnected() local
1001 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_disconnected()
1203 const struct icm_tr_event_device_connected *pkg = in __icm_tr_device_connected() local
1218 if (pkg->hdr.packet_id) in __icm_tr_device_connected()
1221 route = get_route(pkg->route_hi, pkg->route_lo); in __icm_tr_device_connected()
1222 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in __icm_tr_device_connected()
1223 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in __icm_tr_device_connected()
1225 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in __icm_tr_device_connected()
1226 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE; in __icm_tr_device_connected()
1227 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3; in __icm_tr_device_connected()
1229 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in __icm_tr_device_connected()
1235 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in __icm_tr_device_connected()
1240 update_switch(parent_sw, sw, route, pkg->connection_id, in __icm_tr_device_connected()
1272 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid); in __icm_tr_device_connected()
1274 sw->connection_id = pkg->connection_id; in __icm_tr_device_connected()
1282 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, in __icm_tr_device_connected()
1283 sizeof(pkg->ep_name)); in __icm_tr_device_connected()
1304 const struct icm_tr_event_device_disconnected *pkg = in icm_tr_device_disconnected() local
1309 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_device_disconnected()
1329 const struct icm_tr_event_xdomain_connected *pkg = in icm_tr_xdomain_connected() local
1338 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_tr_xdomain_connected()
1340 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_tr_xdomain_connected()
1376 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0); in icm_tr_xdomain_connected()
1383 const struct icm_tr_event_xdomain_disconnected *pkg = in icm_tr_xdomain_disconnected() local
1388 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_xdomain_disconnected()
1667 const struct icm_icl_event_rtd3_veto *pkg = in icm_icl_rtd3_veto() local
1670 tb_dbg(tb, "ICM rtd3 veto=0x%08x\n", pkg->veto_reason); in icm_icl_rtd3_veto()
1672 if (pkg->veto_reason) in icm_icl_rtd3_veto()
1708 switch (n->pkg->code) { in icm_handle_notification()
1710 icm->device_connected(tb, n->pkg); in icm_handle_notification()
1713 icm->device_disconnected(tb, n->pkg); in icm_handle_notification()
1717 icm->xdomain_connected(tb, n->pkg); in icm_handle_notification()
1721 icm->xdomain_disconnected(tb, n->pkg); in icm_handle_notification()
1724 icm->rtd3_veto(tb, n->pkg); in icm_handle_notification()
1731 kfree(n->pkg); in icm_handle_notification()
1745 n->pkg = kmemdup(buf, size, GFP_KERNEL); in icm_handle_event()