Lines Matching refs:pkg
99 struct icm_pkg_header *pkg; member
174 const struct ctl_pkg *pkg) in icm_match() argument
176 const struct icm_pkg_header *res_hdr = pkg->buffer; in icm_match()
179 if (pkg->frame.eof != req->response_type) in icm_match()
187 static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg) in icm_copy() argument
189 const struct icm_pkg_header *hdr = pkg->buffer; in icm_copy()
194 memcpy(req->response + offset, pkg->buffer, req->response_size); in icm_copy()
579 const struct icm_fr_event_device_connected *pkg = in icm_fr_device_connected() local
591 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
592 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
594 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
595 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in icm_fr_device_connected()
597 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_fr_device_connected()
599 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_fr_device_connected()
605 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in icm_fr_device_connected()
639 update_switch(parent_sw, sw, route, pkg->connection_id, in icm_fr_device_connected()
640 pkg->connection_key, link, depth, boot); in icm_fr_device_connected()
695 add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name, in icm_fr_device_connected()
696 sizeof(pkg->ep_name), pkg->connection_id, in icm_fr_device_connected()
697 pkg->connection_key, link, depth, security_level, in icm_fr_device_connected()
706 const struct icm_fr_event_device_disconnected *pkg = in icm_fr_device_disconnected() local
711 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_disconnected()
712 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_disconnected()
734 const struct icm_fr_event_xdomain_connected *pkg = in icm_fr_xdomain_connected() local
741 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_xdomain_connected()
742 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_xdomain_connected()
750 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_fr_xdomain_connected()
752 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_connected()
810 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link, in icm_fr_xdomain_connected()
818 const struct icm_fr_event_xdomain_disconnected *pkg = in icm_fr_xdomain_disconnected() local
827 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_fr_xdomain_disconnected()
1016 const struct icm_tr_event_device_connected *pkg = in icm_tr_device_connected() local
1029 if (pkg->hdr.packet_id) in icm_tr_device_connected()
1032 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_device_connected()
1033 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_tr_device_connected()
1034 security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >> in icm_tr_device_connected()
1036 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_tr_device_connected()
1038 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_tr_device_connected()
1044 sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid); in icm_tr_device_connected()
1049 update_switch(parent_sw, sw, route, pkg->connection_id, in icm_tr_device_connected()
1079 add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name, in icm_tr_device_connected()
1080 sizeof(pkg->ep_name), pkg->connection_id, in icm_tr_device_connected()
1089 const struct icm_tr_event_device_disconnected *pkg = in icm_tr_device_disconnected() local
1094 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_device_disconnected()
1109 const struct icm_tr_event_xdomain_connected *pkg = in icm_tr_xdomain_connected() local
1118 route = get_route(pkg->local_route_hi, pkg->local_route_lo); in icm_tr_xdomain_connected()
1120 xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid); in icm_tr_xdomain_connected()
1154 add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0); in icm_tr_xdomain_connected()
1161 const struct icm_tr_event_xdomain_disconnected *pkg = in icm_tr_xdomain_disconnected() local
1166 route = get_route(pkg->route_hi, pkg->route_lo); in icm_tr_xdomain_disconnected()
1401 switch (n->pkg->code) { in icm_handle_notification()
1403 icm->device_connected(tb, n->pkg); in icm_handle_notification()
1406 icm->device_disconnected(tb, n->pkg); in icm_handle_notification()
1409 icm->xdomain_connected(tb, n->pkg); in icm_handle_notification()
1412 icm->xdomain_disconnected(tb, n->pkg); in icm_handle_notification()
1419 kfree(n->pkg); in icm_handle_notification()
1433 n->pkg = kmemdup(buf, size, GFP_KERNEL); in icm_handle_event()