/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 58 (TOTAL_DESC - priv->hw_params->rx_queues * priv->hw_params->rx_bds_per_q) 60 (TOTAL_DESC - priv->hw_params->tx_queues * priv->hw_params->tx_bds_per_q) 66 #define WORDS_PER_BD(p) (p->hw_params->words_per_bd) 69 #define GENET_TDMA_REG_OFF (priv->hw_params->tdma_offset + \ 72 #define GENET_RDMA_REG_OFF (priv->hw_params->rdma_offset + \ 98 if (priv->hw_params->flags & GENET_HAS_40BITS) in dmadesc_set_addr() 123 if (priv->hw_params->flags & GENET_HAS_40BITS) in dmadesc_get_addr() 160 priv->hw_params->tbuf_offset + TBUF_CTRL); in bcmgenet_tbuf_ctrl_get() 169 priv->hw_params->tbuf_offset + TBUF_CTRL); in bcmgenet_tbuf_ctrl_set() 178 priv->hw_params->tbuf_offset + TBUF_BP_MC); in bcmgenet_bp_mc_get() [all …]
|
D | bcmgenet.h | 598 struct bcmgenet_hw_params *hw_params; member 671 GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset); 674 GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | devices.c | 57 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; in iwl1000_set_ct_threshold() 58 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; in iwl1000_set_ct_threshold() 174 priv->hw_params.sens = &iwl1000_sensitivity; in iwl1000_hw_set_hw_params() 195 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD; in iwl2000_set_ct_threshold() 196 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD; in iwl2000_set_ct_threshold() 235 priv->hw_params.sens = &iwl2000_sensitivity; in iwl2000_hw_set_hw_params() 365 priv->hw_params.ct_kill_threshold = threshold * volt2temp_coef; in iwl5150_set_ct_threshold() 371 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; in iwl5000_set_ct_threshold() 379 priv->hw_params.sens = &iwl5000_sensitivity; in iwl5000_hw_set_hw_params() 387 priv->hw_params.sens = &iwl5150_sensitivity; in iwl5150_hw_set_hw_params() [all …]
|
D | main.c | 603 cpu_to_le32(priv->hw_params.ct_kill_threshold); in iwl_rf_kill_ct_config() 605 cpu_to_le32(priv->hw_params.ct_kill_exit_threshold); in iwl_rf_kill_ct_config() 616 priv->hw_params.ct_kill_threshold, in iwl_rf_kill_ct_config() 617 priv->hw_params.ct_kill_exit_threshold); in iwl_rf_kill_ct_config() 620 cpu_to_le32(priv->hw_params.ct_kill_threshold); in iwl_rf_kill_ct_config() 631 priv->hw_params.ct_kill_threshold); in iwl_rf_kill_ct_config() 1076 priv->hw_params.use_rts_for_aggregation = in iwl_set_hw_params() 1129 priv->hw_params.tx_chains_num = in iwl_eeprom_init_hw_params() 1132 priv->hw_params.rx_chains_num = 1; in iwl_eeprom_init_hw_params() 1134 priv->hw_params.rx_chains_num = in iwl_eeprom_init_hw_params()
|
/drivers/net/wireless/ath/ath10k/ |
D | core.c | 359 u32 board_data_size = ar->hw_params.fw.board_size; in ath10k_push_board_ext_data() 360 u32 board_ext_data_size = ar->hw_params.fw.board_ext_size; in ath10k_push_board_ext_data() 406 u32 board_data_size = ar->hw_params.fw.board_size; in ath10k_download_board_data() 525 address = ar->hw_params.patch_load_addr; in ath10k_core_get_board_id_from_otp() 574 u32 result, address = ar->hw_params.patch_load_addr; in ath10k_download_and_run_otp() 575 u32 bmi_otp_exe_param = ar->hw_params.otp_exe_param; in ath10k_download_and_run_otp() 626 address = ar->hw_params.patch_load_addr; in ath10k_download_fw() 720 if (!ar->hw_params.fw.board) { in ath10k_core_fetch_board_data_api_1() 726 ar->hw_params.fw.dir, in ath10k_core_fetch_board_data_api_1() 727 ar->hw_params.fw.board); in ath10k_core_fetch_board_data_api_1() [all …]
|
D | htt_tx.c | 58 ar->hw_params.max_probe_resp_desc_thres)) { in ath10k_htt_tx_inc_pending() 121 if (!ar->hw_params.continuous_frag_desc) in ath10k_htt_tx_alloc() 273 if (!ar->hw_params.continuous_frag_desc) in ath10k_htt_send_frag_desc_bank_cfg() 457 if (ar->hw_params.max_probe_resp_desc_thres) { in ath10k_htt_mgmt_tx() 548 ar->hw_params.max_probe_resp_desc_thres) { in ath10k_htt_tx() 599 if (ar->hw_params.continuous_frag_desc) { in ath10k_htt_tx() 668 if (ar->hw_params.continuous_frag_desc) in ath10k_htt_tx()
|
D | hw.c | 147 if (ar->hw_params.has_shifted_cc_wraparound && cc < cc_prev) { in ath10k_hw_fill_survey_time()
|
/drivers/usb/dwc2/ |
D | core.c | 462 if ((hsotg->hw_params.hs_phy_type == GHWCFG2_HS_PHY_TYPE_ULPI && in dwc2_init_fs_ls_pclk_sel() 463 hsotg->hw_params.fs_phy_type == GHWCFG2_FS_PHY_TYPE_DEDICATED && in dwc2_init_fs_ls_pclk_sel() 665 if (hsotg->hw_params.hs_phy_type == GHWCFG2_HS_PHY_TYPE_ULPI && in dwc2_phy_init() 666 hsotg->hw_params.fs_phy_type == GHWCFG2_FS_PHY_TYPE_DEDICATED && in dwc2_phy_init() 687 switch (hsotg->hw_params.arch) { in dwc2_gahbcfg_init() 736 switch (hsotg->hw_params.op_mode) { in dwc2_gusbcfg_init() 895 struct dwc2_hw_params *hw = &hsotg->hw_params; in dwc2_calculate_dynamic_fifo() 995 hsotg->hw_params.snpsid <= DWC2_CORE_REV_2_94a) { in dwc2_config_fifos() 1050 u32 op_mode = hsotg->hw_params.op_mode; in dwc2_core_host_init() 1051 if (hsotg->hw_params.snpsid < DWC2_CORE_REV_2_90a || in dwc2_core_host_init() [all …]
|
D | core_intr.c | 188 if (hsotg->hw_params.snpsid >= DWC2_CORE_REV_3_00a) in dwc2_handle_otg_intr() 437 hsotg->hw_params.power_optimized); in dwc2_handle_usb_suspend_intr() 438 if ((dsts & DSTS_SUSPSTS) && hsotg->hw_params.power_optimized) { in dwc2_handle_usb_suspend_intr()
|
/drivers/net/dsa/ |
D | bcm_sf2.c | 153 for (i = 0; i < priv->hw_params.num_ports; i++) { in bcm_sf2_imp_vlan_setup() 330 if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1) { in bcm_sf2_port_setup() 382 if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1) in bcm_sf2_port_disable() 494 for (i = 0; i < priv->hw_params.num_ports; i++) { in bcm_sf2_sw_br_join() 527 for (i = 0; i < priv->hw_params.num_ports; i++) { in bcm_sf2_sw_br_leave() 994 priv->hw_params.num_ports = core_readl(priv, CORE_IMP0_PRT_ID) + 1; in bcm_sf2_sw_setup() 995 if (priv->hw_params.num_ports > DSA_MAX_PORTS) in bcm_sf2_sw_setup() 996 priv->hw_params.num_ports = DSA_MAX_PORTS; in bcm_sf2_sw_setup() 1000 &priv->hw_params.num_gphy)) in bcm_sf2_sw_setup() 1001 priv->hw_params.num_gphy = 1; in bcm_sf2_sw_setup() [all …]
|
/drivers/net/wireless/iwlegacy/ |
D | 4965-mac.c | 113 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_reset() 336 if (il->hw_params.rx_page_order > 0) in il4965_rx_allocate() 340 page = alloc_pages(gfp_mask, il->hw_params.rx_page_order); in il4965_rx_allocate() 344 il->hw_params.rx_page_order); in il4965_rx_allocate() 362 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_allocate() 365 __free_pages(page, il->hw_params.rx_page_order); in il4965_rx_allocate() 374 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_allocate() 376 __free_pages(page, il->hw_params.rx_page_order); in il4965_rx_allocate() 428 PAGE_SIZE << il->hw_params.rx_page_order, in il4965_rx_queue_free() 612 len, PAGE_SIZE << il->hw_params.rx_page_order); in il4965_pass_packet_to_mac80211() [all …]
|
D | 4965-calib.c | 120 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_energy_cck() 299 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_sens_auto_corr_ofdm() 434 const struct il_sensitivity_ranges *ranges = il->hw_params.sens; in il4965_init_sensitivity() 674 active_chains &= il->hw_params.valid_rx_ant; in il4965_find_disconn_antenna() 681 if (!(il->hw_params.valid_tx_ant & ant_msk)) in il4965_find_disconn_antenna() 688 if (num_tx_chains == il->hw_params.tx_chains_num && in il4965_find_disconn_antenna() 704 if (active_chains != il->hw_params.valid_rx_ant && in il4965_find_disconn_antenna() 708 il->hw_params.valid_rx_ant); in il4965_find_disconn_antenna()
|
D | 3945.c | 490 u32 fraglen = PAGE_SIZE << il->hw_params.rx_page_order; in il3945_pass_packet_to_mac80211() 869 for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) { in il3945_txq_ctx_reset() 1023 for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) in il3945_hw_txq_ctx_free() 1044 for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++) { in il3945_hw_txq_ctx_stop() 2402 memset((void *)&il->hw_params, 0, sizeof(struct il_hw_params)); in il3945_hw_set_hw_params() 2410 il->hw_params.bcast_id = IL3945_BROADCAST_ID; in il3945_hw_set_hw_params() 2413 il->hw_params.max_txq_num = il->cfg->num_of_queues; in il3945_hw_set_hw_params() 2415 il->hw_params.tfd_size = sizeof(struct il3945_tfd); in il3945_hw_set_hw_params() 2416 il->hw_params.rx_page_order = get_order(IL_RX_BUF_SIZE_3K); in il3945_hw_set_hw_params() 2417 il->hw_params.max_rxq_size = RX_QUEUE_SIZE; in il3945_hw_set_hw_params() [all …]
|
D | 4965-rs.c | 753 il4965_first_antenna(il->hw_params.valid_tx_ant); in il4965_rs_get_lower_rate() 1189 if (il->hw_params.tx_chains_num < 2) in il4965_rs_switch_to_mimo2() 1286 u8 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_move_legacy_other() 1287 u8 tx_chains_num = il->hw_params.tx_chains_num; in il4965_rs_move_legacy_other() 1407 u8 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_move_siso_to_other() 1408 u8 tx_chains_num = il->hw_params.tx_chains_num; in il4965_rs_move_siso_to_other() 1530 u8 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_move_mimo2_to_other() 1531 u8 tx_chains_num = il->hw_params.tx_chains_num; in il4965_rs_move_mimo2_to_other() 2167 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_initialize_lq() 2348 il4965_first_antenna(il->hw_params.valid_tx_ant); in il4965_rs_rate_init() [all …]
|
D | common.c | 1524 u8 ant_idx = fls(il->hw_params.valid_tx_ant) - 1; in il_init_scan_params() 1949 sta_id = il->hw_params.bcast_id; in il_prep_station() 1951 for (i = IL_STA_ID; i < il->hw_params.max_stations; i++) { in il_prep_station() 2229 for (i = 0; i < il->hw_params.max_stations; i++) { in il_clear_ucode_stations() 2269 for (i = 0; i < il->hw_params.max_stations; i++) { in il_restore_stations() 2280 for (i = 0; i < il->hw_params.max_stations; i++) { in il_restore_stations() 2342 for (i = 0; i < il->hw_params.max_stations; i++) { in il_dealloc_bcast_stations() 2574 u32 rx_wrt_ptr_reg = il->hw_params.rx_wrt_ptr_reg; in il_rx_queue_update_write_ptr() 2802 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd, in il_tx_queue_free() 2881 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd, in il_cmd_queue_free() [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-alsa.c | 372 struct snd_pcm_hw_params *hw_params) in snd_cx23885_hw_params() argument 383 chip->period_size = params_period_bytes(hw_params); in snd_cx23885_hw_params() 384 chip->num_periods = params_periods(hw_params); in snd_cx23885_hw_params() 385 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params() 513 .hw_params = snd_cx23885_hw_params,
|
/drivers/media/usb/tm6000/ |
D | tm6000-alsa.c | 283 struct snd_pcm_hw_params *hw_params) in snd_tm6000_hw_params() argument 287 size = params_period_bytes(hw_params) * params_periods(hw_params); in snd_tm6000_hw_params() 395 .hw_params = snd_tm6000_hw_params,
|
/drivers/staging/most/aim-sound/ |
D | sound.c | 337 struct snd_pcm_hw_params *hw_params) in pcm_hw_params() argument 341 if ((params_channels(hw_params) > channel->pcm_hardware.channels_max) || in pcm_hw_params() 342 (params_channels(hw_params) < channel->pcm_hardware.channels_min)) { in pcm_hw_params() 347 params_buffer_bytes(hw_params)); in pcm_hw_params() 466 .hw_params = pcm_hw_params,
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-audio.c | 518 struct snd_pcm_hw_params *hw_params) in snd_cx231xx_hw_capture_params() argument 526 params_buffer_bytes(hw_params)); in snd_cx231xx_hw_capture_params() 533 format = params_format(hw_params); in snd_cx231xx_hw_capture_params() 534 rate = params_rate(hw_params); in snd_cx231xx_hw_capture_params() 535 channels = params_channels(hw_params); in snd_cx231xx_hw_capture_params() 639 .hw_params = snd_cx231xx_hw_capture_params,
|
/drivers/media/usb/go7007/ |
D | snd-go7007.c | 107 struct snd_pcm_hw_params *hw_params) in go7007_snd_hw_params() argument 112 bytes = params_buffer_bytes(hw_params); in go7007_snd_hw_params() 205 .hw_params = go7007_snd_hw_params,
|
/drivers/media/usb/usbtv/ |
D | usbtv-audio.c | 75 struct snd_pcm_hw_params *hw_params) in snd_usbtv_hw_params() argument 81 params_buffer_bytes(hw_params)); in snd_usbtv_hw_params() 325 .hw_params = snd_usbtv_hw_params,
|
/drivers/media/pci/cx25821/ |
D | cx25821-alsa.c | 510 struct snd_pcm_hw_params *hw_params) in snd_cx25821_hw_params() argument 521 chip->period_size = params_period_bytes(hw_params); in snd_cx25821_hw_params() 522 chip->num_periods = params_periods(hw_params); in snd_cx25821_hw_params() 523 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params() 656 .hw_params = snd_cx25821_hw_params,
|
/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 352 struct snd_pcm_hw_params *hw_params) in snd_em28xx_hw_capture_params() argument 363 params_buffer_bytes(hw_params)); in snd_em28xx_hw_capture_params() 372 format = params_format(hw_params); in snd_em28xx_hw_capture_params() 373 rate = params_rate(hw_params); in snd_em28xx_hw_capture_params() 374 channels = params_channels(hw_params); in snd_em28xx_hw_capture_params() 702 .hw_params = snd_em28xx_hw_capture_params,
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-g723.c | 110 struct snd_pcm_hw_params *hw_params) in snd_solo_hw_params() argument 112 return snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in snd_solo_hw_params() 259 .hw_params = snd_solo_hw_params,
|
/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 466 struct snd_pcm_hw_params * hw_params) in snd_cx88_hw_params() argument 478 chip->period_size = params_period_bytes(hw_params); in snd_cx88_hw_params() 479 chip->num_periods = params_periods(hw_params); in snd_cx88_hw_params() 480 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params() 606 .hw_params = snd_cx88_hw_params,
|