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

12

/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
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);
H A Dmtk_vcodec_dec_hw.h21 #define IS_SUPPORT_VDEC_HW_IRQ(hw_idx) ((hw_idx) != MTK_VDEC_LAT_SOC)
45 * @hw_idx : each hardware index
56 int hw_idx; member in struct:mtk_vdec_hw_dev
H A Dmtk_vcodec_dec_pm.c108 static void mtk_vcodec_dec_enable_irq(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) argument
112 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap))
116 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);
126 static void mtk_vcodec_dec_disable_irq(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) argument
130 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap))
134 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);
173 int hw_idx)
177 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap))
181 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);
193 int hw_idx)
172 mtk_vcodec_dec_get_pm(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) argument
192 mtk_vcodec_dec_child_dev_on(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) argument
212 mtk_vcodec_dec_child_dev_off(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) argument
232 mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx) argument
248 mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx) argument
[all...]
H A Dmtk_vcodec_dec_hw.c41 enum mtk_vdec_hw_id hw_idx; local
54 hw_idx = (enum mtk_vdec_hw_id)(uintptr_t)of_id->data;
55 if (!test_bit(hw_idx, vdec_dev->subdev_bitmap)) {
56 dev_err(&pdev->dev, "vdec %d is not ready", hw_idx);
73 ctx = mtk_vcodec_get_curr_ctx(dev->main_dev, dev->hw_idx);
91 wake_up_dec_ctx(ctx, MTK_INST_IRQ_RECEIVED, dev->hw_idx);
126 int hw_idx; local
159 hw_idx = (enum mtk_vdec_hw_id)(uintptr_t)of_id->data;
160 if (hw_idx >= MTK_VDEC_HW_MAX) {
161 dev_err(dev, "Hardware index %d not correct.\n", hw_idx);
[all...]
/linux-master/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) argument
118 if (hw_idx >= MTK_VDEC_HW_MAX || hw_idx < 0 || !dev->subdev_dev[hw_idx]) {
119 dev_err(&dev->plat_dev->dev, "hw idx is out of range:%d", hw_idx);
123 return dev->subdev_dev[hw_idx];
128 struct mtk_vcodec_dec_ctx *ctx, int hw_idx)
135 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);
150 unsigned int hw_idx)
158 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx);
127 mtk_vcodec_set_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, struct mtk_vcodec_dec_ctx *ctx, int hw_idx) argument
149 mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, unsigned int hw_idx) argument
[all...]
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);
/linux-master/drivers/net/wireless/ti/wl12xx/
H A Dwl12xx.h96 u8 hw_idx; member in struct:wl12xx_clock
/linux-master/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_ppm.h246 u32 hw_idx = (ddp_tag >> PPOD_IDX_SHIFT) & local
249 return hw_idx - ppm->base_idx;
252 static inline u32 cxgbi_ppm_make_ddp_tag(unsigned int hw_idx, argument
255 return (hw_idx << PPOD_IDX_SHIFT) | ((u32)color);
/linux-master/tools/perf/util/
H A Dbranch.h49 u64 hw_idx; member in struct:branch_stack
54 * The hw_idx is only available when PERF_SAMPLE_BRANCH_HW_INDEX is applied.
60 * Check whether the hw_idx is available,
/linux-master/drivers/crypto/caam/
H A Dregs.h220 static inline void jr_outentry_get(void *outring, int hw_idx, dma_addr_t *desc, argument
230 *desc = outentry[hw_idx].desc;
231 *jrstatus = outentry[hw_idx].jrstatus;
238 *desc = outentry[hw_idx].desc;
239 *jrstatus = outentry[hw_idx].jrstatus;
245 static inline dma_addr_t jr_outentry_desc(void *outring, int hw_idx) argument
250 jr_outentry_get(outring, hw_idx, &desc, &unused);
255 static inline u32 jr_outentry_jrstatus(void *outring, int hw_idx) argument
260 jr_outentry_get(outring, hw_idx, &unused, &jrstatus);
265 static inline void jr_inpentry_set(void *inpring, int hw_idx, dma_addr_ argument
[all...]
H A Djr.c261 int hw_idx, sw_idx, i, head, tail; local
276 hw_idx = jrp->out_ring_read_index;
281 if (jr_outentry_desc(jrp->outring, hw_idx) ==
291 hw_idx)),
303 hw_idx));
/linux-master/drivers/clk/ingenic/
H A Dcgu.c338 u8 i, hw_idx, idx = 0; local
342 hw_idx = (reg >> clk_info->mux.shift) &
349 for (i = 0; i < hw_idx; i++) {
364 u8 curr_idx, hw_idx, num_poss; local
374 hw_idx = curr_idx = 0;
376 for (; hw_idx < num_poss; hw_idx++) {
377 if (clk_info->parents[hw_idx] == -1)
395 reg |= hw_idx << clk_info->mux.shift;
/linux-master/arch/x86/kvm/vmx/
H A Dpmu_intel.c705 int bit, hw_idx; local
716 hw_idx = pmc->perf_event->hw.idx;
717 if (hw_idx != pmc->idx && hw_idx > -1)
718 pmu->host_cross_mapped_mask |= BIT_ULL(hw_idx);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_dpll.c1128 u32 hw_idx; local
1134 hw_idx = parent->idx - pf->dplls.base_rclk_idx;
1135 if (hw_idx >= pf->dplls.num_inputs)
1138 if ((enable && p->state[hw_idx] == DPLL_PIN_STATE_CONNECTED) ||
1139 (!enable && p->state[hw_idx] == DPLL_PIN_STATE_DISCONNECTED)) {
1145 ret = ice_aq_set_phy_rec_clk_out(&pf->hw, hw_idx, enable,
1185 u32 hw_idx; local
1191 hw_idx = parent->idx - pf->dplls.base_rclk_idx;
1192 if (hw_idx >= pf->dplls.num_inputs)
1200 *state = p->state[hw_idx];
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_action.c1918 int ret, i, hw_idx = 0; local
1981 if ((hw_idx % 2) && (hw_field == hw_dst_action_info->hw_field ||
1987 hw_idx++;
1988 if (hw_idx >= max_hw_actions) {
1995 hw_actions[hw_idx] = hw_action;
1996 hw_idx++;
2000 if (!hw_idx)
2001 hw_idx++;
2003 *num_hw_actions = hw_idx;
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc.h185 int hw_idx = i; local
189 hw_idx = 2 * i;
191 return &(((union enetc_rx_bd *)rx_ring->bd_base)[hw_idx]);
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dusb.c923 q->hw_idx = lmac_queue_map[ac];
924 q->ep = q->hw_idx + 1;
929 q->hw_idx = mt76_ac_to_hwq(ac);
930 q->ep = qid == MT_TXQ_PSD ? MT_EP_OUT_HCCA : q->hw_idx + 1;
933 q->hw_idx = mt76_ac_to_hwq(ac);
934 q->ep = q->hw_idx + 1;
H A Dmt76x02_util.c496 qid = dev->mphy.q_tx[queue]->hw_idx;
/linux-master/drivers/net/ethernet/broadcom/
H A Dcnic.h187 u16 (*hw_idx)(u16); member in struct:kcq_info
/linux-master/arch/x86/events/amd/
H A Dlbr.c217 cpuc->lbr_stack.hw_idx = 0;
/linux-master/arch/x86/events/intel/
H A Dlbr.c754 cpuc->lbr_stack.hw_idx = tos;
849 cpuc->lbr_stack.hw_idx = tos;
1272 cpuc->lbr_stack.hw_idx = -1ULL;
1274 cpuc->lbr_stack.hw_idx = intel_pmu_lbr_tos();
/linux-master/tools/perf/tests/
H A Dsample-parsing.c117 COMP(branch_stack->hw_idx);
/linux-master/drivers/net/ethernet/atheros/atlx/
H A Datl1.h606 u16 hw_idx; /* hardware index */ member in struct:atl1_tpd_ring
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmt7615.h445 return MT_INT_TX_DONE(dev->mt76.q_mcu[MT_MCUQ_WM]->hw_idx);
/linux-master/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmac.c463 u8 qidx = q->hw_idx;
962 FIELD_PREP(MT_TXD0_Q_IDX, q->hw_idx);

Completed in 249 milliseconds

12