Lines Matching refs:q_ctx

571 	struct ice_q_ctx *q_ctx;  in ice_alloc_lan_q_ctx()  local
579 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
580 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
581 if (!q_ctx) in ice_alloc_lan_q_ctx()
585 q_ctx[idx].q_handle = ICE_INVAL_Q_HANDLE; in ice_alloc_lan_q_ctx()
586 q_ctx[idx].q_teid = ICE_INVAL_TEID; in ice_alloc_lan_q_ctx()
589 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
597 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
598 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
599 if (!q_ctx) in ice_alloc_lan_q_ctx()
602 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
603 prev_num * sizeof(*q_ctx)); in ice_alloc_lan_q_ctx()
607 q_ctx[idx].q_handle = ICE_INVAL_Q_HANDLE; in ice_alloc_lan_q_ctx()
608 q_ctx[idx].q_teid = ICE_INVAL_TEID; in ice_alloc_lan_q_ctx()
611 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
628 struct ice_q_ctx *q_ctx; in ice_alloc_rdma_q_ctx() local
637 sizeof(*q_ctx), in ice_alloc_rdma_q_ctx()
648 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_rdma_q_ctx()
649 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_rdma_q_ctx()
650 if (!q_ctx) in ice_alloc_rdma_q_ctx()
652 memcpy(q_ctx, vsi_ctx->rdma_q_ctx[tc], in ice_alloc_rdma_q_ctx()
653 prev_num * sizeof(*q_ctx)); in ice_alloc_rdma_q_ctx()
655 vsi_ctx->rdma_q_ctx[tc] = q_ctx; in ice_alloc_rdma_q_ctx()
3796 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
3800 ice_set_clear_cir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3803 ice_set_clear_eir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3806 ice_set_clear_shared_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3830 struct ice_q_ctx *q_ctx; in ice_sched_set_q_bw_lmt() local
3836 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handle); in ice_sched_set_q_bw_lmt()
3837 if (!q_ctx) in ice_sched_set_q_bw_lmt()
3839 node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_set_q_bw_lmt()
3870 status = ice_sched_save_q_bw(q_ctx, rl_type, bw); in ice_sched_set_q_bw_lmt()
4345 int ice_sched_replay_q_bw(struct ice_port_info *pi, struct ice_q_ctx *q_ctx) in ice_sched_replay_q_bw() argument
4350 q_node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_replay_q_bw()
4353 return ice_sched_replay_node_bw(pi->hw, q_node, &q_ctx->bw_t_info); in ice_sched_replay_q_bw()