Home
last modified time | relevance | path

Searched refs:hw_cfg (Results 1 – 25 of 27) sorted by relevance

12

/linux/sound/pci/hda/
H A Dcs35l41_hda_property.c235 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in generic_dsd_config() local
332 hw_cfg->spk_pos = cfg->channel[cs35l41->index]; in generic_dsd_config()
336 if (cfg->channel[i] == hw_cfg->spk_pos) in generic_dsd_config()
340 hw_cfg->bst_type = CS35L41_INT_BOOST; in generic_dsd_config()
341 hw_cfg->bst_ind = cfg->boost_ind_nanohenry; in generic_dsd_config()
342 hw_cfg->bst_ipk = cfg->boost_peak_milliamp; in generic_dsd_config()
343 hw_cfg->bst_cap = cfg->boost_cap_microfarad; in generic_dsd_config()
344 hw_cfg->gpio1.func = CS35L41_NOT_USED; in generic_dsd_config()
345 hw_cfg->gpio1.valid = true; in generic_dsd_config()
347 hw_cfg->bst_type = CS35L41_EXT_BOOST; in generic_dsd_config()
[all …]
H A Dcs35l41_hda.c663 if (cs35l41->hw_cfg.bst_type == CS35L41_INT_BOOST) in cs35l41_hda_play_start()
675 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST) in cs35l41_hda_play_start()
718 cs35l41_global_enable(dev, reg, cs35l41->hw_cfg.bst_type, 1, in cs35l41_hda_play_done()
731 cs35l41_global_enable(dev, reg, cs35l41->hw_cfg.bst_type, 0, in cs35l41_hda_pause_start()
743 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST) in cs35l41_hda_pause_done()
897 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) { in cs35l41_system_suspend_prep()
917 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) { in cs35l41_system_suspend()
980 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) { in cs35l41_system_resume()
1025 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) in cs35l41_runtime_idle()
1037 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) { in cs35l41_runtime_suspend()
[all …]
H A Dcs35l41_hda.h64 struct cs35l41_hw_cfg hw_cfg; member
/linux/sound/soc/codecs/
H A Dcs35l41.c361 switch (cs35l41->hw_cfg.bst_type) { in cs35l41_boost_enable()
470 if (cs35l41->hw_cfg.bst_type == CS35L41_SHD_BOOST_ACTV || in cs35l41_irq()
471 cs35l41->hw_cfg.bst_type == CS35L41_SHD_BOOST_PASS) { in cs35l41_irq()
521 ret = cs35l41_global_enable(cs35l41->dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type, in cs35l41_main_amp_event()
525 ret = cs35l41_global_enable(cs35l41->dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type, in cs35l41_main_amp_event()
898 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in cs35l41_dai_set_sysclk()
901 if (!hw_cfg->valid) in cs35l41_dai_set_sysclk()
904 if (hw_cfg->bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) in cs35l41_dai_set_sysclk()
908 ret = cs35l41_init_boost(cs35l41->dev, cs35l41->regmap, hw_cfg); in cs35l41_dai_set_sysclk()
918 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; cs35l41_set_pdata() local
1024 cs35l41_handle_pdata(struct device * dev,struct cs35l41_hw_cfg * hw_cfg) cs35l41_handle_pdata() argument
1187 cs35l41_probe(struct cs35l41_private * cs35l41,const struct cs35l41_hw_cfg * hw_cfg) cs35l41_probe() argument
[all...]
H A Dcs35l41.h29 struct cs35l41_hw_cfg hw_cfg; member
38 int cs35l41_probe(struct cs35l41_private *cs35l41, const struct cs35l41_hw_cfg *hw_cfg);
H A Dcs35l41-i2c.c36 struct cs35l41_hw_cfg *hw_cfg = dev_get_platdata(dev); in cs35l41_i2c_probe() local
53 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_i2c_probe()
H A Dcs35l41-spi.c33 struct cs35l41_hw_cfg *hw_cfg = dev_get_platdata(&spi->dev); in cs35l41_spi_probe() local
52 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_spi_probe()
H A Dcs35l41-lib.c1141 struct cs35l41_hw_cfg *hw_cfg) in cs35l41_init_boost() argument
1145 switch (hw_cfg->bst_type) { in cs35l41_init_boost()
1150 ret = cs35l41_boost_config(dev, regmap, hw_cfg->bst_ind, in cs35l41_init_boost()
1151 hw_cfg->bst_cap, hw_cfg->bst_ipk); in cs35l41_init_boost()
1172 dev_err(dev, "Boost type %d not supported\n", hw_cfg->bst_type); in cs35l41_init_boost()
1368 int cs35l41_gpio_config(struct regmap *regmap, struct cs35l41_hw_cfg *hw_cfg) in cs35l41_gpio_config() argument
1370 struct cs35l41_gpio_cfg *gpio1 = &hw_cfg->gpio1; in cs35l41_gpio_config()
1371 struct cs35l41_gpio_cfg *gpio2 = &hw_cfg->gpio2; in cs35l41_gpio_config()
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_kms.c281 static int get_dsi_id_from_intf(const struct mdp5_cfg_hw *hw_cfg, int intf_num) in get_dsi_id_from_intf() argument
283 const enum mdp5_intf_type *intfs = hw_cfg->intf.connect; in get_dsi_id_from_intf()
284 const int intf_cnt = ARRAY_SIZE(hw_cfg->intf.connect); in get_dsi_id_from_intf()
333 const struct mdp5_cfg_hw *hw_cfg = in modeset_init_intf() local
335 int dsi_id = get_dsi_id_from_intf(hw_cfg, intf->num); in modeset_init_intf()
615 const struct mdp5_cfg_hw *hw_cfg; in hwpipe_init() local
618 hw_cfg = mdp5_cfg_get_hw_config(mdp5_kms->cfg); in hwpipe_init()
621 ret = construct_pipes(mdp5_kms, hw_cfg->pipe_rgb.count, rgb_planes, in hwpipe_init()
622 hw_cfg->pipe_rgb.base, hw_cfg->pipe_rgb.caps); in hwpipe_init()
627 ret = construct_pipes(mdp5_kms, hw_cfg->pipe_vig.count, vig_planes, in hwpipe_init()
[all …]
H A Dmdp5_ctl.c688 const struct mdp5_cfg_hw *hw_cfg = mdp5_cfg_get_hw_config(cfg_hnd); in mdp5_ctlm_init() local
691 const struct mdp5_ctl_block *ctl_cfg = &hw_cfg->ctl; in mdp5_ctlm_init()
709 ctl_mgr->nlm = hw_cfg->lm.count; in mdp5_ctlm_init()
738 for (c = 0; c < ARRAY_SIZE(hw_cfg->intf.connect); c++) in mdp5_ctlm_init()
739 if (hw_cfg->intf.connect[c] == INTF_DSI) in mdp5_ctlm_init()
H A Dmdp5_crtc.c703 const struct mdp5_cfg_hw *hw_cfg; in mdp5_crtc_atomic_check() local
743 hw_cfg = mdp5_cfg_get_hw_config(mdp5_kms->cfg); in mdp5_crtc_atomic_check()
749 if (mode->hdisplay > hw_cfg->lm.max_width) in mdp5_crtc_atomic_check()
770 if ((cnt + start - 1) >= hw_cfg->lm.nb_stages) { in mdp5_crtc_atomic_check()
778 pstates[i].state->stage = hw_cfg->lm.nb_stages; in mdp5_crtc_atomic_check()
/linux/sound/soc/qcom/qdsp6/
H A Daudioreach.c614 struct apm_module_hw_ep_mf_cfg *hw_cfg; in audioreach_display_port_set_media_format() local
633 hw_cfg = p; in audioreach_display_port_set_media_format()
634 param_data = &hw_cfg->param_data; in audioreach_display_port_set_media_format()
640 hw_cfg->mf.sample_rate = cfg->sample_rate; in audioreach_display_port_set_media_format()
641 hw_cfg->mf.bit_width = cfg->bit_width; in audioreach_display_port_set_media_format()
642 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_display_port_set_media_format()
643 hw_cfg->mf.data_format = module->data_format; in audioreach_display_port_set_media_format()
682 struct apm_module_hw_ep_mf_cfg *hw_cfg; in audioreach_codec_dma_set_media_format() local
702 hw_cfg = p; in audioreach_codec_dma_set_media_format()
703 param_data = &hw_cfg->param_data; in audioreach_codec_dma_set_media_format()
[all …]
/linux/sound/soc/intel/avs/
H A Ddsp.c164 if (core_id >= adev->hw_cfg.dsp_cores) { in avs_dsp_get_core()
205 if (core_id >= adev->hw_cfg.dsp_cores) { in avs_dsp_put_core()
H A Davs.h138 struct avs_hw_cfg hw_cfg; member
355 ((adev)->fw_cfg.trace_log_bytes / (adev)->hw_cfg.dsp_cores)
H A Dboard_selection.c484 num_ssps = adev->hw_cfg.i2s_caps.ctrl_count; in avs_register_i2s_board()
533 num_ssps = adev->hw_cfg.i2s_caps.ctrl_count; in avs_register_i2s_boards()
H A Ddebugfs.c81 size = adev->hw_cfg.dsp_cores * AVS_WINDOW_CHUNK_SIZE; in debug_window_read()
262 num_cores = adev->hw_cfg.dsp_cores; in strace_release()
H A Dskl.c81 u32 size, num_cores = adev->hw_cfg.dsp_cores; in avs_skl_enable_logs()
H A Dloader.c677 ret = avs_ipc_get_hw_config(adev, &adev->hw_cfg); in avs_dsp_first_boot_firmware()
689 adev->core_refs = devm_kcalloc(adev->dev, adev->hw_cfg.dsp_cores, in avs_dsp_first_boot_firmware()
H A Dapl.c38 u32 size, num_cores = adev->hw_cfg.dsp_cores; in avs_apl_enable_logs()
H A Dcore.c403 adev->hw_cfg.dsp_cores = hweight_long(AVS_MAIN_CORE_MASK); in avs_bus_init()
571 avs_dsp_core_disable(adev, GENMASK(adev->hw_cfg.dsp_cores - 1, 0)); in avs_pci_remove()
H A Dipc.c136 core_mask = GENMASK(adev->hw_cfg.dsp_cores - 1, 0); in avs_dsp_recovery()
/linux/drivers/net/ethernet/atheros/alx/
H A Dhw.c853 u32 cfg, hw_cfg; in alx_phy_configured() local
857 hw_cfg = alx_get_phy_config(hw); in alx_phy_configured()
859 if (hw_cfg == ALX_DRV_PHY_UNKNOWN) in alx_phy_configured()
862 return cfg == hw_cfg; in alx_phy_configured()
/linux/include/sound/
H A Dcs35l41.h901 int cs35l41_gpio_config(struct regmap *regmap, struct cs35l41_hw_cfg *hw_cfg);
910 struct cs35l41_hw_cfg *hw_cfg);
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.c35 u32 hw_cfg; in pci11x1x_strap_get_status() local
49 hw_cfg = lan743x_csr_read(adapter, HW_CFG); in pci11x1x_strap_get_status()
52 hw_cfg & HW_CFG_RST_PROTECT_) { in pci11x1x_strap_get_status()
3863 adapter->hw_cfg = data; in lan743x_pm_suspend()
3890 lan743x_csr_write(adapter, HW_CFG, adapter->hw_cfg); in lan743x_pm_resume()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_debugfs.c3004 u32 hw_cfg; in hclge_dbg_dump_ptp_info() local
3035 ret = hclge_ptp_cfg_qry(hdev, &hw_cfg); in hclge_dbg_dump_ptp_info()
3040 sw_cfg, hw_cfg); in hclge_dbg_dump_ptp_info()

12