Home
last modified time | relevance | path

Searched refs:trans (Results 1 – 25 of 179) sorted by relevance

12345678

/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans-gen2.c65 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument
69 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init()
80 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init()
84 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init()
90 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_pcie_gen2_apm_init()
93 iwl_pcie_apm_config(trans); in iwl_pcie_gen2_apm_init()
95 ret = iwl_finish_nic_init(trans, trans->trans_cfg); in iwl_pcie_gen2_apm_init()
99 set_bit(STATUS_DEVICE_ENABLED, &trans->status); in iwl_pcie_gen2_apm_init()
104 static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, bool op_mode_leave) in iwl_pcie_gen2_apm_stop() argument
106 IWL_DEBUG_INFO(trans, "Stop card, put in low power state\n"); in iwl_pcie_gen2_apm_stop()
[all …]
Dtrans.c90 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs() argument
96 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs()
120 IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); in iwl_trans_pcie_dump_regs()
124 IWL_ERR(trans, "iwlwifi device config registers:\n"); in iwl_trans_pcie_dump_regs()
130 IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); in iwl_trans_pcie_dump_regs()
132 *ptr = iwl_read32(trans, i); in iwl_trans_pcie_dump_regs()
137 IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); in iwl_trans_pcie_dump_regs()
152 IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", in iwl_trans_pcie_dump_regs()
165 IWL_ERR(trans, "iwlwifi root port (%s) AER cap structure:\n", in iwl_trans_pcie_dump_regs()
178 IWL_ERR(trans, "Read failed at 0x%X\n", i); in iwl_trans_pcie_dump_regs()
[all …]
Dtx.c103 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
109 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
117 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument
122 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
129 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument
143 if (!trans->trans_cfg->base_params->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr()
144 txq_id != trans->txqs.cmd.q_id && in iwl_pcie_txq_inc_wr_ptr()
145 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr()
151 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr()
154 IWL_DEBUG_INFO(trans, "Tx queue %d requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_txq_inc_wr_ptr()
[all …]
Drx.c201 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument
203 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_rx_stop()
205 iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_GEN3, 0); in iwl_pcie_rx_stop()
206 return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_GEN3, in iwl_pcie_rx_stop()
208 } else if (trans->trans_cfg->mq_rx_supported) { in iwl_pcie_rx_stop()
209 iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); in iwl_pcie_rx_stop()
210 return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, in iwl_pcie_rx_stop()
213 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop()
214 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop()
223 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_rxq_inc_wr_ptr() argument
[all …]
Dinternal.h248 static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument
251 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts()
398 struct iwl_trans *trans; member
475 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument
477 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS()
480 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, in iwl_pcie_clear_irq() argument
491 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(entry->entry)); in iwl_pcie_clear_irq()
509 void iwl_trans_pcie_free(struct iwl_trans *trans);
514 int iwl_pcie_rx_init(struct iwl_trans *trans);
515 int iwl_pcie_gen2_rx_init(struct iwl_trans *trans);
[all …]
Dctxt-info-gen3.c59 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable() argument
67 if (!iwl_trans_dbg_ini_valid(trans)) { in iwl_pcie_ctxt_info_dbg_enable()
68 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_ctxt_info_dbg_enable()
70 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_dbg_enable()
75 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
85 fw_mon_cfg = &trans->dbg.fw_mon_cfg[alloc_id]; in iwl_pcie_ctxt_info_dbg_enable()
90 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
96 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
101 if (trans->dbg.fw_mon_ini[alloc_id].num_frags) { in iwl_pcie_ctxt_info_dbg_enable()
103 &trans->dbg.fw_mon_ini[alloc_id].frags[0]; in iwl_pcie_ctxt_info_dbg_enable()
[all …]
Dtx-gen2.c74 static int iwl_pcie_gen2_enqueue_hcmd(struct iwl_trans *trans, in iwl_pcie_gen2_enqueue_hcmd() argument
77 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_gen2_enqueue_hcmd()
78 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_pcie_gen2_enqueue_hcmd()
154 iwl_get_cmd_string(trans, cmd->id), cmd->id, copy_size)) { in iwl_pcie_gen2_enqueue_hcmd()
162 tfd = iwl_txq_get_tfd(trans, txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
165 if (iwl_txq_space(trans, txq) < ((cmd->flags & CMD_ASYNC) ? 2 : 1)) { in iwl_pcie_gen2_enqueue_hcmd()
168 IWL_ERR(trans, "No space in command queue\n"); in iwl_pcie_gen2_enqueue_hcmd()
169 iwl_op_mode_cmd_queue_full(trans->op_mode); in iwl_pcie_gen2_enqueue_hcmd()
190 cpu_to_le16(QUEUE_TO_SEQ(trans->txqs.cmd.q_id) | in iwl_pcie_gen2_enqueue_hcmd()
234 IWL_DEBUG_HC(trans, in iwl_pcie_gen2_enqueue_hcmd()
[all …]
Dctxt-info.c60 static void *_iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in _iwl_pcie_ctxt_info_dma_alloc_coherent() argument
71 result = dma_alloc_coherent(trans->dev, size, phys, GFP_KERNEL); in _iwl_pcie_ctxt_info_dma_alloc_coherent()
80 result = _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, in _iwl_pcie_ctxt_info_dma_alloc_coherent()
83 dma_free_coherent(trans->dev, size, old, oldphys); in _iwl_pcie_ctxt_info_dma_alloc_coherent()
89 static void *iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dma_alloc_coherent() argument
93 return _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, phys, 0); in iwl_pcie_ctxt_info_dma_alloc_coherent()
96 int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, in iwl_pcie_ctxt_info_alloc_dma() argument
100 dram->block = iwl_pcie_ctxt_info_dma_alloc_coherent(trans, len, in iwl_pcie_ctxt_info_alloc_dma()
111 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free_paging() argument
113 struct iwl_self_init_dram *dram = &trans->init_dram; in iwl_pcie_ctxt_info_free_paging()
[all …]
/drivers/net/wireless/intel/iwlwifi/
Diwl-trans.h116 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON argument
223 #define IWL_TRANS_MAX_FRAGS(trans) ((trans)->txqs.tfd.max_tbs - 3) argument
579 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
581 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr);
582 void (*stop_device)(struct iwl_trans *trans);
584 int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset);
585 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status,
588 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd);
590 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb,
592 void (*reclaim)(struct iwl_trans *trans, int queue, int ssn,
[all …]
Diwl-eeprom-read.c94 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore() argument
101 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
105 ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
110 IWL_DEBUG_EEPROM(trans->dev, in iwl_eeprom_acquire_semaphore()
120 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) in iwl_eeprom_release_semaphore() argument
122 iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_release_semaphore()
126 static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) in iwl_eeprom_verify_signature() argument
128 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature()
130 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
135 IWL_ERR(trans, "EEPROM with bad signature: 0x%08x\n", in iwl_eeprom_verify_signature()
[all …]
Diwl-trans.c77 struct iwl_trans *trans; in iwl_trans_alloc() local
83 trans = devm_kzalloc(dev, sizeof(*trans) + priv_size, GFP_KERNEL); in iwl_trans_alloc()
84 if (!trans) in iwl_trans_alloc()
87 trans->trans_cfg = cfg_trans; in iwl_trans_alloc()
107 lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", in iwl_trans_alloc()
111 trans->dev = dev; in iwl_trans_alloc()
112 trans->ops = ops; in iwl_trans_alloc()
113 trans->num_rx_queues = 1; in iwl_trans_alloc()
115 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) in iwl_trans_alloc()
116 trans->txqs.bc_tbl_size = sizeof(struct iwl_gen3_bc_tbl); in iwl_trans_alloc()
[all …]
Diwl-io.c73 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
75 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
76 iwl_trans_write8(trans, ofs, val); in iwl_write8()
80 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
82 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
83 iwl_trans_write32(trans, ofs, val); in iwl_write32()
87 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument
89 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64()
90 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64()
91 iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); in iwl_write64()
[all …]
Diwl-io.h64 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val);
65 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val);
66 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val);
67 u32 iwl_read32(struct iwl_trans *trans, u32 ofs);
69 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument
71 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit()
74 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit() argument
76 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit()
79 int iwl_poll_bit(struct iwl_trans *trans, u32 addr,
81 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask,
[all …]
Diwl-scd.h67 static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, in iwl_scd_txq_set_chain() argument
70 iwl_set_bits_prph(trans, SCD_QUEUECHAIN_SEL, BIT(txq_id)); in iwl_scd_txq_set_chain()
73 static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, in iwl_scd_txq_enable_agg() argument
76 iwl_set_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_enable_agg()
79 static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, in iwl_scd_txq_disable_agg() argument
82 iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_disable_agg()
85 static inline void iwl_scd_disable_agg(struct iwl_trans *trans) in iwl_scd_disable_agg() argument
87 iwl_set_bits_prph(trans, SCD_AGGR_SEL, 0); in iwl_scd_disable_agg()
90 static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) in iwl_scd_activate_fifos() argument
92 iwl_write_prph(trans, SCD_TXFACT, IWL_MASK(0, 7)); in iwl_scd_activate_fifos()
[all …]
Diwl-dbg-tlv.c150 static int iwl_dbg_tlv_alloc_debug_info(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_debug_info() argument
158 IWL_DEBUG_FW(trans, "WRT: Loading debug cfg: %s\n", in iwl_dbg_tlv_alloc_debug_info()
161 return iwl_dbg_tlv_add(tlv, &trans->dbg.debug_info_tlv_list); in iwl_dbg_tlv_alloc_debug_info()
164 static int iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_buf_alloc() argument
196 IWL_ERR(trans, "WRT: Invalid DRAM buffer allocation requested size (0)\n"); in iwl_dbg_tlv_alloc_buf_alloc()
200 trans->dbg.fw_mon_cfg[alloc_id] = *alloc; in iwl_dbg_tlv_alloc_buf_alloc()
204 IWL_ERR(trans, in iwl_dbg_tlv_alloc_buf_alloc()
210 static int iwl_dbg_tlv_alloc_hcmd(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_hcmd() argument
225 IWL_ERR(trans, in iwl_dbg_tlv_alloc_hcmd()
231 return iwl_dbg_tlv_add(tlv, &trans->dbg.time_point[tp].hcmd_list); in iwl_dbg_tlv_alloc_hcmd()
[all …]
/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c65 void iwl_txq_gen2_tx_stop(struct iwl_trans *trans) in iwl_txq_gen2_tx_stop() argument
74 memset(trans->txqs.queue_stopped, 0, in iwl_txq_gen2_tx_stop()
75 sizeof(trans->txqs.queue_stopped)); in iwl_txq_gen2_tx_stop()
76 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_txq_gen2_tx_stop()
79 for (txq_id = 0; txq_id < ARRAY_SIZE(trans->txqs.txq); txq_id++) { in iwl_txq_gen2_tx_stop()
80 if (!trans->txqs.txq[txq_id]) in iwl_txq_gen2_tx_stop()
82 iwl_txq_gen2_unmap(trans, txq_id); in iwl_txq_gen2_tx_stop()
89 static void iwl_pcie_gen2_update_byte_tbl(struct iwl_trans *trans, in iwl_pcie_gen2_update_byte_tbl() argument
113 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_gen2_update_byte_tbl()
117 WARN_ON(trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
[all …]
Dtx.h80 void iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id);
82 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
85 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
86 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); in iwl_wake_queue()
87 iwl_op_mode_queue_not_full(trans->op_mode, txq->id); in iwl_wake_queue()
91 static inline void *iwl_txq_get_tfd(struct iwl_trans *trans, in iwl_txq_get_tfd() argument
94 if (trans->trans_cfg->use_tfh) in iwl_txq_get_tfd()
97 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
100 int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
112 int iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q);
[all …]
/drivers/net/wireless/intel/iwlwifi/fw/
Dpnvm.c24 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() local
27 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn()
34 static int iwl_pnvm_handle_section(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_handle_section() argument
45 IWL_DEBUG_FW(trans, "Handling PNVM section\n"); in iwl_pnvm_handle_section()
57 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_pnvm_handle_section()
68 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
76 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
82 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
94 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
98 if (mac_type == CSR_HW_REV_TYPE(trans->hw_rev) && in iwl_pnvm_handle_section()
[all …]
Ddbg.c98 if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) in iwl_read_radio_regs()
108 iwl_write_prph_no_grab(fwrt->trans, RSP_RADIO_CMD, rd_cmd); in iwl_read_radio_regs()
109 *pos = (u8)iwl_read_prph_no_grab(fwrt->trans, RSP_RADIO_RDDAT); in iwl_read_radio_regs()
116 iwl_trans_release_nic_access(fwrt->trans, &flags); in iwl_read_radio_regs()
142 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
145 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
148 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
151 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
154 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
158 iwl_trans_write_prph(fwrt->trans, RXF_SET_FENCE_MODE + offset, 0x1); in iwl_fwrt_dump_rxf()
[all …]
/drivers/net/ipa/
Dgsi_trans.c238 struct gsi_trans *trans) in gsi_channel_trans_map() argument
241 channel->trans_info.map[index % channel->tre_ring.count] = trans; in gsi_channel_trans_map()
260 static void gsi_trans_move_pending(struct gsi_trans *trans) in gsi_trans_move_pending() argument
262 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_pending()
267 list_move_tail(&trans->links, &trans_info->pending); in gsi_trans_move_pending()
275 void gsi_trans_move_complete(struct gsi_trans *trans) in gsi_trans_move_complete() argument
277 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_complete()
284 list_cut_position(&list, &trans_info->pending, &trans->links); in gsi_trans_move_complete()
291 void gsi_trans_move_polled(struct gsi_trans *trans) in gsi_trans_move_polled() argument
293 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_polled()
[all …]
Dipa_cmd.c373 void ipa_cmd_table_init_add(struct gsi_trans *trans, in ipa_cmd_table_init_add() argument
378 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_table_init_add()
409 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_table_init_add()
414 void ipa_cmd_hdr_init_local_add(struct gsi_trans *trans, u32 offset, u16 size, in ipa_cmd_hdr_init_local_add() argument
417 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_hdr_init_local_add()
440 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_hdr_init_local_add()
444 void ipa_cmd_register_write_add(struct gsi_trans *trans, u32 offset, u32 value, in ipa_cmd_register_write_add() argument
447 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_register_write_add()
493 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_register_write_add()
498 static void ipa_cmd_ip_packet_init_add(struct gsi_trans *trans, u8 endpoint_id) in ipa_cmd_ip_packet_init_add() argument
[all …]
Dipa_table.c256 static void ipa_table_reset_add(struct gsi_trans *trans, bool filter, in ipa_table_reset_add() argument
259 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_table_reset_add()
275 ipa_cmd_dma_shared_mem_add(trans, offset, size, addr, true); in ipa_table_reset_add()
287 struct gsi_trans *trans; in ipa_filter_reset_table() local
293 trans = ipa_cmd_trans_alloc(ipa, count); in ipa_filter_reset_table()
294 if (!trans) { in ipa_filter_reset_table()
312 ipa_table_reset_add(trans, true, endpoint_id, 1, mem); in ipa_filter_reset_table()
315 gsi_trans_commit_wait(trans); in ipa_filter_reset_table()
352 struct gsi_trans *trans; in ipa_route_reset() local
356 trans = ipa_cmd_trans_alloc(ipa, 4); in ipa_route_reset()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c241 struct qlcnic_bc_trans *trans; in qlcnic_sriov_cleanup_list() local
248 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
250 list_del(&trans->list); in qlcnic_sriov_cleanup_list()
252 cmd.req.arg = (u32 *)trans->req_pay; in qlcnic_sriov_cleanup_list()
253 cmd.rsp.arg = (u32 *)trans->rsp_pay; in qlcnic_sriov_cleanup_list()
255 qlcnic_sriov_cleanup_transaction(trans); in qlcnic_sriov_cleanup_list()
699 static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) in qlcnic_sriov_alloc_bc_trans() argument
701 *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans()
702 if (!*trans) in qlcnic_sriov_alloc_bc_trans()
705 init_completion(&(*trans)->resp_cmpl); in qlcnic_sriov_alloc_bc_trans()
[all …]
/drivers/hid/
Dhid-apple.c202 const struct apple_key_translation *trans; in apple_find_translation() local
205 for (trans = table; trans->from; trans++) in apple_find_translation()
206 if (trans->from == from) in apple_find_translation()
207 return trans; in apple_find_translation()
216 const struct apple_key_translation *trans, *table; in hidinput_apple_event() local
239 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
241 if (trans) { in hidinput_apple_event()
242 if (test_bit(trans->from, input->key)) in hidinput_apple_event()
243 code = trans->from; in hidinput_apple_event()
244 else if (test_bit(trans->to, input->key)) in hidinput_apple_event()
[all …]
/drivers/net/wireless/quantenna/qtnfmac/
Dtrans.c18 struct qtnf_cmd_ctl_node *ctl_node = &bus->trans.curr_cmd; in qtnf_trans_send_cmd_with_resp()
83 struct qtnf_cmd_ctl_node *ctl_node = &bus->trans.curr_cmd; in qtnf_trans_signal_cmdresp()
114 struct qtnf_qlink_transport *trans = &bus->trans; in qtnf_trans_event_enqueue() local
116 if (likely(skb_queue_len(&trans->event_queue) < in qtnf_trans_event_enqueue()
117 trans->event_queue_max_len)) { in qtnf_trans_event_enqueue()
118 skb_queue_tail(&trans->event_queue, skb); in qtnf_trans_event_enqueue()
131 struct qtnf_qlink_transport *trans = &bus->trans; in qtnf_trans_init() local
133 init_completion(&trans->curr_cmd.cmd_resp_completion); in qtnf_trans_init()
134 spin_lock_init(&trans->curr_cmd.resp_lock); in qtnf_trans_init()
136 spin_lock(&trans->curr_cmd.resp_lock); in qtnf_trans_init()
[all …]

12345678