Lines Matching refs:trans

61 #define IWL_TRANS_FW_DBG_DOMAIN(trans)	IWL_FW_INI_DOMAIN_ALWAYS_ON  argument
800 struct iwl_trans *trans; member
952 const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id);
953 int iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans);
955 void iwl_trans_configure(struct iwl_trans *trans,
958 int iwl_trans_start_hw(struct iwl_trans *trans);
960 void iwl_trans_op_mode_leave(struct iwl_trans *trans);
962 void iwl_trans_fw_alive(struct iwl_trans *trans, u32 scd_addr);
964 int iwl_trans_start_fw(struct iwl_trans *trans, const struct fw_img *fw,
967 void iwl_trans_stop_device(struct iwl_trans *trans);
969 int iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, bool reset);
971 int iwl_trans_d3_resume(struct iwl_trans *trans, enum iwl_d3_status *status,
975 iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask,
980 iwl_trans_alloc_tx_cmd(struct iwl_trans *trans) in iwl_trans_alloc_tx_cmd() argument
982 return kmem_cache_zalloc(trans->dev_cmd_pool, GFP_ATOMIC); in iwl_trans_alloc_tx_cmd()
985 int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
987 static inline void iwl_trans_free_tx_cmd(struct iwl_trans *trans, in iwl_trans_free_tx_cmd() argument
990 kmem_cache_free(trans->dev_cmd_pool, dev_cmd); in iwl_trans_free_tx_cmd()
993 int iwl_trans_tx(struct iwl_trans *trans, struct sk_buff *skb,
996 void iwl_trans_reclaim(struct iwl_trans *trans, int queue, int ssn,
999 void iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, int ptr);
1001 void iwl_trans_txq_disable(struct iwl_trans *trans, int queue,
1004 bool iwl_trans_txq_enable_cfg(struct iwl_trans *trans, int queue, u16 ssn,
1008 int iwl_trans_get_rxq_dma_data(struct iwl_trans *trans, int queue,
1011 void iwl_trans_txq_free(struct iwl_trans *trans, int queue);
1013 int iwl_trans_txq_alloc(struct iwl_trans *trans, u32 flags, u32 sta_mask,
1016 void iwl_trans_txq_set_shared_mode(struct iwl_trans *trans,
1019 static inline void iwl_trans_txq_enable(struct iwl_trans *trans, int queue, in iwl_trans_txq_enable() argument
1032 iwl_trans_txq_enable_cfg(trans, queue, ssn, &cfg, queue_wdg_timeout); in iwl_trans_txq_enable()
1036 void iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo, in iwl_trans_ac_txq_enable() argument
1047 iwl_trans_txq_enable_cfg(trans, queue, 0, &cfg, queue_wdg_timeout); in iwl_trans_ac_txq_enable()
1050 void iwl_trans_freeze_txq_timer(struct iwl_trans *trans,
1053 int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, u32 txqs);
1055 int iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue);
1057 void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val);
1059 void iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val);
1061 u32 iwl_trans_read32(struct iwl_trans *trans, u32 ofs);
1063 u32 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs);
1065 void iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, u32 val);
1067 int iwl_trans_read_mem(struct iwl_trans *trans, u32 addr,
1070 int iwl_trans_read_config32(struct iwl_trans *trans, u32 ofs,
1074 void iwl_trans_debugfs_cleanup(struct iwl_trans *trans);
1077 #define iwl_trans_read_mem_bytes(trans, addr, buf, bufsize) \ argument
1081 iwl_trans_read_mem(trans, addr, buf, (bufsize) / sizeof(u32));\
1084 int iwl_trans_write_imr_mem(struct iwl_trans *trans, u32 dst_addr,
1087 static inline u32 iwl_trans_read_mem32(struct iwl_trans *trans, u32 addr) in iwl_trans_read_mem32() argument
1091 if (iwl_trans_read_mem(trans, addr, &value, 1)) in iwl_trans_read_mem32()
1097 int iwl_trans_write_mem(struct iwl_trans *trans, u32 addr,
1100 static inline u32 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr, in iwl_trans_write_mem32() argument
1103 return iwl_trans_write_mem(trans, addr, &val, 1); in iwl_trans_write_mem32()
1106 void iwl_trans_set_pmi(struct iwl_trans *trans, bool state);
1108 int iwl_trans_sw_reset(struct iwl_trans *trans, bool retake_ownership);
1110 void iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg,
1113 bool _iwl_trans_grab_nic_access(struct iwl_trans *trans);
1115 #define iwl_trans_grab_nic_access(trans) \ argument
1117 likely(_iwl_trans_grab_nic_access(trans)))
1120 iwl_trans_release_nic_access(struct iwl_trans *trans);
1122 static inline void iwl_trans_fw_error(struct iwl_trans *trans, bool sync) in iwl_trans_fw_error() argument
1124 if (WARN_ON_ONCE(!trans->op_mode)) in iwl_trans_fw_error()
1128 if (!test_and_set_bit(STATUS_FW_ERROR, &trans->status)) { in iwl_trans_fw_error()
1129 trans->state = IWL_TRANS_NO_FW; in iwl_trans_fw_error()
1130 iwl_op_mode_nic_error(trans->op_mode, sync); in iwl_trans_fw_error()
1134 static inline bool iwl_trans_fw_running(struct iwl_trans *trans) in iwl_trans_fw_running() argument
1136 return trans->state == IWL_TRANS_FW_ALIVE; in iwl_trans_fw_running()
1139 void iwl_trans_sync_nmi(struct iwl_trans *trans);
1141 void iwl_trans_sync_nmi_with_addr(struct iwl_trans *trans, u32 inta_addr,
1144 int iwl_trans_load_pnvm(struct iwl_trans *trans,
1148 void iwl_trans_set_pnvm(struct iwl_trans *trans,
1151 int iwl_trans_load_reduce_power(struct iwl_trans *trans,
1155 void iwl_trans_set_reduce_power(struct iwl_trans *trans,
1158 static inline bool iwl_trans_dbg_ini_valid(struct iwl_trans *trans) in iwl_trans_dbg_ini_valid() argument
1160 return trans->dbg.internal_ini_cfg != IWL_INI_CFG_STATE_NOT_LOADED || in iwl_trans_dbg_ini_valid()
1161 trans->dbg.external_ini_cfg != IWL_INI_CFG_STATE_NOT_LOADED; in iwl_trans_dbg_ini_valid()
1164 void iwl_trans_interrupts(struct iwl_trans *trans, bool enable);
1172 int iwl_trans_init(struct iwl_trans *trans);
1173 void iwl_trans_free(struct iwl_trans *trans);
1185 void iwl_trans_pcie_remove(struct iwl_trans *trans, bool rescan);
1187 int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans,