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

12

/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/ti/wl12xx/
H A Dwl12xx.h96 u8 hw_idx; member in struct:wl12xx_clock
/linux-master/arch/powerpc/perf/
H A Dcore-book3s.c574 cpuhw->bhrb_stack.hw_idx = -1ULL;
/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/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/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/drivers/crypto/caam/
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));
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...]
/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/media/platform/mediatek/vcodec/decoder/
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...]
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_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-master/drivers/net/ethernet/broadcom/
H A Dcnic.c1001 info->hw_idx = cnic_bnx2_hw_idx;
1006 info->hw_idx = cnic_bnx2x_hw_idx;
2901 hw_prod = info->hw_idx(hw_prod);
H A Dcnic.h187 u16 (*hw_idx)(u16); member in struct:kcq_info
H A Dtg3.c6560 u32 hw_idx = tnapi->hw_status->idx[0].tx_consumer; local
6571 while (sw_idx != hw_idx) {
6612 if (unlikely(ri->skb != NULL || sw_idx == hw_idx))
6841 u16 hw_idx; local
6845 hw_idx = *(tnapi->rx_rcb_prod_idx);
6847 * We need to order the read of hw_idx and the read of
6855 while (sw_idx != hw_idx && budget > 0) {
6999 /* Refresh hw_idx to see if there is new work */
7000 if (sw_idx == hw_idx) {
7001 hw_idx
[all...]
/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/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/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/wireless/ath/ath11k/
H A Dwmi.c367 u32 hw_idx, phy_idx = 0; local
372 for (hw_idx = 0; hw_idx < hw_caps->num_hw_modes; hw_idx++) {
373 if (hw_mode_id == wmi_hw_mode_caps[hw_idx].hw_mode_id)
376 phy_map = wmi_hw_mode_caps[hw_idx].phy_id_map;
383 if (hw_idx == hw_caps->num_hw_modes)
/linux-master/drivers/net/wireless/ath/ath12k/
H A Dwmi.c476 u32 hw_idx, phy_idx = 0; local
482 for (hw_idx = 0; hw_idx < le32_to_cpu(hw_caps->num_hw_modes); hw_idx++) {
483 if (hw_mode_id == le32_to_cpu(wmi_hw_mode_caps[hw_idx].hw_mode_id))
486 phy_map = le32_to_cpu(wmi_hw_mode_caps[hw_idx].phy_id_map);
490 if (hw_idx == le32_to_cpu(hw_caps->num_hw_modes))
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Ddma.c694 q->hw_idx = idx;

Completed in 401 milliseconds

12