Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_pm.c173 int hw_idx) in mtk_vcodec_dec_get_pm() argument
193 int hw_idx) in mtk_vcodec_dec_child_dev_on() argument
197 pm = mtk_vcodec_dec_get_pm(vdec_dev, hw_idx); in mtk_vcodec_dec_child_dev_on()
203 if (hw_idx == MTK_VDEC_LAT0) { in mtk_vcodec_dec_child_dev_on()
213 int hw_idx) in mtk_vcodec_dec_child_dev_off() argument
223 if (hw_idx == MTK_VDEC_LAT0) { in mtk_vcodec_dec_child_dev_off()
234 mutex_lock(&ctx->dev->dec_mutex[hw_idx]); in mtk_vcodec_dec_enable_hardware()
237 hw_idx == MTK_VDEC_CORE) in mtk_vcodec_dec_enable_hardware()
241 mtk_vcodec_dec_enable_irq(ctx->dev, hw_idx); in mtk_vcodec_dec_enable_hardware()
257 hw_idx == MTK_VDEC_CORE) in mtk_vcodec_dec_disable_hardware()
[all …]
H A 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()
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()
165 main_dev->subdev_dev[hw_idx] = subdev_dev; in mtk_vdec_hw_probe()
166 subdev_dev->hw_idx = hw_idx; in mtk_vdec_hw_probe()
169 set_bit(subdev_dev->hw_idx, main_dev->subdev_bitmap); in mtk_vdec_hw_probe()
[all …]
H A 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
H A 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);
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/
H A 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()
H A 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);
/openbmc/linux/drivers/crypto/caam/
H A Dregs.h230 *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
270 inpentry[hw_idx] = val; in jr_inpentry_set()
[all …]
H A 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()
/openbmc/linux/drivers/net/ethernet/chelsio/libcxgb/
H A 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()
/openbmc/linux/drivers/clk/ingenic/
H A 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()
/openbmc/linux/arch/x86/kvm/vmx/
H A Dpmu_intel.c739 int bit, hw_idx; in intel_pmu_cross_mapped_check() local
753 hw_idx = pmc->perf_event->hw.idx; in intel_pmu_cross_mapped_check()
754 if (hw_idx != pmc->idx && hw_idx > -1) in intel_pmu_cross_mapped_check()
755 pmu->host_cross_mapped_mask |= BIT_ULL(hw_idx); in intel_pmu_cross_mapped_check()
/openbmc/linux/drivers/net/wireless/ti/wl12xx/
H A Dwl12xx.h96 u8 hw_idx; member
/openbmc/linux/tools/perf/util/
H A Dbranch.h49 u64 hw_idx; member
H A Dmachine.c2707 cur_base = max_lbr - cur_stack->nr + cur_stack->hw_idx + 1; in has_stitched_lbr()
2709 distance = (prev_stack->hw_idx > cur_base) ? (prev_stack->hw_idx - cur_base) : in has_stitched_lbr()
2710 (max_lbr + prev_stack->hw_idx - cur_base); in has_stitched_lbr()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A 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()
/openbmc/linux/arch/x86/events/intel/
H A 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()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A 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()
H A 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()
H A Dmt76x02_util.c496 qid = dev->mphy.q_tx[queue]->hw_idx; in mt76x02_conf_tx()
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dcnic.h187 u16 (*hw_idx)(u16); member
/openbmc/linux/tools/perf/tests/
H A Dsample-parsing.c117 COMP(branch_stack->hw_idx); in samples_same()
/openbmc/linux/arch/x86/events/amd/
H A Dlbr.c217 cpuc->lbr_stack.hw_idx = 0; in amd_pmu_lbr_read()
/openbmc/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.h606 u16 hw_idx; /* hardware index */ member
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmt7615.h445 return MT_INT_TX_DONE(dev->mt76.q_mcu[MT_MCUQ_WM]->hw_idx); in mt7615_tx_mcu_int_mask()

12