Home
last modified time | relevance | path

Searched refs:trans (Results 1 - 25 of 656) sorted by relevance

12345678910>>...27

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtrans-gen2.c53 #include "iwl-trans.h"
65 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument
69 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init()
80 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init()
84 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init()
90 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_pcie_gen2_apm_init()
93 iwl_pcie_apm_config(trans); in iwl_pcie_gen2_apm_init()
95 ret = iwl_finish_nic_init(trans, trans->trans_cfg); in iwl_pcie_gen2_apm_init()
99 set_bit(STATUS_DEVICE_ENABLED, &trans in iwl_pcie_gen2_apm_init()
104 iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, bool op_mode_leave) iwl_pcie_gen2_apm_stop() argument
138 _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) _iwl_trans_pcie_gen2_stop_device() argument
217 iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) iwl_trans_pcie_gen2_stop_device() argument
230 iwl_pcie_gen2_nic_init(struct iwl_trans *trans) iwl_pcie_gen2_nic_init() argument
258 iwl_trans_pcie_gen2_fw_alive(struct iwl_trans *trans, u32 scd_addr) iwl_trans_pcie_gen2_fw_alive() argument
285 iwl_pcie_set_ltr(struct iwl_trans *trans) iwl_pcie_set_ltr() argument
313 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 Dinternal.h77 #include "iwl-trans.h"
248 static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument
251 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts()
341 * @trans: pointer to the generic transport area
398 struct iwl_trans *trans; member
475 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument
477 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS()
480 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, in iwl_pcie_clear_irq() argument
491 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(entry->entry)); in iwl_pcie_clear_irq()
502 * Convention: trans AP
570 _iwl_disable_interrupts(struct iwl_trans *trans) _iwl_disable_interrupts() argument
611 iwl_pcie_ctxt_info_free_fw_img(struct iwl_trans *trans) iwl_pcie_ctxt_info_free_fw_img() argument
630 iwl_disable_interrupts(struct iwl_trans *trans) iwl_disable_interrupts() argument
639 _iwl_enable_interrupts(struct iwl_trans *trans) _iwl_enable_interrupts() argument
662 iwl_enable_interrupts(struct iwl_trans *trans) iwl_enable_interrupts() argument
670 iwl_enable_hw_int_msk_msix(struct iwl_trans *trans, u32 msk) iwl_enable_hw_int_msk_msix() argument
678 iwl_enable_fh_int_msk_msix(struct iwl_trans *trans, u32 msk) iwl_enable_fh_int_msk_msix() argument
686 iwl_enable_fw_load_int(struct iwl_trans *trans) iwl_enable_fw_load_int() argument
702 iwl_enable_fw_load_int_ctx_info(struct iwl_trans *trans) iwl_enable_fw_load_int_ctx_info() argument
752 iwl_enable_rfkill_int(struct iwl_trans *trans) iwl_enable_rfkill_int() argument
780 iwl_is_rfkill_set(struct iwl_trans *trans) iwl_is_rfkill_set() argument
793 __iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) __iwl_trans_pcie_set_bits_mask() argument
808 __iwl_trans_pcie_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) __iwl_trans_pcie_clear_bit() argument
814 __iwl_trans_pcie_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) __iwl_trans_pcie_set_bit() argument
820 iwl_pcie_dbg_on(struct iwl_trans *trans) iwl_pcie_dbg_on() argument
832 iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans) iwl_trans_pcie_dbgfs_register() argument
[all...]
H A Dtrans.c74 #include "iwl-trans.h"
90 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs() argument
96 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs()
120 IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); in iwl_trans_pcie_dump_regs()
124 IWL_ERR(trans, "iwlwifi device config registers:\n"); in iwl_trans_pcie_dump_regs()
130 IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); in iwl_trans_pcie_dump_regs()
132 *ptr = iwl_read32(trans, i); in iwl_trans_pcie_dump_regs()
137 IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); in iwl_trans_pcie_dump_regs()
152 IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", in iwl_trans_pcie_dump_regs()
165 IWL_ERR(trans, "iwlwif in iwl_trans_pcie_dump_regs()
184 iwl_trans_pcie_sw_reset(struct iwl_trans *trans) iwl_trans_pcie_sw_reset() argument
191 iwl_pcie_free_fw_monitor(struct iwl_trans *trans) iwl_pcie_free_fw_monitor() argument
206 iwl_pcie_alloc_fw_monitor_block(struct iwl_trans *trans, u8 max_power, u8 min_power) iwl_pcie_alloc_fw_monitor_block() argument
245 iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power) iwl_pcie_alloc_fw_monitor() argument
265 iwl_trans_pcie_read_shr(struct iwl_trans *trans, u32 reg) iwl_trans_pcie_read_shr() argument
272 iwl_trans_pcie_write_shr(struct iwl_trans *trans, u32 reg, u32 val) iwl_trans_pcie_write_shr() argument
279 iwl_pcie_set_pwr(struct iwl_trans *trans, bool vaux) iwl_pcie_set_pwr() argument
297 iwl_pcie_apm_config(struct iwl_trans *trans) iwl_pcie_apm_config() argument
325 iwl_pcie_apm_init(struct iwl_trans *trans) iwl_pcie_apm_init() argument
423 iwl_pcie_apm_lp_xtal_enable(struct iwl_trans *trans) iwl_pcie_apm_lp_xtal_enable() argument
502 iwl_pcie_apm_stop_master(struct iwl_trans *trans) iwl_pcie_apm_stop_master() argument
518 iwl_pcie_apm_stop(struct iwl_trans *trans, bool op_mode_leave) iwl_pcie_apm_stop() argument
563 iwl_pcie_nic_init(struct iwl_trans *trans) iwl_pcie_nic_init() argument
599 iwl_pcie_set_hw_ready(struct iwl_trans *trans) iwl_pcie_set_hw_ready() argument
620 iwl_pcie_prepare_card_hw(struct iwl_trans *trans) iwl_pcie_prepare_card_hw() argument
662 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
690 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
718 iwl_pcie_load_section(struct iwl_trans *trans, u8 section_num, const struct fw_desc *section) iwl_pcie_load_section() argument
775 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
845 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
886 iwl_pcie_apply_destination_ini(struct iwl_trans *trans) iwl_pcie_apply_destination_ini() argument
923 iwl_pcie_apply_destination(struct iwl_trans *trans) iwl_pcie_apply_destination() argument
995 iwl_pcie_load_given_ucode(struct iwl_trans *trans, const struct fw_img *image) iwl_pcie_load_given_ucode() argument
1033 iwl_pcie_load_given_ucode_8000(struct iwl_trans *trans, const struct fw_img *image) iwl_pcie_load_given_ucode_8000() argument
1070 iwl_pcie_check_hw_rf_kill(struct iwl_trans *trans) iwl_pcie_check_hw_rf_kill() argument
1118 iwl_pcie_map_non_rx_causes(struct iwl_trans *trans) iwl_pcie_map_non_rx_causes() argument
1137 iwl_pcie_map_rx_causes(struct iwl_trans *trans) iwl_pcie_map_rx_causes() argument
1169 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_conf_msix_hw() local
1200 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_init_msix() local
1213 _iwl_trans_pcie_stop_device(struct iwl_trans *trans) _iwl_trans_pcie_stop_device() argument
1293 iwl_pcie_synchronize_irqs(struct iwl_trans *trans) iwl_pcie_synchronize_irqs() argument
1307 iwl_trans_pcie_start_fw(struct iwl_trans *trans, const struct fw_img *fw, bool run_in_rfkill) iwl_trans_pcie_start_fw() argument
1394 iwl_trans_pcie_fw_alive(struct iwl_trans *trans, u32 scd_addr) iwl_trans_pcie_fw_alive() argument
1400 iwl_trans_pcie_handle_stop_rfkill(struct iwl_trans *trans, bool was_in_rfkill) iwl_trans_pcie_handle_stop_rfkill() argument
1429 iwl_trans_pcie_stop_device(struct iwl_trans *trans) iwl_trans_pcie_stop_device() argument
1442 iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state) iwl_trans_pcie_rf_kill() argument
1459 iwl_pcie_d3_complete_suspend(struct iwl_trans *trans, bool test, bool reset) iwl_pcie_d3_complete_suspend() argument
1491 iwl_trans_pcie_d3_suspend(struct iwl_trans *trans, bool test, bool reset) iwl_trans_pcie_d3_suspend() argument
1523 iwl_trans_pcie_d3_resume(struct iwl_trans *trans, enum iwl_d3_status *status, bool test, bool reset) iwl_trans_pcie_d3_resume() argument
1604 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
1674 iwl_pcie_irq_set_affinity(struct iwl_trans *trans) iwl_pcie_irq_set_affinity() argument
1733 iwl_trans_pcie_clear_persistence_bit(struct iwl_trans *trans) iwl_trans_pcie_clear_persistence_bit() argument
1764 iwl_pcie_gen2_force_power_gating(struct iwl_trans *trans) iwl_pcie_gen2_force_power_gating() argument
1787 _iwl_trans_pcie_start_hw(struct iwl_trans *trans) _iwl_trans_pcie_start_hw() argument
1833 iwl_trans_pcie_start_hw(struct iwl_trans *trans) iwl_trans_pcie_start_hw() argument
1845 iwl_trans_pcie_op_mode_leave(struct iwl_trans *trans) iwl_trans_pcie_op_mode_leave() argument
1865 iwl_trans_pcie_write8(struct iwl_trans *trans, u32 ofs, u8 val) iwl_trans_pcie_write8() argument
1870 iwl_trans_pcie_write32(struct iwl_trans *trans, u32 ofs, u32 val) iwl_trans_pcie_write32() argument
1875 iwl_trans_pcie_read32(struct iwl_trans *trans, u32 ofs) iwl_trans_pcie_read32() argument
1880 iwl_trans_pcie_prph_msk(struct iwl_trans *trans) iwl_trans_pcie_prph_msk() argument
1888 iwl_trans_pcie_read_prph(struct iwl_trans *trans, u32 reg) iwl_trans_pcie_read_prph() argument
1897 iwl_trans_pcie_write_prph(struct iwl_trans *trans, u32 addr, u32 val) iwl_trans_pcie_write_prph() argument
1907 iwl_trans_pcie_configure(struct iwl_trans *trans, const struct iwl_trans_config *trans_cfg) iwl_trans_pcie_configure() argument
1954 iwl_trans_pcie_free(struct iwl_trans *trans) iwl_trans_pcie_free() argument
1995 iwl_trans_pcie_set_pmi(struct iwl_trans *trans, bool state) iwl_trans_pcie_set_pmi() argument
2026 iwl_trans_pcie_grab_nic_access(struct iwl_trans *trans, unsigned long *flags) iwl_trans_pcie_grab_nic_access() argument
2130 iwl_trans_pcie_release_nic_access(struct iwl_trans *trans, unsigned long *flags) iwl_trans_pcie_release_nic_access() argument
2158 iwl_trans_pcie_read_mem(struct iwl_trans *trans, u32 addr, void *buf, int dwords) iwl_trans_pcie_read_mem() argument
2196 iwl_trans_pcie_write_mem(struct iwl_trans *trans, u32 addr, const void *buf, int dwords) iwl_trans_pcie_write_mem() argument
2215 iwl_trans_pcie_read_config32(struct iwl_trans *trans, u32 ofs, u32 *val) iwl_trans_pcie_read_config32() argument
2222 iwl_trans_pcie_freeze_txq_timer(struct iwl_trans *trans, unsigned long txqs, bool freeze) iwl_trans_pcie_freeze_txq_timer() argument
2275 iwl_trans_pcie_block_txq_ptrs(struct iwl_trans *trans, bool block) iwl_trans_pcie_block_txq_ptrs() argument
2303 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
2319 iwl_trans_pcie_wait_txq_empty(struct iwl_trans *trans, int txq_idx) iwl_trans_pcie_wait_txq_empty() argument
2380 iwl_trans_pcie_wait_txqs_empty(struct iwl_trans *trans, u32 txq_bm) iwl_trans_pcie_wait_txqs_empty() argument
2405 iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) iwl_trans_pcie_set_bits_mask() argument
2449 iwl_pcie_dump_csr(struct iwl_trans *trans) iwl_pcie_dump_csr() argument
2519 struct iwl_trans *trans; global() member
2564 struct iwl_trans *trans = priv->trans; iwl_dbgfs_tx_queue_seq_show() local
2612 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rx_queue_read() local
2663 struct iwl_trans *trans = file->private_data; iwl_dbgfs_interrupt_read() local
2721 struct iwl_trans *trans = file->private_data; iwl_dbgfs_interrupt_write() local
2740 struct iwl_trans *trans = file->private_data; iwl_dbgfs_csr_write() local
2751 struct iwl_trans *trans = file->private_data; iwl_dbgfs_fh_reg_read() local
2769 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rfkill_read() local
2786 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rfkill_write() local
2807 struct iwl_trans *trans = inode->i_private; iwl_dbgfs_monitor_data_open() local
2856 struct iwl_trans *trans = file->private_data; iwl_dbgfs_monitor_data_read() local
2955 iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans) iwl_trans_pcie_dbgfs_register() argument
2968 iwl_trans_pcie_debugfs_cleanup(struct iwl_trans *trans) iwl_trans_pcie_debugfs_cleanup() argument
2979 iwl_trans_pcie_get_cmdlen(struct iwl_trans *trans, void *tfd) iwl_trans_pcie_get_cmdlen() argument
2990 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
3034 iwl_trans_pcie_dump_csr(struct iwl_trans *trans, struct iwl_fw_error_dump_data **data) iwl_trans_pcie_dump_csr() argument
3053 iwl_trans_pcie_fh_regs_dump(struct iwl_trans *trans, struct iwl_fw_error_dump_data **data) iwl_trans_pcie_fh_regs_dump() argument
3087 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
3111 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
3145 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
3203 iwl_trans_get_fw_monitor_len(struct iwl_trans *trans, u32 *len) iwl_trans_get_fw_monitor_len() argument
3250 iwl_trans_pcie_dump_data(struct iwl_trans *trans, u32 dump_mask) iwl_trans_pcie_dump_data() argument
3397 iwl_trans_pcie_suspend(struct iwl_trans *trans) iwl_trans_pcie_suspend() argument
3402 iwl_trans_pcie_resume(struct iwl_trans *trans) iwl_trans_pcie_resume() argument
3493 struct iwl_trans *trans; iwl_trans_pcie_alloc() local
3665 iwl_trans_pcie_sync_nmi(struct iwl_trans *trans) iwl_trans_pcie_sync_nmi() argument
[all...]
H A Dtx.c103 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
109 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
117 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument
122 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
129 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument
143 if (!trans->trans_cfg->base_params->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr()
144 txq_id != trans->txqs.cmd.q_id && in iwl_pcie_txq_inc_wr_ptr()
145 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr()
151 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr()
154 IWL_DEBUG_INFO(trans, "T in iwl_pcie_txq_inc_wr_ptr()
173 iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans) iwl_pcie_txq_check_wrptrs() argument
192 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
217 iwl_pcie_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) iwl_pcie_txq_free_tfd() argument
249 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
278 iwl_pcie_clear_cmd_in_flight(struct iwl_trans *trans) iwl_pcie_clear_cmd_in_flight() argument
297 iwl_pcie_txq_unmap(struct iwl_trans *trans, int txq_id) iwl_pcie_txq_unmap() argument
351 iwl_pcie_txq_free(struct iwl_trans *trans, int txq_id) iwl_pcie_txq_free() argument
392 iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr) iwl_pcie_tx_start() argument
450 iwl_trans_pcie_tx_reset(struct iwl_trans *trans) iwl_trans_pcie_tx_reset() argument
490 iwl_pcie_tx_stop_fh(struct iwl_trans *trans) iwl_pcie_tx_stop_fh() argument
524 iwl_pcie_tx_stop(struct iwl_trans *trans) iwl_pcie_tx_stop() argument
561 iwl_pcie_tx_free(struct iwl_trans *trans) iwl_pcie_tx_free() argument
590 iwl_pcie_tx_alloc(struct iwl_trans *trans) iwl_pcie_tx_alloc() argument
661 iwl_pcie_tx_init(struct iwl_trans *trans) iwl_pcie_tx_init() argument
752 iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn, struct sk_buff_head *skbs) iwl_trans_pcie_reclaim() argument
869 iwl_trans_pcie_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr) iwl_trans_pcie_set_q_ptrs() argument
881 iwl_pcie_set_cmd_in_flight(struct iwl_trans *trans, const struct iwl_host_cmd *cmd) iwl_pcie_set_cmd_in_flight() argument
928 iwl_pcie_cmdq_reclaim(struct iwl_trans *trans, int txq_id, int idx) iwl_pcie_cmdq_reclaim() argument
971 iwl_pcie_txq_set_ratid_map(struct iwl_trans *trans, u16 ra_tid, u16 txq_id) iwl_pcie_txq_set_ratid_map() argument
1000 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
1112 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
1120 iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int txq_id, bool configure_scd) iwl_trans_pcie_txq_disable() argument
1167 iwl_pcie_enqueue_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_pcie_enqueue_hcmd() argument
1442 iwl_pcie_hcmd_complete(struct iwl_trans *trans, struct iwl_rx_cmd_buffer *rxb) iwl_pcie_hcmd_complete() argument
1511 iwl_pcie_send_hcmd_async(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_pcie_send_hcmd_async() argument
1530 iwl_pcie_send_hcmd_sync(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_pcie_send_hcmd_sync() argument
1625 iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_trans_pcie_send_hcmd() argument
1645 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
1716 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
1896 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
1909 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 Drx.c201 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument
203 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_rx_stop()
205 iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_GEN3, 0); in iwl_pcie_rx_stop()
206 return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_GEN3, in iwl_pcie_rx_stop()
208 } else if (trans->trans_cfg->mq_rx_supported) { in iwl_pcie_rx_stop()
209 iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); in iwl_pcie_rx_stop()
210 return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, in iwl_pcie_rx_stop()
213 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop()
214 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop()
223 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_rxq_inc_wr_ptr() argument
257 iwl_pcie_rxq_check_wrptr(struct iwl_trans *trans) iwl_pcie_rxq_check_wrptr() argument
274 iwl_pcie_restock_bd(struct iwl_trans *trans, struct iwl_rxq *rxq, struct iwl_rx_mem_buffer *rxb) iwl_pcie_restock_bd() argument
298 iwl_pcie_rxmq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rxmq_restock() argument
345 iwl_pcie_rxsq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rxsq_restock() argument
403 iwl_pcie_rxq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rxq_restock() argument
415 iwl_pcie_rx_alloc_page(struct iwl_trans *trans, u32 *offset, gfp_t priority) iwl_pcie_rx_alloc_page() argument
483 iwl_pcie_rxq_alloc_rbs(struct iwl_trans *trans, gfp_t priority, struct iwl_rxq *rxq) iwl_pcie_rxq_alloc_rbs() argument
542 iwl_pcie_free_rbs_pool(struct iwl_trans *trans) iwl_pcie_free_rbs_pool() argument
567 iwl_pcie_rx_allocator(struct iwl_trans *trans) iwl_pcie_rx_allocator() argument
667 iwl_pcie_rx_allocator_get(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rx_allocator_get() argument
712 iwl_pcie_free_bd_size(struct iwl_trans *trans, bool use_rx_td) iwl_pcie_free_bd_size() argument
723 iwl_pcie_free_rxq_dma(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_free_rxq_dma() argument
765 iwl_pcie_alloc_rxq_dma(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_alloc_rxq_dma() argument
834 iwl_pcie_rx_alloc(struct iwl_trans *trans) iwl_pcie_rx_alloc() argument
903 iwl_pcie_rx_hw_init(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rx_hw_init() argument
972 iwl_pcie_rx_mq_hw_init(struct iwl_trans *trans) iwl_pcie_rx_mq_hw_init() argument
1077 _iwl_pcie_rx_init(struct iwl_trans *trans) _iwl_pcie_rx_init() argument
1156 iwl_pcie_rx_init(struct iwl_trans *trans) iwl_pcie_rx_init() argument
1178 iwl_pcie_gen2_rx_init(struct iwl_trans *trans) iwl_pcie_gen2_rx_init() argument
1190 iwl_pcie_rx_free(struct iwl_trans *trans) iwl_pcie_rx_free() argument
1251 iwl_pcie_rx_reuse_rbd(struct iwl_trans *trans, struct iwl_rx_mem_buffer *rxb, struct iwl_rxq *rxq, bool emergency) iwl_pcie_rx_reuse_rbd() argument
1283 iwl_pcie_rx_handle_rb(struct iwl_trans *trans, struct iwl_rxq *rxq, struct iwl_rx_mem_buffer *rxb, bool emergency, int i) iwl_pcie_rx_handle_rb() argument
1432 iwl_pcie_get_rxb(struct iwl_trans *trans, struct iwl_rxq *rxq, int i, bool *join) iwl_pcie_get_rxb() argument
1477 iwl_pcie_rx_handle(struct iwl_trans *trans, int queue) iwl_pcie_rx_handle() argument
1635 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_irq_rx_msix_handler() local
1658 iwl_pcie_irq_handle_error(struct iwl_trans *trans) iwl_pcie_irq_handle_error() argument
1690 iwl_pcie_int_cause_non_ict(struct iwl_trans *trans) iwl_pcie_int_cause_non_ict() argument
1718 iwl_pcie_int_cause_ict(struct iwl_trans *trans) iwl_pcie_int_cause_ict() argument
1770 iwl_pcie_handle_rfkill_irq(struct iwl_trans *trans) iwl_pcie_handle_rfkill_irq() argument
1812 struct iwl_trans *trans = dev_id; iwl_pcie_irq_handler() local
2061 iwl_pcie_free_ict(struct iwl_trans *trans) iwl_pcie_free_ict() argument
2079 iwl_pcie_alloc_ict(struct iwl_trans *trans) iwl_pcie_alloc_ict() argument
2101 iwl_pcie_reset_ict(struct iwl_trans *trans) iwl_pcie_reset_ict() argument
2131 iwl_pcie_disable_ict(struct iwl_trans *trans) iwl_pcie_disable_ict() argument
2142 struct iwl_trans *trans = data; iwl_pcie_isr() local
2166 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_irq_msix_handler() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.h63 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON
116 * trans->system_pm_mode to IWL_PLAT_PM_MODE_D3.
174 #define IWL_TRANS_MAX_FRAGS(trans) ((trans)->txqs.tfd.max_tbs - 3)
302 * @STATUS_TRANS_GOING_IDLE: shutting down the trans, only special commands
304 * @STATUS_TRANS_IDLE: the trans is idle - general commands are not to be sent
305 * @STATUS_TRANS_DEAD: trans is dead - avoid any read/write operation
565 * of the trans debugfs
577 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
579 void (*fw_alive)(struct iwl_trans *trans, u3
972 struct iwl_trans *trans; global() member
1151 iwl_trans_configure(struct iwl_trans *trans, const struct iwl_trans_config *trans_cfg) iwl_trans_configure() argument
1160 iwl_trans_start_hw(struct iwl_trans *trans) iwl_trans_start_hw() argument
1167 iwl_trans_op_mode_leave(struct iwl_trans *trans) iwl_trans_op_mode_leave() argument
1179 iwl_trans_fw_alive(struct iwl_trans *trans, u32 scd_addr) iwl_trans_fw_alive() argument
1188 iwl_trans_start_fw(struct iwl_trans *trans, const struct fw_img *fw, bool run_in_rfkill) iwl_trans_start_fw() argument
1206 iwl_trans_stop_device(struct iwl_trans *trans) iwl_trans_stop_device() argument
1215 iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, bool reset) iwl_trans_d3_suspend() argument
1225 iwl_trans_d3_resume(struct iwl_trans *trans, enum iwl_d3_status *status, bool test, bool reset) iwl_trans_d3_resume() argument
1237 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
1248 iwl_trans_alloc_tx_cmd(struct iwl_trans *trans) iwl_trans_alloc_tx_cmd() argument
1255 iwl_trans_free_tx_cmd(struct iwl_trans *trans, struct iwl_device_tx_cmd *dev_cmd) iwl_trans_free_tx_cmd() argument
1261 iwl_trans_tx(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_device_tx_cmd *dev_cmd, int queue) iwl_trans_tx() argument
1275 iwl_trans_reclaim(struct iwl_trans *trans, int queue, int ssn, struct sk_buff_head *skbs, bool is_flush) iwl_trans_reclaim() argument
1287 iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, int ptr) iwl_trans_set_q_ptrs() argument
1298 iwl_trans_txq_disable(struct iwl_trans *trans, int queue, bool configure_scd) iwl_trans_txq_disable() argument
1305 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
1321 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
1331 iwl_trans_txq_free(struct iwl_trans *trans, int queue) iwl_trans_txq_free() argument
1340 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
1358 iwl_trans_txq_set_shared_mode(struct iwl_trans *trans, int queue, bool shared_mode) iwl_trans_txq_set_shared_mode() argument
1365 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
1382 iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo, unsigned int queue_wdg_timeout) iwl_trans_ac_txq_enable() argument
1396 iwl_trans_freeze_txq_timer(struct iwl_trans *trans, unsigned long txqs, bool freeze) iwl_trans_freeze_txq_timer() argument
1409 iwl_trans_block_txq_ptrs(struct iwl_trans *trans, bool block) iwl_trans_block_txq_ptrs() argument
1421 iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, u32 txqs) iwl_trans_wait_tx_queues_empty() argument
1436 iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue) iwl_trans_wait_txq_empty() argument
1449 iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) iwl_trans_write8() argument
1454 iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val) iwl_trans_write32() argument
1459 iwl_trans_read32(struct iwl_trans *trans, u32 ofs) iwl_trans_read32() argument
1464 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs) iwl_trans_read_prph() argument
1469 iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) iwl_trans_write_prph() argument
1475 iwl_trans_read_mem(struct iwl_trans *trans, u32 addr, void *buf, int dwords) iwl_trans_read_mem() argument
1488 iwl_trans_write_imr_mem(struct iwl_trans *trans, u32 dst_addr, u64 src_addr, u32 byte_cnt) iwl_trans_write_imr_mem() argument
1497 iwl_trans_read_mem32(struct iwl_trans *trans, u32 addr) iwl_trans_read_mem32() argument
1507 iwl_trans_write_mem(struct iwl_trans *trans, u32 addr, const void *buf, int dwords) iwl_trans_write_mem() argument
1513 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr, u32 val) iwl_trans_write_mem32() argument
1519 iwl_trans_set_pmi(struct iwl_trans *trans, bool state) iwl_trans_set_pmi() argument
1525 iwl_trans_sw_reset(struct iwl_trans *trans, bool retake_ownership) iwl_trans_sw_reset() argument
1534 iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) iwl_trans_set_bits_mask() argument
1544 iwl_trans_release_nic_access(struct iwl_trans *trans) iwl_trans_release_nic_access() argument
1550 iwl_trans_fw_error(struct iwl_trans *trans, bool sync) iwl_trans_fw_error() argument
1562 iwl_trans_fw_running(struct iwl_trans *trans) iwl_trans_fw_running() argument
1567 iwl_trans_sync_nmi(struct iwl_trans *trans) iwl_trans_sync_nmi() argument
1576 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
1583 iwl_trans_set_pnvm(struct iwl_trans *trans, const struct iwl_ucode_capabilities *capa) iwl_trans_set_pnvm() argument
1590 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
1599 iwl_trans_set_reduce_power(struct iwl_trans *trans, const struct iwl_ucode_capabilities *capa) iwl_trans_set_reduce_power() argument
1606 iwl_trans_dbg_ini_valid(struct iwl_trans *trans) iwl_trans_dbg_ini_valid() argument
1612 iwl_trans_interrupts(struct iwl_trans *trans, bool enable) iwl_trans_interrupts() argument
[all...]
H A Diwl-eeprom-read.c36 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore() argument
43 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
47 ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
52 IWL_DEBUG_EEPROM(trans->dev, in iwl_eeprom_acquire_semaphore()
62 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) in iwl_eeprom_release_semaphore() argument
64 iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_release_semaphore()
68 static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) in iwl_eeprom_verify_signature() argument
70 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature()
72 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
77 IWL_ERR(trans, "EEPRO in iwl_eeprom_verify_signature()
104 iwl_set_otp_access_absolute(struct iwl_trans *trans) iwl_set_otp_access_absolute() argument
112 iwl_nvm_is_otp(struct iwl_trans *trans) iwl_nvm_is_otp() argument
134 iwl_init_otp_access(struct iwl_trans *trans) iwl_init_otp_access() argument
159 iwl_read_otp_word(struct iwl_trans *trans, u16 addr, __le16 *eeprom_data) iwl_read_otp_word() argument
201 iwl_is_otp_empty(struct iwl_trans *trans) iwl_is_otp_empty() argument
231 iwl_find_otp_image(struct iwl_trans *trans, u16 *validblockaddr) iwl_find_otp_image() argument
288 iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size) iwl_read_eeprom() argument
[all...]
H A Diwl-trans.c11 #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->ops = ops; in iwl_trans_alloc()
41 trans in iwl_trans_alloc()
59 iwl_trans_init(struct iwl_trans *trans) iwl_trans_init() argument
127 iwl_trans_free(struct iwl_trans *trans) iwl_trans_free() argument
146 iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_trans_send_cmd() argument
216 iwl_get_cmd_string(struct iwl_trans *trans, u32 id) iwl_get_cmd_string() argument
238 iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans) iwl_cmd_groups_verify_sorted() argument
[all...]
H A Diwl-io.c17 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 Diwl-io.h9 #include "iwl-trans.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, u3
42 iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_prph() argument
65 iwl_umac_prph(struct iwl_trans *trans, u32 ofs) iwl_umac_prph() argument
70 iwl_read_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs) iwl_read_umac_prph_no_grab() argument
76 iwl_read_umac_prph(struct iwl_trans *trans, u32 ofs) iwl_read_umac_prph() argument
81 iwl_write_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_umac_prph_no_grab() argument
88 iwl_write_umac_prph(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_umac_prph() argument
94 iwl_poll_umac_prph_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_umac_prph_bit() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.h116 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON
223 #define IWL_TRANS_MAX_FRAGS(trans) ((trans)->txqs.tfd.max_tbs - 3)
347 * @STATUS_TRANS_GOING_IDLE: shutting down the trans, only special commands
349 * @STATUS_TRANS_IDLE: the trans is idle - general commands are not to be sent
350 * @STATUS_TRANS_DEAD: trans is dead - avoid any read/write operation
571 * of the trans debugfs
579 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
581 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr);
582 void (*stop_device)(struct iwl_trans *trans);
897 struct iwl_trans *trans; global() member
1046 iwl_trans_configure(struct iwl_trans *trans, const struct iwl_trans_config *trans_cfg) iwl_trans_configure() argument
1055 iwl_trans_start_hw(struct iwl_trans *trans) iwl_trans_start_hw() argument
1062 iwl_trans_op_mode_leave(struct iwl_trans *trans) iwl_trans_op_mode_leave() argument
1074 iwl_trans_fw_alive(struct iwl_trans *trans, u32 scd_addr) iwl_trans_fw_alive() argument
1083 iwl_trans_start_fw(struct iwl_trans *trans, const struct fw_img *fw, bool run_in_rfkill) iwl_trans_start_fw() argument
1095 iwl_trans_stop_device(struct iwl_trans *trans) iwl_trans_stop_device() argument
1104 iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, bool reset) iwl_trans_d3_suspend() argument
1114 iwl_trans_d3_resume(struct iwl_trans *trans, enum iwl_d3_status *status, bool test, bool reset) iwl_trans_d3_resume() argument
1125 iwl_trans_suspend(struct iwl_trans *trans) iwl_trans_suspend() argument
1133 iwl_trans_resume(struct iwl_trans *trans) iwl_trans_resume() argument
1140 iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask) iwl_trans_dump_data() argument
1148 iwl_trans_alloc_tx_cmd(struct iwl_trans *trans) iwl_trans_alloc_tx_cmd() argument
1155 iwl_trans_free_tx_cmd(struct iwl_trans *trans, struct iwl_device_tx_cmd *dev_cmd) iwl_trans_free_tx_cmd() argument
1161 iwl_trans_tx(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_device_tx_cmd *dev_cmd, int queue) iwl_trans_tx() argument
1175 iwl_trans_reclaim(struct iwl_trans *trans, int queue, int ssn, struct sk_buff_head *skbs) iwl_trans_reclaim() argument
1186 iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, int ptr) iwl_trans_set_q_ptrs() argument
1197 iwl_trans_txq_disable(struct iwl_trans *trans, int queue, bool configure_scd) iwl_trans_txq_disable() argument
1204 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
1220 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
1230 iwl_trans_txq_free(struct iwl_trans *trans, int queue) iwl_trans_txq_free() argument
1239 iwl_trans_txq_alloc(struct iwl_trans *trans, __le16 flags, u8 sta_id, u8 tid, int cmd_id, int size, unsigned int wdg_timeout) iwl_trans_txq_alloc() argument
1258 iwl_trans_txq_set_shared_mode(struct iwl_trans *trans, int queue, bool shared_mode) iwl_trans_txq_set_shared_mode() argument
1265 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
1282 iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo, unsigned int queue_wdg_timeout) iwl_trans_ac_txq_enable() argument
1296 iwl_trans_freeze_txq_timer(struct iwl_trans *trans, unsigned long txqs, bool freeze) iwl_trans_freeze_txq_timer() argument
1309 iwl_trans_block_txq_ptrs(struct iwl_trans *trans, bool block) iwl_trans_block_txq_ptrs() argument
1321 iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, u32 txqs) iwl_trans_wait_tx_queues_empty() argument
1335 iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue) iwl_trans_wait_txq_empty() argument
1348 iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) iwl_trans_write8() argument
1353 iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val) iwl_trans_write32() argument
1358 iwl_trans_read32(struct iwl_trans *trans, u32 ofs) iwl_trans_read32() argument
1363 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs) iwl_trans_read_prph() argument
1368 iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) iwl_trans_write_prph() argument
1374 iwl_trans_read_mem(struct iwl_trans *trans, u32 addr, void *buf, int dwords) iwl_trans_read_mem() argument
1387 iwl_trans_read_mem32(struct iwl_trans *trans, u32 addr) iwl_trans_read_mem32() argument
1397 iwl_trans_write_mem(struct iwl_trans *trans, u32 addr, const void *buf, int dwords) iwl_trans_write_mem() argument
1403 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr, u32 val) iwl_trans_write_mem32() argument
1409 iwl_trans_set_pmi(struct iwl_trans *trans, bool state) iwl_trans_set_pmi() argument
1415 iwl_trans_sw_reset(struct iwl_trans *trans) iwl_trans_sw_reset() argument
1422 iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) iwl_trans_set_bits_mask() argument
1432 iwl_trans_release_nic_access(struct iwl_trans *trans, unsigned long *flags) iwl_trans_release_nic_access() argument
1438 iwl_trans_fw_error(struct iwl_trans *trans) iwl_trans_fw_error() argument
1448 iwl_trans_fw_running(struct iwl_trans *trans) iwl_trans_fw_running() argument
1453 iwl_trans_sync_nmi(struct iwl_trans *trans) iwl_trans_sync_nmi() argument
1459 iwl_trans_set_pnvm(struct iwl_trans *trans, const void *data, u32 len) iwl_trans_set_pnvm() argument
1474 iwl_trans_dbg_ini_valid(struct iwl_trans *trans) iwl_trans_dbg_ini_valid() argument
[all...]
H A Diwl-eeprom-read.c94 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore() argument
101 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
105 ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
110 IWL_DEBUG_EEPROM(trans->dev, in iwl_eeprom_acquire_semaphore()
120 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) in iwl_eeprom_release_semaphore() argument
122 iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_release_semaphore()
126 static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) in iwl_eeprom_verify_signature() argument
128 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature()
130 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
135 IWL_ERR(trans, "EEPRO in iwl_eeprom_verify_signature()
162 iwl_set_otp_access_absolute(struct iwl_trans *trans) iwl_set_otp_access_absolute() argument
170 iwl_nvm_is_otp(struct iwl_trans *trans) iwl_nvm_is_otp() argument
192 iwl_init_otp_access(struct iwl_trans *trans) iwl_init_otp_access() argument
217 iwl_read_otp_word(struct iwl_trans *trans, u16 addr, __le16 *eeprom_data) iwl_read_otp_word() argument
259 iwl_is_otp_empty(struct iwl_trans *trans) iwl_is_otp_empty() argument
289 iwl_find_otp_image(struct iwl_trans *trans, u16 *validblockaddr) iwl_find_otp_image() argument
346 iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size) iwl_read_eeprom() argument
[all...]
H A Diwl-io.h62 #include "iwl-trans.h"
64 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val);
65 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val);
66 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val);
67 u32 iwl_read32(struct iwl_trans *trans, u32 ofs);
69 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument
71 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit()
74 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit() argument
76 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit()
79 int iwl_poll_bit(struct iwl_trans *trans, u3
113 iwl_umac_prph(struct iwl_trans *trans, u32 ofs) iwl_umac_prph() argument
118 iwl_read_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs) iwl_read_umac_prph_no_grab() argument
124 iwl_read_umac_prph(struct iwl_trans *trans, u32 ofs) iwl_read_umac_prph() argument
129 iwl_write_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_umac_prph_no_grab() argument
136 iwl_write_umac_prph(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_umac_prph() argument
142 iwl_poll_umac_prph_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_umac_prph_bit() argument
[all...]
H A Diwl-trans.c66 #include "iwl-trans.h"
77 struct iwl_trans *trans; in iwl_trans_alloc() local
83 trans = devm_kzalloc(dev, sizeof(*trans) + priv_size, GFP_KERNEL); in iwl_trans_alloc()
84 if (!trans) in iwl_trans_alloc()
87 trans->trans_cfg = cfg_trans; in iwl_trans_alloc()
107 lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", in iwl_trans_alloc()
111 trans->dev = dev; in iwl_trans_alloc()
112 trans->ops = ops; in iwl_trans_alloc()
113 trans in iwl_trans_alloc()
163 iwl_trans_free(struct iwl_trans *trans) iwl_trans_free() argument
180 iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_trans_send_cmd() argument
235 iwl_get_cmd_string(struct iwl_trans *trans, u32 id) iwl_get_cmd_string() argument
257 iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans) iwl_cmd_groups_verify_sorted() argument
[all...]
H A Diwl-io.c73 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
75 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
76 iwl_trans_write8(trans, ofs, val); in iwl_write8()
80 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
82 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
83 iwl_trans_write32(trans, ofs, val); in iwl_write32()
87 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument
89 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64()
90 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64()
91 iwl_trans_write32(trans, of in iwl_write64()
95 iwl_read32(struct iwl_trans *trans, u32 ofs) iwl_read32() argument
106 iwl_poll_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_bit() argument
122 iwl_read_direct32(struct iwl_trans *trans, u32 reg) iwl_read_direct32() argument
135 iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value) iwl_write_direct32() argument
146 iwl_write_direct64(struct iwl_trans *trans, u64 reg, u64 value) iwl_write_direct64() argument
157 iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, int timeout) iwl_poll_direct_bit() argument
173 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs) iwl_read_prph_no_grab() argument
181 iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_prph_no_grab() argument
188 iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val) iwl_write_prph64_no_grab() argument
196 iwl_read_prph(struct iwl_trans *trans, u32 ofs) iwl_read_prph() argument
209 iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) iwl_write_prph() argument
220 iwl_poll_prph_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_prph_bit() argument
235 iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask) iwl_set_bits_prph() argument
248 iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, u32 bits, u32 mask) iwl_set_bits_mask_prph() argument
262 iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask) iwl_clear_bits_prph() argument
275 iwl_force_nmi(struct iwl_trans *trans) iwl_force_nmi() argument
320 iwl_dump_rfh(struct iwl_trans *trans, char **buf) iwl_dump_rfh() argument
416 iwl_dump_fh(struct iwl_trans *trans, char **buf) iwl_dump_fh() argument
465 iwl_finish_nic_init(struct iwl_trans *trans, const struct iwl_cfg_trans_params *cfg_trans) iwl_finish_nic_init() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtrans-gen2.c6 #include "iwl-trans.h"
20 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument
24 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init()
35 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init()
39 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init()
45 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_pcie_gen2_apm_init()
48 iwl_pcie_apm_config(trans); in iwl_pcie_gen2_apm_init()
50 ret = iwl_finish_nic_init(trans); in iwl_pcie_gen2_apm_init()
54 set_bit(STATUS_DEVICE_ENABLED, &trans->status); in iwl_pcie_gen2_apm_init()
59 static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, boo argument
98 iwl_trans_pcie_fw_reset_handshake(struct iwl_trans *trans) iwl_trans_pcie_fw_reset_handshake() argument
133 _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) _iwl_trans_pcie_gen2_stop_device() argument
212 iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) iwl_trans_pcie_gen2_stop_device() argument
229 iwl_pcie_gen2_nic_init(struct iwl_trans *trans) iwl_pcie_gen2_nic_init() argument
257 iwl_pcie_get_rf_name(struct iwl_trans *trans) iwl_pcie_get_rf_name() argument
329 iwl_trans_pcie_gen2_fw_alive(struct iwl_trans *trans, u32 scd_addr) iwl_trans_pcie_gen2_fw_alive() argument
360 iwl_pcie_set_ltr(struct iwl_trans *trans) iwl_pcie_set_ltr() argument
409 iwl_pcie_spin_for_iml(struct iwl_trans *trans) iwl_pcie_spin_for_iml() argument
447 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 Dinternal.h20 #include "iwl-trans.h"
193 static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument
196 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts()
307 * @trans: pointer to the generic transport area
366 struct iwl_trans *trans; member
449 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument
451 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS()
454 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, int queue) in iwl_pcie_clear_irq() argument
464 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(queue)); in iwl_pcie_clear_irq()
475 * Convention: trans AP
547 _iwl_disable_interrupts(struct iwl_trans *trans) _iwl_disable_interrupts() argument
585 iwl_pcie_ctxt_info_free_fw_img(struct iwl_trans *trans) iwl_pcie_ctxt_info_free_fw_img() argument
604 iwl_disable_interrupts(struct iwl_trans *trans) iwl_disable_interrupts() argument
613 _iwl_enable_interrupts(struct iwl_trans *trans) _iwl_enable_interrupts() argument
636 iwl_enable_interrupts(struct iwl_trans *trans) iwl_enable_interrupts() argument
644 iwl_enable_hw_int_msk_msix(struct iwl_trans *trans, u32 msk) iwl_enable_hw_int_msk_msix() argument
652 iwl_enable_fh_int_msk_msix(struct iwl_trans *trans, u32 msk) iwl_enable_fh_int_msk_msix() argument
660 iwl_enable_fw_load_int(struct iwl_trans *trans) iwl_enable_fw_load_int() argument
676 iwl_enable_fw_load_int_ctx_info(struct iwl_trans *trans) iwl_enable_fw_load_int_ctx_info() argument
726 iwl_enable_rfkill_int(struct iwl_trans *trans) iwl_enable_rfkill_int() argument
754 iwl_is_rfkill_set(struct iwl_trans *trans) iwl_is_rfkill_set() argument
767 __iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) __iwl_trans_pcie_set_bits_mask() argument
782 __iwl_trans_pcie_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) __iwl_trans_pcie_clear_bit() argument
788 __iwl_trans_pcie_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) __iwl_trans_pcie_set_bit() argument
794 iwl_pcie_dbg_on(struct iwl_trans *trans) iwl_pcie_dbg_on() argument
805 iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans) iwl_trans_pcie_dbgfs_register() argument
[all...]
H A Dtrans.c19 #include "iwl-trans.h"
36 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs() argument
42 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs()
66 IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); in iwl_trans_pcie_dump_regs()
70 IWL_ERR(trans, "iwlwifi device config registers:\n"); in iwl_trans_pcie_dump_regs()
76 IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); in iwl_trans_pcie_dump_regs()
78 *ptr = iwl_read32(trans, i); in iwl_trans_pcie_dump_regs()
83 IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); in iwl_trans_pcie_dump_regs()
98 IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", in iwl_trans_pcie_dump_regs()
111 IWL_ERR(trans, "iwlwif in iwl_trans_pcie_dump_regs()
130 iwl_trans_pcie_sw_reset(struct iwl_trans *trans, bool retake_ownership) iwl_trans_pcie_sw_reset() argument
150 iwl_pcie_free_fw_monitor(struct iwl_trans *trans) iwl_pcie_free_fw_monitor() argument
165 iwl_pcie_alloc_fw_monitor_block(struct iwl_trans *trans, u8 max_power) iwl_pcie_alloc_fw_monitor_block() argument
207 iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power) iwl_pcie_alloc_fw_monitor() argument
224 iwl_trans_pcie_read_shr(struct iwl_trans *trans, u32 reg) iwl_trans_pcie_read_shr() argument
231 iwl_trans_pcie_write_shr(struct iwl_trans *trans, u32 reg, u32 val) iwl_trans_pcie_write_shr() argument
238 iwl_pcie_set_pwr(struct iwl_trans *trans, bool vaux) iwl_pcie_set_pwr() argument
256 iwl_pcie_apm_config(struct iwl_trans *trans) iwl_pcie_apm_config() argument
284 iwl_pcie_apm_init(struct iwl_trans *trans) iwl_pcie_apm_init() argument
382 iwl_pcie_apm_lp_xtal_enable(struct iwl_trans *trans) iwl_pcie_apm_lp_xtal_enable() argument
466 iwl_pcie_apm_stop_master(struct iwl_trans *trans) iwl_pcie_apm_stop_master() argument
495 iwl_pcie_apm_stop(struct iwl_trans *trans, bool op_mode_leave) iwl_pcie_apm_stop() argument
540 iwl_pcie_nic_init(struct iwl_trans *trans) iwl_pcie_nic_init() argument
580 iwl_pcie_set_hw_ready(struct iwl_trans *trans) iwl_pcie_set_hw_ready() argument
601 iwl_pcie_prepare_card_hw(struct iwl_trans *trans) iwl_pcie_prepare_card_hw() argument
659 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
687 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
714 iwl_pcie_load_section(struct iwl_trans *trans, u8 section_num, const struct fw_desc *section) iwl_pcie_load_section() argument
771 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
841 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
882 iwl_pcie_apply_destination_ini(struct iwl_trans *trans) iwl_pcie_apply_destination_ini() argument
919 iwl_pcie_apply_destination(struct iwl_trans *trans) iwl_pcie_apply_destination() argument
991 iwl_pcie_load_given_ucode(struct iwl_trans *trans, const struct fw_img *image) iwl_pcie_load_given_ucode() argument
1029 iwl_pcie_load_given_ucode_8000(struct iwl_trans *trans, const struct fw_img *image) iwl_pcie_load_given_ucode_8000() argument
1066 iwl_pcie_check_hw_rf_kill(struct iwl_trans *trans) iwl_pcie_check_hw_rf_kill() argument
1131 iwl_pcie_map_list(struct iwl_trans *trans, const struct iwl_causes_list *causes, int arr_size, int val) iwl_pcie_map_list() argument
1144 iwl_pcie_map_non_rx_causes(struct iwl_trans *trans) iwl_pcie_map_non_rx_causes() argument
1163 iwl_pcie_map_rx_causes(struct iwl_trans *trans) iwl_pcie_map_rx_causes() argument
1195 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_conf_msix_hw() local
1226 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_init_msix() local
1239 _iwl_trans_pcie_stop_device(struct iwl_trans *trans, bool from_irq) _iwl_trans_pcie_stop_device() argument
1324 iwl_pcie_synchronize_irqs(struct iwl_trans *trans) iwl_pcie_synchronize_irqs() argument
1338 iwl_trans_pcie_start_fw(struct iwl_trans *trans, const struct fw_img *fw, bool run_in_rfkill) iwl_trans_pcie_start_fw() argument
1425 iwl_trans_pcie_fw_alive(struct iwl_trans *trans, u32 scd_addr) iwl_trans_pcie_fw_alive() argument
1431 iwl_trans_pcie_handle_stop_rfkill(struct iwl_trans *trans, bool was_in_rfkill) iwl_trans_pcie_handle_stop_rfkill() argument
1460 iwl_trans_pcie_stop_device(struct iwl_trans *trans) iwl_trans_pcie_stop_device() argument
1477 iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state, bool from_irq) iwl_trans_pcie_rf_kill() argument
1494 iwl_pcie_d3_complete_suspend(struct iwl_trans *trans, bool test, bool reset) iwl_pcie_d3_complete_suspend() argument
1526 iwl_pcie_d3_handshake(struct iwl_trans *trans, bool suspend) iwl_pcie_d3_handshake() argument
1557 iwl_trans_pcie_d3_suspend(struct iwl_trans *trans, bool test, bool reset) iwl_trans_pcie_d3_suspend() argument
1576 iwl_trans_pcie_d3_resume(struct iwl_trans *trans, enum iwl_d3_status *status, bool test, bool reset) iwl_trans_pcie_d3_resume() argument
1643 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
1718 iwl_pcie_irq_set_affinity(struct iwl_trans *trans) iwl_pcie_irq_set_affinity() argument
1777 iwl_trans_pcie_clear_persistence_bit(struct iwl_trans *trans) iwl_trans_pcie_clear_persistence_bit() argument
1808 iwl_pcie_gen2_force_power_gating(struct iwl_trans *trans) iwl_pcie_gen2_force_power_gating() argument
1829 _iwl_trans_pcie_start_hw(struct iwl_trans *trans) _iwl_trans_pcie_start_hw() argument
1877 iwl_trans_pcie_start_hw(struct iwl_trans *trans) iwl_trans_pcie_start_hw() argument
1889 iwl_trans_pcie_op_mode_leave(struct iwl_trans *trans) iwl_trans_pcie_op_mode_leave() argument
1909 iwl_trans_pcie_write8(struct iwl_trans *trans, u32 ofs, u8 val) iwl_trans_pcie_write8() argument
1914 iwl_trans_pcie_write32(struct iwl_trans *trans, u32 ofs, u32 val) iwl_trans_pcie_write32() argument
1919 iwl_trans_pcie_read32(struct iwl_trans *trans, u32 ofs) iwl_trans_pcie_read32() argument
1924 iwl_trans_pcie_prph_msk(struct iwl_trans *trans) iwl_trans_pcie_prph_msk() argument
1932 iwl_trans_pcie_read_prph(struct iwl_trans *trans, u32 reg) iwl_trans_pcie_read_prph() argument
1941 iwl_trans_pcie_write_prph(struct iwl_trans *trans, u32 addr, u32 val) iwl_trans_pcie_write_prph() argument
1951 iwl_trans_pcie_configure(struct iwl_trans *trans, const struct iwl_trans_config *trans_cfg) iwl_trans_pcie_configure() argument
2023 iwl_pcie_free_invalid_tx_cmd(struct iwl_trans *trans) iwl_pcie_free_invalid_tx_cmd() argument
2028 iwl_pcie_alloc_invalid_tx_cmd(struct iwl_trans *trans) iwl_pcie_alloc_invalid_tx_cmd() argument
2047 iwl_trans_pcie_free(struct iwl_trans *trans) iwl_trans_pcie_free() argument
2090 iwl_trans_pcie_set_pmi(struct iwl_trans *trans, bool state) iwl_trans_pcie_set_pmi() argument
2125 iwl_trans_pcie_remove(struct iwl_trans *trans, bool rescan) iwl_trans_pcie_remove() argument
2169 __iwl_trans_pcie_grab_nic_access(struct iwl_trans *trans) __iwl_trans_pcie_grab_nic_access() argument
2243 iwl_trans_pcie_grab_nic_access(struct iwl_trans *trans) iwl_trans_pcie_grab_nic_access() argument
2257 iwl_trans_pcie_release_nic_access(struct iwl_trans *trans) iwl_trans_pcie_release_nic_access() argument
2287 iwl_trans_pcie_read_mem(struct iwl_trans *trans, u32 addr, void *buf, int dwords) iwl_trans_pcie_read_mem() argument
2324 iwl_trans_pcie_write_mem(struct iwl_trans *trans, u32 addr, const void *buf, int dwords) iwl_trans_pcie_write_mem() argument
2342 iwl_trans_pcie_read_config32(struct iwl_trans *trans, u32 ofs, u32 *val) iwl_trans_pcie_read_config32() argument
2349 iwl_trans_pcie_block_txq_ptrs(struct iwl_trans *trans, bool block) iwl_trans_pcie_block_txq_ptrs() argument
2377 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
2393 iwl_trans_pcie_wait_txq_empty(struct iwl_trans *trans, int txq_idx) iwl_trans_pcie_wait_txq_empty() argument
2454 iwl_trans_pcie_wait_txqs_empty(struct iwl_trans *trans, u32 txq_bm) iwl_trans_pcie_wait_txqs_empty() argument
2479 iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) iwl_trans_pcie_set_bits_mask() argument
2523 iwl_pcie_dump_csr(struct iwl_trans *trans) iwl_pcie_dump_csr() argument
2593 struct iwl_trans *trans; global() member
2638 struct iwl_trans *trans = priv->trans; iwl_dbgfs_tx_queue_seq_show() local
2686 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rx_queue_read() local
2737 struct iwl_trans *trans = file->private_data; iwl_dbgfs_interrupt_read() local
2795 struct iwl_trans *trans = file->private_data; iwl_dbgfs_interrupt_write() local
2814 struct iwl_trans *trans = file->private_data; iwl_dbgfs_csr_write() local
2825 struct iwl_trans *trans = file->private_data; iwl_dbgfs_fh_reg_read() local
2843 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rfkill_read() local
2860 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rfkill_write() local
2881 struct iwl_trans *trans = inode->i_private; iwl_dbgfs_monitor_data_open() local
2930 struct iwl_trans *trans = file->private_data; iwl_dbgfs_monitor_data_read() local
3013 struct iwl_trans *trans = file->private_data; iwl_dbgfs_rf_read() local
3046 iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans) iwl_trans_pcie_dbgfs_register() argument
3060 iwl_trans_pcie_debugfs_cleanup(struct iwl_trans *trans) iwl_trans_pcie_debugfs_cleanup() argument
3071 iwl_trans_pcie_get_cmdlen(struct iwl_trans *trans, void *tfd) iwl_trans_pcie_get_cmdlen() argument
3082 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
3122 iwl_trans_pcie_dump_csr(struct iwl_trans *trans, struct iwl_fw_error_dump_data **data) iwl_trans_pcie_dump_csr() argument
3141 iwl_trans_pcie_fh_regs_dump(struct iwl_trans *trans, struct iwl_fw_error_dump_data **data) iwl_trans_pcie_fh_regs_dump() argument
3174 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
3197 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
3233 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
3291 iwl_trans_get_fw_monitor_len(struct iwl_trans *trans, u32 *len) iwl_trans_get_fw_monitor_len() argument
3338 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
3490 iwl_trans_pci_interrupts(struct iwl_trans *trans, bool enable) iwl_trans_pci_interrupts() argument
3498 iwl_trans_pcie_sync_nmi(struct iwl_trans *trans) iwl_trans_pcie_sync_nmi() argument
3598 struct iwl_trans *trans; iwl_trans_pcie_alloc() local
3756 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
3774 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 Drx.c144 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
244 iwl_pcie_rxmq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rxmq_restock() argument
291 iwl_pcie_rxsq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rxsq_restock() argument
349 iwl_pcie_rxq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rxq_restock() argument
361 iwl_pcie_rx_alloc_page(struct iwl_trans *trans, u32 *offset, gfp_t priority) iwl_pcie_rx_alloc_page() argument
429 iwl_pcie_rxq_alloc_rbs(struct iwl_trans *trans, gfp_t priority, struct iwl_rxq *rxq) iwl_pcie_rxq_alloc_rbs() argument
488 iwl_pcie_free_rbs_pool(struct iwl_trans *trans) iwl_pcie_free_rbs_pool() argument
513 iwl_pcie_rx_allocator(struct iwl_trans *trans) iwl_pcie_rx_allocator() argument
613 iwl_pcie_rx_allocator_get(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rx_allocator_get() argument
658 iwl_pcie_free_bd_size(struct iwl_trans *trans) iwl_pcie_free_bd_size() argument
667 iwl_pcie_used_bd_size(struct iwl_trans *trans) iwl_pcie_used_bd_size() argument
678 iwl_pcie_free_rxq_dma(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_free_rxq_dma() argument
702 iwl_pcie_rb_stts_size(struct iwl_trans *trans) iwl_pcie_rb_stts_size() argument
713 iwl_pcie_alloc_rxq_dma(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_alloc_rxq_dma() argument
765 iwl_pcie_rx_alloc(struct iwl_trans *trans) iwl_pcie_rx_alloc() argument
835 iwl_pcie_rx_hw_init(struct iwl_trans *trans, struct iwl_rxq *rxq) iwl_pcie_rx_hw_init() argument
903 iwl_pcie_rx_mq_hw_init(struct iwl_trans *trans) iwl_pcie_rx_mq_hw_init() argument
1007 struct iwl_trans *trans; iwl_pcie_napi_poll() local
1034 struct iwl_trans *trans; iwl_pcie_napi_poll_msix() local
1062 iwl_pcie_rx_napi_sync(struct iwl_trans *trans) iwl_pcie_rx_napi_sync() argument
1078 _iwl_pcie_rx_init(struct iwl_trans *trans) _iwl_pcie_rx_init() argument
1165 iwl_pcie_rx_init(struct iwl_trans *trans) iwl_pcie_rx_init() argument
1187 iwl_pcie_gen2_rx_init(struct iwl_trans *trans) iwl_pcie_gen2_rx_init() argument
1199 iwl_pcie_rx_free(struct iwl_trans *trans) iwl_pcie_rx_free() argument
1260 iwl_pcie_rx_reuse_rbd(struct iwl_trans *trans, struct iwl_rx_mem_buffer *rxb, struct iwl_rxq *rxq, bool emergency) iwl_pcie_rx_reuse_rbd() argument
1292 iwl_pcie_rx_handle_rb(struct iwl_trans *trans, struct iwl_rxq *rxq, struct iwl_rx_mem_buffer *rxb, bool emergency, int i) iwl_pcie_rx_handle_rb() argument
1442 iwl_pcie_get_rxb(struct iwl_trans *trans, struct iwl_rxq *rxq, int i, bool *join) iwl_pcie_get_rxb() argument
1497 iwl_pcie_rx_handle(struct iwl_trans *trans, int queue, int budget) iwl_pcie_rx_handle() argument
1642 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_irq_rx_msix_handler() local
1677 iwl_pcie_irq_handle_error(struct iwl_trans *trans) iwl_pcie_irq_handle_error() argument
1708 iwl_pcie_int_cause_non_ict(struct iwl_trans *trans) iwl_pcie_int_cause_non_ict() argument
1736 iwl_pcie_int_cause_ict(struct iwl_trans *trans) iwl_pcie_int_cause_ict() argument
1788 iwl_pcie_handle_rfkill_irq(struct iwl_trans *trans, bool from_irq) iwl_pcie_handle_rfkill_irq() argument
1830 struct iwl_trans *trans = dev_id; iwl_pcie_irq_handler() local
2090 iwl_pcie_free_ict(struct iwl_trans *trans) iwl_pcie_free_ict() argument
2108 iwl_pcie_alloc_ict(struct iwl_trans *trans) iwl_pcie_alloc_ict() argument
2130 iwl_pcie_reset_ict(struct iwl_trans *trans) iwl_pcie_reset_ict() argument
2160 iwl_pcie_disable_ict(struct iwl_trans *trans) iwl_pcie_disable_ict() argument
2171 struct iwl_trans *trans = data; iwl_pcie_isr() local
2195 struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_irq_msix_handler() local
[all...]
H A Dctxt-info-gen3.c5 #include "iwl-trans.h"
12 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable() argument
20 if (!iwl_trans_dbg_ini_valid(trans)) { in iwl_pcie_ctxt_info_dbg_enable()
21 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_ctxt_info_dbg_enable()
23 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_dbg_enable()
28 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
38 fw_mon_cfg = &trans->dbg.fw_mon_cfg[alloc_id]; in iwl_pcie_ctxt_info_dbg_enable()
43 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
49 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
54 if (trans in iwl_pcie_ctxt_info_dbg_enable()
78 iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, const struct fw_img *fw) iwl_pcie_ctxt_info_gen3_init() argument
245 iwl_pcie_ctxt_info_gen3_free(struct iwl_trans *trans, bool alive) iwl_pcie_ctxt_info_gen3_free() argument
284 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
318 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
373 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
432 iwl_pcie_set_pnvm_segments(struct iwl_trans *trans) iwl_pcie_set_pnvm_segments() argument
445 iwl_pcie_set_continuous_pnvm(struct iwl_trans *trans) iwl_pcie_set_continuous_pnvm() argument
457 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
469 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
516 iwl_pcie_set_reduce_power_segments(struct iwl_trans *trans) iwl_pcie_set_reduce_power_segments() argument
529 iwl_pcie_set_continuous_reduce_power(struct iwl_trans *trans) iwl_pcie_set_continuous_reduce_power() argument
542 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 Dtx.c46 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
52 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
60 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument
65 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
72 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument
86 if (!trans->trans_cfg->base_params->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr()
87 txq_id != trans->txqs.cmd.q_id && in iwl_pcie_txq_inc_wr_ptr()
88 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr()
94 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr()
97 IWL_DEBUG_INFO(trans, "T in iwl_pcie_txq_inc_wr_ptr()
116 iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans) iwl_pcie_txq_check_wrptrs() argument
135 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
164 iwl_pcie_clear_cmd_in_flight(struct iwl_trans *trans) iwl_pcie_clear_cmd_in_flight() argument
187 iwl_pcie_txq_unmap(struct iwl_trans *trans, int txq_id) iwl_pcie_txq_unmap() argument
237 iwl_pcie_txq_free(struct iwl_trans *trans, int txq_id) iwl_pcie_txq_free() argument
278 iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr) iwl_pcie_tx_start() argument
336 iwl_trans_pcie_tx_reset(struct iwl_trans *trans) iwl_trans_pcie_tx_reset() argument
376 iwl_pcie_tx_stop_fh(struct iwl_trans *trans) iwl_pcie_tx_stop_fh() argument
409 iwl_pcie_tx_stop(struct iwl_trans *trans) iwl_pcie_tx_stop() argument
446 iwl_pcie_tx_free(struct iwl_trans *trans) iwl_pcie_tx_free() argument
475 iwl_pcie_tx_alloc(struct iwl_trans *trans) iwl_pcie_tx_alloc() argument
546 iwl_pcie_tx_init(struct iwl_trans *trans) iwl_pcie_tx_init() argument
612 iwl_pcie_set_cmd_in_flight(struct iwl_trans *trans, const struct iwl_host_cmd *cmd) iwl_pcie_set_cmd_in_flight() argument
651 iwl_pcie_cmdq_reclaim(struct iwl_trans *trans, int txq_id, int idx) iwl_pcie_cmdq_reclaim() argument
689 iwl_pcie_txq_set_ratid_map(struct iwl_trans *trans, u16 ra_tid, u16 txq_id) iwl_pcie_txq_set_ratid_map() argument
718 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
830 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
838 iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int txq_id, bool configure_scd) iwl_trans_pcie_txq_disable() argument
885 iwl_pcie_enqueue_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_pcie_enqueue_hcmd() argument
1156 iwl_pcie_hcmd_complete(struct iwl_trans *trans, struct iwl_rx_cmd_buffer *rxb) iwl_pcie_hcmd_complete() argument
1227 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
1279 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
1410 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
1423 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...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/queue/
H A Dtx.c65 void iwl_txq_gen2_tx_stop(struct iwl_trans *trans) in iwl_txq_gen2_tx_stop() argument
74 memset(trans->txqs.queue_stopped, 0, in iwl_txq_gen2_tx_stop()
75 sizeof(trans->txqs.queue_stopped)); in iwl_txq_gen2_tx_stop()
76 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_txq_gen2_tx_stop()
79 for (txq_id = 0; txq_id < ARRAY_SIZE(trans->txqs.txq); txq_id++) { in iwl_txq_gen2_tx_stop()
80 if (!trans->txqs.txq[txq_id]) in iwl_txq_gen2_tx_stop()
82 iwl_txq_gen2_unmap(trans, txq_id); in iwl_txq_gen2_tx_stop()
89 static void iwl_pcie_gen2_update_byte_tbl(struct iwl_trans *trans, in iwl_pcie_gen2_update_byte_tbl() argument
113 if (trans in iwl_pcie_gen2_update_byte_tbl()
136 iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_inc_wr_ptr() argument
149 iwl_txq_gen2_get_num_tbs(struct iwl_trans *trans, struct iwl_tfh_tfd *tfd) iwl_txq_gen2_get_num_tbs() argument
155 iwl_txq_gen2_tfd_unmap(struct iwl_trans *trans, struct iwl_cmd_meta *meta, struct iwl_tfh_tfd *tfd) iwl_txq_gen2_tfd_unmap() argument
185 iwl_txq_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_gen2_free_tfd() argument
214 iwl_txq_gen2_set_tb(struct iwl_trans *trans, struct iwl_tfh_tfd *tfd, dma_addr_t addr, u16 len) iwl_txq_gen2_set_tb() argument
250 get_workaround_page(struct iwl_trans *trans, struct sk_buff *skb) get_workaround_page() argument
275 iwl_txq_gen2_set_tb_with_wa(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_tfh_tfd *tfd, dma_addr_t phys, void *virt, u16 len, struct iwl_cmd_meta *meta) iwl_txq_gen2_set_tb_with_wa() argument
351 get_page_hdr(struct iwl_trans *trans, size_t len, struct sk_buff *skb) get_page_hdr() argument
396 iwl_txq_gen2_build_amsdu(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_tfh_tfd *tfd, int start_len, u8 hdr_len, struct iwl_device_tx_cmd *dev_cmd) iwl_txq_gen2_build_amsdu() argument
529 iwl_txq_gen2_build_tx_amsdu(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_device_tx_cmd *dev_cmd, struct sk_buff *skb, struct iwl_cmd_meta *out_meta, int hdr_len, int tx_cmd_len) iwl_txq_gen2_build_tx_amsdu() argument
587 iwl_txq_gen2_tx_add_frags(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_tfh_tfd *tfd, struct iwl_cmd_meta *out_meta) iwl_txq_gen2_tx_add_frags() argument
616 iwl_txq_gen2_build_tx(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_device_tx_cmd *dev_cmd, struct sk_buff *skb, struct iwl_cmd_meta *out_meta, int hdr_len, int tx_cmd_len, bool pad) iwl_txq_gen2_build_tx() argument
711 iwl_txq_gen2_build_tfd(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_device_tx_cmd *dev_cmd, struct sk_buff *skb, struct iwl_cmd_meta *out_meta) iwl_txq_gen2_build_tfd() argument
751 iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q) iwl_txq_space() argument
780 iwl_txq_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_device_tx_cmd *dev_cmd, int txq_id) iwl_txq_gen2_tx() argument
877 iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id) iwl_txq_gen2_unmap() argument
909 iwl_txq_gen2_free_memory(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_gen2_free_memory() argument
939 iwl_txq_gen2_free(struct iwl_trans *trans, int txq_id) iwl_txq_gen2_free() argument
996 iwl_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num, bool cmd_queue) iwl_txq_init() argument
1030 iwl_txq_free_tso_page(struct iwl_trans *trans, struct sk_buff *skb) iwl_txq_free_tso_page() argument
1048 iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_log_scd_error() argument
1081 struct iwl_trans *trans = txq->trans; iwl_txq_stuck_timer() local
1096 iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num, bool cmd_queue) iwl_txq_alloc() argument
1162 iwl_txq_dyn_alloc_dma(struct iwl_trans *trans, struct iwl_txq **intxq, int size, unsigned int timeout) iwl_txq_dyn_alloc_dma() argument
1211 iwl_txq_alloc_response(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_host_cmd *hcmd) iwl_txq_alloc_response() argument
1259 iwl_txq_dyn_alloc(struct iwl_trans *trans, __le16 flags, u8 sta_id, u8 tid, int cmd_id, int size, unsigned int timeout) iwl_txq_dyn_alloc() argument
1295 iwl_txq_dyn_free(struct iwl_trans *trans, int queue) iwl_txq_dyn_free() argument
1322 iwl_txq_gen2_tx_free(struct iwl_trans *trans) iwl_txq_gen2_tx_free() argument
1337 iwl_txq_gen2_init(struct iwl_trans *trans, int txq_id, int queue_size) iwl_txq_gen2_init() argument
1375 iwl_txq_gen1_tfd_tb_get_addr(struct iwl_trans *trans, void *_tfd, u8 idx) iwl_txq_gen1_tfd_tb_get_addr() argument
1407 iwl_txq_gen1_tfd_unmap(struct iwl_trans *trans, struct iwl_cmd_meta *meta, struct iwl_txq *txq, int index) iwl_txq_gen1_tfd_unmap() argument
1461 iwl_txq_gen1_update_byte_cnt_tbl(struct iwl_trans *trans, struct iwl_txq *txq, u16 byte_cnt, int num_tbs) iwl_txq_gen1_update_byte_cnt_tbl() argument
1505 iwl_txq_gen1_inval_byte_cnt_tbl(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_gen1_inval_byte_cnt_tbl() argument
[all...]
H A Dtx.h80 void iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id);
82 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
85 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
86 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); in iwl_wake_queue()
87 iwl_op_mode_queue_not_full(trans->op_mode, txq->id); in iwl_wake_queue()
91 static inline void *iwl_txq_get_tfd(struct iwl_trans *trans, in iwl_txq_get_tfd() argument
94 if (trans->trans_cfg->use_tfh) in iwl_txq_get_tfd()
97 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
100 int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
112 int iwl_txq_space(struct iwl_trans *trans, cons
114 iwl_txq_stop(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_stop() argument
129 iwl_txq_inc_wrap(struct iwl_trans *trans, int index) iwl_txq_inc_wrap() argument
139 iwl_txq_dec_wrap(struct iwl_trans *trans, int index) iwl_txq_dec_wrap() argument
188 iwl_txq_gen1_tfd_get_num_tbs(struct iwl_trans *trans, void *_tfd) iwl_txq_gen1_tfd_get_num_tbs() argument
203 iwl_txq_gen1_tfd_tb_get_len(struct iwl_trans *trans, void *_tfd, u8 idx) iwl_txq_gen1_tfd_tb_get_len() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.c23 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() local
26 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn()
33 static int iwl_pnvm_handle_section(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_handle_section() argument
42 IWL_DEBUG_FW(trans, "Handling PNVM section\n"); in iwl_pnvm_handle_section()
56 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_pnvm_handle_section()
66 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
74 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
81 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
93 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
97 if (mac_type == CSR_HW_REV_TYPE(trans in iwl_pnvm_handle_section()
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
284 iwl_pnvm_load_pnvm_to_trans(struct iwl_trans *trans, const struct iwl_ucode_capabilities *capa) iwl_pnvm_load_pnvm_to_trans() argument
328 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
374 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...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/queue/
H A Dtx.c22 static void iwl_pcie_gen2_update_byte_tbl(struct iwl_trans *trans, in iwl_pcie_gen2_update_byte_tbl() argument
46 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_gen2_update_byte_tbl()
50 WARN_ON(trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
58 WARN_ON(!trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
69 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_inc_wr_ptr() argument
73 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq->id, txq->write_ptr); in iwl_txq_inc_wr_ptr()
79 iwl_write32(trans, HBUS_TARG_WRPTR, txq->write_ptr | (txq->id << 16)); in iwl_txq_inc_wr_ptr()
82 static u8 iwl_txq_gen2_get_num_tbs(struct iwl_trans *trans, in iwl_txq_gen2_get_num_tbs() argument
88 int iwl_txq_gen2_set_tb(struct iwl_trans *trans, struct iwl_tfh_tfd *tfd, in iwl_txq_gen2_set_tb() argument
91 int idx = iwl_txq_gen2_get_num_tbs(trans, tf in iwl_txq_gen2_set_tb()
123 iwl_txq_set_tfd_invalid_gen2(struct iwl_trans *trans, struct iwl_tfh_tfd *tfd) iwl_txq_set_tfd_invalid_gen2() argument
132 iwl_txq_gen2_tfd_unmap(struct iwl_trans *trans, struct iwl_cmd_meta *meta, struct iwl_tfh_tfd *tfd) iwl_txq_gen2_tfd_unmap() argument
162 iwl_txq_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_gen2_free_tfd() argument
190 get_workaround_page(struct iwl_trans *trans, struct sk_buff *skb) get_workaround_page() argument
215 iwl_txq_gen2_set_tb_with_wa(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_tfh_tfd *tfd, dma_addr_t phys, void *virt, u16 len, struct iwl_cmd_meta *meta) iwl_txq_gen2_set_tb_with_wa() argument
291 get_page_hdr(struct iwl_trans *trans, size_t len, struct sk_buff *skb) get_page_hdr() argument
336 iwl_txq_gen2_build_amsdu(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_tfh_tfd *tfd, int start_len, u8 hdr_len, struct iwl_device_tx_cmd *dev_cmd) iwl_txq_gen2_build_amsdu() argument
464 iwl_txq_gen2_build_tx_amsdu(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_device_tx_cmd *dev_cmd, struct sk_buff *skb, struct iwl_cmd_meta *out_meta, int hdr_len, int tx_cmd_len) iwl_txq_gen2_build_tx_amsdu() argument
522 iwl_txq_gen2_tx_add_frags(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_tfh_tfd *tfd, struct iwl_cmd_meta *out_meta) iwl_txq_gen2_tx_add_frags() argument
551 iwl_txq_gen2_build_tx(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_device_tx_cmd *dev_cmd, struct sk_buff *skb, struct iwl_cmd_meta *out_meta, int hdr_len, int tx_cmd_len, bool pad) iwl_txq_gen2_build_tx() argument
646 iwl_txq_gen2_build_tfd(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_device_tx_cmd *dev_cmd, struct sk_buff *skb, struct iwl_cmd_meta *out_meta) iwl_txq_gen2_build_tfd() argument
693 iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q) iwl_txq_space() argument
722 iwl_txq_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb, struct iwl_device_tx_cmd *dev_cmd, int txq_id) iwl_txq_gen2_tx() argument
819 iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id) iwl_txq_gen2_unmap() argument
851 iwl_txq_gen2_free_memory(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_gen2_free_memory() argument
881 iwl_txq_gen2_free(struct iwl_trans *trans, int txq_id) iwl_txq_gen2_free() argument
938 iwl_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num, bool cmd_queue) iwl_txq_init() argument
972 iwl_txq_free_tso_page(struct iwl_trans *trans, struct sk_buff *skb) iwl_txq_free_tso_page() argument
990 iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_log_scd_error() argument
1023 struct iwl_trans *trans = txq->trans; iwl_txq_stuck_timer() local
1038 iwl_txq_set_tfd_invalid_gen1(struct iwl_trans *trans, struct iwl_tfd *tfd) iwl_txq_set_tfd_invalid_gen1() argument
1047 iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num, bool cmd_queue) iwl_txq_alloc() argument
1126 iwl_txq_dyn_alloc_dma(struct iwl_trans *trans, int size, unsigned int timeout) iwl_txq_dyn_alloc_dma() argument
1172 iwl_txq_alloc_response(struct iwl_trans *trans, struct iwl_txq *txq, struct iwl_host_cmd *hcmd) iwl_txq_alloc_response() argument
1226 iwl_txq_dyn_alloc(struct iwl_trans *trans, u32 flags, u32 sta_mask, u8 tid, int size, unsigned int timeout) iwl_txq_dyn_alloc() argument
1293 iwl_txq_dyn_free(struct iwl_trans *trans, int queue) iwl_txq_dyn_free() argument
1316 iwl_txq_gen2_tx_free(struct iwl_trans *trans) iwl_txq_gen2_tx_free() argument
1331 iwl_txq_gen2_init(struct iwl_trans *trans, int txq_id, int queue_size) iwl_txq_gen2_init() argument
1369 iwl_txq_gen1_tfd_tb_get_addr(struct iwl_trans *trans, struct iwl_tfd *tfd, u8 idx) iwl_txq_gen1_tfd_tb_get_addr() argument
1391 iwl_txq_gen1_tfd_unmap(struct iwl_trans *trans, struct iwl_cmd_meta *meta, struct iwl_txq *txq, int index) iwl_txq_gen1_tfd_unmap() argument
1437 iwl_txq_gen1_update_byte_cnt_tbl(struct iwl_trans *trans, struct iwl_txq *txq, u16 byte_cnt, int num_tbs) iwl_txq_gen1_update_byte_cnt_tbl() argument
1481 iwl_txq_gen1_inval_byte_cnt_tbl(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_gen1_inval_byte_cnt_tbl() argument
1515 iwl_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) iwl_txq_free_tfd() argument
1577 iwl_txq_reclaim(struct iwl_trans *trans, int txq_id, int ssn, struct sk_buff_head *skbs, bool is_flush) iwl_txq_reclaim() argument
1703 iwl_txq_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr) iwl_txq_set_q_ptrs() argument
1715 iwl_trans_txq_freeze_timer(struct iwl_trans *trans, unsigned long txqs, bool freeze) iwl_trans_txq_freeze_timer() argument
1769 iwl_trans_txq_send_hcmd_sync(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_trans_txq_send_hcmd_sync() argument
1859 iwl_trans_txq_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) iwl_trans_txq_send_hcmd() argument
[all...]

Completed in 24 milliseconds

12345678910>>...27