Lines Matching refs:trans

277 	struct iwl_trans *trans;  member
352 void iwl_trans_pcie_free(struct iwl_trans *trans);
357 int iwl_pcie_rx_init(struct iwl_trans *trans);
359 int iwl_pcie_rx_stop(struct iwl_trans *trans);
360 void iwl_pcie_rx_free(struct iwl_trans *trans);
366 int iwl_pcie_alloc_ict(struct iwl_trans *trans);
367 void iwl_pcie_free_ict(struct iwl_trans *trans);
368 void iwl_pcie_reset_ict(struct iwl_trans *trans);
369 void iwl_pcie_disable_ict(struct iwl_trans *trans);
374 int iwl_pcie_tx_init(struct iwl_trans *trans);
375 void iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr);
376 int iwl_pcie_tx_stop(struct iwl_trans *trans);
377 void iwl_pcie_tx_free(struct iwl_trans *trans);
378 void iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int queue, u16 ssn,
381 void iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int queue,
383 int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb,
385 void iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans);
386 int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
387 void iwl_pcie_hcmd_complete(struct iwl_trans *trans,
389 void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
391 void iwl_trans_pcie_tx_reset(struct iwl_trans *trans);
393 void iwl_trans_pcie_ref(struct iwl_trans *trans);
394 void iwl_trans_pcie_unref(struct iwl_trans *trans);
406 void iwl_pcie_dump_csr(struct iwl_trans *trans);
411 static inline void iwl_disable_interrupts(struct iwl_trans *trans) in iwl_disable_interrupts() argument
413 clear_bit(STATUS_INT_ENABLED, &trans->status); in iwl_disable_interrupts()
416 iwl_write32(trans, CSR_INT_MASK, 0x00000000); in iwl_disable_interrupts()
420 iwl_write32(trans, CSR_INT, 0xffffffff); in iwl_disable_interrupts()
421 iwl_write32(trans, CSR_FH_INT_STATUS, 0xffffffff); in iwl_disable_interrupts()
422 IWL_DEBUG_ISR(trans, "Disabled interrupts\n"); in iwl_disable_interrupts()
425 static inline void iwl_enable_interrupts(struct iwl_trans *trans) in iwl_enable_interrupts() argument
427 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_enable_interrupts()
429 IWL_DEBUG_ISR(trans, "Enabling interrupts\n"); in iwl_enable_interrupts()
430 set_bit(STATUS_INT_ENABLED, &trans->status); in iwl_enable_interrupts()
432 iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); in iwl_enable_interrupts()
435 static inline void iwl_enable_rfkill_int(struct iwl_trans *trans) in iwl_enable_rfkill_int() argument
437 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_enable_rfkill_int()
439 IWL_DEBUG_ISR(trans, "Enabling rfkill interrupt\n"); in iwl_enable_rfkill_int()
441 iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); in iwl_enable_rfkill_int()
444 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
447 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_wake_queue()
450 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->q.id); in iwl_wake_queue()
451 iwl_op_mode_queue_not_full(trans->op_mode, txq->q.id); in iwl_wake_queue()
455 static inline void iwl_stop_queue(struct iwl_trans *trans, in iwl_stop_queue() argument
458 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_stop_queue()
461 iwl_op_mode_queue_full(trans->op_mode, txq->q.id); in iwl_stop_queue()
462 IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d\n", txq->q.id); in iwl_stop_queue()
464 IWL_DEBUG_TX_QUEUES(trans, "hwq %d already stopped\n", in iwl_stop_queue()
488 static inline bool iwl_is_rfkill_set(struct iwl_trans *trans) in iwl_is_rfkill_set() argument
490 return !(iwl_read32(trans, CSR_GP_CNTRL) & in iwl_is_rfkill_set()
494 static inline void __iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, in __iwl_trans_pcie_set_bits_mask() argument
503 v = iwl_read32(trans, reg); in __iwl_trans_pcie_set_bits_mask()
506 iwl_write32(trans, reg, v); in __iwl_trans_pcie_set_bits_mask()
509 static inline void __iwl_trans_pcie_clear_bit(struct iwl_trans *trans, in __iwl_trans_pcie_clear_bit() argument
512 __iwl_trans_pcie_set_bits_mask(trans, reg, mask, 0); in __iwl_trans_pcie_clear_bit()
515 static inline void __iwl_trans_pcie_set_bit(struct iwl_trans *trans, in __iwl_trans_pcie_set_bit() argument
518 __iwl_trans_pcie_set_bits_mask(trans, reg, mask, mask); in __iwl_trans_pcie_set_bit()
521 void iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state);