Home
last modified time | relevance | path

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

12

/linux/drivers/media/platform/mediatek/vcodec/decoder/
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()
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 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);
/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);
/linux/drivers/crypto/caam/
H A 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 …]
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_debugfs.c332 unsigned int hw_idx; in fbnic_dbg_nv_init() local
334 hw_idx = fbnic_ring_csr_base(&qt->cmpl) - in fbnic_dbg_nv_init()
336 hw_idx /= FBNIC_QUEUE_STRIDE; in fbnic_dbg_nv_init()
338 snprintf(name, sizeof(name), "twq0.%03d", hw_idx); in fbnic_dbg_nv_init()
342 snprintf(name, sizeof(name), "twq1.%03d", hw_idx); in fbnic_dbg_nv_init()
346 snprintf(name, sizeof(name), "tcq.%03d", hw_idx); in fbnic_dbg_nv_init()
354 unsigned int hw_idx; in fbnic_dbg_nv_init() local
356 hw_idx = fbnic_ring_csr_base(&qt->cmpl) - in fbnic_dbg_nv_init()
358 hw_idx /= FBNIC_QUEUE_STRIDE; in fbnic_dbg_nv_init()
360 snprintf(name, sizeof(name), "hpq.%03d", hw_idx); in fbnic_dbg_nv_init()
[all …]
/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()
/linux/drivers/clk/ingenic/
H A Dcgu.c340 u8 i, hw_idx, idx = 0; in ingenic_clk_get_parent() local
344 hw_idx = (reg >> clk_info->mux.shift) & in ingenic_clk_get_parent()
351 for (i = 0; i < hw_idx; i++) { in ingenic_clk_get_parent()
366 u8 curr_idx, hw_idx, num_poss; in ingenic_clk_set_parent() local
376 hw_idx = curr_idx = 0; in ingenic_clk_set_parent()
378 for (; hw_idx < num_poss; hw_idx++) { in ingenic_clk_set_parent()
379 if (clk_info->parents[hw_idx] == -1) in ingenic_clk_set_parent()
397 reg |= hw_idx << clk_info->mux.shift; in ingenic_clk_set_parent()
/linux/drivers/net/wireless/ti/wl12xx/
H A Dwl12xx.h96 u8 hw_idx; member
/linux/tools/perf/util/
H A Dbranch.h51 u64 hw_idx;
56 * The hw_idx is only available when PERF_SAMPLE_BRANCH_HW_INDEX is applied.
62 * Check whether the hw_idx is available,
50 u64 hw_idx; global() member
H A Dmachine.c2627 cur_base = max_lbr - cur_stack->nr + cur_stack->hw_idx + 1; in alloc_lbr_stitch()
2629 distance = (prev_stack->hw_idx > cur_base) ? (prev_stack->hw_idx - cur_base) : in alloc_lbr_stitch()
2630 (max_lbr + prev_stack->hw_idx - cur_base); in alloc_lbr_stitch()
H A Dcs-etm.c1703 u64 hw_idx; in cs_etm__synth_events()
1742 .hw_idx = -1ULL, in cs_etm__synth_events()
1625 u64 hw_idx; cs_etm__synth_branch_sample() member
/linux/drivers/net/wireless/mediatek/mt76/
H A Dusb.c963 q->hw_idx = lmac_queue_map[ac]; in mt76u_ac_to_hwq()
964 q->ep = q->hw_idx + 1; in mt76u_ac_to_hwq()
971 q->hw_idx = mt76_ac_to_hwq(ac); in mt76u_ac_to_hwq()
972 q->ep = qid == MT_TXQ_PSD ? MT_EP_OUT_HCCA : q->hw_idx + 1; in mt76u_ac_to_hwq()
975 q->hw_idx = mt76_ac_to_hwq(ac); in mt76u_ac_to_hwq()
976 q->ep = q->hw_idx + 1; in mt76u_ac_to_hwq()
H A Ddma.c841 q->hw_idx = idx; in mt76_dma_alloc_queue()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_action.c1918 int ret, i, hw_idx = 0; in dr_actions_convert_modify_header() local
1981 if ((hw_idx % 2) && (hw_field == hw_dst_action_info->hw_field || in dr_actions_convert_modify_header()
1987 hw_idx++; in dr_actions_convert_modify_header()
1988 if (hw_idx >= max_hw_actions) { in dr_actions_convert_modify_header()
1995 hw_actions[hw_idx] = hw_action; in dr_actions_convert_modify_header()
1996 hw_idx++; in dr_actions_convert_modify_header()
2000 if (!hw_idx) in dr_actions_convert_modify_header()
2001 hw_idx++; in dr_actions_convert_modify_header()
2003 *num_hw_actions = hw_idx; in dr_actions_convert_modify_header()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_dpll.c2523 int hw_idx; in ice_dpll_rclk_state_on_pin_set() local
2531 hw_idx = ice_dpll_pin_get_parent_idx(p, parent_pin); in ice_dpll_rclk_state_on_pin_set()
2532 if (hw_idx < 0) in ice_dpll_rclk_state_on_pin_set()
2534 hw_idx -= pf->dplls.base_rclk_idx; in ice_dpll_rclk_state_on_pin_set()
2535 if (hw_idx >= ICE_DPLL_RCLK_NUM_MAX) in ice_dpll_rclk_state_on_pin_set()
2538 if ((enable && p->state[hw_idx] == DPLL_PIN_STATE_CONNECTED) || in ice_dpll_rclk_state_on_pin_set()
2539 (!enable && p->state[hw_idx] == DPLL_PIN_STATE_DISCONNECTED)) { in ice_dpll_rclk_state_on_pin_set()
2550 (enum ice_synce_clk)hw_idx) : in ice_dpll_rclk_state_on_pin_set()
2551 ice_aq_set_phy_rec_clk_out(hw, hw_idx, enable, &p->freq); in ice_dpll_rclk_state_on_pin_set()
2591 int hw_idx; in ice_dpll_rclk_state_on_pin_get() local
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dcnic.h187 u16 (*hw_idx)(u16); member
/linux/arch/x86/events/amd/
H A Dlbr.c221 cpuc->lbr_stack.hw_idx = 0; in amd_pmu_lbr_read()
/linux/tools/perf/tests/
H A Dsample-parsing.c134 COMP(branch_stack->hw_idx); in samples_same()
/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.h606 u16 hw_idx; /* hardware index */ member
/linux/drivers/net/wireless/ath/ath12k/
H A Dwmi.c479 u32 hw_idx, phy_idx = 0; in ath12k_pull_mac_phy_cap_svc_ready_ext() local
485 for (hw_idx = 0; hw_idx < le32_to_cpu(hw_caps->num_hw_modes); hw_idx++) { in ath12k_pull_mac_phy_cap_svc_ready_ext()
486 if (hw_mode_id == le32_to_cpu(wmi_hw_mode_caps[hw_idx].hw_mode_id)) in ath12k_pull_mac_phy_cap_svc_ready_ext()
489 phy_map = le32_to_cpu(wmi_hw_mode_caps[hw_idx].phy_id_map); in ath12k_pull_mac_phy_cap_svc_ready_ext()
493 if (hw_idx == le32_to_cpu(hw_caps->num_hw_modes)) in ath12k_pull_mac_phy_cap_svc_ready_ext()
5016 u8 hw_idx; in ath12k_wmi_save_all_mac_phy_info() local
5021 for (hw_idx = 0; hw_idx < svc_ext_info->num_hw_modes; hw_idx++) { in ath12k_wmi_save_all_mac_phy_info()
5022 hw_mode_cap = &svc_rdy_ext->hw_mode_caps[hw_idx]; in ath12k_wmi_save_all_mac_phy_info()
5033 hw_idx, hw_mode_id, in ath12k_wmi_save_all_mac_phy_info()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmain.c596 queue = dev->mphy.q_tx[queue]->hw_idx; in mt7603_conf_tx()
H A Dmac.c490 u8 qidx = q->hw_idx; in mt7603_mac_sta_poll()
986 FIELD_PREP(MT_TXD0_Q_IDX, q->hw_idx); in mt7603_mac_write_txwi()
/linux/include/linux/
H A Dperf_event.h98 * hw_idx: The low level index of raw branch records
108 * The hw_idx is to expose the low level index of raw
110 * The hw_idx index is between -1 (unknown) and max depth,
113 * already stored in age order, the hw_idx should be 0.
117 u64 hw_idx; member

12