Home
last modified time | relevance | path

Searched refs:q_ctx (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/media/v4l2-core/
Dv4l2-mem2mem.c120 struct v4l2_m2m_queue_ctx *q_ctx; in v4l2_m2m_get_vq() local
122 q_ctx = get_queue_ctx(m2m_ctx, type); in v4l2_m2m_get_vq()
123 if (!q_ctx) in v4l2_m2m_get_vq()
126 return &q_ctx->q; in v4l2_m2m_get_vq()
130 struct vb2_v4l2_buffer *v4l2_m2m_next_buf(struct v4l2_m2m_queue_ctx *q_ctx) in v4l2_m2m_next_buf() argument
135 spin_lock_irqsave(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
137 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_next_buf()
138 spin_unlock_irqrestore(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
142 b = list_first_entry(&q_ctx->rdy_queue, struct v4l2_m2m_buffer, list); in v4l2_m2m_next_buf()
143 spin_unlock_irqrestore(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
[all …]
/Linux-v5.4/include/media/
Dv4l2-mem2mem.h424 struct vb2_v4l2_buffer *v4l2_m2m_next_buf(struct v4l2_m2m_queue_ctx *q_ctx);
455 struct vb2_v4l2_buffer *v4l2_m2m_last_buf(struct v4l2_m2m_queue_ctx *q_ctx);
550 struct vb2_v4l2_buffer *v4l2_m2m_buf_remove(struct v4l2_m2m_queue_ctx *q_ctx);
583 void v4l2_m2m_buf_remove_by_buf(struct v4l2_m2m_queue_ctx *q_ctx,
613 v4l2_m2m_buf_remove_by_idx(struct v4l2_m2m_queue_ctx *q_ctx, unsigned int idx);
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_sched.c526 struct ice_q_ctx *q_ctx; in ice_alloc_lan_q_ctx() local
535 sizeof(*q_ctx), in ice_alloc_lan_q_ctx()
546 q_ctx = devm_kcalloc(ice_hw_to_dev(hw), new_numqs, in ice_alloc_lan_q_ctx()
547 sizeof(*q_ctx), GFP_KERNEL); in ice_alloc_lan_q_ctx()
548 if (!q_ctx) in ice_alloc_lan_q_ctx()
550 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
551 prev_num * sizeof(*q_ctx)); in ice_alloc_lan_q_ctx()
553 vsi_ctx->lan_q_ctx[tc] = q_ctx; in ice_alloc_lan_q_ctx()
Dice_common.c3155 struct ice_q_ctx *q_ctx; in ice_get_lan_q_ctx() local
3164 q_ctx = vsi->lan_q_ctx[tc]; in ice_get_lan_q_ctx()
3165 return &q_ctx[q_handle]; in ice_get_lan_q_ctx()
3188 struct ice_q_ctx *q_ctx; in ice_ena_vsi_txq() local
3205 q_ctx = ice_get_lan_q_ctx(hw, vsi_handle, tc, q_handle); in ice_ena_vsi_txq()
3206 if (!q_ctx) { in ice_ena_vsi_txq()
3247 q_ctx->q_handle = q_handle; in ice_ena_vsi_txq()
3280 struct ice_q_ctx *q_ctx; in ice_dis_vsi_txq() local
3305 q_ctx = ice_get_lan_q_ctx(pi->hw, vsi_handle, tc, q_handles[i]); in ice_dis_vsi_txq()
3306 if (!q_ctx) { in ice_dis_vsi_txq()
[all …]