Home
last modified time | relevance | path

Searched refs:iwl_trans (Results 1 – 25 of 48) sorted by relevance

12

/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/pcie/
Dinternal.h248 static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts()
395 struct iwl_trans *trans;
472 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS()
477 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, in iwl_pcie_clear_irq()
491 static inline struct iwl_trans *
494 return container_of((void *)trans_pcie, struct iwl_trans, in iwl_trans_pcie_get_trans()
502 struct iwl_trans
506 void iwl_trans_pcie_free(struct iwl_trans *trans);
511 int iwl_pcie_rx_init(struct iwl_trans *trans);
512 int iwl_pcie_gen2_rx_init(struct iwl_trans *trans);
[all …]
Ddrv.c1007 struct iwl_trans *iwl_trans; in iwl_pci_probe() local
1022 iwl_trans = iwl_trans_pcie_alloc(pdev, ent, trans); in iwl_pci_probe()
1023 if (IS_ERR(iwl_trans)) in iwl_pci_probe()
1024 return PTR_ERR(iwl_trans); in iwl_pci_probe()
1026 trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans); in iwl_pci_probe()
1028 iwl_trans->hw_rf_id = iwl_read32(iwl_trans, CSR_HW_RF_ID); in iwl_pci_probe()
1038 CSR_HW_REV_TYPE(iwl_trans->hw_rev)) && in iwl_pci_probe()
1041 CSR_HW_REV_STEP(iwl_trans->hw_rev)) && in iwl_pci_probe()
1044 CSR_HW_RFID_TYPE(iwl_trans->hw_rf_id)) && in iwl_pci_probe()
1054 iwl_trans->cfg = dev_info->cfg; in iwl_pci_probe()
[all …]
Dtrans.c90 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs()
184 static void iwl_trans_pcie_sw_reset(struct iwl_trans *trans) in iwl_trans_pcie_sw_reset()
191 static void iwl_pcie_free_fw_monitor(struct iwl_trans *trans) in iwl_pcie_free_fw_monitor()
206 static void iwl_pcie_alloc_fw_monitor_block(struct iwl_trans *trans, in iwl_pcie_alloc_fw_monitor_block()
245 void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power) in iwl_pcie_alloc_fw_monitor()
265 static u32 iwl_trans_pcie_read_shr(struct iwl_trans *trans, u32 reg) in iwl_trans_pcie_read_shr()
272 static void iwl_trans_pcie_write_shr(struct iwl_trans *trans, u32 reg, u32 val) in iwl_trans_pcie_write_shr()
279 static void iwl_pcie_set_pwr(struct iwl_trans *trans, bool vaux) in iwl_pcie_set_pwr()
297 void iwl_pcie_apm_config(struct iwl_trans *trans) in iwl_pcie_apm_config()
325 static int iwl_pcie_apm_init(struct iwl_trans *trans) in iwl_pcie_apm_init()
[all …]
Dtrans-gen2.c65 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init()
104 static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, bool op_mode_leave) in iwl_pcie_gen2_apm_stop()
138 void _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) in _iwl_trans_pcie_gen2_stop_device()
217 void iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) in iwl_trans_pcie_gen2_stop_device()
230 static int iwl_pcie_gen2_nic_init(struct iwl_trans *trans) in iwl_pcie_gen2_nic_init()
258 void iwl_trans_pcie_gen2_fw_alive(struct iwl_trans *trans, u32 scd_addr) in iwl_trans_pcie_gen2_fw_alive()
284 int iwl_trans_pcie_gen2_start_fw(struct iwl_trans *trans, in iwl_trans_pcie_gen2_start_fw()
Drx.c201 int iwl_pcie_rx_stop(struct iwl_trans *trans) 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()
257 static void iwl_pcie_rxq_check_wrptr(struct iwl_trans *trans) in iwl_pcie_rxq_check_wrptr()
274 static void iwl_pcie_restock_bd(struct iwl_trans *trans, in iwl_pcie_restock_bd()
298 static void iwl_pcie_rxmq_restock(struct iwl_trans *trans, in iwl_pcie_rxmq_restock()
345 static void iwl_pcie_rxsq_restock(struct iwl_trans *trans, in iwl_pcie_rxsq_restock()
403 void iwl_pcie_rxq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) in iwl_pcie_rxq_restock()
415 static struct page *iwl_pcie_rx_alloc_page(struct iwl_trans *trans, in iwl_pcie_rx_alloc_page()
483 void iwl_pcie_rxq_alloc_rbs(struct iwl_trans *trans, gfp_t priority, in iwl_pcie_rxq_alloc_rbs()
542 void iwl_pcie_free_rbs_pool(struct iwl_trans *trans) in iwl_pcie_free_rbs_pool()
[all …]
Dctxt-info.c60 static void *_iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in _iwl_pcie_ctxt_info_dma_alloc_coherent()
89 static void *iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dma_alloc_coherent()
96 int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, in iwl_pcie_ctxt_info_alloc_dma()
111 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free_paging()
132 int iwl_pcie_init_fw_sec(struct iwl_trans *trans, in iwl_pcie_init_fw_sec()
211 int iwl_pcie_ctxt_info_init(struct iwl_trans *trans, in iwl_pcie_ctxt_info_init()
298 void iwl_pcie_ctxt_info_free(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free()
Dtx.c103 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, 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()
129 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr()
173 void iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans) in iwl_pcie_txq_check_wrptrs()
192 static inline void iwl_pcie_tfd_set_tb(struct iwl_trans *trans, void *tfd, in iwl_pcie_tfd_set_tb()
217 void iwl_pcie_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_pcie_txq_free_tfd()
249 static int iwl_pcie_txq_build_tfd(struct iwl_trans *trans, struct iwl_txq *txq, in iwl_pcie_txq_build_tfd()
278 static void iwl_pcie_clear_cmd_in_flight(struct iwl_trans *trans) in iwl_pcie_clear_cmd_in_flight()
297 static void iwl_pcie_txq_unmap(struct iwl_trans *trans, int txq_id) in iwl_pcie_txq_unmap()
348 static void iwl_pcie_txq_free(struct iwl_trans *trans, int txq_id) in iwl_pcie_txq_free()
[all …]
Dctxt-info-gen3.c59 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable()
121 int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, in iwl_pcie_ctxt_info_gen3_init()
297 void iwl_pcie_ctxt_info_gen3_free(struct iwl_trans *trans) in iwl_pcie_ctxt_info_gen3_free()
325 int iwl_trans_pcie_ctx_info_gen3_set_pnvm(struct iwl_trans *trans, in iwl_trans_pcie_ctx_info_gen3_set_pnvm()
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-io.h64 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()
74 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit()
79 int iwl_poll_bit(struct iwl_trans *trans, u32 addr,
81 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask,
84 u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg);
85 void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value);
[all …]
Diwl-trans.h466 struct iwl_trans;
577 int (*start_hw)(struct iwl_trans *iwl_trans);
578 void (*op_mode_leave)(struct iwl_trans *iwl_trans);
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);
584 int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset);
585 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status,
588 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
590 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb,
[all …]
Diwl-scd.h67 static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, in iwl_scd_txq_set_chain()
73 static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, in iwl_scd_txq_enable_agg()
79 static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, in iwl_scd_txq_disable_agg()
85 static inline void iwl_scd_disable_agg(struct iwl_trans *trans) in iwl_scd_disable_agg()
90 static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) in iwl_scd_activate_fifos()
95 static inline void iwl_scd_deactivate_fifos(struct iwl_trans *trans) in iwl_scd_deactivate_fifos()
100 static inline void iwl_scd_enable_set_active(struct iwl_trans *trans, in iwl_scd_enable_set_active()
130 static inline void iwl_scd_txq_set_inactive(struct iwl_trans *trans, in iwl_scd_txq_set_inactive()
Diwl-io.c73 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8()
80 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32()
87 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64()
95 u32 iwl_read32(struct iwl_trans *trans, u32 ofs) in iwl_read32()
106 int iwl_poll_bit(struct iwl_trans *trans, u32 addr, in iwl_poll_bit()
122 u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg) in iwl_read_direct32()
135 void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value) in iwl_write_direct32()
146 void iwl_write_direct64(struct iwl_trans *trans, u64 reg, u64 value) in iwl_write_direct64()
157 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, in iwl_poll_direct_bit()
173 u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs) in iwl_read_prph_no_grab()
[all …]
Diwl-dbg-tlv.h97 struct iwl_trans;
100 void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans);
101 void iwl_dbg_tlv_free(struct iwl_trans *trans);
102 void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv,
104 void iwl_dbg_tlv_init(struct iwl_trans *trans);
108 void iwl_dbg_tlv_del_timers(struct iwl_trans *trans);
Diwl-eeprom-read.c94 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore()
120 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) 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()
162 static void iwl_set_otp_access_absolute(struct iwl_trans *trans) in iwl_set_otp_access_absolute()
170 static int iwl_nvm_is_otp(struct iwl_trans *trans) in iwl_nvm_is_otp()
192 static int iwl_init_otp_access(struct iwl_trans *trans) in iwl_init_otp_access()
217 static int iwl_read_otp_word(struct iwl_trans *trans, u16 addr, in iwl_read_otp_word()
259 static bool iwl_is_otp_empty(struct iwl_trans *trans) in iwl_is_otp_empty()
289 static int iwl_find_otp_image(struct iwl_trans *trans, in iwl_find_otp_image()
346 int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size) in iwl_read_eeprom()
Diwl-context-info.h222 int iwl_pcie_ctxt_info_init(struct iwl_trans *trans, const struct fw_img *fw);
223 void iwl_pcie_ctxt_info_free(struct iwl_trans *trans);
224 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans);
225 int iwl_pcie_init_fw_sec(struct iwl_trans *trans,
228 int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans,
Diwl-nvm-parse.h87 iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg,
124 int iwl_read_external_nvm(struct iwl_trans *trans,
136 struct iwl_nvm_data *iwl_get_nvm(struct iwl_trans *trans,
Diwl-trans.c72 struct iwl_trans *iwl_trans_alloc(unsigned int priv_size, in iwl_trans_alloc()
77 struct iwl_trans *trans; in iwl_trans_alloc()
163 void iwl_trans_free(struct iwl_trans *trans) in iwl_trans_free()
180 int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) in iwl_trans_send_cmd()
235 const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id) in iwl_get_cmd_string()
Diwl-context-info-gen3.h290 int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans,
292 void iwl_pcie_ctxt_info_gen3_free(struct iwl_trans *trans);
294 int iwl_trans_pcie_ctx_info_gen3_set_pnvm(struct iwl_trans *trans,
Diwl-drv.h109 struct iwl_trans;
121 struct iwl_drv *iwl_drv_start(struct iwl_trans *trans);
Diwl-dbg-tlv.c150 static int iwl_dbg_tlv_alloc_debug_info(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_debug_info()
164 static int iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_buf_alloc()
204 static int iwl_dbg_tlv_alloc_hcmd(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_hcmd()
228 static int iwl_dbg_tlv_alloc_region(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_region()
280 static int iwl_dbg_tlv_alloc_trigger(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_trigger()
315 static int (*dbg_tlv_alloc[])(struct iwl_trans *trans,
324 void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv, in iwl_dbg_tlv_alloc()
371 void iwl_dbg_tlv_del_timers(struct iwl_trans *trans) in iwl_dbg_tlv_del_timers()
384 static void iwl_dbg_tlv_fragments_free(struct iwl_trans *trans, in iwl_dbg_tlv_fragments_free()
412 void iwl_dbg_tlv_free(struct iwl_trans *trans) in iwl_dbg_tlv_free()
[all …]
Diwl-eeprom-parse.h119 iwl_parse_eeprom_data(struct iwl_trans *trans, const struct iwl_cfg *cfg,
126 void iwl_init_ht_hw_capab(struct iwl_trans *trans,
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/queue/
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()
91 static inline void *iwl_txq_get_tfd(struct iwl_trans *trans, 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, const struct iwl_txq *q);
114 static inline void iwl_txq_stop(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_stop()
129 static inline int iwl_txq_inc_wrap(struct iwl_trans *trans, int index) in iwl_txq_inc_wrap()
139 static inline int iwl_txq_dec_wrap(struct iwl_trans *trans, int index) in iwl_txq_dec_wrap()
156 void iwl_txq_free_tso_page(struct iwl_trans *trans, struct sk_buff *skb);
158 void iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq);
[all …]
Dtx.c65 void iwl_txq_gen2_tx_stop(struct iwl_trans *trans) 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()
136 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_inc_wr_ptr()
149 static u8 iwl_txq_gen2_get_num_tbs(struct iwl_trans *trans, in iwl_txq_gen2_get_num_tbs()
155 void iwl_txq_gen2_tfd_unmap(struct iwl_trans *trans, struct iwl_cmd_meta *meta, in iwl_txq_gen2_tfd_unmap()
185 void iwl_txq_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_gen2_free_tfd()
214 int iwl_txq_gen2_set_tb(struct iwl_trans *trans, struct iwl_tfh_tfd *tfd, in iwl_txq_gen2_set_tb()
250 static struct page *get_workaround_page(struct iwl_trans *trans, in get_workaround_page()
275 static int iwl_txq_gen2_set_tb_with_wa(struct iwl_trans *trans, in iwl_txq_gen2_set_tb_with_wa()
351 struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len, in get_page_hdr()
[all …]
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/fw/
Dpnvm.c24 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn()
34 static int iwl_pnvm_handle_section(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_handle_section()
167 static int iwl_pnvm_parse(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_parse()
224 int iwl_pnvm_load(struct iwl_trans *trans, in iwl_pnvm_load()
Druntime.h155 struct iwl_trans *trans;
215 void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans,

12