Home
last modified time | relevance | path

Searched refs:hw_mode (Results 1 - 25 of 64) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/
H A 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()
/kernel/linux/linux-6.6/drivers/spi/
H A 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()
375 u32 hw_mode; in fsl_spi_setup() local
392 hw_mode = cs->hw_mode; /* Sav in fsl_spi_setup()
[all...]
H A 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 in fsl_espi_setup()
[all...]
H A 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 in sprd_spi_init_hw()
[all...]
H A Dspi-fsl-lib.h79 u32 hw_mode; /* Holds HW mode register settings */ member
/kernel/linux/linux-5.10/drivers/crypto/ccree/
H A 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, ct in cc_hash_digest()
1568 int hw_mode; global() member
2000 int hw_mode = driver_hash[alg].hw_mode; cc_hash_alloc() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/ccree/
H A 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, ct in cc_hash_digest()
1568 int hw_mode; global() member
2000 int hw_mode = driver_hash[alg].hw_mode; cc_hash_alloc() local
[all...]
/kernel/linux/linux-5.10/drivers/spi/
H A 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()
243 cs->hw_mode &= ~(SPMODE_LEN(0xF) | SPMODE_DIV16 in fsl_spi_setup_transfer()
246 cs->hw_mode |= SPMODE_LEN(bits_per_word); in fsl_spi_setup_transfer()
249 cs->hw_mode |= SPMODE_DIV16; in fsl_spi_setup_transfer()
262 cs->hw_mode |= SPMODE_PM(pm); in fsl_spi_setup_transfer()
440 u32 hw_mode; in fsl_spi_setup() local
457 hw_mode = cs->hw_mode; /* Sav in fsl_spi_setup()
[all...]
H A 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()
502 cs->hw_mode = fsl_espi_read_reg(espi, ESPI_SPMODEx(spi->chip_select)); in fsl_espi_setup()
504 cs->hw_mode in fsl_espi_setup()
[all...]
H A Dspi-sprd.c158 u32 hw_mode; member
419 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_txrx_bufs()
430 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_txrx_bufs()
596 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_dma_txrx_bufs()
605 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_dma_txrx_bufs()
677 val |= ss->hw_mode in sprd_spi_init_hw()
[all...]
H A Dspi-fsl-lib.h79 u32 hw_mode; /* Holds HW mode register settings */ member
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dadau7118.c42 bool hw_mode; member
354 if (st->hw_mode) in adau7118_set_bias_level()
372 if (st->hw_mode) in adau7118_set_bias_level()
392 if (st->hw_mode) { in adau7118_component_probe()
464 if (!st->hw_mode) { in adau7118_regulator_setup()
479 if (st->hw_mode) in adau7118_parset_dt()
526 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode) in adau7118_probe() argument
536 st->hw_mode = hw_mode; in adau7118_probe()
539 if (!hw_mode) { in adau7118_probe()
[all...]
H A Dadau7118.h22 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode);
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dadau7118.c42 bool hw_mode; member
354 if (st->hw_mode) in adau7118_set_bias_level()
372 if (st->hw_mode) in adau7118_set_bias_level()
392 if (st->hw_mode) { in adau7118_component_probe()
463 if (!st->hw_mode) { in adau7118_regulator_setup()
478 if (st->hw_mode) in adau7118_parset_dt()
525 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode) in adau7118_probe() argument
535 st->hw_mode = hw_mode; in adau7118_probe()
538 if (!hw_mode) { in adau7118_probe()
[all...]
H A Dadau7118.h22 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode);
/kernel/linux/linux-6.6/drivers/net/wwan/t7xx/
H A 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()
H A Dt7xx_cldma.h147 enum t7xx_hw_mode hw_mode; member
/kernel/linux/linux-6.6/drivers/crypto/starfive/
H A 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()
238 u32 hw_mode; in starfive_aes_hw_init() local
246 hw_mode = cryp->flags & FLG_MODE_MASK; in starfive_aes_hw_init()
262 rctx->csr.aes.mode = hw_mode; in starfive_aes_hw_init()
266 if (hw_mode == STARFIVE_AES_MODE_CFB || in starfive_aes_hw_init()
267 hw_mode == STARFIVE_AES_MODE_OFB) in starfive_aes_hw_init()
283 switch (hw_mode) { in starfive_aes_hw_init()
288 starfive_aes_aead_hw_start(ctx, hw_mode); in starfive_aes_hw_init()
295 starfive_aes_aead_hw_start(ctx, hw_mode); in starfive_aes_hw_init()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
H A Dqed_dev.c2093 p_hwfn->hw_info.hw_mode); in qed_qm_reconf()
2450 int hw_mode = 0; in qed_calc_hw_mode() local
2453 hw_mode |= 1 << MODE_BB; in qed_calc_hw_mode()
2455 hw_mode |= 1 << MODE_K2; in qed_calc_hw_mode()
2464 hw_mode |= 1 << MODE_PORTS_PER_ENG_1; in qed_calc_hw_mode()
2467 hw_mode |= 1 << MODE_PORTS_PER_ENG_2; in qed_calc_hw_mode()
2470 hw_mode |= 1 << MODE_PORTS_PER_ENG_4; in qed_calc_hw_mode()
2479 hw_mode |= 1 << MODE_MF_SD; in qed_calc_hw_mode()
2481 hw_mode |= 1 << MODE_MF_SI; in qed_calc_hw_mode()
2483 hw_mode | in qed_calc_hw_mode()
2581 qed_hw_init_common(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, int hw_mode) qed_hw_init_common() argument
2790 qed_hw_init_port(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, int hw_mode) qed_hw_init_port() argument
2808 qed_hw_init_pf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, struct qed_tunnel_info *p_tunn, int hw_mode, bool b_hw_start, enum qed_int_mode int_mode, bool allow_npar_tx_switch) qed_hw_init_pf() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/
H A 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 | in qed_calc_hw_mode()
2653 qed_hw_init_common(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, int hw_mode) qed_hw_init_common() argument
2872 qed_hw_init_port(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, int hw_mode) qed_hw_init_port() argument
2890 qed_hw_init_pf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, struct qed_tunnel_info *p_tunn, int hw_mode, bool b_hw_start, enum qed_int_mode int_mode, bool allow_npar_tx_switch) qed_hw_init_pf() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/dwc3/
H A Dcore.c51 unsigned int hw_mode; in dwc3_get_dr_mode() local
57 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_get_dr_mode()
59 switch (hw_mode) { in dwc3_get_dr_mode()
593 unsigned int hw_mode; in dwc3_phy_setup() local
596 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_phy_setup()
620 if (hw_mode == DWC3_GHWPARAMS0_MODE_DRD) in dwc3_phy_setup()
710 if (hw_mode == DWC3_GHWPARAMS0_MODE_DRD) in dwc3_phy_setup()
945 unsigned int hw_mode; in dwc3_core_init() local
949 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_core_init()
996 if (hw_mode in dwc3_core_init()
[all...]
/kernel/linux/linux-6.6/drivers/usb/dwc3/
H A Dcore.c53 unsigned int hw_mode; in dwc3_get_dr_mode() local
59 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_get_dr_mode()
61 switch (hw_mode) { in dwc3_get_dr_mode()
588 unsigned int hw_mode; in dwc3_phy_setup() local
591 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_phy_setup()
615 if (hw_mode == DWC3_GHWPARAMS0_MODE_DRD) in dwc3_phy_setup()
705 if (hw_mode == DWC3_GHWPARAMS0_MODE_DRD) in dwc3_phy_setup()
1173 unsigned int hw_mode; in dwc3_core_init() local
1177 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_core_init()
1216 if (hw_mode in dwc3_core_init()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/stm32/
H A Dstm32-cryp.c702 u32 cfg, hw_mode; in stm32_cryp_hw_init() local
727 hw_mode = stm32_cryp_get_hw_mode(cryp); in stm32_cryp_hw_init()
728 if (hw_mode == CR_AES_UNKNOWN) in stm32_cryp_hw_init()
733 ((hw_mode == CR_AES_ECB) || (hw_mode == CR_AES_CBC))) { in stm32_cryp_hw_init()
754 cfg |= hw_mode | CR_DEC_NOT_ENC; in stm32_cryp_hw_init()
759 cfg |= hw_mode; in stm32_cryp_hw_init()
770 switch (hw_mode) { in stm32_cryp_hw_init()
774 if (hw_mode == CR_AES_CCM) in stm32_cryp_hw_init()
/kernel/linux/linux-5.10/drivers/crypto/stm32/
H A Dstm32-cryp.c531 u32 cfg, hw_mode; in stm32_cryp_hw_init() local
559 hw_mode = stm32_cryp_get_hw_mode(cryp); in stm32_cryp_hw_init()
560 if (hw_mode == CR_AES_UNKNOWN) in stm32_cryp_hw_init()
565 ((hw_mode == CR_AES_ECB) || (hw_mode == CR_AES_CBC))) { in stm32_cryp_hw_init()
576 cfg |= hw_mode; in stm32_cryp_hw_init()
584 switch (hw_mode) { in stm32_cryp_hw_init()
588 if (hw_mode == CR_AES_CCM) in stm32_cryp_hw_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/
H A Damdgpu_dpm.c155 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vblank_time()
157 amdgpu_crtc->hw_mode.crtc_htotal * in amdgpu_dpm_get_vblank_time()
158 (amdgpu_crtc->hw_mode.crtc_vblank_end - in amdgpu_dpm_get_vblank_time()
159 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
162 vblank_time_us = vblank_in_pixels * 1000 / amdgpu_crtc->hw_mode.clock; in amdgpu_dpm_get_vblank_time()
181 if (crtc->enabled && amdgpu_crtc->enabled && amdgpu_crtc->hw_mode.clock) { in amdgpu_dpm_get_vrefresh()
182 vrefresh = drm_mode_vrefresh(&amdgpu_crtc->hw_mode); in amdgpu_dpm_get_vrefresh()

Completed in 33 milliseconds

123