/freebsd/sys/contrib/dev/iwlwifi/pcie/ |
H A D | trans-gen2.c | 9 #include "iwl-trans.h" 23 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument 27 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init() 38 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init() 42 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init() 48 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_pcie_gen2_apm_init() 51 iwl_pcie_apm_config(trans); in iwl_pcie_gen2_apm_init() 53 ret = iwl_finish_nic_init(trans); in iwl_pcie_gen2_apm_init() 57 set_bit(STATUS_DEVICE_ENABLED, &trans->status); in iwl_pcie_gen2_apm_init() 62 static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, boo argument 101 iwl_trans_pcie_fw_reset_handshake(struct iwl_trans * trans) iwl_trans_pcie_fw_reset_handshake() argument 136 _iwl_trans_pcie_gen2_stop_device(struct iwl_trans * trans) _iwl_trans_pcie_gen2_stop_device() argument 214 iwl_trans_pcie_gen2_stop_device(struct iwl_trans * trans) iwl_trans_pcie_gen2_stop_device() argument 231 iwl_pcie_gen2_nic_init(struct iwl_trans * trans) iwl_pcie_gen2_nic_init() argument 259 iwl_pcie_get_rf_name(struct iwl_trans * trans) iwl_pcie_get_rf_name() argument 331 iwl_trans_pcie_gen2_fw_alive(struct iwl_trans * trans,u32 scd_addr) iwl_trans_pcie_gen2_fw_alive() argument 362 iwl_pcie_set_ltr(struct iwl_trans * trans) iwl_pcie_set_ltr() argument 411 iwl_pcie_spin_for_iml(struct iwl_trans * trans) iwl_pcie_spin_for_iml() argument 449 iwl_trans_pcie_gen2_start_fw(struct iwl_trans * trans,const struct fw_img * fw,bool run_in_rfkill) iwl_trans_pcie_gen2_start_fw() argument [all...] |
H A D | trans.c | 23 #include "iwl-trans.h" 40 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs() argument 46 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs() 70 IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); in iwl_trans_pcie_dump_regs() 74 IWL_ERR(trans, "iwlwifi device config registers:\n"); in iwl_trans_pcie_dump_regs() 84 IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); in iwl_trans_pcie_dump_regs() 86 *ptr = iwl_read32(trans, i); in iwl_trans_pcie_dump_regs() 95 IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); in iwl_trans_pcie_dump_regs() 114 IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", in iwl_trans_pcie_dump_regs() 131 IWL_ERR(trans, "iwlwif in iwl_trans_pcie_dump_regs() 158 iwl_trans_pcie_sw_reset(struct iwl_trans * trans,bool retake_ownership) iwl_trans_pcie_sw_reset() argument 178 iwl_pcie_free_fw_monitor(struct iwl_trans * trans) iwl_pcie_free_fw_monitor() argument 193 iwl_pcie_alloc_fw_monitor_block(struct iwl_trans * trans,u8 max_power) iwl_pcie_alloc_fw_monitor_block() argument 235 iwl_pcie_alloc_fw_monitor(struct iwl_trans * trans,u8 max_power) iwl_pcie_alloc_fw_monitor() argument 252 iwl_trans_pcie_read_shr(struct iwl_trans * trans,u32 reg) iwl_trans_pcie_read_shr() argument 259 iwl_trans_pcie_write_shr(struct iwl_trans * trans,u32 reg,u32 val) iwl_trans_pcie_write_shr() argument 266 iwl_pcie_set_pwr(struct iwl_trans * trans,bool vaux) iwl_pcie_set_pwr() argument 284 iwl_pcie_apm_config(struct iwl_trans * trans) iwl_pcie_apm_config() argument 312 iwl_pcie_apm_init(struct iwl_trans * trans) iwl_pcie_apm_init() argument 410 iwl_pcie_apm_lp_xtal_enable(struct iwl_trans * trans) iwl_pcie_apm_lp_xtal_enable() argument 494 iwl_pcie_apm_stop_master(struct iwl_trans * trans) iwl_pcie_apm_stop_master() argument 523 iwl_pcie_apm_stop(struct iwl_trans * trans,bool op_mode_leave) iwl_pcie_apm_stop() argument 568 iwl_pcie_nic_init(struct iwl_trans * trans) iwl_pcie_nic_init() argument 608 iwl_pcie_set_hw_ready(struct iwl_trans * trans) iwl_pcie_set_hw_ready() argument 629 iwl_pcie_prepare_card_hw(struct iwl_trans * trans) iwl_pcie_prepare_card_hw() argument 687 iwl_pcie_load_firmware_chunk_fh(struct iwl_trans * trans,u32 dst_addr,dma_addr_t phy_addr,u32 byte_cnt) iwl_pcie_load_firmware_chunk_fh() argument 715 iwl_pcie_load_firmware_chunk(struct iwl_trans * trans,u32 dst_addr,dma_addr_t phy_addr,u32 byte_cnt) iwl_pcie_load_firmware_chunk() argument 742 iwl_pcie_load_section(struct iwl_trans * trans,u8 section_num,const struct fw_desc * section) iwl_pcie_load_section() argument 799 iwl_pcie_load_cpu_sections_8000(struct iwl_trans * trans,const struct fw_img * image,int cpu,int * first_ucode_section) iwl_pcie_load_cpu_sections_8000() argument 869 iwl_pcie_load_cpu_sections(struct iwl_trans * trans,const struct fw_img * image,int cpu,int * first_ucode_section) iwl_pcie_load_cpu_sections() argument 910 iwl_pcie_apply_destination_ini(struct iwl_trans * trans) iwl_pcie_apply_destination_ini() argument 947 iwl_pcie_apply_destination(struct iwl_trans * trans) iwl_pcie_apply_destination() argument 1019 iwl_pcie_load_given_ucode(struct iwl_trans * trans,const struct fw_img * image) iwl_pcie_load_given_ucode() argument 1057 iwl_pcie_load_given_ucode_8000(struct iwl_trans * trans,const struct fw_img * image) iwl_pcie_load_given_ucode_8000() argument 1094 iwl_pcie_check_hw_rf_kill(struct iwl_trans * trans) iwl_pcie_check_hw_rf_kill() argument 1159 iwl_pcie_map_list(struct iwl_trans * trans,const struct iwl_causes_list * causes,int arr_size,int val) iwl_pcie_map_list() argument 1172 iwl_pcie_map_non_rx_causes(struct iwl_trans * trans) iwl_pcie_map_non_rx_causes() argument 1191 iwl_pcie_map_rx_causes(struct iwl_trans * trans) iwl_pcie_map_rx_causes() argument 1223 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_conf_msix_hw() local 1254 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_init_msix() local 1267 _iwl_trans_pcie_stop_device(struct iwl_trans * trans) _iwl_trans_pcie_stop_device() argument 1350 iwl_pcie_synchronize_irqs(struct iwl_trans * trans) iwl_pcie_synchronize_irqs() argument 1364 iwl_trans_pcie_start_fw(struct iwl_trans * trans,const struct fw_img * fw,bool run_in_rfkill) iwl_trans_pcie_start_fw() argument 1451 iwl_trans_pcie_fw_alive(struct iwl_trans * trans,u32 scd_addr) iwl_trans_pcie_fw_alive() argument 1457 iwl_trans_pcie_handle_stop_rfkill(struct iwl_trans * trans,bool was_in_rfkill) iwl_trans_pcie_handle_stop_rfkill() argument 1486 iwl_trans_pcie_stop_device(struct iwl_trans * trans) iwl_trans_pcie_stop_device() argument 1503 iwl_trans_pcie_rf_kill(struct iwl_trans * trans,bool state) iwl_trans_pcie_rf_kill() argument 1520 iwl_pcie_d3_complete_suspend(struct iwl_trans * trans,bool test,bool reset) iwl_pcie_d3_complete_suspend() argument 1552 iwl_pcie_d3_handshake(struct iwl_trans * trans,bool suspend) iwl_pcie_d3_handshake() argument 1583 iwl_trans_pcie_d3_suspend(struct iwl_trans * trans,bool test,bool reset) iwl_trans_pcie_d3_suspend() argument 1602 iwl_trans_pcie_d3_resume(struct iwl_trans * trans,enum iwl_d3_status * status,bool test,bool reset) iwl_trans_pcie_d3_resume() argument 1670 iwl_pcie_set_interrupt_capa(struct pci_dev * pdev,struct iwl_trans * trans,const struct iwl_cfg_trans_params * cfg_trans) iwl_pcie_set_interrupt_capa() argument 1744 iwl_pcie_irq_set_affinity(struct iwl_trans * trans) iwl_pcie_irq_set_affinity() argument 1803 iwl_trans_pcie_clear_persistence_bit(struct iwl_trans * trans) iwl_trans_pcie_clear_persistence_bit() argument 1834 iwl_pcie_gen2_force_power_gating(struct iwl_trans * trans) iwl_pcie_gen2_force_power_gating() argument 1855 _iwl_trans_pcie_start_hw(struct iwl_trans * trans) _iwl_trans_pcie_start_hw() argument 1903 iwl_trans_pcie_start_hw(struct iwl_trans * trans) iwl_trans_pcie_start_hw() argument 1915 iwl_trans_pcie_op_mode_leave(struct iwl_trans * trans) iwl_trans_pcie_op_mode_leave() argument 1936 iwl_trans_pcie_write8(struct iwl_trans * trans,u32 ofs,u8 val) iwl_trans_pcie_write8() argument 1941 iwl_trans_pcie_write32(struct iwl_trans * trans,u32 ofs,u32 val) iwl_trans_pcie_write32() argument 1946 iwl_trans_pcie_read32(struct iwl_trans * trans,u32 ofs) iwl_trans_pcie_read32() argument 1951 iwl_trans_pcie_write8(struct iwl_trans * trans,u32 ofs,u8 val) iwl_trans_pcie_write8() argument 1958 iwl_trans_pcie_write32(struct iwl_trans * trans,u32 ofs,u32 val) iwl_trans_pcie_write32() argument 1965 iwl_trans_pcie_read32(struct iwl_trans * trans,u32 ofs) iwl_trans_pcie_read32() argument 1975 iwl_trans_pcie_prph_msk(struct iwl_trans * trans) iwl_trans_pcie_prph_msk() argument 1983 iwl_trans_pcie_read_prph(struct iwl_trans * trans,u32 reg) iwl_trans_pcie_read_prph() argument 1992 iwl_trans_pcie_write_prph(struct iwl_trans * trans,u32 addr,u32 val) iwl_trans_pcie_write_prph() argument 2002 iwl_trans_pcie_configure(struct iwl_trans * trans,const struct iwl_trans_config * trans_cfg) iwl_trans_pcie_configure() argument 2074 iwl_trans_pcie_free(struct iwl_trans * trans) iwl_trans_pcie_free() argument 2115 iwl_trans_pcie_set_pmi(struct iwl_trans * trans,bool state) iwl_trans_pcie_set_pmi() argument 2154 iwl_trans_pcie_remove(struct iwl_trans * trans,bool rescan) iwl_trans_pcie_remove() argument 2198 __iwl_trans_pcie_grab_nic_access(struct iwl_trans * trans) __iwl_trans_pcie_grab_nic_access() argument 2272 iwl_trans_pcie_grab_nic_access(struct iwl_trans * trans) iwl_trans_pcie_grab_nic_access() argument 2286 iwl_trans_pcie_release_nic_access(struct iwl_trans * trans) iwl_trans_pcie_release_nic_access() argument 2316 iwl_trans_pcie_read_mem(struct iwl_trans * trans,u32 addr,void * buf,int dwords) iwl_trans_pcie_read_mem() argument 2353 iwl_trans_pcie_write_mem(struct iwl_trans * trans,u32 addr,const void * buf,int dwords) iwl_trans_pcie_write_mem() argument 2371 iwl_trans_pcie_read_config32(struct iwl_trans * trans,u32 ofs,u32 * val) iwl_trans_pcie_read_config32() argument 2378 iwl_trans_pcie_block_txq_ptrs(struct iwl_trans * trans,bool block) iwl_trans_pcie_block_txq_ptrs() argument 2406 iwl_trans_pcie_rxq_dma_data(struct iwl_trans * trans,int queue,struct iwl_trans_rxq_dma_data * data) iwl_trans_pcie_rxq_dma_data() argument 2422 iwl_trans_pcie_wait_txq_empty(struct iwl_trans * trans,int txq_idx) iwl_trans_pcie_wait_txq_empty() argument 2483 iwl_trans_pcie_wait_txqs_empty(struct iwl_trans * trans,u32 txq_bm) iwl_trans_pcie_wait_txqs_empty() argument 2508 iwl_trans_pcie_set_bits_mask(struct iwl_trans * trans,u32 reg,u32 mask,u32 value) iwl_trans_pcie_set_bits_mask() argument 2552 iwl_pcie_dump_csr(struct iwl_trans * trans) iwl_pcie_dump_csr() argument 2622 struct iwl_trans *trans; global() member 2667 struct iwl_trans *trans = priv->trans; iwl_dbgfs_tx_queue_seq_show() local 2715 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rx_queue_read() local 2766 struct iwl_trans *trans = file->private_data; iwl_dbgfs_interrupt_read() local 2824 struct iwl_trans *trans = file->private_data; iwl_dbgfs_interrupt_write() local 2843 struct iwl_trans *trans = file->private_data; iwl_dbgfs_csr_write() local 2854 struct iwl_trans *trans = file->private_data; iwl_dbgfs_fh_reg_read() local 2872 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rfkill_read() local 2889 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rfkill_write() local 2910 struct iwl_trans *trans = inode->i_private; iwl_dbgfs_monitor_data_open() local 2959 struct iwl_trans *trans = file->private_data; iwl_dbgfs_monitor_data_read() local 3042 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rf_read() local 3075 iwl_trans_pcie_dbgfs_register(struct iwl_trans * trans) iwl_trans_pcie_dbgfs_register() argument 3089 iwl_trans_pcie_debugfs_cleanup(struct iwl_trans * trans) iwl_trans_pcie_debugfs_cleanup() argument 3100 iwl_trans_pcie_get_cmdlen(struct iwl_trans * trans,void * tfd) iwl_trans_pcie_get_cmdlen() argument 3111 iwl_trans_pcie_dump_rbs(struct iwl_trans * trans,struct iwl_fw_error_dump_data ** data,int allocated_rb_nums) iwl_trans_pcie_dump_rbs() argument 3151 iwl_trans_pcie_dump_csr(struct iwl_trans * trans,struct iwl_fw_error_dump_data ** data) iwl_trans_pcie_dump_csr() argument 3170 iwl_trans_pcie_fh_regs_dump(struct iwl_trans * trans,struct iwl_fw_error_dump_data ** data) iwl_trans_pcie_fh_regs_dump() argument 3203 iwl_trans_pci_dump_marbh_monitor(struct iwl_trans * trans,struct iwl_fw_error_dump_fw_mon * fw_mon_data,u32 monitor_len) iwl_trans_pci_dump_marbh_monitor() argument 3226 iwl_trans_pcie_dump_pointers(struct iwl_trans * trans,struct iwl_fw_error_dump_fw_mon * fw_mon_data) iwl_trans_pcie_dump_pointers() argument 3262 iwl_trans_pcie_dump_monitor(struct iwl_trans * trans,struct iwl_fw_error_dump_data ** data,u32 monitor_len) iwl_trans_pcie_dump_monitor() argument 3320 iwl_trans_get_fw_monitor_len(struct iwl_trans * trans,u32 * len) iwl_trans_get_fw_monitor_len() argument 3367 iwl_trans_pcie_dump_data(struct iwl_trans * trans,u32 dump_mask,const struct iwl_dump_sanitize_ops * sanitize_ops,void * sanitize_ctx) iwl_trans_pcie_dump_data() argument 3519 iwl_trans_pci_interrupts(struct iwl_trans * trans,bool enable) iwl_trans_pci_interrupts() argument 3527 iwl_trans_pcie_sync_nmi(struct iwl_trans * trans) iwl_trans_pcie_sync_nmi() argument 3627 struct iwl_trans *trans; iwl_trans_pcie_alloc() local 3787 iwl_trans_pcie_copy_imr_fh(struct iwl_trans * trans,u32 dst_addr,u64 src_addr,u32 byte_cnt) iwl_trans_pcie_copy_imr_fh() argument 3805 iwl_trans_pcie_copy_imr(struct iwl_trans * trans,u32 dst_addr,u64 src_addr,u32 byte_cnt) iwl_trans_pcie_copy_imr() argument [all...] |
H A D | tx.c | 57 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() 63 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr() 71 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() 76 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); 83 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() 86 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_inc_wr_ptr() 98 if (!trans->trans_cfg->base_params->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr() 100 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr() 106 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr() 109 IWL_DEBUG_INFO(trans, "T in iwl_pcie_txq_inc_wr_ptr() 51 iwl_pcie_alloc_dma_ptr(struct iwl_trans * trans,struct iwl_dma_ptr * ptr,size_t size) iwl_pcie_alloc_dma_ptr() argument 65 iwl_pcie_free_dma_ptr(struct iwl_trans * trans,struct iwl_dma_ptr * ptr) iwl_pcie_free_dma_ptr() argument 77 iwl_pcie_txq_inc_wr_ptr(struct iwl_trans * trans,struct iwl_txq * txq) iwl_pcie_txq_inc_wr_ptr() argument 121 iwl_pcie_txq_check_wrptrs(struct iwl_trans * trans) iwl_pcie_txq_check_wrptrs() argument 140 iwl_pcie_tfd_set_tb(struct iwl_trans * trans,void * tfd,u8 idx,dma_addr_t addr,u16 len) iwl_pcie_tfd_set_tb() argument 156 iwl_pcie_txq_build_tfd(struct iwl_trans * trans,struct iwl_txq * txq,dma_addr_t addr,u16 len,bool reset) iwl_pcie_txq_build_tfd() argument 185 iwl_pcie_clear_cmd_in_flight(struct iwl_trans * trans) iwl_pcie_clear_cmd_in_flight() argument 208 iwl_pcie_txq_unmap(struct iwl_trans * trans,int txq_id) iwl_pcie_txq_unmap() argument 258 iwl_pcie_txq_free(struct iwl_trans * trans,int txq_id) iwl_pcie_txq_free() argument 299 iwl_pcie_tx_start(struct iwl_trans * trans,u32 scd_base_addr) iwl_pcie_tx_start() argument 357 iwl_trans_pcie_tx_reset(struct iwl_trans * trans) iwl_trans_pcie_tx_reset() argument 397 iwl_pcie_tx_stop_fh(struct iwl_trans * trans) iwl_pcie_tx_stop_fh() argument 430 iwl_pcie_tx_stop(struct iwl_trans * trans) iwl_pcie_tx_stop() argument 467 iwl_pcie_tx_free(struct iwl_trans * trans) iwl_pcie_tx_free() argument 496 iwl_pcie_tx_alloc(struct iwl_trans * trans) iwl_pcie_tx_alloc() argument 567 iwl_pcie_tx_init(struct iwl_trans * trans) iwl_pcie_tx_init() argument 633 iwl_pcie_set_cmd_in_flight(struct iwl_trans * trans,const struct iwl_host_cmd * cmd) iwl_pcie_set_cmd_in_flight() argument 672 iwl_pcie_cmdq_reclaim(struct iwl_trans * trans,int txq_id,int idx) iwl_pcie_cmdq_reclaim() argument 710 iwl_pcie_txq_set_ratid_map(struct iwl_trans * trans,u16 ra_tid,u16 txq_id) iwl_pcie_txq_set_ratid_map() argument 739 iwl_trans_pcie_txq_enable(struct iwl_trans * trans,int txq_id,u16 ssn,const struct iwl_trans_txq_scd_cfg * cfg,unsigned int wdg_timeout) iwl_trans_pcie_txq_enable() argument 851 iwl_trans_pcie_txq_set_shared_mode(struct iwl_trans * trans,u32 txq_id,bool shared_mode) iwl_trans_pcie_txq_set_shared_mode() argument 859 iwl_trans_pcie_txq_disable(struct iwl_trans * trans,int txq_id,bool configure_scd) iwl_trans_pcie_txq_disable() argument 906 iwl_pcie_enqueue_hcmd(struct iwl_trans * trans,struct iwl_host_cmd * cmd) iwl_pcie_enqueue_hcmd() argument 1177 iwl_pcie_hcmd_complete(struct iwl_trans * trans,struct iwl_rx_cmd_buffer * rxb) iwl_pcie_hcmd_complete() argument 1248 iwl_fill_data_tbs(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_txq * txq,u8 hdr_len,struct iwl_cmd_meta * out_meta) iwl_fill_data_tbs() argument 1300 iwl_fill_data_tbs_amsdu(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_txq * txq,u8 hdr_len,struct iwl_cmd_meta * out_meta,struct iwl_device_tx_cmd * dev_cmd,u16 tb1_len) iwl_fill_data_tbs_amsdu() argument 1431 iwl_fill_data_tbs_amsdu(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_txq * txq,u8 hdr_len,struct iwl_cmd_meta * out_meta,struct iwl_device_tx_cmd * dev_cmd,u16 tb1_len) iwl_fill_data_tbs_amsdu() argument 1444 iwl_trans_pcie_tx(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_device_tx_cmd * dev_cmd,int txq_id) iwl_trans_pcie_tx() argument [all...] |
H A D | rx.c | 144 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument 146 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_rx_stop() 148 iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_GEN3, 0); in iwl_pcie_rx_stop() 149 return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_GEN3, in iwl_pcie_rx_stop() 151 } else if (trans->trans_cfg->mq_rx_supported) { in iwl_pcie_rx_stop() 152 iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); in iwl_pcie_rx_stop() 153 return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, in iwl_pcie_rx_stop() 156 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop() 157 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop() 166 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_rxq_inc_wr_ptr() argument 203 iwl_pcie_rxq_check_wrptr(struct iwl_trans * trans) iwl_pcie_rxq_check_wrptr() argument 220 iwl_pcie_restock_bd(struct iwl_trans * trans,struct iwl_rxq * rxq,struct iwl_rx_mem_buffer * rxb) iwl_pcie_restock_bd() argument [all...] |
H A D | internal.h | 20 #include "iwl-trans.h" 191 * @trans: transport pointer (for configuration) 194 static inline u16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() 197 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts() 356 * @trans: pointer to the generic transport area 439 struct iwl_trans *trans; 524 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) 526 return (void *)trans->trans_specific; 529 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, int queue) 539 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_A 193 iwl_get_closed_rb_stts(struct iwl_trans * trans,struct iwl_rxq * rxq) iwl_get_closed_rb_stts() argument 367 struct iwl_trans *trans; global() member 451 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans * trans) IWL_TRANS_GET_PCIE_TRANS() argument 456 iwl_pcie_clear_irq(struct iwl_trans * trans,int queue) iwl_pcie_clear_irq() argument 489 _iwl_trans_pcie_grab_nic_access(trans) global() argument 551 _iwl_disable_interrupts(struct iwl_trans * trans) _iwl_disable_interrupts() argument 589 iwl_pcie_ctxt_info_free_fw_img(struct iwl_trans * trans) iwl_pcie_ctxt_info_free_fw_img() argument 608 iwl_disable_interrupts(struct iwl_trans * trans) iwl_disable_interrupts() argument 617 _iwl_enable_interrupts(struct iwl_trans * trans) _iwl_enable_interrupts() argument 640 iwl_enable_interrupts(struct iwl_trans * trans) iwl_enable_interrupts() argument 648 iwl_enable_hw_int_msk_msix(struct iwl_trans * trans,u32 msk) iwl_enable_hw_int_msk_msix() argument 656 iwl_enable_fh_int_msk_msix(struct iwl_trans * trans,u32 msk) iwl_enable_fh_int_msk_msix() argument 664 iwl_enable_fw_load_int(struct iwl_trans * trans) iwl_enable_fw_load_int() argument 680 iwl_enable_fw_load_int_ctx_info(struct iwl_trans * trans) iwl_enable_fw_load_int_ctx_info() argument 730 iwl_enable_rfkill_int(struct iwl_trans * trans) iwl_enable_rfkill_int() argument 758 iwl_is_rfkill_set(struct iwl_trans * trans) iwl_is_rfkill_set() argument 771 __iwl_trans_pcie_set_bits_mask(struct iwl_trans * trans,u32 reg,u32 mask,u32 value) __iwl_trans_pcie_set_bits_mask() argument 786 __iwl_trans_pcie_clear_bit(struct iwl_trans * trans,u32 reg,u32 mask) __iwl_trans_pcie_clear_bit() argument 792 __iwl_trans_pcie_set_bit(struct iwl_trans * trans,u32 reg,u32 mask) __iwl_trans_pcie_set_bit() argument 798 iwl_pcie_dbg_on(struct iwl_trans * trans) iwl_pcie_dbg_on() argument 809 iwl_trans_pcie_dbgfs_register(struct iwl_trans * trans) iwl_trans_pcie_dbgfs_register() argument [all...] |
H A D | ctxt-info-gen3.c | 6 #include "iwl-trans.h" 33 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable() 41 if (!iwl_trans_dbg_ini_valid(trans)) { in iwl_pcie_ctxt_info_dbg_enable() 42 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_ctxt_info_dbg_enable() 44 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_dbg_enable() 49 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable() 59 fw_mon_cfg = &trans->dbg.fw_mon_cfg[alloc_id]; in iwl_pcie_ctxt_info_dbg_enable() 64 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable() 70 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable() 75 if (trans in iwl_pcie_ctxt_info_dbg_enable() 12 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans * trans,struct iwl_prph_scratch_hwm_cfg * dbg_cfg,u32 * control_flags) iwl_pcie_ctxt_info_dbg_enable() argument 82 iwl_pcie_ctxt_info_gen3_init(struct iwl_trans * trans,const struct fw_img * fw) iwl_pcie_ctxt_info_gen3_init() argument 249 iwl_pcie_ctxt_info_gen3_free(struct iwl_trans * trans,bool alive) iwl_pcie_ctxt_info_gen3_free() argument 288 iwl_pcie_load_payloads_continuously(struct iwl_trans * trans,const struct iwl_pnvm_image * pnvm_data,struct iwl_dram_data * dram) iwl_pcie_load_payloads_continuously() argument 323 iwl_pcie_load_payloads_segments(struct iwl_trans * trans,struct iwl_dram_regions * dram_regions,const struct iwl_pnvm_image * pnvm_data) iwl_pcie_load_payloads_segments() argument 377 iwl_trans_pcie_ctx_info_gen3_load_pnvm(struct iwl_trans * trans,const struct iwl_pnvm_image * pnvm_payloads,const struct iwl_ucode_capabilities * capa) iwl_trans_pcie_ctx_info_gen3_load_pnvm() argument 436 iwl_pcie_set_pnvm_segments(struct iwl_trans * trans) iwl_pcie_set_pnvm_segments() argument 449 iwl_pcie_set_continuous_pnvm(struct iwl_trans * trans) iwl_pcie_set_continuous_pnvm() argument 461 iwl_trans_pcie_ctx_info_gen3_set_pnvm(struct iwl_trans * trans,const struct iwl_ucode_capabilities * capa) iwl_trans_pcie_ctx_info_gen3_set_pnvm() argument 473 iwl_trans_pcie_ctx_info_gen3_load_reduce_power(struct iwl_trans * trans,const struct iwl_pnvm_image * payloads,const struct iwl_ucode_capabilities * capa) iwl_trans_pcie_ctx_info_gen3_load_reduce_power() argument 520 iwl_pcie_set_reduce_power_segments(struct iwl_trans * trans) iwl_pcie_set_reduce_power_segments() argument 533 iwl_pcie_set_continuous_reduce_power(struct iwl_trans * trans) iwl_pcie_set_continuous_reduce_power() argument 546 iwl_trans_pcie_ctx_info_gen3_set_reduce_power(struct iwl_trans * trans,const struct iwl_ucode_capabilities * capa) iwl_trans_pcie_ctx_info_gen3_set_reduce_power() argument [all...] |
H A D | ctxt-info.c | 6 #include "iwl-trans.h" 12 static void *_iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in _iwl_pcie_ctxt_info_dma_alloc_coherent() argument 23 result = dma_alloc_coherent(trans->dev, size, phys, GFP_KERNEL); in _iwl_pcie_ctxt_info_dma_alloc_coherent() 32 result = _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, in _iwl_pcie_ctxt_info_dma_alloc_coherent() 35 dma_free_coherent(trans->dev, size, old, oldphys); in _iwl_pcie_ctxt_info_dma_alloc_coherent() 41 void *iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dma_alloc_coherent() argument 45 return _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, phys, 0); in iwl_pcie_ctxt_info_dma_alloc_coherent() 48 int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, in iwl_pcie_ctxt_info_alloc_dma() argument 52 dram->block = iwl_pcie_ctxt_info_dma_alloc_coherent(trans, len, in iwl_pcie_ctxt_info_alloc_dma() 63 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free_paging() argument 84 iwl_pcie_init_fw_sec(struct iwl_trans * trans,const struct fw_img * fw,struct iwl_context_info_dram * ctxt_dram) iwl_pcie_init_fw_sec() argument 163 iwl_pcie_ctxt_info_init(struct iwl_trans * trans,const struct fw_img * fw) iwl_pcie_ctxt_info_init() argument 249 iwl_pcie_ctxt_info_free(struct iwl_trans * trans) iwl_pcie_ctxt_info_free() argument [all...] |
H A D | tx-gen2.c | 20 static struct page *get_workaround_page(struct iwl_trans *trans, 23 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); 38 phys = dma_map_page_attrs(trans->dev, ret, 0, PAGE_SIZE, in iwl_pcie_gen2_enqueue_hcmd() 40 if (unlikely(dma_mapping_error(trans->dev, phys))) { in iwl_pcie_gen2_enqueue_hcmd() 62 static int iwl_txq_gen2_set_tb_with_wa(struct iwl_trans *trans, in iwl_pcie_gen2_enqueue_hcmd() 73 if (unlikely(dma_mapping_error(trans->dev, phys))) in iwl_pcie_gen2_enqueue_hcmd() 77 ret = iwl_txq_gen2_set_tb(trans, tfd, phys, len); in iwl_pcie_gen2_enqueue_hcmd() 103 page = get_workaround_page(trans, skb); in iwl_pcie_gen2_enqueue_hcmd() 122 phys = dma_map_single(trans->dev, page_address(page), len, in iwl_pcie_gen2_enqueue_hcmd() 124 if (unlikely(dma_mapping_error(trans in iwl_pcie_gen2_enqueue_hcmd() 29 iwl_pcie_gen2_enqueue_hcmd(struct iwl_trans * trans,struct iwl_host_cmd * cmd) iwl_pcie_gen2_enqueue_hcmd() argument [all...] |
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-trans.h | 65 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON 118 * trans->system_pm_mode to IWL_PLAT_PM_MODE_D3. 313 * @STATUS_TRANS_DEAD: trans is dead - avoid any read/write operation 770 * @trans: pointer back to transport (for timer) 815 struct iwl_trans *trans; 840 * @trans_cfg: the trans-specific configuration part 962 /* pointer to trans specific struct */ 967 const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id); 968 int iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans); 970 void iwl_trans_configure(struct iwl_trans *trans, 63 IWL_TRANS_FW_DBG_DOMAIN(trans) global() argument 174 IWL_TRANS_MAX_FRAGS(trans) global() argument 981 struct iwl_trans *trans; global() member 1157 iwl_trans_configure(struct iwl_trans * trans,const struct iwl_trans_config * trans_cfg) iwl_trans_configure() argument 1166 iwl_trans_start_hw(struct iwl_trans * trans) iwl_trans_start_hw() argument 1173 iwl_trans_op_mode_leave(struct iwl_trans * trans) iwl_trans_op_mode_leave() argument 1185 iwl_trans_fw_alive(struct iwl_trans * trans,u32 scd_addr) iwl_trans_fw_alive() argument 1194 iwl_trans_start_fw(struct iwl_trans * trans,const struct fw_img * fw,bool run_in_rfkill) iwl_trans_start_fw() argument 1212 iwl_trans_stop_device(struct iwl_trans * trans) iwl_trans_stop_device() argument 1221 iwl_trans_d3_suspend(struct iwl_trans * trans,bool test,bool reset) iwl_trans_d3_suspend() argument 1231 iwl_trans_d3_resume(struct iwl_trans * trans,enum iwl_d3_status * status,bool test,bool reset) iwl_trans_d3_resume() argument 1243 iwl_trans_dump_data(struct iwl_trans * trans,u32 dump_mask,const struct iwl_dump_sanitize_ops * sanitize_ops,void * sanitize_ctx) iwl_trans_dump_data() argument 1254 iwl_trans_alloc_tx_cmd(struct iwl_trans * trans) iwl_trans_alloc_tx_cmd() argument 1261 iwl_trans_free_tx_cmd(struct iwl_trans * trans,struct iwl_device_tx_cmd * dev_cmd) iwl_trans_free_tx_cmd() argument 1267 iwl_trans_tx(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_device_tx_cmd * dev_cmd,int queue) iwl_trans_tx() argument 1281 iwl_trans_reclaim(struct iwl_trans * trans,int queue,int ssn,struct sk_buff_head * skbs) iwl_trans_reclaim() argument 1292 iwl_trans_set_q_ptrs(struct iwl_trans * trans,int queue,int ptr) iwl_trans_set_q_ptrs() argument 1303 iwl_trans_txq_disable(struct iwl_trans * trans,int queue,bool configure_scd) iwl_trans_txq_disable() argument 1310 iwl_trans_txq_enable_cfg(struct iwl_trans * trans,int queue,u16 ssn,const struct iwl_trans_txq_scd_cfg * cfg,unsigned int queue_wdg_timeout) iwl_trans_txq_enable_cfg() argument 1326 iwl_trans_get_rxq_dma_data(struct iwl_trans * trans,int queue,struct iwl_trans_rxq_dma_data * data) iwl_trans_get_rxq_dma_data() argument 1336 iwl_trans_txq_free(struct iwl_trans * trans,int queue) iwl_trans_txq_free() argument 1345 iwl_trans_txq_alloc(struct iwl_trans * trans,u32 flags,u32 sta_mask,u8 tid,int size,unsigned int wdg_timeout) iwl_trans_txq_alloc() argument 1363 iwl_trans_txq_set_shared_mode(struct iwl_trans * trans,int queue,bool shared_mode) iwl_trans_txq_set_shared_mode() argument 1370 iwl_trans_txq_enable(struct iwl_trans * trans,int queue,int fifo,int sta_id,int tid,int frame_limit,u16 ssn,unsigned int queue_wdg_timeout) iwl_trans_txq_enable() argument 1387 iwl_trans_ac_txq_enable(struct iwl_trans * trans,int queue,int fifo,unsigned int queue_wdg_timeout) iwl_trans_ac_txq_enable() argument 1401 iwl_trans_freeze_txq_timer(struct iwl_trans * trans,unsigned long txqs,bool freeze) iwl_trans_freeze_txq_timer() argument 1414 iwl_trans_block_txq_ptrs(struct iwl_trans * trans,bool block) iwl_trans_block_txq_ptrs() argument 1426 iwl_trans_wait_tx_queues_empty(struct iwl_trans * trans,u32 txqs) iwl_trans_wait_tx_queues_empty() argument 1441 iwl_trans_wait_txq_empty(struct iwl_trans * trans,int queue) iwl_trans_wait_txq_empty() argument 1454 iwl_trans_write8(struct iwl_trans * trans,u32 ofs,u8 val) iwl_trans_write8() argument 1459 iwl_trans_write32(struct iwl_trans * trans,u32 ofs,u32 val) iwl_trans_write32() argument 1464 iwl_trans_read32(struct iwl_trans * trans,u32 ofs) iwl_trans_read32() argument 1469 iwl_trans_read_prph(struct iwl_trans * trans,u32 ofs) iwl_trans_read_prph() argument 1474 iwl_trans_write_prph(struct iwl_trans * trans,u32 ofs,u32 val) iwl_trans_write_prph() argument 1480 iwl_trans_read_mem(struct iwl_trans * trans,u32 addr,void * buf,int dwords) iwl_trans_read_mem() argument 1486 iwl_trans_read_mem_bytes(trans,addr,buf,bufsize) global() argument 1493 iwl_trans_write_imr_mem(struct iwl_trans * trans,u32 dst_addr,u64 src_addr,u32 byte_cnt) iwl_trans_write_imr_mem() argument 1502 iwl_trans_read_mem32(struct iwl_trans * trans,u32 addr) iwl_trans_read_mem32() argument 1512 iwl_trans_write_mem(struct iwl_trans * trans,u32 addr,const void * buf,int dwords) iwl_trans_write_mem() argument 1518 iwl_trans_write_mem32(struct iwl_trans * trans,u32 addr,u32 val) iwl_trans_write_mem32() argument 1524 iwl_trans_set_pmi(struct iwl_trans * trans,bool state) iwl_trans_set_pmi() argument 1530 iwl_trans_sw_reset(struct iwl_trans * trans,bool retake_ownership) iwl_trans_sw_reset() argument 1539 iwl_trans_set_bits_mask(struct iwl_trans * trans,u32 reg,u32 mask,u32 value) iwl_trans_set_bits_mask() argument 1544 iwl_trans_grab_nic_access(trans) global() argument 1555 iwl_trans_fw_error(struct iwl_trans * trans,bool sync) iwl_trans_fw_error() argument 1567 iwl_trans_fw_running(struct iwl_trans * trans) iwl_trans_fw_running() argument 1572 iwl_trans_sync_nmi(struct iwl_trans * trans) iwl_trans_sync_nmi() argument 1581 iwl_trans_load_pnvm(struct iwl_trans * trans,const struct iwl_pnvm_image * pnvm_data,const struct iwl_ucode_capabilities * capa) iwl_trans_load_pnvm() argument 1588 iwl_trans_set_pnvm(struct iwl_trans * trans,const struct iwl_ucode_capabilities * capa) iwl_trans_set_pnvm() argument 1596 iwl_trans_load_reduce_power(struct iwl_trans * trans,const struct iwl_pnvm_image * payloads,const struct iwl_ucode_capabilities * capa) iwl_trans_load_reduce_power() argument 1604 iwl_trans_set_reduce_power(struct iwl_trans * trans,const struct iwl_ucode_capabilities * capa) iwl_trans_set_reduce_power() argument 1611 iwl_trans_dbg_ini_valid(struct iwl_trans * trans) iwl_trans_dbg_ini_valid() argument 1617 iwl_trans_interrupts(struct iwl_trans * trans,bool enable) iwl_trans_interrupts() argument [all...] |
H A D | iwl-io.c | 17 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument 19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8() 20 iwl_trans_write8(trans, ofs, val); in iwl_write8() 24 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument 26 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32() 27 iwl_trans_write32(trans, ofs, val); in iwl_write32() 31 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument 33 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64() 34 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64() 35 iwl_trans_write32(trans, of in iwl_write64() 39 iwl_read32(struct iwl_trans * trans,u32 ofs) iwl_read32() argument 50 iwl_poll_bit(struct iwl_trans * trans,u32 addr,u32 bits,u32 mask,int timeout) iwl_poll_bit() argument 66 iwl_read_direct32(struct iwl_trans * trans,u32 reg) iwl_read_direct32() argument 80 iwl_write_direct32(struct iwl_trans * trans,u32 reg,u32 value) iwl_write_direct32() argument 89 iwl_write_direct64(struct iwl_trans * trans,u64 reg,u64 value) iwl_write_direct64() argument 98 iwl_poll_direct_bit(struct iwl_trans * trans,u32 addr,u32 mask,int timeout) iwl_poll_direct_bit() argument 114 iwl_read_prph_no_grab(struct iwl_trans * trans,u32 ofs) iwl_read_prph_no_grab() argument 122 iwl_write_prph_no_grab(struct iwl_trans * trans,u32 ofs,u32 val) iwl_write_prph_no_grab() argument 129 iwl_write_prph64_no_grab(struct iwl_trans * trans,u64 ofs,u64 val) iwl_write_prph64_no_grab() argument 137 iwl_read_prph(struct iwl_trans * trans,u32 ofs) iwl_read_prph() argument 152 iwl_write_prph_delay(struct iwl_trans * trans,u32 ofs,u32 val,u32 delay_ms) iwl_write_prph_delay() argument 162 iwl_poll_prph_bit(struct iwl_trans * trans,u32 addr,u32 bits,u32 mask,int timeout) iwl_poll_prph_bit() argument 177 iwl_set_bits_prph(struct iwl_trans * trans,u32 ofs,u32 mask) iwl_set_bits_prph() argument 188 iwl_set_bits_mask_prph(struct iwl_trans * trans,u32 ofs,u32 bits,u32 mask) iwl_set_bits_mask_prph() argument 200 iwl_clear_bits_prph(struct iwl_trans * trans,u32 ofs,u32 mask) iwl_clear_bits_prph() argument 212 iwl_force_nmi(struct iwl_trans * trans) iwl_force_nmi() argument 260 iwl_dump_rfh(struct iwl_trans * trans,char ** buf) iwl_dump_rfh() argument 356 iwl_dump_fh(struct iwl_trans * trans,char ** buf) iwl_dump_fh() argument 412 iwl_dump_host_monitor_block(struct iwl_trans * trans,u32 block,u32 vec,u32 iter) iwl_dump_host_monitor_block() argument 424 iwl_dump_host_monitor(struct iwl_trans * trans) iwl_dump_host_monitor() argument 446 iwl_finish_nic_init(struct iwl_trans * trans) iwl_finish_nic_init() argument 496 iwl_trans_sync_nmi_with_addr(struct iwl_trans * trans,u32 inta_addr,u32 sw_err_bit) iwl_trans_sync_nmi_with_addr() argument [all...] |
H A D | iwl-trans.c | 11 #include "iwl-trans.h" 23 struct iwl_trans *trans; in iwl_trans_alloc() local 28 trans = devm_kzalloc(dev, sizeof(*trans) + priv_size, GFP_KERNEL); in iwl_trans_alloc() 29 if (!trans) in iwl_trans_alloc() 32 trans->trans_cfg = cfg_trans; in iwl_trans_alloc() 35 lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", in iwl_trans_alloc() 39 trans->dev = dev; in iwl_trans_alloc() 40 trans->num_rx_queues = 1; in iwl_trans_alloc() 42 return trans; in iwl_trans_alloc() 59 iwl_trans_init(struct iwl_trans * trans) iwl_trans_init() argument 129 iwl_trans_free(struct iwl_trans * trans) iwl_trans_free() argument 150 iwl_trans_send_cmd(struct iwl_trans * trans,struct iwl_host_cmd * cmd) iwl_trans_send_cmd() argument 220 iwl_get_cmd_string(struct iwl_trans * trans,u32 id) iwl_get_cmd_string() argument 242 iwl_cmd_groups_verify_sorted(const struct iwl_trans_config * trans) iwl_cmd_groups_verify_sorted() argument [all...] |
H A D | iwl-eeprom-read.c |
|
H A D | iwl-io.h | 11 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val); 12 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val); 13 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val); 14 u32 iwl_read32(struct iwl_trans *trans, u32 ofs); 16 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument 18 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit() 21 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit() argument 23 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit() 26 int iwl_poll_bit(struct iwl_trans *trans, u32 addr, 28 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, [all …]
|
H A D | iwl-scd.h | 13 static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, in iwl_scd_txq_set_chain() argument 16 iwl_set_bits_prph(trans, SCD_QUEUECHAIN_SEL, BIT(txq_id)); in iwl_scd_txq_set_chain() 19 static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, in iwl_scd_txq_enable_agg() argument 22 iwl_set_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_enable_agg() 25 static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, in iwl_scd_txq_disable_agg() argument 28 iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_disable_agg() 31 static inline void iwl_scd_disable_agg(struct iwl_trans *trans) in iwl_scd_disable_agg() argument 33 iwl_set_bits_prph(trans, SCD_AGGR_SEL, 0); in iwl_scd_disable_agg() 36 static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) in iwl_scd_activate_fifos() argument 38 iwl_write_prph(trans, SCD_TXFACT, IWL_MASK(0, 7)); in iwl_scd_activate_fifos() [all …]
|
H A D | iwl-dbg-tlv.c | 7 #include "iwl-trans.h" 99 static int iwl_dbg_tlv_alloc_debug_info(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_debug_info() 113 IWL_DEBUG_FW(trans, "WRT: Loading debug cfg: %s\n", in iwl_dbg_tlv_alloc_buf_alloc() 116 if (!iwl_dbg_tlv_add(tlv, &trans->dbg.debug_info_tlv_list)) in iwl_dbg_tlv_alloc_buf_alloc() 121 static int iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_buf_alloc() 152 IWL_ERR(trans, "WRT: Invalid DRAM buffer allocation requested size (0)\n"); in iwl_dbg_tlv_alloc_buf_alloc() 156 trans->dbg.fw_mon_cfg[alloc_id] = *alloc; 160 IWL_ERR(trans, in iwl_dbg_tlv_alloc_hcmd() 166 static int iwl_dbg_tlv_alloc_hcmd(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_hcmd() 181 IWL_ERR(trans, in iwl_dbg_tlv_alloc_region() argument 98 iwl_dbg_tlv_alloc_debug_info(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_debug_info() argument 112 iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_buf_alloc() argument 157 iwl_dbg_tlv_alloc_hcmd(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_hcmd() argument 245 iwl_dbg_tlv_alloc_trigger(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_alloc_trigger() argument 286 iwl_dbg_tlv_config_set(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv) iwl_dbg_tlv_config_set() argument 320 iwl_dbg_tlv_alloc(struct iwl_trans * trans,const struct iwl_ucode_tlv * tlv,bool ext) iwl_dbg_tlv_alloc() argument 374 iwl_dbg_tlv_del_timers(struct iwl_trans * trans) iwl_dbg_tlv_del_timers() argument 387 iwl_dbg_tlv_fragments_free(struct iwl_trans * trans,enum iwl_fw_ini_allocation_id alloc_id) iwl_dbg_tlv_fragments_free() argument 415 iwl_dbg_tlv_free(struct iwl_trans * trans) iwl_dbg_tlv_free() argument 470 iwl_dbg_tlv_parse_bin(struct iwl_trans * trans,const u8 * data,size_t len) iwl_dbg_tlv_parse_bin() argument 496 iwl_dbg_tlv_load_bin(struct device * dev,struct iwl_trans * trans) iwl_dbg_tlv_load_bin() argument 517 iwl_dbg_tlv_init(struct iwl_trans * trans) iwl_dbg_tlv_init() argument [all...] |
/freebsd/sys/contrib/dev/iwlwifi/queue/ |
H A D | tx.c |
|
H A D | tx.h |
|
/freebsd/sys/contrib/dev/iwlwifi/fw/ |
H A D | pnvm.c | 25 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() 28 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn() 35 static int iwl_pnvm_handle_section(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_handle_section() 44 IWL_DEBUG_FW(trans, "Handling PNVM section\n"); in iwl_pnvm_handle_section() 58 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_pnvm_handle_section() 68 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 76 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 83 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 95 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 99 if (mac_type == CSR_HW_REV_TYPE(trans in iwl_pnvm_handle_section() 23 struct iwl_trans *trans = (struct iwl_trans *)data; iwl_pnvm_complete_fn() local 33 iwl_pnvm_handle_section(struct iwl_trans * trans,const u8 * data,size_t len,struct iwl_pnvm_image * pnvm_data) iwl_pnvm_handle_section() argument 166 iwl_pnvm_parse(struct iwl_trans * trans,const u8 * data,size_t len,struct iwl_pnvm_image * pnvm_data) iwl_pnvm_parse() argument 225 iwl_pnvm_get_from_fs(struct iwl_trans * trans,u8 ** data,size_t * len) iwl_pnvm_get_from_fs() argument 278 iwl_pnvm_load_pnvm_to_trans(struct iwl_trans * trans,const struct iwl_ucode_capabilities * capa) iwl_pnvm_load_pnvm_to_trans() argument 322 iwl_pnvm_load_reduce_power_to_trans(struct iwl_trans * trans,const struct iwl_ucode_capabilities * capa) iwl_pnvm_load_reduce_power_to_trans() argument 368 iwl_pnvm_load(struct iwl_trans * trans,struct iwl_notif_wait_data * notif_wait,const struct iwl_ucode_capabilities * capa) iwl_pnvm_load() argument [all...] |
H A D | uefi.c | 57 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len) in iwl_uefi_get_pnvm() argument 67 IWL_DEBUG_FW(trans, in iwl_uefi_get_pnvm() 73 IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %lu\n", package_size); in iwl_uefi_get_pnvm() 80 void *iwl_uefi_get_verified_variable(struct iwl_trans *trans, in iwl_uefi_handle_tlv_mem_desc() 93 IWL_DEBUG_RADIO(trans, in iwl_uefi_handle_tlv_mem_desc() 100 IWL_DEBUG_RADIO(trans, in iwl_uefi_handle_tlv_mem_desc() 107 IWL_DEBUG_RADIO(trans, "%s from UEFI with size %lu\n", var_name, in iwl_uefi_handle_tlv_mem_desc() 115 int iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data, in iwl_uefi_reduce_power_section() argument 122 IWL_DEBUG_FW(trans, "TLV len (%d) is too small\n", tlv_len); in iwl_uefi_reduce_power_section() 128 IWL_DEBUG_FW(trans, in iwl_uefi_reduce_power_section() 79 iwl_uefi_handle_tlv_mem_desc(struct iwl_trans * trans,const u8 * data,u32 tlv_len,struct iwl_pnvm_image * pnvm_data) iwl_uefi_handle_tlv_mem_desc() argument 169 iwl_uefi_reduce_power_parse(struct iwl_trans * trans,const u8 * data,size_t len,struct iwl_pnvm_image * pnvm_data) iwl_uefi_reduce_power_parse() argument 227 iwl_uefi_get_reduced_power(struct iwl_trans * trans,size_t * len) iwl_uefi_get_reduced_power() argument 270 iwl_uefi_step_parse(struct uefi_cnv_common_step_data * common_step_data,struct iwl_trans * trans) iwl_uefi_step_parse() argument 283 iwl_uefi_get_step_table(struct iwl_trans * trans) iwl_uefi_get_step_table() argument 354 iwl_uefi_get_sgom_table(struct iwl_trans * trans,struct iwl_fw_runtime * fwrt) iwl_uefi_get_sgom_table() argument [all...] |
H A D | dump.c | 119 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_umac_error_log() local 121 u32 base = fwrt->trans->dbg.umac_error_event_table; in iwl_fwrt_dump_umac_error_log() 125 !(fwrt->trans->dbg.error_event_table_tlv_status & in iwl_fwrt_dump_umac_error_log() 129 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log() 135 !fwrt->trans->dbg.dump_file_name_ext_valid) { in iwl_fwrt_dump_umac_error_log() 136 fwrt->trans->dbg.dump_file_name_ext_valid = true; in iwl_fwrt_dump_umac_error_log() 137 snprintf(fwrt->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME, in iwl_fwrt_dump_umac_error_log() 142 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_fwrt_dump_umac_error_log() 143 IWL_ERR(trans, "Transpor in iwl_fwrt_dump_umac_error_log() 173 struct iwl_trans *trans = fwrt->trans; iwl_fwrt_dump_lmac_error_log() local 297 struct iwl_trans *trans = fwrt->trans; iwl_fwrt_dump_tcm_error_log() local 371 struct iwl_trans *trans = fwrt->trans; iwl_fwrt_dump_rcm_error_log() local 418 struct iwl_trans *trans = fwrt->trans; iwl_fwrt_dump_iml_error_log() local 452 struct iwl_trans *trans = fwrt->trans; iwl_fwrt_dump_fseq_regs() local [all...] |
H A D | uefi.h | 203 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len); 204 u8 *iwl_uefi_get_reduced_power(struct iwl_trans *trans, size_t *len); 205 int iwl_uefi_reduce_power_parse(struct iwl_trans *trans, 208 void iwl_uefi_get_step_table(struct iwl_trans *trans); 209 int iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data, 224 void iwl_uefi_get_sgom_table(struct iwl_trans *trans, struct iwl_fw_runtime *fwrt); 225 int iwl_uefi_get_uats_table(struct iwl_trans *trans, 228 static inline void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len) 234 iwl_uefi_reduce_power_parse(struct iwl_trans *trans, 242 iwl_uefi_get_reduced_power(struct iwl_trans *trans, size_ 52 iwl_uefi_get_pnvm(struct iwl_trans * trans,size_t * len) iwl_uefi_get_pnvm() argument 58 iwl_uefi_reduce_power_parse(struct iwl_trans * trans,const u8 * data,size_t len,struct iwl_pnvm_image * pnvm_data) iwl_uefi_reduce_power_parse() argument 66 iwl_uefi_get_reduced_power(struct iwl_trans * trans,size_t * len) iwl_uefi_get_reduced_power() argument 71 iwl_uefi_get_step_table(struct iwl_trans * trans) iwl_uefi_get_step_table() argument 76 iwl_uefi_handle_tlv_mem_desc(struct iwl_trans * trans,const u8 * data,u32 tlv_len,struct iwl_pnvm_image * pnvm_data) iwl_uefi_handle_tlv_mem_desc() argument 87 iwl_uefi_get_sgom_table(struct iwl_trans * trans,struct iwl_fw_runtime * fwrt) iwl_uefi_get_sgom_table() argument [all...] |
H A D | dbg.c | 42 if (!iwl_trans_grab_nic_access(fwrt->trans)) in iwl_read_radio_regs() 52 iwl_write_prph_no_grab(fwrt->trans, RSP_RADIO_CMD, rd_cmd); in iwl_read_radio_regs() 53 *pos = (u8)iwl_read_prph_no_grab(fwrt->trans, RSP_RADIO_RDDAT); in iwl_read_radio_regs() 60 iwl_trans_release_nic_access(fwrt->trans); in iwl_read_radio_regs() 86 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 89 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 92 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 95 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 98 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 102 iwl_trans_write_prph(fwrt->trans, RXF_SET_FENCE_MOD in iwl_fwrt_dump_rxf() 514 iwl_read_prph_block(struct iwl_trans * trans,u32 start,u32 len_bytes,__le32 * data) iwl_read_prph_block() argument 528 struct iwl_trans *trans = fwrt->trans; iwl_dump_prph() local 1131 struct iwl_trans *trans = fwrt->trans; iwl_dump_ini_config_iter() local 3125 iwl_fw_dbg_suspend_resume_hcmd(struct iwl_trans * trans,bool suspend) global() argument 3141 iwl_fw_dbg_stop_recording(struct iwl_trans * trans,struct iwl_fw_dbg_params * params) global() argument 3162 iwl_fw_dbg_restart_recording(struct iwl_trans * trans,struct iwl_fw_dbg_params * params) global() argument [all...] |
H A D | init.c | 16 void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, in iwl_fw_runtime_init() argument 26 fwrt->trans = trans; in iwl_fw_runtime_init() 28 fwrt->dev = trans->dev; in iwl_fw_runtime_init() 73 if (!fwrt->trans->trans_cfg->integrated) in iwl_set_soc_latency() 85 if (fwrt->trans->trans_cfg->ltr_delay != IWL_CFG_TRANS_LTR_DELAY_NONE && in iwl_set_soc_latency() 86 !WARN_ON(!fwrt->trans->trans_cfg->integrated)) in iwl_set_soc_latency() 87 cmd.flags |= le32_encode_bits(fwrt->trans->trans_cfg->ltr_delay, in iwl_set_soc_latency() 92 fwrt->trans->trans_cfg->low_latency_xtal) in iwl_set_soc_latency() 95 cmd.latency = cpu_to_le32(fwrt->trans in iwl_set_soc_latency() [all...] |
/freebsd/contrib/bsnmp/tests/ |
H A D | snmp_parse_server.cc | 29 REQUIRE(sc.trans == SNMP_TRANS_UDP); 43 REQUIRE(sc.trans == SNMP_TRANS_UDP); 52 REQUIRE(sc.trans == SNMP_TRANS_UDP); 61 REQUIRE(sc.trans == SNMP_TRANS_UDP); 70 REQUIRE(sc.trans == SNMP_TRANS_LOC_DGRAM); 79 REQUIRE(sc.trans == SNMP_TRANS_LOC_DGRAM); 95 REQUIRE(sc.trans == SNMP_TRANS_UDP6); 105 REQUIRE(sc.trans == SNMP_TRANS_UDP6); 115 REQUIRE(sc.trans == SNMP_TRANS_UDP6); 156 REQUIRE(sc.trans == SNMP_TRANS_UDP); [all …]
|
/freebsd/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_trans.c | 66 return &fdev->trans->transactions[tid]; in find_tid() 74 spin_lock_irqsave(&fdev->trans->lock, flags); in alloc_tid() 76 if (list_empty(&fdev->trans->free_queue)) { in alloc_tid() 82 ret = list_first_entry(&fdev->trans->free_queue, in alloc_tid() 88 spin_unlock_irqrestore(&fdev->trans->lock, flags); in alloc_tid() 97 spin_lock_irqsave(&fdev->trans->lock, flags); in free_tid() 98 list_add_tail(&trans_priv->list_item, &fdev->trans->free_queue); in free_tid() 99 spin_unlock_irqrestore(&fdev->trans->lock, flags); in free_tid() 111 spin_lock_irqsave(&fdev->trans->lock, flags); in trans_complete() 114 spin_unlock_irqrestore(&fdev->trans->lock, flags); in trans_complete() [all …]
|