Home
last modified time | relevance | path

Searched full:trans (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.c12 #include "iwl-trans.h"
101 static void iwl_trans_schedule_reprobe(struct iwl_trans *trans, in iwl_trans_schedule_reprobe() argument
112 IWL_ERR(trans, "Module is being unloaded - abort\n"); in iwl_trans_schedule_reprobe()
121 reprobe->dev = get_device(trans->dev); in iwl_trans_schedule_reprobe()
129 iwl_trans_determine_restart_mode(struct iwl_trans *trans) in iwl_trans_determine_restart_mode() argument
157 if (trans->restart.mode.type == IWL_ERR_TYPE_TOP_RESET_FAILED) in iwl_trans_determine_restart_mode()
160 if (trans->request_top_reset) { in iwl_trans_determine_restart_mode()
161 trans->request_top_reset = 0; in iwl_trans_determine_restart_mode()
162 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_SC) in iwl_trans_determine_restart_mode()
167 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_SC) { in iwl_trans_determine_restart_mode()
[all …]
H A Diwl-dbg-tlv.c7 #include "iwl-trans.h"
99 static int iwl_dbg_tlv_alloc_debug_info(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_debug_info() argument
113 IWL_DEBUG_FW(trans, "WRT: Loading debug cfg: %s\n", in iwl_dbg_tlv_alloc_debug_info()
116 if (!iwl_dbg_tlv_add(tlv, &trans->dbg.debug_info_tlv_list)) in iwl_dbg_tlv_alloc_debug_info()
121 static int iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_buf_alloc() argument
152 IWL_ERR(trans, "WRT: Invalid DRAM buffer allocation requested size (0)\n"); in iwl_dbg_tlv_alloc_buf_alloc()
156 trans->dbg.fw_mon_cfg[alloc_id] = *alloc; in iwl_dbg_tlv_alloc_buf_alloc()
160 IWL_ERR(trans, in iwl_dbg_tlv_alloc_buf_alloc()
166 static int iwl_dbg_tlv_alloc_hcmd(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_hcmd() argument
181 IWL_ERR(trans, in iwl_dbg_tlv_alloc_hcmd()
[all …]
H A Diwl-scd.h8 #include "iwl-trans.h"
13 static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, in iwl_scd_txq_set_chain() argument
16 iwl_set_bits_prph(trans, SCD_QUEUECHAIN_SEL, BIT(txq_id)); in iwl_scd_txq_set_chain()
19 static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, in iwl_scd_txq_enable_agg() argument
22 iwl_set_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_enable_agg()
25 static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, in iwl_scd_txq_disable_agg() argument
28 iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_disable_agg()
31 static inline void iwl_scd_disable_agg(struct iwl_trans *trans) in iwl_scd_disable_agg() argument
33 iwl_set_bits_prph(trans, SCD_AGGR_SEL, 0); in iwl_scd_disable_agg()
36 static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) in iwl_scd_activate_fifos() argument
[all …]
H A Diwl-nvm-parse.c336 static int iwl_init_channel_map(struct iwl_trans *trans, in iwl_init_channel_map() argument
342 const struct iwl_rf_cfg *cfg = trans->cfg; in iwl_init_channel_map()
343 struct device *dev = trans->dev; in iwl_init_channel_map()
438 static void iwl_init_vht_hw_capab(struct iwl_trans *trans, in iwl_init_vht_hw_capab() argument
443 const struct iwl_rf_cfg *cfg = trans->cfg; in iwl_init_vht_hw_capab()
456 if (!trans->cfg->ht_params.stbc) in iwl_init_vht_hw_capab()
474 if (trans->cfg->ht_params.stbc && num_tx_ants > 1) in iwl_init_vht_hw_capab()
487 if (trans->mac_cfg->mq_rx_supported && !fips_enabled) in iwl_init_vht_hw_capab()
494 if (trans->mac_cfg->mq_rx_supported && !fips_enabled) in iwl_init_vht_hw_capab()
792 static void iwl_init_he_6ghz_capa(struct iwl_trans *trans, in iwl_init_he_6ghz_capa() argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/
H A Dtrans.c19 #include "iwl-trans.h"
41 static void iwl_dump_host_monitor_block(struct iwl_trans *trans, in iwl_dump_host_monitor_block() argument
46 IWL_ERR(trans, "Host monitor block 0x%x vector 0x%x\n", block, vec); in iwl_dump_host_monitor_block()
47 iwl_write32(trans, CSR_MONITOR_CFG_REG, (block << 8) | vec); in iwl_dump_host_monitor_block()
49 IWL_ERR(trans, " value [iter %d]: 0x%08x\n", in iwl_dump_host_monitor_block()
50 i, iwl_read32(trans, CSR_MONITOR_STATUS_REG)); in iwl_dump_host_monitor_block()
53 static void iwl_pcie_dump_host_monitor(struct iwl_trans *trans) in iwl_pcie_dump_host_monitor() argument
55 switch (trans->mac_cfg->device_family) { in iwl_pcie_dump_host_monitor()
58 IWL_ERR(trans, "CSR_RESET = 0x%x\n", in iwl_pcie_dump_host_monitor()
59 iwl_read32(trans, CSR_RESET)); in iwl_pcie_dump_host_monitor()
[all …]
H A Dtx.c54 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
60 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
68 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument
73 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
80 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument
94 if (!trans->mac_cfg->base->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr()
95 txq_id != trans->conf.cmd_queue && in iwl_pcie_txq_inc_wr_ptr()
96 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr()
102 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr()
105 IWL_DEBUG_INFO(trans, "Tx queue %d requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_txq_inc_wr_ptr()
[all …]
H A Drx.c145 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument
147 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_rx_stop()
149 iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_AX210, 0); in iwl_pcie_rx_stop()
150 return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_AX210, in iwl_pcie_rx_stop()
152 } else if (trans->mac_cfg->mq_rx_supported) { in iwl_pcie_rx_stop()
153 iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); in iwl_pcie_rx_stop()
154 return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, in iwl_pcie_rx_stop()
157 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop()
158 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop()
167 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_rxq_inc_wr_ptr() argument
[all …]
H A Dtx-gen2.c18 static struct page *get_workaround_page(struct iwl_trans *trans, in get_workaround_page() argument
26 page_ptr = (void *)((u8 *)skb->cb + trans->conf.cb_data_offs); in get_workaround_page()
35 phys = dma_map_page_attrs(trans->dev, ret, 0, PAGE_SIZE, in get_workaround_page()
37 if (unlikely(dma_mapping_error(trans->dev, phys))) { in get_workaround_page()
59 static int iwl_txq_gen2_set_tb_with_wa(struct iwl_trans *trans, in iwl_txq_gen2_set_tb_with_wa() argument
70 if (unlikely(dma_mapping_error(trans->dev, phys))) in iwl_txq_gen2_set_tb_with_wa()
74 ret = iwl_txq_gen2_set_tb(trans, tfd, phys, len); in iwl_txq_gen2_set_tb_with_wa()
100 page = get_workaround_page(trans, skb); in iwl_txq_gen2_set_tb_with_wa()
119 phys = dma_map_single(trans->dev, page_address(page), len, in iwl_txq_gen2_set_tb_with_wa()
121 if (unlikely(dma_mapping_error(trans->dev, phys))) in iwl_txq_gen2_set_tb_with_wa()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dctxt-info-v2.c6 #include "iwl-trans.h"
33 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable() argument
41 if (!iwl_trans_dbg_ini_valid(trans)) { in iwl_pcie_ctxt_info_dbg_enable()
42 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_ctxt_info_dbg_enable()
44 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_dbg_enable()
49 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
59 fw_mon_cfg = &trans->dbg.fw_mon_cfg[alloc_id]; in iwl_pcie_ctxt_info_dbg_enable()
64 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
70 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
75 if (trans->dbg.fw_mon_ini[alloc_id].num_frags) { in iwl_pcie_ctxt_info_dbg_enable()
[all …]
H A Dctxt-info.c6 #include "iwl-trans.h"
12 static void *_iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in _iwl_pcie_ctxt_info_dma_alloc_coherent() argument
23 result = dma_alloc_coherent(trans->dev, size, phys, GFP_KERNEL); in _iwl_pcie_ctxt_info_dma_alloc_coherent()
32 result = _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, in _iwl_pcie_ctxt_info_dma_alloc_coherent()
35 dma_free_coherent(trans->dev, size, old, oldphys); in _iwl_pcie_ctxt_info_dma_alloc_coherent()
41 void *iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dma_alloc_coherent() argument
45 return _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, phys, 0); in iwl_pcie_ctxt_info_dma_alloc_coherent()
48 int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, in iwl_pcie_ctxt_info_alloc_dma() argument
52 dram->block = iwl_pcie_ctxt_info_dma_alloc_coherent(trans, len, in iwl_pcie_ctxt_info_alloc_dma()
63 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free_paging() argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.c26 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() local
29 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn()
36 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()
59 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_pnvm_handle_section()
69 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
77 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
84 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
96 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
100 if (mac_type == CSR_HW_REV_TYPE(trans->info.hw_rev) && in iwl_pnvm_handle_section()
[all …]
H A Ddbg.c39 if (!iwl_trans_grab_nic_access(fwrt->trans)) in iwl_read_radio_regs()
49 iwl_write_prph_no_grab(fwrt->trans, RSP_RADIO_CMD, rd_cmd); in iwl_read_radio_regs()
50 *pos = (u8)iwl_read_prph_no_grab(fwrt->trans, RSP_RADIO_RDDAT); in iwl_read_radio_regs()
57 iwl_trans_release_nic_access(fwrt->trans); in iwl_read_radio_regs()
83 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
86 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
89 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
92 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
95 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf()
99 iwl_trans_write_prph(fwrt->trans, RXF_SET_FENCE_MODE + offset, 0x1); in iwl_fwrt_dump_rxf()
[all …]
/linux/drivers/net/ipa/
H A Dgsi_trans.c219 static void gsi_trans_map(struct gsi_trans *trans, u32 index) in gsi_trans_map() argument
221 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_map()
224 index += trans->used_count - 1; in gsi_trans_map()
227 channel->trans_info.map[index % channel->tre_ring.count] = trans; in gsi_trans_map()
250 return &trans_info->trans[trans_id %= channel->tre_count]; in gsi_channel_trans_complete()
254 static void gsi_trans_move_committed(struct gsi_trans *trans) in gsi_trans_move_committed() argument
256 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_committed()
264 static void gsi_trans_move_pending(struct gsi_trans *trans) in gsi_trans_move_pending() argument
266 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_pending()
268 u16 trans_index = trans - &trans_info->trans[0]; in gsi_trans_move_pending()
[all …]
/linux/net/rds/
H A Dtransport.c50 void rds_trans_register(struct rds_transport *trans) in rds_trans_register() argument
52 BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); in rds_trans_register()
56 if (transports[trans->t_type]) in rds_trans_register()
58 trans->t_type); in rds_trans_register()
60 transports[trans->t_type] = trans; in rds_trans_register()
61 printk(KERN_INFO "Registered RDS/%s transport\n", trans->t_name); in rds_trans_register()
68 void rds_trans_unregister(struct rds_transport *trans) in rds_trans_unregister() argument
72 transports[trans->t_type] = NULL; in rds_trans_unregister()
73 printk(KERN_INFO "Unregistered RDS/%s transport\n", trans->t_name); in rds_trans_unregister()
79 void rds_trans_put(struct rds_transport *trans) in rds_trans_put() argument
[all …]
/linux/fs/btrfs/
H A Dtransaction.c50 * | New trans handles can be attached to transaction N by calling all
54 * | Call btrfs_commit_transaction() on any trans handle attached to
68 * | - Wait for all other trans handle holders to release.
79 * | Caller is chosen to commit transaction N, and all other trans handle
179 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots() argument
181 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots()
182 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots()
195 fs_info->last_reloc_trans = trans->transid; in switch_commit_roots()
213 btrfs_free_log(trans, root); in switch_commit_roots()
222 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument
[all …]
H A Dfree-space-tree.c20 static int __add_block_group_free_space(struct btrfs_trans_handle *trans,
68 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info() argument
82 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
96 struct btrfs_trans_handle *trans, in btrfs_search_free_space_info() argument
109 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in btrfs_search_free_space_info()
127 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot() argument
134 ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); in btrfs_search_prev_slot()
197 int btrfs_convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in btrfs_convert_free_space_to_bitmaps() argument
201 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_convert_free_space_to_bitmaps()
228 ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); in btrfs_convert_free_space_to_bitmaps()
[all …]
H A Drelocation.c406 struct btrfs_trans_handle *trans, in build_backref_tree() argument
438 ret = btrfs_backref_add_tree_node(trans, cache, path, iter, in build_backref_tree()
583 static struct btrfs_root *create_reloc_root(struct btrfs_trans_handle *trans, in create_reloc_root() argument
623 ret = btrfs_copy_root(trans, root, root->commit_root, &eb, in create_reloc_root()
646 ret = btrfs_copy_root(trans, root, root->node, &eb, in create_reloc_root()
660 btrfs_set_root_generation(root_item, trans->transid); in create_reloc_root()
672 ret = btrfs_insert_root(trans, fs_info->tree_root, in create_reloc_root()
683 btrfs_set_root_last_trans(reloc_root, trans->transid); in create_reloc_root()
687 btrfs_abort_transaction(trans, ret); in create_reloc_root()
698 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, in btrfs_init_reloc_root() argument
[all …]
H A Duuid-tree.c78 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
81 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_uuid_tree_add()
104 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
116 btrfs_extend_item(trans, path, sizeof(subid_le)); in btrfs_uuid_tree_add()
133 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
136 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_uuid_tree_remove()
158 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
191 return btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
197 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_remove()
243 struct btrfs_trans_handle *trans; in btrfs_uuid_iter_rem() local
[all …]
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sriov_common.c165 wq = create_singlethread_workqueue("bc-trans"); in qlcnic_sriov_init()
169 "Cannot create bc-trans workqueue\n"); in qlcnic_sriov_init()
240 struct qlcnic_bc_trans *trans; in qlcnic_sriov_cleanup_list() local
247 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
249 list_del(&trans->list); in qlcnic_sriov_cleanup_list()
251 cmd.req.arg = (u32 *)trans->req_pay; in qlcnic_sriov_cleanup_list()
252 cmd.rsp.arg = (u32 *)trans->rsp_pay; in qlcnic_sriov_cleanup_list()
254 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_obj(struct qlcnic_bc_trans, GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans()
[all …]
/linux/fs/btrfs/tests/
H A Ddelayed-refs-tests.c43 static void delete_delayed_ref_head(struct btrfs_trans_handle *trans, in delete_delayed_ref_head() argument
46 struct btrfs_fs_info *fs_info = trans->fs_info; in delete_delayed_ref_head()
48 &trans->transaction->delayed_refs; in delete_delayed_ref_head()
166 static int simple_test(struct btrfs_trans_handle *trans, in simple_test() argument
171 &trans->transaction->delayed_refs; in simple_test()
172 struct btrfs_fs_info *fs_info = trans->fs_info; in simple_test()
193 ret = btrfs_add_delayed_tree_ref(trans, &ref, NULL); in simple_test()
195 ret = btrfs_add_delayed_data_ref(trans, &ref, 0); in simple_test()
228 btrfs_destroy_delayed_refs(trans->transaction); in simple_test()
236 static int simple_tests(struct btrfs_trans_handle *trans) in simple_tests() argument
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_audio_regs.h85 #define HSW_AUD_CFG(trans) _MMIO_TRANS(trans, _HSW_AUD_CONFIG_A, _HSW_AUD_CONFIG_B) argument
89 #define HSW_AUD_MISC_CTRL(trans) _MMIO_TRANS(trans, _HSW_AUD_MISC_CTRL_A, _HSW_AUD_MISC_CTRL_B) argument
93 #define HSW_AUD_M_CTS_ENABLE(trans) _MMIO_TRANS(trans, _HSW_AUD_M_CTS_ENABLE_A, _HSW_AUD_M_CTS_ENAB… argument
100 #define HSW_AUD_DIP_ELD_CTRL(trans) _MMIO_TRANS(trans, _HSW_AUD_DIP_ELD_CTRL_ST_A, _HSW_AUD_DIP_ELD… argument
105 #define AUD_DIG_CNVT(trans) _MMIO_TRANS(trans, _HSW_AUD_DIG_CNVT_1, _HSW_AUD_DIG_CNVT_2) argument
110 #define HSW_AUD_EDID_DATA(trans) _MMIO_TRANS(trans, _HSW_AUD_EDID_DATA_A, _HSW_AUD_EDID_DATA_B) argument
114 #define AUDIO_INACTIVE(trans) ((1 << 3) << ((trans) * 4)) argument
115 #define AUDIO_OUTPUT_ENABLE(trans) ((1 << 2) << ((trans) * 4)) argument
116 #define AUDIO_CP_READY(trans) ((1 << 1) << ((trans) * 4)) argument
117 #define AUDIO_ELD_VALID(trans) ((1 << 0) << ((trans) * 4)) argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Deeprom.c668 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore() argument
675 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
679 ret = iwl_poll_bits(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
683 IWL_DEBUG_EEPROM(trans->dev, in iwl_eeprom_acquire_semaphore()
693 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) in iwl_eeprom_release_semaphore() argument
695 iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_release_semaphore()
699 static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) in iwl_eeprom_verify_signature() argument
701 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature()
703 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
708 IWL_ERR(trans, "EEPROM with bad signature: 0x%08x\n", in iwl_eeprom_verify_signature()
[all …]
/linux/net/netfilter/
H A Dnf_tables_api.c181 struct nft_trans *trans; in nft_trans_alloc() local
183 trans = kzalloc(size, GFP_KERNEL); in nft_trans_alloc()
184 if (trans == NULL) in nft_trans_alloc()
187 INIT_LIST_HEAD(&trans->list); in nft_trans_alloc()
188 trans->msg_type = msg_type; in nft_trans_alloc()
190 trans->net = ctx->net; in nft_trans_alloc()
191 trans->table = ctx->table; in nft_trans_alloc()
192 trans->seq = ctx->seq; in nft_trans_alloc()
193 trans->flags = ctx->flags; in nft_trans_alloc()
194 trans->report = ctx->report; in nft_trans_alloc()
[all …]
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A 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 …]
/linux/drivers/hid/
H A Dhid-icade.c98 * const struct icade_key_translation *trans;
101 * for (trans = icade_keys; trans->from; trans++) {
102 * int usage = usage_for_key (trans->from);
113 * for (trans = icade_keys; trans->from; trans++) {
115 * usage_for_key (trans->from), trans->to, trans->press);
167 const struct icade_key *trans; in icade_event() local
177 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_event()
179 if (!trans) in icade_event()
183 trans->to, trans->press); in icade_event()
192 const struct icade_key *trans; in icade_input_mapping() local
[all …]

12345678910>>...15