Lines Matching refs:iwl_trans
438 struct iwl_trans;
550 int (*start_hw)(struct iwl_trans *iwl_trans);
551 void (*op_mode_leave)(struct iwl_trans *iwl_trans);
552 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
554 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr);
555 void (*stop_device)(struct iwl_trans *trans);
557 int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset);
558 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status,
561 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
563 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb,
565 void (*reclaim)(struct iwl_trans *trans, int queue, int ssn,
568 void (*set_q_ptrs)(struct iwl_trans *trans, int queue, int ptr);
570 bool (*txq_enable)(struct iwl_trans *trans, int queue, u16 ssn,
573 void (*txq_disable)(struct iwl_trans *trans, int queue,
576 int (*txq_alloc)(struct iwl_trans *trans, u32 flags,
579 void (*txq_free)(struct iwl_trans *trans, int queue);
580 int (*rxq_dma_data)(struct iwl_trans *trans, int queue,
583 void (*txq_set_shared_mode)(struct iwl_trans *trans, u32 txq_id,
586 int (*wait_tx_queues_empty)(struct iwl_trans *trans, u32 txq_bm);
587 int (*wait_txq_empty)(struct iwl_trans *trans, int queue);
588 void (*freeze_txq_timer)(struct iwl_trans *trans, unsigned long txqs,
590 void (*block_txq_ptrs)(struct iwl_trans *trans, bool block);
592 void (*write8)(struct iwl_trans *trans, u32 ofs, u8 val);
593 void (*write32)(struct iwl_trans *trans, u32 ofs, u32 val);
594 u32 (*read32)(struct iwl_trans *trans, u32 ofs);
595 u32 (*read_prph)(struct iwl_trans *trans, u32 ofs);
596 void (*write_prph)(struct iwl_trans *trans, u32 ofs, u32 val);
597 int (*read_mem)(struct iwl_trans *trans, u32 addr,
599 int (*write_mem)(struct iwl_trans *trans, u32 addr,
601 int (*read_config32)(struct iwl_trans *trans, u32 ofs, u32 *val);
602 void (*configure)(struct iwl_trans *trans,
604 void (*set_pmi)(struct iwl_trans *trans, bool state);
605 int (*sw_reset)(struct iwl_trans *trans, bool retake_ownership);
606 bool (*grab_nic_access)(struct iwl_trans *trans);
607 void (*release_nic_access)(struct iwl_trans *trans);
608 void (*set_bits_mask)(struct iwl_trans *trans, u32 reg, u32 mask,
611 struct iwl_trans_dump_data *(*dump_data)(struct iwl_trans *trans,
615 void (*debugfs_cleanup)(struct iwl_trans *trans);
616 void (*sync_nmi)(struct iwl_trans *trans);
617 int (*set_pnvm)(struct iwl_trans *trans, const void *data, u32 len);
618 int (*set_reduce_power)(struct iwl_trans *trans,
620 void (*interrupts)(struct iwl_trans *trans, bool enable);
621 int (*imr_dma_data)(struct iwl_trans *trans,
906 struct iwl_trans *trans;
1003 struct iwl_trans { struct
1062 const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id); argument
1065 static inline void iwl_trans_configure(struct iwl_trans *trans, in iwl_trans_configure()
1074 static inline int iwl_trans_start_hw(struct iwl_trans *trans) in iwl_trans_start_hw()
1081 static inline void iwl_trans_op_mode_leave(struct iwl_trans *trans) in iwl_trans_op_mode_leave()
1093 static inline void iwl_trans_fw_alive(struct iwl_trans *trans, u32 scd_addr) in iwl_trans_fw_alive()
1102 static inline int iwl_trans_start_fw(struct iwl_trans *trans, in iwl_trans_start_fw()
1120 static inline void iwl_trans_stop_device(struct iwl_trans *trans) in iwl_trans_stop_device()
1129 static inline int iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, in iwl_trans_d3_suspend()
1139 static inline int iwl_trans_d3_resume(struct iwl_trans *trans, in iwl_trans_d3_resume()
1151 iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask, in iwl_trans_dump_data()
1162 iwl_trans_alloc_tx_cmd(struct iwl_trans *trans) in iwl_trans_alloc_tx_cmd()
1167 int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
1169 static inline void iwl_trans_free_tx_cmd(struct iwl_trans *trans, in iwl_trans_free_tx_cmd()
1175 static inline int iwl_trans_tx(struct iwl_trans *trans, struct sk_buff *skb, in iwl_trans_tx()
1189 static inline void iwl_trans_reclaim(struct iwl_trans *trans, int queue, in iwl_trans_reclaim()
1200 static inline void iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, in iwl_trans_set_q_ptrs()
1211 static inline void iwl_trans_txq_disable(struct iwl_trans *trans, int queue, in iwl_trans_txq_disable()
1218 iwl_trans_txq_enable_cfg(struct iwl_trans *trans, int queue, u16 ssn, in iwl_trans_txq_enable_cfg()
1234 iwl_trans_get_rxq_dma_data(struct iwl_trans *trans, int queue, in iwl_trans_get_rxq_dma_data()
1244 iwl_trans_txq_free(struct iwl_trans *trans, int queue) in iwl_trans_txq_free()
1253 iwl_trans_txq_alloc(struct iwl_trans *trans, in iwl_trans_txq_alloc()
1271 static inline void iwl_trans_txq_set_shared_mode(struct iwl_trans *trans, in iwl_trans_txq_set_shared_mode()
1278 static inline void iwl_trans_txq_enable(struct iwl_trans *trans, int queue, in iwl_trans_txq_enable()
1295 void iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo, in iwl_trans_ac_txq_enable()
1309 static inline void iwl_trans_freeze_txq_timer(struct iwl_trans *trans, in iwl_trans_freeze_txq_timer()
1322 static inline void iwl_trans_block_txq_ptrs(struct iwl_trans *trans, in iwl_trans_block_txq_ptrs()
1334 static inline int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, in iwl_trans_wait_tx_queues_empty()
1349 static inline int iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue) in iwl_trans_wait_txq_empty()
1362 static inline void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_trans_write8()
1367 static inline void iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_trans_write32()
1372 static inline u32 iwl_trans_read32(struct iwl_trans *trans, u32 ofs) in iwl_trans_read32()
1377 static inline u32 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs) in iwl_trans_read_prph()
1382 static inline void iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, in iwl_trans_write_prph()
1388 static inline int iwl_trans_read_mem(struct iwl_trans *trans, u32 addr, in iwl_trans_read_mem()
1401 static inline int iwl_trans_write_imr_mem(struct iwl_trans *trans, in iwl_trans_write_imr_mem()
1410 static inline u32 iwl_trans_read_mem32(struct iwl_trans *trans, u32 addr) in iwl_trans_read_mem32()
1420 static inline int iwl_trans_write_mem(struct iwl_trans *trans, u32 addr, in iwl_trans_write_mem()
1426 static inline u32 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr, in iwl_trans_write_mem32()
1432 static inline void iwl_trans_set_pmi(struct iwl_trans *trans, bool state) in iwl_trans_set_pmi()
1438 static inline int iwl_trans_sw_reset(struct iwl_trans *trans, in iwl_trans_sw_reset()
1447 iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) in iwl_trans_set_bits_mask()
1457 iwl_trans_release_nic_access(struct iwl_trans *trans) in __releases()
1463 static inline void iwl_trans_fw_error(struct iwl_trans *trans, bool sync) in iwl_trans_fw_error()
1475 static inline bool iwl_trans_fw_running(struct iwl_trans *trans) in iwl_trans_fw_running()
1480 static inline void iwl_trans_sync_nmi(struct iwl_trans *trans) in iwl_trans_sync_nmi()
1486 void iwl_trans_sync_nmi_with_addr(struct iwl_trans *trans, u32 inta_addr,
1489 static inline int iwl_trans_set_pnvm(struct iwl_trans *trans, in iwl_trans_set_pnvm()
1504 static inline int iwl_trans_set_reduce_power(struct iwl_trans *trans, in iwl_trans_set_reduce_power()
1518 static inline bool iwl_trans_dbg_ini_valid(struct iwl_trans *trans) in iwl_trans_dbg_ini_valid()
1524 static inline void iwl_trans_interrupts(struct iwl_trans *trans, bool enable) in iwl_trans_interrupts()
1533 struct iwl_trans *iwl_trans_alloc(unsigned int priv_size,
1537 int iwl_trans_init(struct iwl_trans *trans);
1538 void iwl_trans_free(struct iwl_trans *trans);