Lines Matching full:trans

65 #define IWL_TRANS_FW_DBG_DOMAIN(trans)	IWL_FW_INI_DOMAIN_ALWAYS_ON
118 * trans->system_pm_mode to IWL_PLAT_PM_MODE_D3.
313 * @STATUS_TRANS_DEAD: trans is dead - avoid any read/write operation
770 * @trans: pointer back to transport (for timer)
815 struct iwl_trans *trans;
840 * @trans_cfg: the trans-specific configuration part
962 /* pointer to trans specific struct */
967 const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id);
968 int iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans);
970 void iwl_trans_configure(struct iwl_trans *trans,
973 int iwl_trans_start_hw(struct iwl_trans *trans);
975 void iwl_trans_op_mode_leave(struct iwl_trans *trans);
977 void iwl_trans_fw_alive(struct iwl_trans *trans, u32 scd_addr);
979 int iwl_trans_start_fw(struct iwl_trans *trans, const struct fw_img *fw,
982 void iwl_trans_stop_device(struct iwl_trans *trans);
984 int iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, bool reset);
986 int iwl_trans_d3_resume(struct iwl_trans *trans, enum iwl_d3_status *status,
990 iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask,
995 iwl_trans_alloc_tx_cmd(struct iwl_trans *trans)
997 return kmem_cache_zalloc(trans->dev_cmd_pool, GFP_ATOMIC);
1000 int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
1002 static inline void iwl_trans_free_tx_cmd(struct iwl_trans *trans,
1005 kmem_cache_free(trans->dev_cmd_pool, dev_cmd);
1008 int iwl_trans_tx(struct iwl_trans *trans, struct sk_buff *skb,
1011 void iwl_trans_reclaim(struct iwl_trans *trans, int queue, int ssn,
1014 void iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, int ptr);
1016 void iwl_trans_txq_disable(struct iwl_trans *trans, int queue,
1019 bool iwl_trans_txq_enable_cfg(struct iwl_trans *trans, int queue, u16 ssn,
1023 int iwl_trans_get_rxq_dma_data(struct iwl_trans *trans, int queue,
1026 void iwl_trans_txq_free(struct iwl_trans *trans, int queue);
1028 int iwl_trans_txq_alloc(struct iwl_trans *trans, u32 flags, u32 sta_mask,
1031 void iwl_trans_txq_set_shared_mode(struct iwl_trans *trans,
1034 static inline void iwl_trans_txq_enable(struct iwl_trans *trans, int queue,
1047 iwl_trans_txq_enable_cfg(trans, queue, ssn, &cfg, queue_wdg_timeout);
1051 void iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo,
1062 iwl_trans_txq_enable_cfg(trans, queue, 0, &cfg, queue_wdg_timeout);
1065 void iwl_trans_freeze_txq_timer(struct iwl_trans *trans,
1068 int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, u32 txqs);
1070 int iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue);
1072 void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val);
1074 void iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val);
1076 u32 iwl_trans_read32(struct iwl_trans *trans, u32 ofs);
1078 u32 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs);
1080 void iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, u32 val);
1082 int iwl_trans_read_mem(struct iwl_trans *trans, u32 addr,
1085 int iwl_trans_read_config32(struct iwl_trans *trans, u32 ofs,
1089 void iwl_trans_debugfs_cleanup(struct iwl_trans *trans);
1092 #define iwl_trans_read_mem_bytes(trans, addr, buf, bufsize) \
1096 iwl_trans_read_mem(trans, addr, buf, (bufsize) / sizeof(u32));\
1099 int iwl_trans_write_imr_mem(struct iwl_trans *trans, u32 dst_addr,
1102 static inline u32 iwl_trans_read_mem32(struct iwl_trans *trans, u32 addr)
1106 if (iwl_trans_read_mem(trans, addr, &value, 1))
1112 int iwl_trans_write_mem(struct iwl_trans *trans, u32 addr,
1115 static inline u32 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr,
1118 return iwl_trans_write_mem(trans, addr, &val, 1);
1121 void iwl_trans_set_pmi(struct iwl_trans *trans, bool state);
1123 int iwl_trans_sw_reset(struct iwl_trans *trans, bool retake_ownership);
1125 void iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg,
1128 bool _iwl_trans_grab_nic_access(struct iwl_trans *trans);
1130 #define iwl_trans_grab_nic_access(trans) \
1132 likely(_iwl_trans_grab_nic_access(trans)))
1135 iwl_trans_release_nic_access(struct iwl_trans *trans);
1137 static inline void iwl_trans_fw_error(struct iwl_trans *trans, bool sync)
1139 if (WARN_ON_ONCE(!trans->op_mode))
1143 if (!test_and_set_bit(STATUS_FW_ERROR, &trans->status)) {
1144 trans->state = IWL_TRANS_NO_FW;
1145 iwl_op_mode_nic_error(trans->op_mode, sync);
1149 static inline bool iwl_trans_fw_running(struct iwl_trans *trans)
1151 return trans->state == IWL_TRANS_FW_ALIVE;
1154 void iwl_trans_sync_nmi(struct iwl_trans *trans);
1156 void iwl_trans_sync_nmi_with_addr(struct iwl_trans *trans, u32 inta_addr,
1159 int iwl_trans_load_pnvm(struct iwl_trans *trans,
1163 void iwl_trans_set_pnvm(struct iwl_trans *trans,
1166 int iwl_trans_load_reduce_power(struct iwl_trans *trans,
1170 void iwl_trans_set_reduce_power(struct iwl_trans *trans,
1173 static inline bool iwl_trans_dbg_ini_valid(struct iwl_trans *trans)
1175 return trans->dbg.internal_ini_cfg != IWL_INI_CFG_STATE_NOT_LOADED ||
1176 trans->dbg.external_ini_cfg != IWL_INI_CFG_STATE_NOT_LOADED;
1179 void iwl_trans_interrupts(struct iwl_trans *trans, bool enable);
1187 int iwl_trans_init(struct iwl_trans *trans);
1188 void iwl_trans_free(struct iwl_trans *trans);
1200 void iwl_trans_pcie_remove(struct iwl_trans *trans, bool rescan);
1202 int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans,