| /linux/drivers/media/platform/mediatek/vcodec/decoder/ |
| 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) argument 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);
|
| /linux/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() 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 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);
|
| /linux/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_t val) in jr_inpentry_set() argument [all …]
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_debugfs.c | 332 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 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()
|
| /linux/drivers/clk/ingenic/ |
| H A D | cgu.c | 340 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 D | wl12xx.h | 96 u8 hw_idx; member
|
| H A D | main.c | 1792 return table[i].hw_idx; in wl12xx_get_clock_idx()
|
| /linux/tools/perf/util/ |
| H A D | branch.h | 51 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 D | machine.c | 2567 cur_base = max_lbr - cur_stack->nr + cur_stack->hw_idx + 1; in has_stitched_lbr() 2569 distance = (prev_stack->hw_idx > cur_base) ? (prev_stack->hw_idx - cur_base) : in has_stitched_lbr() 2570 (max_lbr + prev_stack->hw_idx - cur_base); in has_stitched_lbr()
|
| H A D | cs-etm.c | 1625 u64 hw_idx; in cs_etm__synth_branch_sample() member 1660 .hw_idx = -1ULL, in cs_etm__synth_branch_sample()
|
| H A D | arm-spe.c | 482 bstack->hw_idx = -1ULL; in arm_spe_deliver_synth_event()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_action.c | 1918 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/freescale/enetc/ |
| H A D | enetc.h | 227 int hw_idx = i; in enetc_rxbd() local 230 hw_idx = 2 * i; in enetc_rxbd() 232 return &(((union enetc_rx_bd *)rx_ring->bd_base)[hw_idx]); in enetc_rxbd()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dpll.c | 2514 int hw_idx; in ice_dpll_rclk_state_on_pin_set() local 2522 hw_idx = ice_dpll_pin_get_parent_idx(p, parent_pin); in ice_dpll_rclk_state_on_pin_set() 2523 if (hw_idx < 0) in ice_dpll_rclk_state_on_pin_set() 2525 hw_idx -= pf->dplls.base_rclk_idx; in ice_dpll_rclk_state_on_pin_set() 2526 if (hw_idx >= ICE_DPLL_RCLK_NUM_MAX) in ice_dpll_rclk_state_on_pin_set() 2529 if ((enable && p->state[hw_idx] == DPLL_PIN_STATE_CONNECTED) || in ice_dpll_rclk_state_on_pin_set() 2530 (!enable && p->state[hw_idx] == DPLL_PIN_STATE_DISCONNECTED)) { in ice_dpll_rclk_state_on_pin_set() 2541 (enum ice_synce_clk)hw_idx) : in ice_dpll_rclk_state_on_pin_set() 2542 ice_aq_set_phy_rec_clk_out(hw, hw_idx, enable, &p->freq); in ice_dpll_rclk_state_on_pin_set() 2582 int hw_idx; in ice_dpll_rclk_state_on_pin_get() 2580 int hw_idx; ice_dpll_rclk_state_on_pin_get() local [all...] |
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | cnic.h | 187 u16 (*hw_idx)(u16); member
|
| /linux/tools/perf/tests/ |
| H A D | sample-parsing.c | 117 COMP(branch_stack->hw_idx); in samples_same()
|
| /linux/drivers/net/ethernet/atheros/atlx/ |
| H A D | atl1.h | 606 u16 hw_idx; /* hardware index */ member
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | wmi.c | 412 u32 hw_idx, phy_idx = 0; in ath12k_pull_mac_phy_cap_svc_ready_ext() local 418 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() 419 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() 422 phy_map = le32_to_cpu(wmi_hw_mode_caps[hw_idx].phy_id_map); in ath12k_pull_mac_phy_cap_svc_ready_ext() 426 if (hw_idx == le32_to_cpu(hw_caps->num_hw_modes)) in ath12k_pull_mac_phy_cap_svc_ready_ext() 4867 u8 hw_idx; in ath12k_wmi_save_all_mac_phy_info() local 4872 for (hw_idx = 0; hw_idx < svc_ext_info->num_hw_modes; hw_idx++) { in ath12k_wmi_save_all_mac_phy_info() 4873 hw_mode_cap = &svc_rdy_ext->hw_mode_caps[hw_idx]; in ath12k_wmi_save_all_mac_phy_info() 4884 hw_idx, hw_mode_id, in ath12k_wmi_save_all_mac_phy_info()
|
| /linux/include/linux/ |
| H A D | perf_event.h | 117 u64 hw_idx; member
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | wmi.c | 372 u32 hw_idx, phy_idx = 0; in ath11k_pull_mac_phy_cap_svc_ready_ext() local 377 for (hw_idx = 0; hw_idx < hw_caps->num_hw_modes; hw_idx++) { in ath11k_pull_mac_phy_cap_svc_ready_ext() 378 if (hw_mode_id == wmi_hw_mode_caps[hw_idx].hw_mode_id) in ath11k_pull_mac_phy_cap_svc_ready_ext() 381 phy_map = wmi_hw_mode_caps[hw_idx].phy_id_map; in ath11k_pull_mac_phy_cap_svc_ready_ext() 388 if (hw_idx == hw_caps->num_hw_modes) in ath11k_pull_mac_phy_cap_svc_ready_ext()
|
| /linux/arch/powerpc/perf/ |
| H A D | core-book3s.c | 571 cpuhw->bhrb_stack.hw_idx = -1ULL; in power_pmu_bhrb_read()
|