/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | hal.h | 53 #define HAL_TCL1_RING_BASE_LSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_lsb 54 #define HAL_TCL1_RING_BASE_MSB(ab) ab->hw_params.regs->hal_tcl1_ring_base_msb 55 #define HAL_TCL1_RING_ID(ab) ab->hw_params.regs->hal_tcl1_ring_id 56 #define HAL_TCL1_RING_MISC(ab) ab->hw_params.regs->hal_tcl1_ring_misc 58 ab->hw_params.regs->hal_tcl1_ring_tp_addr_lsb 60 ab->hw_params.regs->hal_tcl1_ring_tp_addr_msb 62 ab->hw_params.regs->hal_tcl1_ring_consumer_int_setup_ix0 64 ab->hw_params.regs->hal_tcl1_ring_consumer_int_setup_ix1 66 ab->hw_params.regs->hal_tcl1_ring_msi1_base_lsb 68 ab->hw_params.regs->hal_tcl1_ring_msi1_base_msb [all …]
|
D | ahb.c | 151 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_kill_tasklets() 214 ce_attr = &ab->hw_params.host_ce_config[ce_id]; in ath11k_ahb_ce_irq_enable() 229 ce_attr = &ab->hw_params.host_ce_config[ce_id]; in ath11k_ahb_ce_irq_disable() 245 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_sync_ce_irqs() 273 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_ce_irqs_enable() 284 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ahb_ce_irqs_disable() 353 cfg->tgt_ce_len = ab->hw_params.target_ce_count; in ath11k_ahb_init_qmi_ce_config() 354 cfg->tgt_ce = ab->hw_params.target_ce_config; in ath11k_ahb_init_qmi_ce_config() 355 cfg->svc_to_ce_map_len = ab->hw_params.svc_to_ce_map_len; in ath11k_ahb_init_qmi_ce_config() 356 cfg->svc_to_ce_map = ab->hw_params.svc_to_ce_map; in ath11k_ahb_init_qmi_ce_config() [all …]
|
D | dp.c | 132 grp_mask = &ab->hw_params.ring_mask->tx[0]; in ath11k_dp_srng_calculate_msi_group() 134 grp_mask = &ab->hw_params.ring_mask->rx_wbm_rel[0]; in ath11k_dp_srng_calculate_msi_group() 141 grp_mask = &ab->hw_params.ring_mask->rx_err[0]; in ath11k_dp_srng_calculate_msi_group() 144 grp_mask = &ab->hw_params.ring_mask->rx[0]; in ath11k_dp_srng_calculate_msi_group() 147 grp_mask = &ab->hw_params.ring_mask->reo_status[0]; in ath11k_dp_srng_calculate_msi_group() 151 grp_mask = &ab->hw_params.ring_mask->rx_mon_status[0]; in ath11k_dp_srng_calculate_msi_group() 154 grp_mask = &ab->hw_params.ring_mask->rxdma2host[0]; in ath11k_dp_srng_calculate_msi_group() 157 grp_mask = &ab->hw_params.ring_mask->host2rxdma[0]; in ath11k_dp_srng_calculate_msi_group() 311 if (!ab->hw_params.supports_shadow_regs) in ath11k_dp_stop_shadow_timers() 759 while (ab->hw_params.ring_mask->tx[grp_id] >> i) { in ath11k_dp_service_srng() [all …]
|
D | ce.c | 202 if (!ab->hw_params.supports_shadow_regs) in ath11k_ce_stop_shadow_timers() 205 for (i = 0; i < ab->hw_params.ce_count; i++) in ath11k_ce_stop_shadow_timers() 490 if (!(CE_ATTR_DIS_INTR & ab->hw_params.host_ce_config[ce_id].flags)) in ath11k_ce_init_ring() 495 if (!(CE_ATTR_DIS_INTR & ab->hw_params.host_ce_config[ce_id].flags)) in ath11k_ce_init_ring() 499 params.max_buffer_len = ab->hw_params.host_ce_config[ce_id].src_sz_max; in ath11k_ce_init_ring() 500 if (!(ab->hw_params.host_ce_config[ce_id].flags & CE_ATTR_DIS_INTR)) { in ath11k_ce_init_ring() 507 if (!(ab->hw_params.host_ce_config[ce_id].flags & CE_ATTR_DIS_INTR)) { in ath11k_ce_init_ring() 528 if (ab->hw_params.supports_shadow_regs && in ath11k_ce_init_ring() 577 const struct ce_attr *attr = &ab->hw_params.host_ce_config[ce_id]; in ath11k_ce_alloc_pipe() 749 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_ce_shadow_config() [all …]
|
D | pci.c | 332 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pci_free_irq() 362 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pci_ce_irqs_disable() 374 for (i = 0; i < ab->hw_params.ce_count; i++) { in ath11k_pci_sync_ce_irqs() 525 if (ab->hw_params.ring_mask->tx[i] || in ath11k_pci_ext_irq_config() 526 ab->hw_params.ring_mask->rx[i] || in ath11k_pci_ext_irq_config() 527 ab->hw_params.ring_mask->rx_err[i] || in ath11k_pci_ext_irq_config() 528 ab->hw_params.ring_mask->rx_wbm_rel[i] || in ath11k_pci_ext_irq_config() 529 ab->hw_params.ring_mask->reo_status[i] || in ath11k_pci_ext_irq_config() 530 ab->hw_params.ring_mask->rxdma2host[i] || in ath11k_pci_ext_irq_config() 531 ab->hw_params.ring_mask->host2rxdma[i] || in ath11k_pci_ext_irq_config() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
D | params.c | 231 switch (hsotg->hw_params.op_mode) { in dwc2_set_param_otg_cap() 251 u32 hs_phy_type = hsotg->hw_params.hs_phy_type; in dwc2_set_param_phy_type() 288 val = (hsotg->hw_params.utmi_phy_data_width == in dwc2_set_param_phy_utmi_width() 322 if (hsotg->hw_params.hibernation) in dwc2_set_param_power_down() 324 else if (hsotg->hw_params.power_optimized) in dwc2_set_param_power_down() 336 p->lpm = hsotg->hw_params.lpm_mode; in dwc2_set_param_lpm() 358 struct dwc2_hw_params *hw = &hsotg->hw_params; in dwc2_set_default_params() 463 if (hsotg->hw_params.op_mode != GHWCFG2_OP_MODE_HNP_SRP_CAPABLE) in dwc2_check_param_otg_cap() 467 switch (hsotg->hw_params.op_mode) { in dwc2_check_param_otg_cap() 496 hs_phy_type = hsotg->hw_params.hs_phy_type; in dwc2_check_param_phy_type() [all …]
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | devices.c | 45 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; in iwl1000_set_ct_threshold() 46 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; in iwl1000_set_ct_threshold() 162 priv->hw_params.sens = &iwl1000_sensitivity; in iwl1000_hw_set_hw_params() 183 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; in iwl2000_set_ct_threshold() 184 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; in iwl2000_set_ct_threshold() 223 priv->hw_params.sens = &iwl2000_sensitivity; in iwl2000_hw_set_hw_params() 353 priv->hw_params.ct_kill_threshold = threshold * volt2temp_coef; in iwl5150_set_ct_threshold() 359 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; in iwl5000_set_ct_threshold() 367 priv->hw_params.sens = &iwl5000_sensitivity; in iwl5000_hw_set_hw_params() 375 priv->hw_params.sens = &iwl5150_sensitivity; in iwl5150_hw_set_hw_params() [all …]
|
/kernel/linux/linux-5.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() 494 .hw_params = ml26124_hw_params,
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
D | core.c | 716 bool mtu_workaround = ar->hw_params.credit_size_workaround; in ath10k_init_sdio() 857 u32 board_data_size = ar->hw_params.fw.board_size; in ath10k_push_board_ext_data() 858 u32 board_ext_data_size = ar->hw_params.fw.board_ext_size; in ath10k_push_board_ext_data() 908 address = ar->hw_params.patch_load_addr; in ath10k_core_get_board_id_from_otp() 1072 address = ar->hw_params.patch_load_addr; in ath10k_download_fw() 1092 if (ar->hw_params.fw_diag_ce_download) { in ath10k_download_fw() 1187 if (!ar->hw_params.fw.board) { in ath10k_core_fetch_board_data_api_1() 1193 ar->hw_params.fw.dir, in ath10k_core_fetch_board_data_api_1() 1194 ar->hw_params.fw.board); in ath10k_core_fetch_board_data_api_1() 1201 if (!ar->hw_params.fw.eboard) { in ath10k_core_fetch_board_data_api_1() [all …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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,
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-mac.c | 98 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_reset() 321 if (il->hw_params.rx_page_order > 0) in il4965_rx_allocate() 325 page = alloc_pages(gfp_mask, il->hw_params.rx_page_order); in il4965_rx_allocate() 329 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() 413 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_free() 597 len, PAGE_SIZE << il->hw_params.rx_page_order); in il4965_pass_packet_to_mac80211() [all …]
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
D | bcm_sf2.c | 238 if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1) { in bcm_sf2_port_setup() 291 if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1) in bcm_sf2_port_disable() 588 return priv->hw_params.gphy_rev; in bcm_sf2_sw_get_phy_flags() 870 if (priv->hw_params.num_gphy == 1) in bcm_sf2_sw_resume() 938 for (port = 0; port < priv->hw_params.num_ports; port++) { in bcm_sf2_sw_setup() 1362 priv->hw_params.num_ports = core_readl(priv, CORE_IMP0_PRT_ID) + 1; in bcm_sf2_sw_probe() 1363 if (priv->hw_params.num_ports > DSA_MAX_PORTS) in bcm_sf2_sw_probe() 1364 priv->hw_params.num_ports = DSA_MAX_PORTS; in bcm_sf2_sw_probe() 1368 &priv->hw_params.num_gphy)) in bcm_sf2_sw_probe() 1369 priv->hw_params.num_gphy = 1; in bcm_sf2_sw_probe() [all …]
|
/kernel/linux/linux-5.10/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 233 struct snd_pcm_hw_params *hw_params) in snd_cs5535audio_hw_params() argument 240 dma->buf_bytes = params_buffer_bytes(hw_params); in snd_cs5535audio_hw_params() 243 params_periods(hw_params), in snd_cs5535audio_hw_params() 244 params_period_bytes(hw_params)); in snd_cs5535audio_hw_params() 369 .hw_params = snd_cs5535audio_hw_params, 379 .hw_params = snd_cs5535audio_hw_params,
|
/kernel/linux/linux-5.10/sound/pci/echoaudio/ |
D | echoaudio.c | 524 struct snd_pcm_hw_params *hw_params, in init_engine() argument 557 params_buffer_bytes(hw_params), params_periods(hw_params), in init_engine() 558 params_period_bytes(hw_params)); in init_engine() 562 for (offs = page = per = 0; offs < params_buffer_bytes(hw_params); in init_engine() 564 rest = params_period_bytes(hw_params); in init_engine() 565 if (offs + rest > params_buffer_bytes(hw_params)) in init_engine() 566 rest = params_buffer_bytes(hw_params) - offs; in init_engine() 601 set_sample_rate(chip, hw_params->rate_num / hw_params->rate_den); in init_engine() 609 struct snd_pcm_hw_params *hw_params) in pcm_analog_in_hw_params() argument 613 return init_engine(substream, hw_params, px_analog_in(chip) + in pcm_analog_in_hw_params() [all …]
|
/kernel/linux/linux-5.10/sound/soc/dwc/ |
D | dwc-pcm.c | 161 struct snd_pcm_hw_params *hw_params) in dw_pcm_hw_params() argument 166 switch (params_channels(hw_params)) { in dw_pcm_hw_params() 174 switch (params_format(hw_params)) { in dw_pcm_hw_params() 256 .hw_params = dw_pcm_hw_params,
|