Lines Matching defs:vsi_handle
591 * @vsi_handle: VSI handle
596 ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs)
601 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle);
633 * @vsi_handle: VSI handle
638 ice_alloc_rdma_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs)
643 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle);
1608 * @vsi_handle: software VSI handle
1615 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
1627 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
1660 * @vsi_handle: software VSI handle
1667 u16 vsi_handle)
1677 if (node->vsi_handle == vsi_handle)
1775 * @vsi_handle: software VSI handle
1784 ice_sched_add_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle,
1796 parent = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
1881 * @vsi_handle: software VSI handle
1889 ice_sched_add_vsi_support_nodes(struct ice_port_info *pi, u16 vsi_handle,
1924 parent->vsi_handle = vsi_handle;
1933 * @vsi_handle: software VSI handle
1939 ice_sched_add_vsi_to_topo(struct ice_port_info *pi, u16 vsi_handle, u8 tc)
1952 return ice_sched_add_vsi_support_nodes(pi, vsi_handle, tc_node,
1959 * @vsi_handle: software VSI handle
1967 ice_sched_update_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle,
1982 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
1986 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle);
1998 status = ice_alloc_lan_q_ctx(hw, vsi_handle, tc, new_numqs);
2002 status = ice_alloc_rdma_q_ctx(hw, vsi_handle, tc, new_numqs);
2016 status = ice_sched_add_vsi_child_nodes(pi, vsi_handle, tc_node,
2031 * @vsi_handle: software VSI handle
2042 ice_sched_cfg_vsi(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 maxqs,
2050 ice_debug(pi->hw, ICE_DBG_SCHED, "add/config VSI %d\n", vsi_handle);
2054 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle);
2057 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
2074 status = ice_sched_add_vsi_to_topo(pi, vsi_handle, tc);
2078 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
2093 status = ice_sched_update_vsi_child_nodes(pi, vsi_handle, tc, maxqs,
2113 * @vsi_handle: software VSI handle
2118 static void ice_sched_rm_agg_vsi_info(struct ice_port_info *pi, u16 vsi_handle)
2132 if (agg_vsi_info->vsi_handle == vsi_handle) {
2160 * @vsi_handle: software VSI handle
2167 ice_sched_rm_vsi_cfg(struct ice_port_info *pi, u16 vsi_handle, u8 owner)
2173 ice_debug(pi->hw, ICE_DBG_SCHED, "removing VSI %d\n", vsi_handle);
2174 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
2177 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
2189 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
2216 ice_sched_rm_agg_vsi_info(pi, vsi_handle);
2233 * @vsi_handle: software VSI handle
2238 int ice_rm_vsi_lan_cfg(struct ice_port_info *pi, u16 vsi_handle)
2240 return ice_sched_rm_vsi_cfg(pi, vsi_handle, ICE_SCHED_NODE_OWNER_LAN);
2246 * @vsi_handle: software VSI handle
2251 int ice_rm_vsi_rdma_cfg(struct ice_port_info *pi, u16 vsi_handle)
2253 return ice_sched_rm_vsi_cfg(pi, vsi_handle, ICE_SCHED_NODE_OWNER_RDMA);
2467 * @vsi_handle: software VSI handle
2475 ice_sched_move_vsi_to_agg(struct ice_port_info *pi, u16 vsi_handle, u32 agg_id,
2493 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
2567 u16 vsi_handle = agg_vsi_info->vsi_handle;
2573 status = ice_sched_move_vsi_to_agg(pi, vsi_handle,
2896 * @vsi_handle: software VSI handle
2902 ice_get_agg_vsi_info(struct ice_sched_agg_info *agg_info, u16 vsi_handle)
2908 if (agg_vsi_info->vsi_handle == vsi_handle)
2917 * @vsi_handle: Sw VSI handle
2919 * The function returns aggregator info of VSI represented via vsi_handle. The
2924 ice_get_vsi_agg_info(struct ice_hw *hw, u16 vsi_handle)
2932 agg_vsi_info = ice_get_agg_vsi_info(agg_info, vsi_handle);
2943 * @vsi_handle: software VSI handle
2950 ice_save_agg_vsi_tc_bitmap(struct ice_port_info *pi, u32 agg_id, u16 vsi_handle,
2960 agg_vsi_info = ice_get_agg_vsi_info(agg_info, vsi_handle);
2972 * @vsi_handle: software VSI handle
2981 u16 vsi_handle, ice_bitmap_t *tc_bitmap)
2989 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
2997 old_agg_info = ice_get_vsi_agg_info(hw, vsi_handle);
3004 if (old_agg_vsi_info->vsi_handle == vsi_handle)
3009 agg_vsi_info = ice_get_agg_vsi_info(agg_info, vsi_handle);
3018 agg_vsi_info->vsi_handle = vsi_handle;
3027 status = ice_sched_move_vsi_to_agg(pi, vsi_handle, agg_id, tc);
3151 * @vsi_handle: software VSI handle
3157 ice_move_vsi_to_agg(struct ice_port_info *pi, u32 agg_id, u16 vsi_handle,
3164 status = ice_sched_assoc_vsi_to_agg(pi, agg_id, vsi_handle,
3167 status = ice_save_agg_vsi_tc_bitmap(pi, agg_id, vsi_handle,
3256 * @vsi_handle: sw VSI handle
3264 ice_sched_save_vsi_bw_alloc(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
3269 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
3271 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
3349 * @vsi_handle: sw VSI handle
3357 ice_sched_save_vsi_bw(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
3362 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
3364 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
3402 * @vsi_handle: Software VSI handle
3409 ice_sched_save_vsi_prio(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
3414 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
3416 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
3499 * @vsi_handle: software VSI handle
3508 ice_cfg_vsi_bw_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
3513 status = ice_sched_set_node_bw_lmt_per_tc(pi, vsi_handle,
3518 status = ice_sched_save_vsi_bw(pi, vsi_handle, tc, rl_type, bw);
3527 * @vsi_handle: software VSI handle
3535 ice_cfg_vsi_bw_dflt_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
3540 status = ice_sched_set_node_bw_lmt_per_tc(pi, vsi_handle,
3546 status = ice_sched_save_vsi_bw(pi, vsi_handle, tc, rl_type,
3611 * @vsi_handle: software VSI handle
3620 ice_cfg_vsi_bw_shared_lmt(struct ice_port_info *pi, u16 vsi_handle, u32 min_bw,
3623 return ice_sched_set_vsi_bw_shared_lmt(pi, vsi_handle, min_bw, max_bw,
3630 * @vsi_handle: software VSI handle
3636 ice_cfg_vsi_bw_no_shared_lmt(struct ice_port_info *pi, u16 vsi_handle)
3638 return ice_sched_set_vsi_bw_shared_lmt(pi, vsi_handle,
3804 u16 vsi_handle;
3807 vsi_handle = vsi_handle_arr[i];
3808 if (!ice_is_vsi_valid(hw, vsi_handle))
3813 if (agg_vsi_info->vsi_handle == vsi_handle) {
3821 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
3831 status = ice_sched_save_vsi_prio(pi, vsi_handle, tc,
3846 * @vsi_handle: software VSI handle
3855 ice_cfg_vsi_bw_alloc(struct ice_port_info *pi, u16 vsi_handle, u8 ena_tcmap,
3861 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
3877 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
3885 status = ice_sched_save_vsi_bw_alloc(pi, vsi_handle, tc,
4596 * @vsi_handle: sw VSI handle
4605 ice_sched_set_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
4612 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
4615 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handle);
4659 * @vsi_handle: sw VSI handle
4668 ice_cfg_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
4671 return ice_sched_set_q_bw_lmt(pi, vsi_handle, tc, q_handle, rl_type,
4678 * @vsi_handle: sw VSI handle
4686 ice_cfg_q_bw_dflt_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
4689 return ice_sched_set_q_bw_lmt(pi, vsi_handle, tc, q_handle, rl_type,
4892 * @vsi_handle: software VSI handle
4899 ice_sched_set_agg_bw_dflt_lmt(struct ice_port_info *pi, u16 vsi_handle)
4905 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
4907 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
4958 u16 vsi_handle = (u16)id;
4960 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
4963 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
5047 * @vsi_handle: software VSI handle
5054 ice_sched_validate_vsi_srl_node(struct ice_port_info *pi, u16 vsi_handle)
5059 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
5072 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
5098 * @vsi_handle: software VSI handle
5109 ice_sched_set_save_vsi_srl_node_bw(struct ice_port_info *pi, u16 vsi_handle,
5121 status = ice_sched_save_vsi_bw(pi, vsi_handle, tc, rl_type, bw);
5129 * @vsi_handle: software VSI handle
5141 ice_sched_set_vsi_node_srl_per_tc(struct ice_port_info *pi, u16 vsi_handle,
5152 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
5166 status = ice_sched_set_save_vsi_srl_node_bw(pi, vsi_handle, tc,
5172 status = ice_sched_set_save_vsi_srl_node_bw(pi, vsi_handle, tc,
5178 return ice_sched_set_save_vsi_srl_node_bw(pi, vsi_handle, tc, cfg_node,
5185 * @vsi_handle: software VSI handle
5195 ice_sched_set_vsi_bw_shared_lmt(struct ice_port_info *pi, u16 vsi_handle,
5204 if (!ice_is_vsi_valid(pi->hw, vsi_handle))
5208 status = ice_sched_validate_vsi_srl_node(pi, vsi_handle);
5219 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
5223 status = ice_sched_set_vsi_node_srl_per_tc(pi, vsi_handle, tc,
5845 * @vsi_handle: software VSI handle
5852 ice_sched_replay_vsi_bw(struct ice_hw *hw, u16 vsi_handle,
5862 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
5871 vsi_node = ice_sched_get_vsi_node(pi, tc_node, vsi_handle);
5885 * @vsi_handle: software VSI handle
5892 ice_sched_replay_vsi_agg(struct ice_hw *hw, u16 vsi_handle)
5901 if (!ice_is_vsi_valid(hw, vsi_handle))
5903 agg_info = ice_get_vsi_agg_info(hw, vsi_handle);
5906 agg_vsi_info = ice_get_agg_vsi_info(agg_info, vsi_handle);
5911 /* Replay aggregator node associated to vsi_handle */
5924 /* Move this VSI (vsi_handle) to above aggregator */
5925 status = ice_sched_assoc_vsi_to_agg(pi, agg_info->agg_id, vsi_handle,
5930 return ice_sched_replay_vsi_bw(hw, vsi_handle,
5937 * @vsi_handle: software VSI handle
5942 int ice_replay_vsi_agg(struct ice_hw *hw, u16 vsi_handle)
5948 status = ice_sched_replay_vsi_agg(hw, vsi_handle);