/openbmc/linux/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_dpm_internal.c | 61 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()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsl-spi.c | 110 mpc8xxx_spi_write_reg(mode, cs->hw_mode); in fsl_spi_change_mode() 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; /* Save original settings */ in fsl_spi_setup() 399 cs->hw_mode |= SPMODE_CP_BEGIN_EDGECLK; in fsl_spi_setup() 401 cs->hw_mode |= SPMODE_CI_INACTIVEHIGH; in fsl_spi_setup() 403 cs->hw_mode |= SPMODE_REV; in fsl_spi_setup() 405 cs->hw_mode |= SPMODE_LOOP; in fsl_spi_setup() [all …]
|
H A D | spi-fsl-espi.c | 113 u32 hw_mode; member 330 u32 hw_mode_old = cs->hw_mode; 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() 497 cs->hw_mode &= ~(CSMODE_CP_BEGIN_EDGECLK | CSMODE_CI_INACTIVEHIGH in fsl_espi_setup() 501 cs->hw_mode |= CSMODE_CP_BEGIN_EDGECLK; in fsl_espi_setup() 503 cs->hw_mode |= CSMODE_CI_INACTIVEHIGH; in fsl_espi_setup() [all …]
|
H A D | spi-sprd.c | 157 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()
|
H A D | spi-fsl-lib.h | 79 u32 hw_mode; /* Holds HW mode register settings */ member
|
/openbmc/linux/sound/soc/codecs/ |
H A D | adau7118.c | 42 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()
|
H A D | adau7118.h | 22 int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode);
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_hash.c | 70 int hw_mode; member 96 int hw_mode; member 1134 ctx->hw_mode = cc_alg->hw_mode; in cc_cra_init() 1568 int hw_mode; member 1604 .hw_mode = DRV_HASH_HW_SHA1, 1631 .hw_mode = DRV_HASH_HW_SHA256, 1739 .hw_mode = DRV_HASH_HW_MD5, 1764 .hw_mode = DRV_HASH_HW_SM3, 1814 .hw_mode = DRV_CIPHER_CMAC, 1859 t_crypto_alg->hw_mode = template->hw_mode; in cc_alloc_hash_alg() [all …]
|
/openbmc/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_cldma.c | 50 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 D | t7xx_cldma.h | 147 enum t7xx_hw_mode hw_mode; member
|
/openbmc/linux/drivers/crypto/starfive/ |
H A D | jh7110-aes.c | 86 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()
|
/openbmc/linux/Documentation/networking/mac80211_hwsim/ |
H A D | hostapd.conf | 4 hw_mode=g
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dev.c | 2106 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() 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() 2558 hw_mode |= 1 << MODE_100G; in qed_calc_hw_mode() 2560 p_hwfn->hw_info.hw_mode = hw_mode; in qed_calc_hw_mode() 2564 p_hwfn->hw_info.hw_mode); in qed_calc_hw_mode() [all …]
|
H A D | qed.h | 325 u32 hw_mode; member
|
/openbmc/linux/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 702 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()
|
/openbmc/linux/drivers/regulator/ |
H A D | mt6360-regulator.c | 308 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()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | r600_dpm.c | 167 if (crtc->enabled && radeon_crtc->enabled && radeon_crtc->hw_mode.clock) { in r600_dpm_get_vblank_time() 169 radeon_crtc->hw_mode.crtc_htotal * in r600_dpm_get_vblank_time() 170 (radeon_crtc->hw_mode.crtc_vblank_end - in r600_dpm_get_vblank_time() 171 radeon_crtc->hw_mode.crtc_vdisplay + in r600_dpm_get_vblank_time() 174 vblank_time_us = vblank_in_pixels * 1000 / radeon_crtc->hw_mode.clock; in r600_dpm_get_vblank_time() 193 if (crtc->enabled && radeon_crtc->enabled && radeon_crtc->hw_mode.clock) { in r600_dpm_get_vrefresh() 194 vrefresh = drm_mode_vrefresh(&radeon_crtc->hw_mode); in r600_dpm_get_vrefresh()
|
H A D | radeon_mode.h | 362 struct drm_display_mode hw_mode; member
|
/openbmc/u-boot/drivers/net/ti/ |
H A D | cpsw.c | 180 u32 hw_mode; member 609 desc_write(desc, hw_mode, mode | len); in cpdma_submit() 627 if (desc_read(prev, hw_mode) & CPDMA_DESC_EOQ) in cpdma_submit() 645 status = desc_read(desc, hw_mode); in cpdma_process() 655 if (desc_read(desc, hw_mode) & CPDMA_DESC_OWNER) in cpdma_process()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | davinci_cpdma.c | 72 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()
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | core.c | 53 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() 1174 unsigned int hw_mode; in dwc3_core_init() local 1178 hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); in dwc3_core_init()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_mode.h | 412 struct drm_display_mode hw_mode; member
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | rtw_mlme_ext.h | 393 enum hw_mode {IEEE80211G, IEEE80211A} mode; enum
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | wmi.c | 3277 struct ath12k_wmi_pdev_set_hw_mode_cmd *hw_mode; in ath12k_init_cmd_send() local 3287 hw_mode_len = sizeof(*hw_mode) + TLV_HDR_SIZE + in ath12k_init_cmd_send() 3338 hw_mode = (struct ath12k_wmi_pdev_set_hw_mode_cmd *)ptr; in ath12k_init_cmd_send() 3339 hw_mode->tlv_header = ath12k_wmi_tlv_cmd_hdr(WMI_TAG_PDEV_SET_HW_MODE_CMD, in ath12k_init_cmd_send() 3340 sizeof(*hw_mode)); in ath12k_init_cmd_send() 3342 hw_mode->hw_mode_index = cpu_to_le32(arg->hw_mode_id); in ath12k_init_cmd_send() 3343 hw_mode->num_band_to_mac = cpu_to_le32(arg->num_band_to_mac); in ath12k_init_cmd_send() 3345 ptr += sizeof(*hw_mode); in ath12k_init_cmd_send()
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | wmi.c | 4088 struct wmi_pdev_set_hw_mode_cmd_param *hw_mode; in ath11k_init_cmd_send() local 4098 hw_mode_len = sizeof(*hw_mode) + TLV_HDR_SIZE + in ath11k_init_cmd_send() 4151 hw_mode = (struct wmi_pdev_set_hw_mode_cmd_param *)ptr; in ath11k_init_cmd_send() 4152 hw_mode->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_init_cmd_send() 4155 sizeof(*hw_mode) - TLV_HDR_SIZE); in ath11k_init_cmd_send() 4157 hw_mode->hw_mode_index = param->hw_mode_id; in ath11k_init_cmd_send() 4158 hw_mode->num_band_to_mac = param->num_band_to_mac; in ath11k_init_cmd_send() 4160 ptr += sizeof(*hw_mode); in ath11k_init_cmd_send()
|