Lines Matching refs:q_ctx
574 struct ice_q_ctx *q_ctx; in ice_alloc_lan_q_ctx() local
583 sizeof(*q_ctx), in ice_alloc_lan_q_ctx()
594 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
595 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
596 if (!q_ctx) in ice_alloc_lan_q_ctx()
598 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
599 prev_num * sizeof(*q_ctx)); in ice_alloc_lan_q_ctx()
601 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
618 struct ice_q_ctx *q_ctx; in ice_alloc_rdma_q_ctx() local
627 sizeof(*q_ctx), in ice_alloc_rdma_q_ctx()
638 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_rdma_q_ctx()
639 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_rdma_q_ctx()
640 if (!q_ctx) in ice_alloc_rdma_q_ctx()
642 memcpy(q_ctx, vsi_ctx->rdma_q_ctx[tc], in ice_alloc_rdma_q_ctx()
643 prev_num * sizeof(*q_ctx)); in ice_alloc_rdma_q_ctx()
645 vsi_ctx->rdma_q_ctx[tc] = q_ctx; in ice_alloc_rdma_q_ctx()
3786 ice_sched_save_q_bw(struct ice_q_ctx *q_ctx, enum ice_rl_type rl_type, u32 bw) in ice_sched_save_q_bw() argument
3790 ice_set_clear_cir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3793 ice_set_clear_eir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3796 ice_set_clear_shared_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3820 struct ice_q_ctx *q_ctx; in ice_sched_set_q_bw_lmt() local
3826 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handle); in ice_sched_set_q_bw_lmt()
3827 if (!q_ctx) in ice_sched_set_q_bw_lmt()
3829 node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_set_q_bw_lmt()
3860 status = ice_sched_save_q_bw(q_ctx, rl_type, bw); in ice_sched_set_q_bw_lmt()
4335 int ice_sched_replay_q_bw(struct ice_port_info *pi, struct ice_q_ctx *q_ctx) in ice_sched_replay_q_bw() argument
4340 q_node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_replay_q_bw()
4343 return ice_sched_replay_node_bw(pi->hw, q_node, &q_ctx->bw_t_info); in ice_sched_replay_q_bw()