Lines Matching refs:q_ctx

559 	struct ice_q_ctx *q_ctx;
567 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs,
568 sizeof(*q_ctx), GFP_KERNEL);
569 if (!q_ctx)
573 q_ctx[idx].q_handle = ICE_INVAL_Q_HANDLE;
574 q_ctx[idx].q_teid = ICE_INVAL_TEID;
577 vsi_ctx->lan_q_ctx[tc] = q_ctx;
585 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs,
586 sizeof(*q_ctx), GFP_KERNEL);
587 if (!q_ctx)
590 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc],
591 prev_num * sizeof(*q_ctx));
595 q_ctx[idx].q_handle = ICE_INVAL_Q_HANDLE;
596 q_ctx[idx].q_teid = ICE_INVAL_TEID;
599 vsi_ctx->lan_q_ctx[tc] = q_ctx;
616 struct ice_q_ctx *q_ctx;
625 sizeof(*q_ctx),
636 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs,
637 sizeof(*q_ctx), GFP_KERNEL);
638 if (!q_ctx)
640 memcpy(q_ctx, vsi_ctx->rdma_q_ctx[tc],
641 prev_num * sizeof(*q_ctx));
643 vsi_ctx->rdma_q_ctx[tc] = q_ctx;
3769 * @q_ctx: queue context structure
3776 ice_sched_save_q_bw(struct ice_q_ctx *q_ctx, enum ice_rl_type rl_type, u32 bw)
3780 ice_set_clear_cir_bw(&q_ctx->bw_t_info, bw);
3783 ice_set_clear_eir_bw(&q_ctx->bw_t_info, bw);
3786 ice_set_clear_shared_bw(&q_ctx->bw_t_info, bw);
3810 struct ice_q_ctx *q_ctx;
3816 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handle);
3817 if (!q_ctx)
3819 node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid);
3850 status = ice_sched_save_q_bw(q_ctx, rl_type, bw);
4320 * @q_ctx: queue context structure
4325 int ice_sched_replay_q_bw(struct ice_port_info *pi, struct ice_q_ctx *q_ctx)
4330 q_node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid);
4333 return ice_sched_replay_node_bw(pi->hw, q_node, &q_ctx->bw_t_info);