Lines Matching refs:trans

320 	struct iwl_trans *trans;  member
398 void iwl_trans_pcie_free(struct iwl_trans *trans);
403 int iwl_pcie_rx_init(struct iwl_trans *trans);
405 int iwl_pcie_rx_stop(struct iwl_trans *trans);
406 void iwl_pcie_rx_free(struct iwl_trans *trans);
412 int iwl_pcie_alloc_ict(struct iwl_trans *trans);
413 void iwl_pcie_free_ict(struct iwl_trans *trans);
414 void iwl_pcie_reset_ict(struct iwl_trans *trans);
415 void iwl_pcie_disable_ict(struct iwl_trans *trans);
420 int iwl_pcie_tx_init(struct iwl_trans *trans);
421 void iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr);
422 int iwl_pcie_tx_stop(struct iwl_trans *trans);
423 void iwl_pcie_tx_free(struct iwl_trans *trans);
424 void iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int queue, u16 ssn,
427 void iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int queue,
429 int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb,
431 void iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans);
432 int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
433 void iwl_pcie_hcmd_complete(struct iwl_trans *trans,
435 void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
437 void iwl_trans_pcie_tx_reset(struct iwl_trans *trans);
439 void iwl_trans_pcie_ref(struct iwl_trans *trans);
440 void iwl_trans_pcie_unref(struct iwl_trans *trans);
452 void iwl_pcie_dump_csr(struct iwl_trans *trans);
457 static inline void iwl_disable_interrupts(struct iwl_trans *trans) in iwl_disable_interrupts() argument
459 clear_bit(STATUS_INT_ENABLED, &trans->status); in iwl_disable_interrupts()
462 iwl_write32(trans, CSR_INT_MASK, 0x00000000); in iwl_disable_interrupts()
466 iwl_write32(trans, CSR_INT, 0xffffffff); in iwl_disable_interrupts()
467 iwl_write32(trans, CSR_FH_INT_STATUS, 0xffffffff); in iwl_disable_interrupts()
468 IWL_DEBUG_ISR(trans, "Disabled interrupts\n"); in iwl_disable_interrupts()
471 static inline void iwl_enable_interrupts(struct iwl_trans *trans) in iwl_enable_interrupts() argument
473 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_enable_interrupts()
475 IWL_DEBUG_ISR(trans, "Enabling interrupts\n"); in iwl_enable_interrupts()
476 set_bit(STATUS_INT_ENABLED, &trans->status); in iwl_enable_interrupts()
478 iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); in iwl_enable_interrupts()
481 static inline void iwl_enable_rfkill_int(struct iwl_trans *trans) in iwl_enable_rfkill_int() argument
483 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_enable_rfkill_int()
485 IWL_DEBUG_ISR(trans, "Enabling rfkill interrupt\n"); in iwl_enable_rfkill_int()
487 iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); in iwl_enable_rfkill_int()
490 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
493 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_wake_queue()
496 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->q.id); in iwl_wake_queue()
497 iwl_op_mode_queue_not_full(trans->op_mode, txq->q.id); in iwl_wake_queue()
501 static inline void iwl_stop_queue(struct iwl_trans *trans, in iwl_stop_queue() argument
504 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_stop_queue()
507 iwl_op_mode_queue_full(trans->op_mode, txq->q.id); in iwl_stop_queue()
508 IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d\n", txq->q.id); in iwl_stop_queue()
510 IWL_DEBUG_TX_QUEUES(trans, "hwq %d already stopped\n", in iwl_stop_queue()
534 static inline bool iwl_is_rfkill_set(struct iwl_trans *trans) in iwl_is_rfkill_set() argument
536 return !(iwl_read32(trans, CSR_GP_CNTRL) & in iwl_is_rfkill_set()
540 static inline void __iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, in __iwl_trans_pcie_set_bits_mask() argument
549 v = iwl_read32(trans, reg); in __iwl_trans_pcie_set_bits_mask()
552 iwl_write32(trans, reg, v); in __iwl_trans_pcie_set_bits_mask()
555 static inline void __iwl_trans_pcie_clear_bit(struct iwl_trans *trans, in __iwl_trans_pcie_clear_bit() argument
558 __iwl_trans_pcie_set_bits_mask(trans, reg, mask, 0); in __iwl_trans_pcie_clear_bit()
561 static inline void __iwl_trans_pcie_set_bit(struct iwl_trans *trans, in __iwl_trans_pcie_set_bit() argument
564 __iwl_trans_pcie_set_bits_mask(trans, reg, mask, mask); in __iwl_trans_pcie_set_bit()
567 void iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state);