/linux-5.19.10/sound/pci/oxygen/ |
D | oxygen_pcm.c | 241 static unsigned int oxygen_format(struct snd_pcm_hw_params *hw_params) in oxygen_format() argument 243 if (params_format(hw_params) == SNDRV_PCM_FORMAT_S32_LE) in oxygen_format() 249 static unsigned int oxygen_rate(struct snd_pcm_hw_params *hw_params) in oxygen_rate() argument 251 switch (params_rate(hw_params)) { in oxygen_rate() 271 static unsigned int oxygen_i2s_bits(struct snd_pcm_hw_params *hw_params) in oxygen_i2s_bits() argument 273 if (params_format(hw_params) == SNDRV_PCM_FORMAT_S32_LE) in oxygen_i2s_bits() 279 static unsigned int oxygen_play_channels(struct snd_pcm_hw_params *hw_params) in oxygen_play_channels() argument 281 switch (params_channels(hw_params)) { in oxygen_play_channels() 303 struct snd_pcm_hw_params *hw_params) in oxygen_hw_params() argument 312 params_buffer_bytes(hw_params) / 4 - 1); in oxygen_hw_params() [all …]
|
/linux-5.19.10/drivers/net/wireless/ath/ath11k/ |
D | hal.h | 35 #define HAL_SHADOW_BASE_ADDR(ab) ab->hw_params.regs->hal_shadow_base_addr 47 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_src_reg) 49 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_dst_reg) 51 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_src_reg) 53 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_dst_reg) 62 #define HAL_TCL1_RING_BASE_LSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_lsb 63 #define HAL_TCL1_RING_BASE_MSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_msb 64 #define HAL_TCL1_RING_ID(ab) ab->hw_params.regs->hal_tcl1_ring_id 65 #define HAL_TCL1_RING_MISC(ab) ab->hw_params.regs->hal_tcl1_ring_misc 67 ab->hw_params.regs->hal_tcl1_ring_tp_addr_lsb [all …]
|
D | dp.c | 135 grp_mask = &ab->hw_params.ring_mask->tx[0]; in ath11k_dp_srng_calculate_msi_group() 137 grp_mask = &ab->hw_params.ring_mask->rx_wbm_rel[0]; in ath11k_dp_srng_calculate_msi_group() 144 grp_mask = &ab->hw_params.ring_mask->rx_err[0]; in ath11k_dp_srng_calculate_msi_group() 147 grp_mask = &ab->hw_params.ring_mask->rx[0]; in ath11k_dp_srng_calculate_msi_group() 150 grp_mask = &ab->hw_params.ring_mask->reo_status[0]; in ath11k_dp_srng_calculate_msi_group() 154 grp_mask = &ab->hw_params.ring_mask->rx_mon_status[0]; in ath11k_dp_srng_calculate_msi_group() 157 grp_mask = &ab->hw_params.ring_mask->rxdma2host[0]; in ath11k_dp_srng_calculate_msi_group() 160 grp_mask = &ab->hw_params.ring_mask->host2rxdma[0]; in ath11k_dp_srng_calculate_msi_group() 238 if (ab->hw_params.alloc_cacheable_memory) { in ath11k_dp_srng_setup() 340 if (!ab->hw_params.supports_shadow_regs) in ath11k_dp_stop_shadow_timers() [all …]
|
D | ahb.c | 206 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_kill_tasklets() 269 ce_attr = &ab->hw_params.host_ce_config[ce_id]; in ath11k_ahb_ce_irq_enable() 284 ce_attr = &ab->hw_params.host_ce_config[ce_id]; in ath11k_ahb_ce_irq_disable() 300 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_sync_ce_irqs() 328 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_ce_irqs_enable() 339 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_ce_irqs_disable() 409 ab->hw_params.cold_boot_calib == 0) in ath11k_ahb_fwreset_from_cold_boot() 433 cfg->tgt_ce_len = ab->hw_params.target_ce_count; in ath11k_ahb_init_qmi_ce_config() 434 cfg->tgt_ce = ab->hw_params.target_ce_config; in ath11k_ahb_init_qmi_ce_config() 435 cfg->svc_to_ce_map_len = ab->hw_params.svc_to_ce_map_len; in ath11k_ahb_init_qmi_ce_config() [all …]
|
D | ce.c | 263 if (!ab->hw_params.supports_shadow_regs) in ath11k_ce_stop_shadow_timers() 266 for (i = 0; i < ab->hw_params.ce_count; i++) in ath11k_ce_stop_shadow_timers() 514 if ((!pipe->send_cb) || ab->hw_params.credit_flow) { in ath11k_ce_tx_process_cb() 566 if (!(CE_ATTR_DIS_INTR & ab->hw_params.host_ce_config[ce_id].flags)) in ath11k_ce_init_ring() 571 if (!(CE_ATTR_DIS_INTR & ab->hw_params.host_ce_config[ce_id].flags)) in ath11k_ce_init_ring() 575 params.max_buffer_len = ab->hw_params.host_ce_config[ce_id].src_sz_max; in ath11k_ce_init_ring() 576 if (!(ab->hw_params.host_ce_config[ce_id].flags & CE_ATTR_DIS_INTR)) { in ath11k_ce_init_ring() 583 if (!(ab->hw_params.host_ce_config[ce_id].flags & CE_ATTR_DIS_INTR)) { in ath11k_ce_init_ring() 604 if (ab->hw_params.supports_shadow_regs && in ath11k_ce_init_ring() 653 const struct ce_attr *attr = &ab->hw_params.host_ce_config[ce_id]; in ath11k_ce_alloc_pipe() [all …]
|
D | pcic.c | 232 for (i = 0, msi_data_idx = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pcic_get_ce_msi_idx() 263 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pcic_free_irq() 308 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pcic_ce_irqs_disable() 320 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pcic_sync_ce_irqs() 522 if (ab->hw_params.ring_mask->tx[i] || in ath11k_pcic_ext_irq_config() 523 ab->hw_params.ring_mask->rx[i] || in ath11k_pcic_ext_irq_config() 524 ab->hw_params.ring_mask->rx_err[i] || in ath11k_pcic_ext_irq_config() 525 ab->hw_params.ring_mask->rx_wbm_rel[i] || in ath11k_pcic_ext_irq_config() 526 ab->hw_params.ring_mask->reo_status[i] || in ath11k_pcic_ext_irq_config() 527 ab->hw_params.ring_mask->rxdma2host[i] || in ath11k_pcic_ext_irq_config() [all …]
|
D | pci.h | 39 (ab->hw_params.regs->pcie_qserdes_sysclk_en_sel) 43 (ab->hw_params.regs->pcie_pcs_osc_dtct_config_base) 46 (ab->hw_params.regs->pcie_pcs_osc_dtct_config_base + 0x4) 49 (ab->hw_params.regs->pcie_pcs_osc_dtct_config_base + 0xc)
|
D | dp_rx.c | 26 return ab->hw_params.hw_ops->rx_desc_get_hdr_status(desc); in ath11k_dp_rx_h_80211_hdr() 33 if (!ab->hw_params.hw_ops->rx_desc_encrypt_valid(desc)) in ath11k_dp_rx_h_mpdu_start_enctype() 36 return ab->hw_params.hw_ops->rx_desc_get_encrypt_type(desc); in ath11k_dp_rx_h_mpdu_start_enctype() 42 return ab->hw_params.hw_ops->rx_desc_get_decap_type(desc); in ath11k_dp_rx_h_msdu_start_decap_type() 49 return ab->hw_params.hw_ops->rx_desc_get_ldpc_support(desc); in ath11k_dp_rx_h_msdu_start_ldpc_support() 56 return ab->hw_params.hw_ops->rx_desc_get_mesh_ctl(desc); in ath11k_dp_rx_h_msdu_start_mesh_ctl_present() 63 return ab->hw_params.hw_ops->rx_desc_get_mpdu_seq_ctl_vld(desc); in ath11k_dp_rx_h_mpdu_start_seq_ctrl_valid() 69 return ab->hw_params.hw_ops->rx_desc_get_mpdu_fc_valid(desc); in ath11k_dp_rx_h_mpdu_start_fc_valid() 77 hdr = (struct ieee80211_hdr *)(skb->data + ab->hw_params.hal_desc_sz); in ath11k_dp_rx_h_mpdu_start_more_frags() 86 hdr = (struct ieee80211_hdr *)(skb->data + ab->hw_params.hal_desc_sz); in ath11k_dp_rx_h_mpdu_start_frag_no() [all …]
|
/linux-5.19.10/drivers/usb/dwc2/ |
D | params.c | 312 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap() 333 u32 hs_phy_type = hsotg->hw_params.hs_phy_type; in dwc2_set_param_phy_type() 370 val = (hsotg->hw_params.utmi_phy_data_width == in dwc2_set_param_phy_utmi_width() 404 if (hsotg->hw_params.hibernation) in dwc2_set_param_power_down() 406 else if (hsotg->hw_params.power_optimized) in dwc2_set_param_power_down() 418 p->lpm = hsotg->hw_params.lpm_mode; in dwc2_set_param_lpm() 440 struct dwc2_hw_params *hw = &hsotg->hw_params; in dwc2_set_default_params() 547 if (hsotg->hw_params.op_mode != GHWCFG2_OP_MODE_HNP_SRP_CAPABLE) in dwc2_check_param_otg_cap() 552 switch (hsotg->hw_params.op_mode) { in dwc2_check_param_otg_cap() 578 hs_phy_type = hsotg->hw_params.hs_phy_type; in dwc2_check_param_phy_type() [all …]
|
/linux-5.19.10/sound/firewire/oxfw/ |
D | oxfw-pcm.c | 237 struct snd_pcm_hw_params *hw_params) in pcm_capture_hw_params() argument 243 unsigned int rate = params_rate(hw_params); in pcm_capture_hw_params() 244 unsigned int channels = params_channels(hw_params); in pcm_capture_hw_params() 245 unsigned int frames_per_period = params_period_size(hw_params); in pcm_capture_hw_params() 246 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_capture_hw_params() 260 struct snd_pcm_hw_params *hw_params) in pcm_playback_hw_params() argument 266 unsigned int rate = params_rate(hw_params); in pcm_playback_hw_params() 267 unsigned int channels = params_channels(hw_params); in pcm_playback_hw_params() 268 unsigned int frames_per_period = params_period_size(hw_params); in pcm_playback_hw_params() 269 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_playback_hw_params() [all …]
|
/linux-5.19.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | devices.c | 40 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; in iwl1000_set_ct_threshold() 41 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; in iwl1000_set_ct_threshold() 157 priv->hw_params.sens = &iwl1000_sensitivity; in iwl1000_hw_set_hw_params() 178 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; in iwl2000_set_ct_threshold() 179 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; in iwl2000_set_ct_threshold() 218 priv->hw_params.sens = &iwl2000_sensitivity; in iwl2000_hw_set_hw_params() 348 priv->hw_params.ct_kill_threshold = threshold * volt2temp_coef; in iwl5150_set_ct_threshold() 354 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; in iwl5000_set_ct_threshold() 362 priv->hw_params.sens = &iwl5000_sensitivity; in iwl5000_hw_set_hw_params() 370 priv->hw_params.sens = &iwl5150_sensitivity; in iwl5150_hw_set_hw_params() [all …]
|
/linux-5.19.10/sound/virtio/ |
D | virtio_pcm_ops.c | 215 struct snd_pcm_hw_params *hw_params) in virtsnd_pcm_hw_params() argument 227 rc = virtsnd_pcm_dev_set_params(vss, params_buffer_bytes(hw_params), in virtsnd_pcm_hw_params() 228 params_period_bytes(hw_params), in virtsnd_pcm_hw_params() 229 params_channels(hw_params), in virtsnd_pcm_hw_params() 230 params_format(hw_params), in virtsnd_pcm_hw_params() 231 params_rate(hw_params)); in virtsnd_pcm_hw_params() 241 return virtsnd_pcm_msg_alloc(vss, params_periods(hw_params), in virtsnd_pcm_hw_params() 242 params_period_bytes(hw_params)); in virtsnd_pcm_hw_params() 458 .hw_params = virtsnd_pcm_hw_params,
|
/linux-5.19.10/sound/soc/codecs/ |
D | uda134x.c | 183 unsigned int hw_params = 0; in uda134x_hw_params() local 199 hw_params |= (1<<4); in uda134x_hw_params() 202 hw_params |= (1<<5); in uda134x_hw_params() 219 hw_params |= (1<<1); in uda134x_hw_params() 222 hw_params |= (1<<2); in uda134x_hw_params() 225 hw_params |= ((1<<2) | (1<<1)); in uda134x_hw_params() 234 hw_params |= (1<<3); in uda134x_hw_params() 242 STATUS0_SYSCLK_MASK | STATUS0_DAIFMT_MASK, hw_params); in uda134x_hw_params() 418 .hw_params = uda134x_hw_params,
|
D | ml26124.c | 325 struct snd_pcm_hw_params *hw_params, in ml26124_hw_params() argument 330 int i = get_coeff(priv->mclk, params_rate(hw_params)); in ml26124_hw_params() 336 priv->rate = params_rate(hw_params); in ml26124_hw_params() 339 switch (priv->mclk / params_rate(hw_params)) { in ml26124_hw_params() 361 srate = get_srate(params_rate(hw_params)); in ml26124_hw_params() 493 .hw_params = ml26124_hw_params,
|
/linux-5.19.10/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 51 (TOTAL_DESC - priv->hw_params->rx_queues * priv->hw_params->rx_bds_per_q) 53 (TOTAL_DESC - priv->hw_params->tx_queues * priv->hw_params->tx_bds_per_q) 59 #define WORDS_PER_BD(p) (p->hw_params->words_per_bd) 62 #define GENET_TDMA_REG_OFF (priv->hw_params->tdma_offset + \ 65 #define GENET_RDMA_REG_OFF (priv->hw_params->rdma_offset + \ 107 if (priv->hw_params->flags & GENET_HAS_40BITS) in dmadesc_set_addr() 132 if (priv->hw_params->flags & GENET_HAS_40BITS) in dmadesc_get_addr() 169 priv->hw_params->tbuf_offset + TBUF_CTRL); in bcmgenet_tbuf_ctrl_get() 178 priv->hw_params->tbuf_offset + TBUF_CTRL); in bcmgenet_tbuf_ctrl_set() 187 priv->hw_params->tbuf_offset + TBUF_BP_MC); in bcmgenet_bp_mc_get() [all …]
|
/linux-5.19.10/drivers/net/wireless/ath/ath10k/ |
D | core.c | 766 bool mtu_workaround = ar->hw_params.credit_size_workaround; in ath10k_init_sdio() 907 u32 board_data_size = ar->hw_params.fw.board_size; in ath10k_push_board_ext_data() 908 u32 board_ext_data_size = ar->hw_params.fw.board_ext_size; in ath10k_push_board_ext_data() 958 address = ar->hw_params.patch_load_addr; in ath10k_core_get_board_id_from_otp() 1123 address = ar->hw_params.patch_load_addr; in ath10k_download_fw() 1143 if (ar->hw_params.fw_diag_ce_download) { in ath10k_download_fw() 1239 if (!ar->hw_params.fw.board) { in ath10k_core_fetch_board_data_api_1() 1248 ar->hw_params.fw.dir, in ath10k_core_fetch_board_data_api_1() 1252 ar->hw_params.fw.dir, in ath10k_core_fetch_board_data_api_1() 1253 ar->hw_params.fw.board); in ath10k_core_fetch_board_data_api_1() [all …]
|
/linux-5.19.10/sound/firewire/tascam/ |
D | tascam-pcm.c | 117 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 123 unsigned int rate = params_rate(hw_params); in pcm_hw_params() 124 unsigned int frames_per_period = params_period_size(hw_params); in pcm_hw_params() 125 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_hw_params() 257 .hw_params = pcm_hw_params, in snd_tscm_create_pcm_devices() 267 .hw_params = pcm_hw_params, in snd_tscm_create_pcm_devices()
|
/linux-5.19.10/sound/soc/ |
D | soc-link.c | 119 rtd->dai_link->ops->hw_params) in snd_soc_link_hw_params() 120 ret = rtd->dai_link->ops->hw_params(substream, params); in snd_soc_link_hw_params() 124 soc_link_mark_push(rtd, substream, hw_params); in snd_soc_link_hw_params() 133 if (rollback && !soc_link_mark_match(rtd, substream, hw_params)) in snd_soc_link_hw_free() 141 soc_link_mark_pop(rtd, substream, hw_params); in snd_soc_link_hw_free()
|
/linux-5.19.10/sound/firewire/digi00x/ |
D | digi00x-pcm.c | 188 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 194 unsigned int rate = params_rate(hw_params); in pcm_hw_params() 195 unsigned int frames_per_period = params_period_size(hw_params); in pcm_hw_params() 196 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_hw_params() 328 .hw_params = pcm_hw_params, in snd_dg00x_create_pcm_devices() 338 .hw_params = pcm_hw_params, in snd_dg00x_create_pcm_devices()
|
/linux-5.19.10/sound/soc/meson/ |
D | axg-toddr.c | 122 .hw_params = axg_toddr_dai_hw_params, 181 .hw_params = axg_fifo_pcm_hw_params, 216 .hw_params = axg_toddr_dai_hw_params, 241 .hw_params = g12a_fifo_pcm_hw_params, 311 .hw_params = g12a_fifo_pcm_hw_params,
|
/linux-5.19.10/sound/firewire/fireworks/ |
D | fireworks_pcm.c | 248 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 254 unsigned int rate = params_rate(hw_params); in pcm_hw_params() 255 unsigned int frames_per_period = params_period_size(hw_params); in pcm_hw_params() 256 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_hw_params() 375 .hw_params = pcm_hw_params, in snd_efw_create_pcm_devices() 385 .hw_params = pcm_hw_params, in snd_efw_create_pcm_devices()
|
/linux-5.19.10/sound/firewire/motu/ |
D | motu-pcm.c | 208 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 214 unsigned int rate = params_rate(hw_params); in pcm_hw_params() 215 unsigned int frames_per_period = params_period_size(hw_params); in pcm_hw_params() 216 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_hw_params() 339 .hw_params = pcm_hw_params, in snd_motu_create_pcm_devices() 349 .hw_params = pcm_hw_params, in snd_motu_create_pcm_devices()
|
/linux-5.19.10/sound/firewire/bebob/ |
D | bebob_pcm.c | 212 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 218 unsigned int rate = params_rate(hw_params); in pcm_hw_params() 219 unsigned int frames_per_period = params_period_size(hw_params); in pcm_hw_params() 220 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_hw_params() 345 .hw_params = pcm_hw_params, in snd_bebob_create_pcm_devices() 355 .hw_params = pcm_hw_params, in snd_bebob_create_pcm_devices()
|
/linux-5.19.10/sound/firewire/fireface/ |
D | ff-pcm.c | 228 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 234 unsigned int rate = params_rate(hw_params); in pcm_hw_params() 235 unsigned int frames_per_period = params_period_size(hw_params); in pcm_hw_params() 236 unsigned int frames_per_buffer = params_buffer_size(hw_params); in pcm_hw_params() 368 .hw_params = pcm_hw_params, in snd_ff_create_pcm_devices() 378 .hw_params = pcm_hw_params, in snd_ff_create_pcm_devices()
|
/linux-5.19.10/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-mac.c | 99 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_reset() 322 if (il->hw_params.rx_page_order > 0) in il4965_rx_allocate() 326 page = alloc_pages(gfp_mask, il->hw_params.rx_page_order); in il4965_rx_allocate() 330 il->hw_params.rx_page_order); in il4965_rx_allocate() 347 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_allocate() 350 __free_pages(page, il->hw_params.rx_page_order); in il4965_rx_allocate() 359 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_allocate() 361 __free_pages(page, il->hw_params.rx_page_order); in il4965_rx_allocate() 414 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_free() 598 len, PAGE_SIZE << il->hw_params.rx_page_order); in il4965_pass_packet_to_mac80211() [all …]
|