Home
last modified time | relevance | path

Searched refs:hw_idx (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec_pm.c108 static void mtk_vcodec_dec_enable_irq(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) in mtk_vcodec_dec_enable_irq() argument
112 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_enable_irq()
116 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_enable_irq()
126 static void mtk_vcodec_dec_disable_irq(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) in mtk_vcodec_dec_disable_irq() argument
130 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_disable_irq()
134 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_disable_irq()
173 int hw_idx) in mtk_vcodec_dec_get_pm() argument
177 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) in mtk_vcodec_dec_get_pm()
181 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_dec_get_pm()
193 int hw_idx) in mtk_vcodec_dec_child_dev_on() argument
[all …]
Dmtk_vcodec_dec_hw.c41 enum mtk_vdec_hw_id hw_idx; in mtk_vdec_hw_prob_done() local
54 hw_idx = (enum mtk_vdec_hw_id)(uintptr_t)of_id->data; in mtk_vdec_hw_prob_done()
55 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) { in mtk_vdec_hw_prob_done()
56 dev_err(&pdev->dev, "vdec %d is not ready", hw_idx); in mtk_vdec_hw_prob_done()
73 ctx = mtk_vcodec_get_curr_ctx(dev->main_dev, dev->hw_idx); in mtk_vdec_hw_irq_handler()
91 wake_up_dec_ctx(ctx, MTK_INST_IRQ_RECEIVED, dev->hw_idx); in mtk_vdec_hw_irq_handler()
126 int hw_idx; in mtk_vdec_hw_probe() local
159 hw_idx = (enum mtk_vdec_hw_id)(uintptr_t)of_id->data; in mtk_vdec_hw_probe()
160 if (hw_idx >= MTK_VDEC_HW_MAX) { in mtk_vdec_hw_probe()
161 dev_err(dev, "Hardware index %d not correct.\n", hw_idx); in mtk_vdec_hw_probe()
[all …]
Dmtk_vcodec_dec_hw.h21 #define IS_SUPPORT_VDEC_HW_IRQ(hw_idx) ((hw_idx) != MTK_VDEC_LAT_SOC) argument
56 int hw_idx; member
Dmtk_vcodec_dec_pm.h14 void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
15 void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/common/
Dmtk_vcodec_util.c116 void *mtk_vcodec_get_hw_dev(struct mtk_vcodec_dec_dev *dev, int hw_idx) in mtk_vcodec_get_hw_dev() argument
118 if (hw_idx >= MTK_VDEC_HW_MAX || hw_idx < 0 || !dev->subdev_dev[hw_idx]) { in mtk_vcodec_get_hw_dev()
119 dev_err(&dev->plat_dev->dev, "hw idx is out of range:%d", hw_idx); in mtk_vcodec_get_hw_dev()
123 return dev->subdev_dev[hw_idx]; in mtk_vcodec_get_hw_dev()
128 struct mtk_vcodec_dec_ctx *ctx, int hw_idx) in mtk_vcodec_set_curr_ctx() argument
135 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_set_curr_ctx()
150 unsigned int hw_idx) in mtk_vcodec_get_curr_ctx() argument
158 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_get_curr_ctx()
Dmtk_vcodec_util.h70 struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
72 unsigned int hw_idx);
73 void *mtk_vcodec_get_hw_dev(struct mtk_vcodec_dec_dev *dev, int hw_idx);
/linux-6.6.21/drivers/crypto/caam/
Dregs.h220 static inline void jr_outentry_get(void *outring, int hw_idx, dma_addr_t *desc, in jr_outentry_get() argument
230 *desc = outentry[hw_idx].desc; in jr_outentry_get()
231 *jrstatus = outentry[hw_idx].jrstatus; in jr_outentry_get()
238 *desc = outentry[hw_idx].desc; in jr_outentry_get()
239 *jrstatus = outentry[hw_idx].jrstatus; in jr_outentry_get()
245 static inline dma_addr_t jr_outentry_desc(void *outring, int hw_idx) in jr_outentry_desc() argument
250 jr_outentry_get(outring, hw_idx, &desc, &unused); in jr_outentry_desc()
255 static inline u32 jr_outentry_jrstatus(void *outring, int hw_idx) in jr_outentry_jrstatus() argument
260 jr_outentry_get(outring, hw_idx, &unused, &jrstatus); in jr_outentry_jrstatus()
265 static inline void jr_inpentry_set(void *inpring, int hw_idx, dma_addr_t val) in jr_inpentry_set() argument
[all …]
Djr.c265 int hw_idx, sw_idx, i, head, tail; in caam_jr_dequeue() local
280 hw_idx = jrp->out_ring_read_index; in caam_jr_dequeue()
285 if (jr_outentry_desc(jrp->outring, hw_idx) == in caam_jr_dequeue()
295 hw_idx)), in caam_jr_dequeue()
307 hw_idx)); in caam_jr_dequeue()
/linux-6.6.21/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_ppm.h246 u32 hw_idx = (ddp_tag >> PPOD_IDX_SHIFT) & in cxgbi_ppm_ddp_tag_get_idx() local
249 return hw_idx - ppm->base_idx; in cxgbi_ppm_ddp_tag_get_idx()
252 static inline u32 cxgbi_ppm_make_ddp_tag(unsigned int hw_idx, in cxgbi_ppm_make_ddp_tag() argument
255 return (hw_idx << PPOD_IDX_SHIFT) | ((u32)color); in cxgbi_ppm_make_ddp_tag()
/linux-6.6.21/drivers/clk/ingenic/
Dcgu.c338 u8 i, hw_idx, idx = 0; in ingenic_clk_get_parent() local
342 hw_idx = (reg >> clk_info->mux.shift) & in ingenic_clk_get_parent()
349 for (i = 0; i < hw_idx; i++) { in ingenic_clk_get_parent()
364 u8 curr_idx, hw_idx, num_poss; in ingenic_clk_set_parent() local
374 hw_idx = curr_idx = 0; in ingenic_clk_set_parent()
376 for (; hw_idx < num_poss; hw_idx++) { in ingenic_clk_set_parent()
377 if (clk_info->parents[hw_idx] == -1) in ingenic_clk_set_parent()
395 reg |= hw_idx << clk_info->mux.shift; in ingenic_clk_set_parent()
/linux-6.6.21/arch/x86/kvm/vmx/
Dpmu_intel.c751 int bit, hw_idx; in intel_pmu_cross_mapped_check() local
765 hw_idx = pmc->perf_event->hw.idx; in intel_pmu_cross_mapped_check()
766 if (hw_idx != pmc->idx && hw_idx > -1) in intel_pmu_cross_mapped_check()
767 pmu->host_cross_mapped_mask |= BIT_ULL(hw_idx); in intel_pmu_cross_mapped_check()
/linux-6.6.21/drivers/net/wireless/ti/wl12xx/
Dwl12xx.h96 u8 hw_idx; member
/linux-6.6.21/tools/perf/util/
Dbranch.h49 u64 hw_idx; member
Dmachine.c2703 cur_base = max_lbr - cur_stack->nr + cur_stack->hw_idx + 1; in has_stitched_lbr()
2705 distance = (prev_stack->hw_idx > cur_base) ? (prev_stack->hw_idx - cur_base) : in has_stitched_lbr()
2706 (max_lbr + prev_stack->hw_idx - cur_base); in has_stitched_lbr()
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/
Denetc.h185 int hw_idx = i; in enetc_rxbd() local
189 hw_idx = 2 * i; in enetc_rxbd()
191 return &(((union enetc_rx_bd *)rx_ring->bd_base)[hw_idx]); in enetc_rxbd()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_action.c1890 int ret, i, hw_idx = 0; in dr_actions_convert_modify_header() local
1953 if ((hw_idx % 2) && (hw_field == hw_dst_action_info->hw_field || in dr_actions_convert_modify_header()
1959 hw_idx++; in dr_actions_convert_modify_header()
1960 if (hw_idx >= max_hw_actions) { in dr_actions_convert_modify_header()
1967 hw_actions[hw_idx] = hw_action; in dr_actions_convert_modify_header()
1968 hw_idx++; in dr_actions_convert_modify_header()
1972 if (!hw_idx) in dr_actions_convert_modify_header()
1973 hw_idx++; in dr_actions_convert_modify_header()
1975 *num_hw_actions = hw_idx; in dr_actions_convert_modify_header()
/linux-6.6.21/arch/x86/events/intel/
Dlbr.c735 cpuc->lbr_stack.hw_idx = tos; in intel_pmu_lbr_read_32()
830 cpuc->lbr_stack.hw_idx = tos; in intel_pmu_lbr_read_64()
1193 cpuc->lbr_stack.hw_idx = -1ULL; in intel_pmu_store_pebs_lbrs()
1195 cpuc->lbr_stack.hw_idx = intel_pmu_lbr_tos(); in intel_pmu_store_pebs_lbrs()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dmt76x02_usb_core.c70 int pid, len = tx_info->skb->len, ep = q2ep(dev->mphy.q_tx[qid]->hw_idx); in mt76x02u_tx_prepare_skb()
Dusb.c875 mt76u_fill_bulk_urb(dev, USB_DIR_OUT, q2ep(q->hw_idx), in mt76u_tx_queue_skb()
945 q->hw_idx = mt76u_ac_to_hwq(dev, i); in mt76u_alloc_tx()
Dmt76x02_util.c496 qid = dev->mphy.q_tx[queue]->hw_idx; in mt76x02_conf_tx()
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dcnic.h187 u16 (*hw_idx)(u16); member
/linux-6.6.21/arch/x86/events/amd/
Dlbr.c215 cpuc->lbr_stack.hw_idx = 0; in amd_pmu_lbr_read()
/linux-6.6.21/tools/perf/tests/
Dsample-parsing.c117 COMP(branch_stack->hw_idx); in samples_same()
/linux-6.6.21/drivers/net/ethernet/atheros/atlx/
Datl1.h606 u16 hw_idx; /* hardware index */ member
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/
Dmt7615.h445 return MT_INT_TX_DONE(dev->mt76.q_mcu[MT_MCUQ_WM]->hw_idx); in mt7615_tx_mcu_int_mask()

12