Lines Matching refs:pkg
128 struct icm_pkg_header *pkg; member
273 const struct ctl_pkg *pkg) in icm_match() argument
275 const struct icm_pkg_header *res_hdr = pkg->buffer; in icm_match()
278 if (pkg->frame.eof != req->response_type) in icm_match()
286 static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg) in icm_copy() argument
288 const struct icm_pkg_header *hdr = pkg->buffer; in icm_copy()
293 memcpy(req->response + offset, pkg->buffer, req->response_size); in icm_copy()
747 const struct icm_fr_event_device_connected *pkg = in icm_fr_device_connected() local
761 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
762 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
764 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
765 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in icm_fr_device_connected()
767 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_fr_device_connected()
768 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE; in icm_fr_device_connected()
769 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3; in icm_fr_device_connected()
771 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_fr_device_connected()
777 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in icm_fr_device_connected()
810 update_switch(sw, route, pkg->connection_id, in icm_fr_device_connected()
811 pkg->connection_key, link, depth, boot); in icm_fr_device_connected()
868 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid); in icm_fr_device_connected()
870 sw->connection_id = pkg->connection_id; in icm_fr_device_connected()
871 sw->connection_key = pkg->connection_key; in icm_fr_device_connected()
880 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, sizeof(pkg->ep_name)); in icm_fr_device_connected()
895 const struct icm_fr_event_device_disconnected *pkg = in icm_fr_device_disconnected() local
900 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_disconnected()
901 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_disconnected()
929 const struct icm_fr_event_xdomain_connected *pkg = in icm_fr_xdomain_connected() local
936 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_xdomain_connected()
937 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_xdomain_connected()
945 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_fr_xdomain_connected()
947 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_connected()
1007 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link, in icm_fr_xdomain_connected()
1015 const struct icm_fr_event_xdomain_disconnected *pkg = in icm_fr_xdomain_disconnected() local
1024 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_disconnected()
1232 const struct icm_tr_event_device_connected *pkg = in __icm_tr_device_connected() local
1247 if (pkg->hdr.packet_id) in __icm_tr_device_connected()
1250 route = get_route(pkg->route_hi, pkg->route_lo); in __icm_tr_device_connected()
1251 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in __icm_tr_device_connected()
1252 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in __icm_tr_device_connected()
1254 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in __icm_tr_device_connected()
1255 dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE; in __icm_tr_device_connected()
1256 speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3; in __icm_tr_device_connected()
1258 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in __icm_tr_device_connected()
1264 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in __icm_tr_device_connected()
1268 update_switch(sw, route, pkg->connection_id, 0, 0, 0, in __icm_tr_device_connected()
1300 sw = alloc_switch(parent_sw, route, &pkg->ep_uuid); in __icm_tr_device_connected()
1302 sw->connection_id = pkg->connection_id; in __icm_tr_device_connected()
1311 sw->rpm = intel_vss_is_rtd3(pkg->ep_name, in __icm_tr_device_connected()
1312 sizeof(pkg->ep_name)); in __icm_tr_device_connected()
1333 const struct icm_tr_event_device_disconnected *pkg = in icm_tr_device_disconnected() local
1338 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_device_disconnected()
1358 const struct icm_tr_event_xdomain_connected *pkg = in icm_tr_xdomain_connected() local
1367 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_tr_xdomain_connected()
1369 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_tr_xdomain_connected()
1405 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0); in icm_tr_xdomain_connected()
1412 const struct icm_tr_event_xdomain_disconnected *pkg = in icm_tr_xdomain_disconnected() local
1417 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_xdomain_disconnected()
1696 const struct icm_icl_event_rtd3_veto *pkg = in icm_icl_rtd3_veto() local
1699 tb_dbg(tb, "ICM rtd3 veto=0x%08x\n", pkg->veto_reason); in icm_icl_rtd3_veto()
1701 if (pkg->veto_reason) in icm_icl_rtd3_veto()
1737 switch (n->pkg->code) { in icm_handle_notification()
1739 icm->device_connected(tb, n->pkg); in icm_handle_notification()
1742 icm->device_disconnected(tb, n->pkg); in icm_handle_notification()
1746 icm->xdomain_connected(tb, n->pkg); in icm_handle_notification()
1750 icm->xdomain_disconnected(tb, n->pkg); in icm_handle_notification()
1756 icm->rtd3_veto(tb, n->pkg); in icm_handle_notification()
1763 kfree(n->pkg); in icm_handle_notification()
1776 n->pkg = kmemdup(buf, size, GFP_KERNEL); in icm_handle_event()
1777 if (!n->pkg) { in icm_handle_event()