Lines Matching refs:q_ctx

565 	struct ice_q_ctx *q_ctx;  in ice_alloc_lan_q_ctx()  local
574 sizeof(*q_ctx), in ice_alloc_lan_q_ctx()
585 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
586 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
587 if (!q_ctx) in ice_alloc_lan_q_ctx()
589 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
590 prev_num * sizeof(*q_ctx)); in ice_alloc_lan_q_ctx()
592 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
609 struct ice_q_ctx *q_ctx; in ice_alloc_rdma_q_ctx() local
618 sizeof(*q_ctx), in ice_alloc_rdma_q_ctx()
629 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_rdma_q_ctx()
630 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_rdma_q_ctx()
631 if (!q_ctx) in ice_alloc_rdma_q_ctx()
633 memcpy(q_ctx, vsi_ctx->rdma_q_ctx[tc], in ice_alloc_rdma_q_ctx()
634 prev_num * sizeof(*q_ctx)); in ice_alloc_rdma_q_ctx()
636 vsi_ctx->rdma_q_ctx[tc] = q_ctx; in ice_alloc_rdma_q_ctx()
3703 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
3707 ice_set_clear_cir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3710 ice_set_clear_eir_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3713 ice_set_clear_shared_bw(&q_ctx->bw_t_info, bw); in ice_sched_save_q_bw()
3737 struct ice_q_ctx *q_ctx; in ice_sched_set_q_bw_lmt() local
3743 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handle); in ice_sched_set_q_bw_lmt()
3744 if (!q_ctx) in ice_sched_set_q_bw_lmt()
3746 node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_set_q_bw_lmt()
3777 status = ice_sched_save_q_bw(q_ctx, rl_type, bw); in ice_sched_set_q_bw_lmt()
4252 int ice_sched_replay_q_bw(struct ice_port_info *pi, struct ice_q_ctx *q_ctx) in ice_sched_replay_q_bw() argument
4257 q_node = ice_sched_find_node_by_teid(pi->root, q_ctx->q_teid); in ice_sched_replay_q_bw()
4260 return ice_sched_replay_node_bw(pi->hw, q_node, &q_ctx->bw_t_info); in ice_sched_replay_q_bw()