Home
last modified time | relevance | path

Searched refs:hw_mode (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.12.1/drivers/gpu/drm/amd/pm/
Damdgpu_dpm_internal.c61 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time()
63 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time()
64 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time()
65 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
68 vblank_time_us = vblank_in_pixels * 1000 / amdgpu_crtc->hw_mode.clock; in amdgpu_dpm_get_vblank_time()
87 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vrefresh()
88 vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode); in amdgpu_dpm_get_vrefresh()
/linux-6.12.1/drivers/spi/
Dspi-fsl-spi.c97 if (cs->hw_mode == mpc8xxx_spi_read_reg(mode)) in fsl_spi_change_mode()
104 mpc8xxx_spi_write_reg(mode, cs->hw_mode & ~SPMODE_ENABLE); in fsl_spi_change_mode()
110 mpc8xxx_spi_write_reg(mode, cs->hw_mode); in fsl_spi_change_mode()
209 cs->hw_mode &= ~(SPMODE_LEN(0xF) | SPMODE_DIV16 in fsl_spi_setup_transfer()
212 cs->hw_mode |= SPMODE_LEN(bits_per_word); in fsl_spi_setup_transfer()
215 cs->hw_mode |= SPMODE_DIV16; in fsl_spi_setup_transfer()
228 cs->hw_mode |= SPMODE_PM(pm); in fsl_spi_setup_transfer()
374 u32 hw_mode; in fsl_spi_setup() local
391 hw_mode = cs->hw_mode; /* Save original settings */ in fsl_spi_setup()
392 cs->hw_mode = mpc8xxx_spi_read_reg(&reg_base->mode); in fsl_spi_setup()
[all …]
Dspi-fsl-espi.c113 u32 hw_mode; member
330 u32 hw_mode_old = cs->hw_mode; in fsl_espi_setup_transfer()
333 cs->hw_mode &= ~(CSMODE_LEN(0xF) | CSMODE_DIV16 | CSMODE_PM(0xF)); in fsl_espi_setup_transfer()
335 cs->hw_mode |= CSMODE_LEN(bits_per_word - 1); in fsl_espi_setup_transfer()
340 cs->hw_mode |= CSMODE_DIV16; in fsl_espi_setup_transfer()
344 cs->hw_mode |= CSMODE_PM(pm); in fsl_espi_setup_transfer()
347 if (cs->hw_mode != hw_mode_old) in fsl_espi_setup_transfer()
349 cs->hw_mode); in fsl_espi_setup_transfer()
495 cs->hw_mode = fsl_espi_read_reg(espi, ESPI_SPMODEx(spi_get_chipselect(spi, 0))); in fsl_espi_setup()
497 cs->hw_mode &= ~(CSMODE_CP_BEGIN_EDGECLK | CSMODE_CI_INACTIVEHIGH in fsl_espi_setup()
[all …]
Dspi-sprd.c157 u32 hw_mode; member
418 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_txrx_bufs()
429 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_txrx_bufs()
595 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_dma_txrx_bufs()
604 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_dma_txrx_bufs()
676 val |= ss->hw_mode & SPI_CPHA ? SPRD_SPI_NG_RX : SPRD_SPI_NG_TX; in sprd_spi_init_hw()
677 val |= ss->hw_mode & SPI_CPOL ? SPRD_SPI_SCK_REV : 0; in sprd_spi_init_hw()
699 if (ss->hw_mode & SPI_3WIRE) in sprd_spi_init_hw()
704 if (ss->hw_mode & SPI_TX_DUAL) in sprd_spi_init_hw()
726 ss->hw_mode = sdev->mode; in sprd_spi_setup_transfer()
Dspi-fsl-lib.h79 u32 hw_mode; /* Holds HW mode register settings */ member
/linux-6.12.1/drivers/crypto/ccree/
Dcc_hash.c70 int hw_mode; member
96 int hw_mode; member
143 if (ctx->hw_mode != DRV_CIPHER_XCBC_MAC && in cc_init_req()
144 ctx->hw_mode != DRV_CIPHER_CMAC) { in cc_init_req()
195 if (ctx->hw_mode != DRV_CIPHER_XCBC_MAC) { in cc_map_req()
351 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_fin_result()
374 set_cipher_mode(&desc[idx], ctx->hw_mode); in cc_fin_hmac()
384 set_cipher_mode(&desc[idx], ctx->hw_mode); in cc_fin_hmac()
393 set_cipher_mode(&desc[idx], ctx->hw_mode); in cc_fin_hmac()
468 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_hash_digest()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dadau7118.c42 bool hw_mode; member
356 if (st->hw_mode) in adau7118_set_bias_level()
374 if (st->hw_mode) in adau7118_set_bias_level()
394 if (st->hw_mode) { in adau7118_component_probe()
465 if (!st->hw_mode) { in adau7118_regulator_setup()
480 if (st->hw_mode) in adau7118_parset_dt()
527 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode) in adau7118_probe() argument
537 st->hw_mode = hw_mode; in adau7118_probe()
540 if (!hw_mode) { in adau7118_probe()
Dadau7118.h22 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode);
/linux-6.12.1/drivers/net/wwan/t7xx/
Dt7xx_cldma.c50 if (hw_info->hw_mode == MODE_BIT_64) in t7xx_cldma_hw_restore()
52 else if (hw_info->hw_mode == MODE_BIT_40) in t7xx_cldma_hw_restore()
54 else if (hw_info->hw_mode == MODE_BIT_36) in t7xx_cldma_hw_restore()
244 if (hw_info->hw_mode == MODE_BIT_64) { in t7xx_cldma_hw_init()
247 } else if (hw_info->hw_mode == MODE_BIT_40) { in t7xx_cldma_hw_init()
250 } else if (hw_info->hw_mode == MODE_BIT_36) { in t7xx_cldma_hw_init()
Dt7xx_cldma.h147 enum t7xx_hw_mode hw_mode; member
/linux-6.12.1/Documentation/networking/mac80211_hwsim/
Dhostapd.conf4 hw_mode=g
/linux-6.12.1/drivers/usb/dwc3/
Dcore.c54 unsigned int hw_mode; in dwc3_get_dr_mode() local
60 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_get_dr_mode()
62 switch (hw_mode) { in dwc3_get_dr_mode()
520 unsigned int hw_mode; in dwc3_alloc_event_buffers() local
522 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_alloc_event_buffers()
523 if (hw_mode == DWC3_GHWPARAMS0_MODE_HOST) { in dwc3_alloc_event_buffers()
992 unsigned int hw_mode; in dwc3_core_setup_global_control() local
997 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_core_setup_global_control()
1044 hw_mode != DWC3_GHWPARAMS0_MODE_GADGET && DWC3_VER_IS(DWC31, 200A)) in dwc3_core_setup_global_control()
1315 unsigned int hw_mode; in dwc3_core_init() local
[all …]
/linux-6.12.1/drivers/crypto/starfive/
Djh7110-aes.c86 static void starfive_aes_aead_hw_start(struct starfive_cryp_ctx *ctx, u32 hw_mode) in starfive_aes_aead_hw_start() argument
91 switch (hw_mode) { in starfive_aes_aead_hw_start()
228 u32 hw_mode; in starfive_aes_hw_init() local
236 hw_mode = cryp->flags & FLG_MODE_MASK; in starfive_aes_hw_init()
252 rctx->csr.aes.mode = hw_mode; in starfive_aes_hw_init()
267 switch (hw_mode) { in starfive_aes_hw_init()
272 starfive_aes_aead_hw_start(ctx, hw_mode); in starfive_aes_hw_init()
279 starfive_aes_aead_hw_start(ctx, hw_mode); in starfive_aes_hw_init()
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c2106 p_hwfn->hw_info.hw_mode); in qed_qm_reconf()
2522 int hw_mode = 0; in qed_calc_hw_mode() local
2525 hw_mode |= 1 << MODE_BB; in qed_calc_hw_mode()
2527 hw_mode |= 1 << MODE_K2; in qed_calc_hw_mode()
2536 hw_mode |= 1 << MODE_PORTS_PER_ENG_1; in qed_calc_hw_mode()
2539 hw_mode |= 1 << MODE_PORTS_PER_ENG_2; in qed_calc_hw_mode()
2542 hw_mode |= 1 << MODE_PORTS_PER_ENG_4; in qed_calc_hw_mode()
2551 hw_mode |= 1 << MODE_MF_SD; in qed_calc_hw_mode()
2553 hw_mode |= 1 << MODE_MF_SI; in qed_calc_hw_mode()
2555 hw_mode |= 1 << MODE_ASIC; in qed_calc_hw_mode()
[all …]
/linux-6.12.1/drivers/regulator/
Dmt6360-regulator.c308 static unsigned int mt6360_regulator_of_map_mode(unsigned int hw_mode) in mt6360_regulator_of_map_mode() argument
310 switch (hw_mode) { in mt6360_regulator_of_map_mode()
/linux-6.12.1/drivers/gpu/drm/radeon/
Dr600_dpm.c165 if (crtc->enabled && radeon_crtc->enabled && radeon_crtc->hw_mode.clock) { in r600_dpm_get_vblank_time()
167 radeon_crtc->hw_mode.crtc_htotal * in r600_dpm_get_vblank_time()
168 (radeon_crtc->hw_mode.crtc_vblank_end - in r600_dpm_get_vblank_time()
169 radeon_crtc->hw_mode.crtc_vdisplay + in r600_dpm_get_vblank_time()
172 vblank_time_us = vblank_in_pixels * 1000 / radeon_crtc->hw_mode.clock; in r600_dpm_get_vblank_time()
191 if (crtc->enabled && radeon_crtc->enabled && radeon_crtc->hw_mode.clock) { in r600_dpm_get_vrefresh()
192 vrefresh = drm_mode_vrefresh(&radeon_crtc->hw_mode); in r600_dpm_get_vrefresh()
Dradeon_mode.h362 struct drm_display_mode hw_mode; member
/linux-6.12.1/drivers/crypto/stm32/
Dstm32-cryp.c746 u32 cfg, hw_mode; in stm32_cryp_hw_init() local
771 hw_mode = stm32_cryp_get_hw_mode(cryp); in stm32_cryp_hw_init()
772 if (hw_mode == CR_AES_UNKNOWN) in stm32_cryp_hw_init()
777 ((hw_mode == CR_AES_ECB) || (hw_mode == CR_AES_CBC))) { in stm32_cryp_hw_init()
798 cfg |= hw_mode | CR_DEC_NOT_ENC; in stm32_cryp_hw_init()
803 cfg |= hw_mode; in stm32_cryp_hw_init()
814 switch (hw_mode) { in stm32_cryp_hw_init()
818 if (hw_mode == CR_AES_CCM) in stm32_cryp_hw_init()
/linux-6.12.1/drivers/net/ethernet/ti/
Ddavinci_cpdma.c72 u32 hw_mode; member
1007 mode = desc_read(prev, hw_mode); in __cpdma_chan_submit()
1010 desc_write(prev, hw_mode, mode & ~CPDMA_DESC_EOQ); in __cpdma_chan_submit()
1063 writel_relaxed(mode | len, &desc->hw_mode); in cpdma_chan_submit_si()
1239 status = desc_read(desc, hw_mode); in __cpdma_chan_process()
/linux-6.12.1/include/linux/
Dpm_domain.h253 bool hw_mode; member
/linux-6.12.1/drivers/pmdomain/
Dcore.c668 if (dev_gpd_data(dev)->hw_mode == enable) in dev_pm_genpd_set_hwmode()
673 dev_gpd_data(dev)->hw_mode = enable; in dev_pm_genpd_set_hwmode()
696 return dev_gpd_data(dev)->hw_mode; in dev_pm_genpd_get_hwmode()
1799 gpd_data->hw_mode = genpd->get_hwmode_dev ? genpd->get_hwmode_dev(genpd, dev) : false; in genpd_add_device()
3267 seq_printf(s, "%2s", gpd_data->hw_mode ? "HW" : "SW"); in mode_status_str()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mode.h502 struct drm_display_mode hw_mode; member
/linux-6.12.1/drivers/net/wireless/ath/ath12k/
Ddebugfs_htt_stats.h322 __le32 hw_mode; member
Ddebugfs_htt_stats.c262 u8 j, hw_mode, i, str_buf_len; in htt_print_tx_pdev_mu_ppdu_dist_stats_tlv() local
274 hw_mode = le32_to_cpu(htt_stats_buf->hw_mode); in htt_print_tx_pdev_mu_ppdu_dist_stats_tlv()
276 switch (hw_mode) { in htt_print_tx_pdev_mu_ppdu_dist_stats_tlv()
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Drtw_mlme_ext.h356 enum hw_mode {IEEE80211G, IEEE80211A} mode; enum

12