/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec_pm.c | 108 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() 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() 172 mtk_vcodec_dec_get_pm(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) mtk_vcodec_dec_get_pm() argument 192 mtk_vcodec_dec_child_dev_on(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) mtk_vcodec_dec_child_dev_on() argument 212 mtk_vcodec_dec_child_dev_off(struct mtk_vcodec_dec_dev *vdec_dev, int hw_idx) mtk_vcodec_dec_child_dev_off() argument 232 mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx) mtk_vcodec_dec_enable_hardware() argument 248 mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx) mtk_vcodec_dec_disable_hardware() argument [all...] |
H A D | mtk_vcodec_dec_hw.c | 41 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...] |
H A D | mtk_vcodec_dec_hw.h | 21 #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
|
H A D | mtk_vcodec_dec_pm.h | 14 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);
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_util.c | 116 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() 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() 158 subdev_dev = mtk_vcodec_get_hw_dev(vdec_dev, hw_idx); in mtk_vcodec_get_curr_ctx() 127 mtk_vcodec_set_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, struct mtk_vcodec_dec_ctx *ctx, int hw_idx) mtk_vcodec_set_curr_ctx() argument 149 mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, unsigned int hw_idx) mtk_vcodec_get_curr_ctx() argument [all...] |
H A D | mtk_vcodec_util.h | 70 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);
|
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | regs.h | 220 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_ argument [all...] |
H A D | jr.c | 206 int hw_idx, sw_idx, i, head, tail; in caam_jr_dequeue() local 220 hw_idx = jrp->out_ring_read_index; in caam_jr_dequeue() 225 if (jr_outentry_desc(jrp->outring, hw_idx) == in caam_jr_dequeue() 235 hw_idx)), in caam_jr_dequeue() 247 hw_idx)); in caam_jr_dequeue()
|
/kernel/linux/linux-6.6/drivers/crypto/caam/ |
H A D | regs.h | 220 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_ argument [all...] |
H A D | jr.c | 265 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_trace.h | 171 TP_PROTO(uint32_t drm_id, enum dpu_intr_idx intr_idx, int hw_idx, 173 TP_ARGS(drm_id, intr_idx, hw_idx, irq_idx), 177 __field( int, hw_idx ) 183 __entry->hw_idx = hw_idx; 187 __entry->drm_id, __entry->intr_idx, __entry->hw_idx, 191 TP_PROTO(uint32_t drm_id, enum dpu_intr_idx intr_idx, int hw_idx, 193 TP_ARGS(drm_id, intr_idx, hw_idx, irq_idx) 196 TP_PROTO(uint32_t drm_id, enum dpu_intr_idx intr_idx, int hw_idx, 198 TP_ARGS(drm_id, intr_idx, hw_idx, irq_id [all...] |
H A D | dpu_encoder.c | 279 DRMID(phys_enc->parent), intr_idx, irq->hw_idx, in dpu_encoder_helper_wait_for_irq() 286 DRMID(phys_enc->parent), intr_idx, irq->hw_idx, in dpu_encoder_helper_wait_for_irq() 292 DRMID(phys_enc->parent), intr_idx, irq->hw_idx, in dpu_encoder_helper_wait_for_irq() 298 irq->hw_idx, in dpu_encoder_helper_wait_for_irq() 310 irq->hw_idx, irq->irq_idx, in dpu_encoder_helper_wait_for_irq() 322 irq->hw_idx, irq->irq_idx, in dpu_encoder_helper_wait_for_irq() 329 intr_idx, irq->hw_idx, irq->irq_idx, in dpu_encoder_helper_wait_for_irq() 357 irq->intr_type, irq->hw_idx); in dpu_encoder_helper_register_irq() 378 DRMID(phys_enc->parent), intr_idx, irq->hw_idx, in dpu_encoder_helper_register_irq() 387 irq->hw_idx, ir in dpu_encoder_helper_register_irq() [all...] |
H A D | dpu_encoder_phys_cmd.c | 148 irq->hw_idx = phys_enc->hw_ctl->idx; in _dpu_encoder_phys_cmd_setup_irq_hw_idx() 152 irq->hw_idx = phys_enc->hw_pp->idx; in _dpu_encoder_phys_cmd_setup_irq_hw_idx() 156 irq->hw_idx = phys_enc->hw_pp->idx; in _dpu_encoder_phys_cmd_setup_irq_hw_idx() 160 irq->hw_idx = phys_enc->intf_idx; in _dpu_encoder_phys_cmd_setup_irq_hw_idx() 740 irq->hw_idx = -EINVAL; in dpu_encoder_phys_cmd_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_ppm.h | 246 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_ppm.h | 246 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()
|
/kernel/linux/linux-5.10/drivers/clk/ingenic/ |
H A D | cgu.c | 297 u8 i, hw_idx, idx = 0; in ingenic_clk_get_parent() local 301 hw_idx = (reg >> clk_info->mux.shift) & in ingenic_clk_get_parent() 308 for (i = 0; i < hw_idx; i++) { in ingenic_clk_get_parent() 323 u8 curr_idx, hw_idx, num_poss; in ingenic_clk_set_parent() local 333 hw_idx = curr_idx = 0; in ingenic_clk_set_parent() 335 for (; hw_idx < num_poss; hw_idx++) { in ingenic_clk_set_parent() 336 if (clk_info->parents[hw_idx] == -1) in ingenic_clk_set_parent() 354 reg |= hw_idx << clk_info->mux.shift; in ingenic_clk_set_parent()
|
/kernel/linux/linux-6.6/drivers/clk/ingenic/ |
H A D | cgu.c | 338 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()
|
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/ |
H A D | pmu_intel.c | 751 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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | branch.h | 48 u64 hw_idx; member 53 * The hw_idx is only available when PERF_SAMPLE_BRANCH_HW_INDEX is applied. 59 * Check whether the hw_idx is available,
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl12xx/ |
H A D | wl12xx.h | 96 u8 hw_idx; member
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl12xx/ |
H A D | wl12xx.h | 96 u8 hw_idx; member
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | branch.h | 49 u64 hw_idx; member 54 * The hw_idx is only available when PERF_SAMPLE_BRANCH_HW_INDEX is applied. 60 * Check whether the hw_idx is available,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc.h | 114 int hw_idx = i; in enetc_rxbd() local 118 hw_idx = 2 * i; in enetc_rxbd() 120 return &(((union enetc_rx_bd *)rx_ring->bd_base)[hw_idx]); in enetc_rxbd()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc.h | 185 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_action.c | 1890 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()
|