| /linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
| H A D | ctxt-info-v2.c | 6 #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 D | ctxt-info.c | 6 #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/pcie/gen1_2/ |
| H A D | tx.c | 54 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 D | rx.c | 145 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 D | tx-gen2.c | 18 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/ipa/ |
| H A D | gsi_trans.c | 219 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 D | transport.c | 50 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 D | free-space-tree.c | 20 static int __add_block_group_free_space(struct btrfs_trans_handle *trans, 69 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info() argument 83 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info() 98 struct btrfs_trans_handle *trans, in btrfs_search_free_space_info() argument 111 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in btrfs_search_free_space_info() 129 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot() argument 136 ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); in btrfs_search_prev_slot() 201 int btrfs_convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in btrfs_convert_free_space_to_bitmaps() argument 205 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_convert_free_space_to_bitmaps() 223 btrfs_abort_transaction(trans, ret); in btrfs_convert_free_space_to_bitmaps() [all …]
|
| H A D | transaction.c | 48 * | New trans handles can be attached to transaction N by calling all 52 * | Call btrfs_commit_transaction() on any trans handle attached to 66 * | - Wait for all other trans handle holders to release. 77 * | Caller is chosen to commit transaction N, and all other trans handle 178 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots() argument 180 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots() 181 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 193 fs_info->last_reloc_trans = trans->transid; in switch_commit_roots() 211 btrfs_free_log(trans, root); in switch_commit_roots() 220 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument [all …]
|
| H A D | tree-log.h | 62 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit() argument 64 WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid); in btrfs_set_log_full_commit() 67 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit() argument 69 return READ_ONCE(trans->fs_info->last_trans_log_full_commit) == in btrfs_need_log_full_commit() 70 trans->transid; in btrfs_need_log_full_commit() 73 int btrfs_sync_log(struct btrfs_trans_handle *trans, 75 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 76 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans, 79 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, 82 void btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, [all …]
|
| H A D | uuid-tree.c | 86 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument 89 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_uuid_tree_add() 116 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add() 128 btrfs_extend_item(trans, path, sizeof(subid_le)); in btrfs_uuid_tree_add() 148 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument 151 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_uuid_tree_remove() 177 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove() 215 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove() 223 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_remove() 233 struct btrfs_trans_handle *trans; in btrfs_uuid_iter_rem() local [all …]
|
| H A D | extent-tree.h | 104 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, u64 min_bytes); 109 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, 113 int btrfs_pin_extent(struct btrfs_trans_handle *trans, u64 bytenr, u64 num, 115 int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans, 120 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, 128 int btrfs_free_tree_block(struct btrfs_trans_handle *trans, 132 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans, 136 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, 142 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, 144 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-dbg-tlv.c | 7 #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 D | iwl-scd.h | 8 #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 …]
|
| /linux/fs/btrfs/tests/ |
| H A D | free-space-tree-tests.c | 20 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents() argument 35 info = btrfs_search_free_space_info(trans, cache, path, 0); in __check_free_space_extents() 107 static int check_free_space_extents(struct btrfs_trans_handle *trans, in check_free_space_extents() argument 118 info = btrfs_search_free_space_info(trans, cache, path, 0); in check_free_space_extents() 127 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 134 ret = btrfs_convert_free_space_to_extents(trans, cache, path); in check_free_space_extents() 140 ret = btrfs_convert_free_space_to_bitmaps(trans, cache, path); in check_free_space_extents() 146 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 150 static int test_empty_block_group(struct btrfs_trans_handle *trans, in test_empty_block_group() argument 160 return check_free_space_extents(trans, fs_info, cache, path, in test_empty_block_group() [all …]
|
| H A D | delayed-refs-tests.c | 43 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 …]
|
| H A D | qgroup-tests.c | 19 struct btrfs_trans_handle trans; in insert_normal_tree_ref() local 29 btrfs_init_dummy_trans(&trans, NULL); in insert_normal_tree_ref() 41 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref() 71 struct btrfs_trans_handle trans; in add_tree_ref() local 78 btrfs_init_dummy_trans(&trans, NULL); in add_tree_ref() 90 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref() 112 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref() 122 struct btrfs_trans_handle trans; in remove_extent_item() local 127 btrfs_init_dummy_trans(&trans, NULL); in remove_extent_item() 139 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_sriov_common.c | 166 wq = create_singlethread_workqueue("bc-trans"); in qlcnic_sriov_init() 170 "Cannot create bc-trans workqueue\n"); in qlcnic_sriov_init() 241 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() 700 static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) in qlcnic_sriov_alloc_bc_trans() argument 702 *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_attr_inactive.c | 84 struct xfs_trans **trans, in xfs_attr3_leaf_inactive() argument 121 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive() 132 struct xfs_trans **trans, in xfs_attr3_node_inactive() argument 150 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive() 158 xfs_trans_brelse(*trans, bp); in xfs_attr3_node_inactive() 162 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive() 177 error = xfs_da3_node_read(*trans, dp, child_fsb, &child_bp, in xfs_attr3_node_inactive() 192 error = xfs_attr3_node_inactive(trans, dp, child_bp, in xfs_attr3_node_inactive() 197 error = xfs_attr3_leaf_inactive(trans, dp, child_bp); in xfs_attr3_node_inactive() 201 xfs_trans_brelse(*trans, child_bp); in xfs_attr3_node_inactive() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | uefi.c | 60 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len) in iwl_uefi_get_pnvm() argument 70 IWL_DEBUG_FW(trans, in iwl_uefi_get_pnvm() 76 IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %lu\n", package_size); in iwl_uefi_get_pnvm() 83 iwl_uefi_get_verified_variable_guid(struct iwl_trans *trans, in iwl_uefi_get_verified_variable_guid() argument 96 IWL_DEBUG_RADIO(trans, in iwl_uefi_get_verified_variable_guid() 103 IWL_DEBUG_RADIO(trans, in iwl_uefi_get_verified_variable_guid() 110 IWL_DEBUG_RADIO(trans, "%s from UEFI with size %lu\n", var_name, in iwl_uefi_get_verified_variable_guid() 119 iwl_uefi_get_verified_variable(struct iwl_trans *trans, in iwl_uefi_get_verified_variable() argument 125 return iwl_uefi_get_verified_variable_guid(trans, &IWL_EFI_WIFI_GUID, in iwl_uefi_get_verified_variable() 130 int iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data, in iwl_uefi_handle_tlv_mem_desc() argument [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_audio_regs.h | 85 #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/net/netfilter/ |
| H A D | nf_tables_api.c | 157 struct nft_trans *trans; in nft_trans_alloc() local 159 trans = kzalloc(size, GFP_KERNEL); in nft_trans_alloc() 160 if (trans == NULL) in nft_trans_alloc() 163 INIT_LIST_HEAD(&trans->list); in nft_trans_alloc() 164 trans->msg_type = msg_type; in nft_trans_alloc() 166 trans->net = ctx->net; in nft_trans_alloc() 167 trans->table = ctx->table; in nft_trans_alloc() 168 trans->seq = ctx->seq; in nft_trans_alloc() 169 trans->flags = ctx->flags; in nft_trans_alloc() 170 trans->report = ctx->report; in nft_trans_alloc() [all …]
|
| H A D | nf_tables_offload.c | 517 struct nft_trans *trans) in nft_flow_rule_offload_abort() 522 list_for_each_entry_continue_reverse(trans, &nft_net->commit_list, list) { in nft_flow_rule_offload_abort() 523 if (trans->table->family != NFPROTO_NETDEV) in nft_flow_rule_offload_abort() 526 switch (trans->msg_type) { in nft_flow_rule_offload_abort() 528 if (!(nft_trans_chain(trans)->flags & NFT_CHAIN_HW_OFFLOAD) || in nft_flow_rule_offload_abort() 529 nft_trans_chain_update(trans)) in nft_flow_rule_offload_abort() 532 err = nft_flow_offload_chain(nft_trans_chain(trans), NULL, in nft_flow_rule_offload_abort() 536 if (!(nft_trans_chain(trans)->flags & NFT_CHAIN_HW_OFFLOAD)) in nft_flow_rule_offload_abort() 539 err = nft_flow_offload_chain(nft_trans_chain(trans), NULL, in nft_flow_rule_offload_abort() 543 if (!(nft_trans_rule_chain(trans) in nft_flow_rule_offload_abort() 510 nft_flow_rule_offload_abort(struct net * net,struct nft_trans * trans) nft_flow_rule_offload_abort() argument 562 struct nft_trans *trans; nft_flow_rule_offload_commit() local [all...] |
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | trans.c | 18 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 D | hid-icade.c | 98 * 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 …]
|