Lines Matching refs:pkg
105 struct icm_pkg_header *pkg; member
239 const struct ctl_pkg *pkg) in icm_match() argument
241 const struct icm_pkg_header *res_hdr = pkg->buffer; in icm_match()
244 if (pkg->frame.eof != req->response_type) in icm_match()
252 static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg) in icm_copy() argument
254 const struct icm_pkg_header *hdr = pkg->buffer; in icm_copy()
259 memcpy(req->response + offset, pkg->buffer, req->response_size); in icm_copy()
696 const struct icm_fr_event_device_connected *pkg = in icm_fr_device_connected() local
710 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
711 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
713 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
714 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in icm_fr_device_connected()
716 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_fr_device_connected()
718 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_fr_device_connected()
724 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in icm_fr_device_connected()
758 update_switch(parent_sw, sw, route, pkg->connection_id, in icm_fr_device_connected()
759 pkg->connection_key, link, depth, boot); in icm_fr_device_connected()
814 add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name, in icm_fr_device_connected()
815 sizeof(pkg->ep_name), pkg->connection_id, in icm_fr_device_connected()
816 pkg->connection_key, link, depth, security_level, in icm_fr_device_connected()
825 const struct icm_fr_event_device_disconnected *pkg = in icm_fr_device_disconnected() local
830 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_disconnected()
831 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_disconnected()
853 const struct icm_fr_event_xdomain_connected *pkg = in icm_fr_xdomain_connected() local
860 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_xdomain_connected()
861 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_xdomain_connected()
869 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_fr_xdomain_connected()
871 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_connected()
931 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link, in icm_fr_xdomain_connected()
939 const struct icm_fr_event_xdomain_disconnected *pkg = in icm_fr_xdomain_disconnected() local
948 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_disconnected()
1143 const struct icm_tr_event_device_connected *pkg = in __icm_tr_device_connected() local
1158 if (pkg->hdr.packet_id) in __icm_tr_device_connected()
1161 route = get_route(pkg->route_hi, pkg->route_lo); in __icm_tr_device_connected()
1162 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in __icm_tr_device_connected()
1163 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in __icm_tr_device_connected()
1165 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in __icm_tr_device_connected()
1167 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in __icm_tr_device_connected()
1173 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in __icm_tr_device_connected()
1178 update_switch(parent_sw, sw, route, pkg->connection_id, in __icm_tr_device_connected()
1208 sw = add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name, in __icm_tr_device_connected()
1209 sizeof(pkg->ep_name), pkg->connection_id, 0, 0, 0, in __icm_tr_device_connected()
1226 const struct icm_tr_event_device_disconnected *pkg = in icm_tr_device_disconnected() local
1231 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_device_disconnected()
1246 const struct icm_tr_event_xdomain_connected *pkg = in icm_tr_xdomain_connected() local
1255 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_tr_xdomain_connected()
1257 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_tr_xdomain_connected()
1293 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0); in icm_tr_xdomain_connected()
1300 const struct icm_tr_event_xdomain_disconnected *pkg = in icm_tr_xdomain_disconnected() local
1305 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_xdomain_disconnected()
1577 const struct icm_icl_event_rtd3_veto *pkg = in icm_icl_rtd3_veto() local
1580 tb_dbg(tb, "ICM rtd3 veto=0x%08x\n", pkg->veto_reason); in icm_icl_rtd3_veto()
1582 if (pkg->veto_reason) in icm_icl_rtd3_veto()
1602 switch (n->pkg->code) { in icm_handle_notification()
1604 icm->device_connected(tb, n->pkg); in icm_handle_notification()
1607 icm->device_disconnected(tb, n->pkg); in icm_handle_notification()
1610 icm->xdomain_connected(tb, n->pkg); in icm_handle_notification()
1613 icm->xdomain_disconnected(tb, n->pkg); in icm_handle_notification()
1616 icm->rtd3_veto(tb, n->pkg); in icm_handle_notification()
1623 kfree(n->pkg); in icm_handle_notification()
1637 n->pkg = kmemdup(buf, size, GFP_KERNEL); in icm_handle_event()