Lines Matching refs:q_ctx
557 struct ice_q_ctx *q_ctx; in ice_alloc_lan_q_ctx() local
565 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
566 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
567 if (!q_ctx) in ice_alloc_lan_q_ctx()
571 q_ctx[idx].q_handle = ICE_INVAL_Q_HANDLE; in ice_alloc_lan_q_ctx()
572 q_ctx[idx].q_teid = ICE_INVAL_TEID; in ice_alloc_lan_q_ctx()
575 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
583 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
584 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
585 if (!q_ctx) in ice_alloc_lan_q_ctx()
588 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
589 prev_num * sizeof(*q_ctx)); in ice_alloc_lan_q_ctx()
593 q_ctx[idx].q_handle = ICE_INVAL_Q_HANDLE; in ice_alloc_lan_q_ctx()
594 q_ctx[idx].q_teid = ICE_INVAL_TEID; in ice_alloc_lan_q_ctx()
597 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
614 struct ice_q_ctx *q_ctx; in ice_alloc_rdma_q_ctx() local
623 sizeof(*q_ctx), in ice_alloc_rdma_q_ctx()
634 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_rdma_q_ctx()
635 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_rdma_q_ctx()
636 if (!q_ctx) in ice_alloc_rdma_q_ctx()
638 memcpy(q_ctx, vsi_ctx->rdma_q_ctx[tc], in ice_alloc_rdma_q_ctx()
639 prev_num * sizeof(*q_ctx)); in ice_alloc_rdma_q_ctx()
641 vsi_ctx->rdma_q_ctx[tc] = q_ctx; in ice_alloc_rdma_q_ctx()
3774 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
3778 ice_set_clear_cir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3781 ice_set_clear_eir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3784 ice_set_clear_shared_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3808 struct ice_q_ctx *q_ctx; in ice_sched_set_q_bw_lmt() local
3814 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handle); in ice_sched_set_q_bw_lmt()
3815 if (!q_ctx) in ice_sched_set_q_bw_lmt()
3817 node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_set_q_bw_lmt()
3848 status = ice_sched_save_q_bw(q_ctx, rl_type, bw); in ice_sched_set_q_bw_lmt()
4323 int ice_sched_replay_q_bw(struct ice_port_info *pi, struct ice_q_ctx *q_ctx) in ice_sched_replay_q_bw() argument
4328 q_node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_replay_q_bw()
4331 return ice_sched_replay_node_bw(pi->hw, q_node, &q_ctx->bw_t_info); in ice_sched_replay_q_bw()