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