/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | trans-gen2.c | 60 static int iwl_pcie_gen2_force_power_gating(struct iwl_trans *trans) in iwl_pcie_gen2_force_power_gating() argument 62 iwl_set_bits_prph(trans, HPM_HIPM_GEN_CFG, in iwl_pcie_gen2_force_power_gating() 65 iwl_set_bits_prph(trans, HPM_HIPM_GEN_CFG, in iwl_pcie_gen2_force_power_gating() 69 iwl_clear_bits_prph(trans, HPM_HIPM_GEN_CFG, in iwl_pcie_gen2_force_power_gating() 72 iwl_trans_sw_reset(trans); in iwl_pcie_gen2_force_power_gating() 73 iwl_clear_bit(trans, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); in iwl_pcie_gen2_force_power_gating() 83 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument 87 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init() 98 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init() 102 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init() [all …]
|
D | trans.c | 89 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs() argument 95 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs() 119 IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); in iwl_trans_pcie_dump_regs() 123 IWL_ERR(trans, "iwlwifi device config registers:\n"); in iwl_trans_pcie_dump_regs() 129 IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); in iwl_trans_pcie_dump_regs() 131 *ptr = iwl_read32(trans, i); in iwl_trans_pcie_dump_regs() 136 IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); in iwl_trans_pcie_dump_regs() 151 IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", in iwl_trans_pcie_dump_regs() 164 IWL_ERR(trans, "iwlwifi root port (%s) AER cap structure:\n", in iwl_trans_pcie_dump_regs() 177 IWL_ERR(trans, "Read failed at 0x%X\n", i); in iwl_trans_pcie_dump_regs() [all …]
|
D | rx.c | 201 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_22560) { 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 …]
|
D | internal.h | 254 static inline int iwl_queue_inc_wrap(struct iwl_trans *trans, int index) in iwl_queue_inc_wrap() argument 257 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_queue_inc_wrap() 264 static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument 267 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { in iwl_get_closed_rb_stts() 282 static inline int iwl_queue_dec_wrap(struct iwl_trans *trans, int index) in iwl_queue_dec_wrap() argument 285 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_queue_dec_wrap() 529 struct iwl_trans *trans; member 610 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument 612 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS() 615 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, in iwl_pcie_clear_irq() argument [all …]
|
D | tx.c | 105 int iwl_queue_space(struct iwl_trans *trans, const struct iwl_txq *q) in iwl_queue_space() argument 116 if (q->n_window < trans->trans_cfg->base_params->max_tfd_queue_size) in iwl_queue_space() 119 max = trans->trans_cfg->base_params->max_tfd_queue_size - 1; in iwl_queue_space() 126 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_queue_space() 160 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument 166 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr() 174 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument 179 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr() 187 struct iwl_trans *trans = iwl_trans_pcie_get_trans(trans_pcie); in iwl_pcie_txq_stuck_timer() local 197 iwl_trans_pcie_log_scd_error(trans, txq); in iwl_pcie_txq_stuck_timer() [all …]
|
D | tx-gen2.c | 65 void iwl_pcie_gen2_tx_stop(struct iwl_trans *trans) in iwl_pcie_gen2_tx_stop() argument 67 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_gen2_tx_stop() 82 iwl_pcie_gen2_txq_unmap(trans, txq_id); in iwl_pcie_gen2_tx_stop() 94 struct iwl_trans *trans = iwl_trans_pcie_get_trans(trans_pcie); in iwl_pcie_gen2_update_byte_tbl() local 116 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { in iwl_pcie_gen2_update_byte_tbl() 135 void iwl_pcie_gen2_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_gen2_txq_inc_wr_ptr() argument 140 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq->id, txq->write_ptr); in iwl_pcie_gen2_txq_inc_wr_ptr() 146 iwl_write32(trans, HBUS_TARG_WRPTR, txq->write_ptr | (txq->id << 16)); in iwl_pcie_gen2_txq_inc_wr_ptr() 149 static u8 iwl_pcie_gen2_get_num_tbs(struct iwl_trans *trans, in iwl_pcie_gen2_get_num_tbs() argument 155 static void iwl_pcie_gen2_tfd_unmap(struct iwl_trans *trans, in iwl_pcie_gen2_tfd_unmap() argument [all …]
|
D | ctxt-info-gen3.c | 58 int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, in iwl_pcie_ctxt_info_gen3_init() argument 61 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_ctxt_info_gen3_init() 70 trans->cfg->min_txq_size); in iwl_pcie_ctxt_info_gen3_init() 73 prph_scratch = dma_alloc_coherent(trans->dev, sizeof(*prph_scratch), in iwl_pcie_ctxt_info_gen3_init() 83 cpu_to_le16((u16)iwl_read32(trans, CSR_HW_REV)); in iwl_pcie_ctxt_info_gen3_init() 99 if (!iwl_trans_dbg_ini_valid(trans)) in iwl_pcie_ctxt_info_gen3_init() 100 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_gen3_init() 101 if (trans->dbg.num_blocks) { in iwl_pcie_ctxt_info_gen3_init() 103 cpu_to_le64(trans->dbg.fw_mon[0].physical); in iwl_pcie_ctxt_info_gen3_init() 105 cpu_to_le32(trans->dbg.fw_mon[0].size); in iwl_pcie_ctxt_info_gen3_init() [all …]
|
D | ctxt-info.c | 60 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free_paging() argument 62 struct iwl_self_init_dram *dram = &trans->init_dram; in iwl_pcie_ctxt_info_free_paging() 72 dma_free_coherent(trans->dev, dram->paging[i].size, in iwl_pcie_ctxt_info_free_paging() 81 int iwl_pcie_init_fw_sec(struct iwl_trans *trans, in iwl_pcie_init_fw_sec() argument 85 struct iwl_self_init_dram *dram = &trans->init_dram; in iwl_pcie_init_fw_sec() 91 iwl_pcie_ctxt_info_free_paging(trans); in iwl_pcie_init_fw_sec() 108 ret = iwl_pcie_ctxt_info_alloc_dma(trans, &fw->sec[i], in iwl_pcie_init_fw_sec() 120 ret = iwl_pcie_ctxt_info_alloc_dma(trans, in iwl_pcie_init_fw_sec() 144 ret = iwl_pcie_ctxt_info_alloc_dma(trans, &fw->sec[fw_idx], in iwl_pcie_init_fw_sec() 157 int iwl_pcie_ctxt_info_init(struct iwl_trans *trans, in iwl_pcie_ctxt_info_init() argument [all …]
|
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-trans.h | 535 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw, 537 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr); 538 void (*stop_device)(struct iwl_trans *trans); 540 int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset); 541 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status, 544 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd); 546 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb, 548 void (*reclaim)(struct iwl_trans *trans, int queue, int ssn, 551 void (*set_q_ptrs)(struct iwl_trans *trans, int queue, int ptr); 553 bool (*txq_enable)(struct iwl_trans *trans, int queue, u16 ssn, [all …]
|
D | iwl-eeprom-read.c | 94 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 …]
|
D | iwl-io.c | 103 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument 105 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8() 106 iwl_trans_write8(trans, ofs, val); in iwl_write8() 110 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument 112 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32() 113 iwl_trans_write32(trans, ofs, val); in iwl_write32() 117 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument 119 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64() 120 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64() 121 iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); in iwl_write64() [all …]
|
D | iwl-io.h | 64 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 …]
|
D | iwl-trans.c | 71 struct iwl_trans *trans; in iwl_trans_alloc() local 76 trans = devm_kzalloc(dev, sizeof(*trans) + priv_size, GFP_KERNEL); in iwl_trans_alloc() 77 if (!trans) in iwl_trans_alloc() 81 lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", in iwl_trans_alloc() 85 trans->dev = dev; in iwl_trans_alloc() 86 trans->ops = ops; in iwl_trans_alloc() 87 trans->num_rx_queues = 1; in iwl_trans_alloc() 89 snprintf(trans->dev_cmd_pool_name, sizeof(trans->dev_cmd_pool_name), in iwl_trans_alloc() 90 "iwl_cmd_pool:%s", dev_name(trans->dev)); in iwl_trans_alloc() 91 trans->dev_cmd_pool = in iwl_trans_alloc() [all …]
|
D | iwl-scd.h | 67 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 …]
|
/Linux-v5.4/net/rds/ |
D | transport.c | 44 void rds_trans_register(struct rds_transport *trans) in rds_trans_register() argument 46 BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); in rds_trans_register() 50 if (transports[trans->t_type]) in rds_trans_register() 52 trans->t_type); in rds_trans_register() 54 transports[trans->t_type] = trans; in rds_trans_register() 55 printk(KERN_INFO "Registered RDS/%s transport\n", trans->t_name); in rds_trans_register() 62 void rds_trans_unregister(struct rds_transport *trans) in rds_trans_unregister() argument 66 transports[trans->t_type] = NULL; in rds_trans_unregister() 67 printk(KERN_INFO "Unregistered RDS/%s transport\n", trans->t_name); in rds_trans_unregister() 73 void rds_trans_put(struct rds_transport *trans) in rds_trans_put() argument [all …]
|
/Linux-v5.4/fs/btrfs/ |
D | transaction.c | 80 static noinline void switch_commit_roots(struct btrfs_transaction *trans) in switch_commit_roots() argument 82 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots() 86 list_for_each_entry_safe(root, tmp, &trans->switch_commits, in switch_commit_roots() 98 spin_lock(&trans->dropped_roots_lock); in switch_commit_roots() 99 while (!list_empty(&trans->dropped_roots)) { in switch_commit_roots() 100 root = list_first_entry(&trans->dropped_roots, in switch_commit_roots() 103 spin_unlock(&trans->dropped_roots_lock); in switch_commit_roots() 105 spin_lock(&trans->dropped_roots_lock); in switch_commit_roots() 107 spin_unlock(&trans->dropped_roots_lock); in switch_commit_roots() 111 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument [all …]
|
D | tree-log.h | 33 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit() argument 35 WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid); in btrfs_set_log_full_commit() 38 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit() argument 40 return READ_ONCE(trans->fs_info->last_trans_log_full_commit) == in btrfs_need_log_full_commit() 41 trans->transid; in btrfs_need_log_full_commit() 44 int btrfs_sync_log(struct btrfs_trans_handle *trans, 46 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 47 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans, 50 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, 55 int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, [all …]
|
D | free-space-tree.c | 15 static int __add_block_group_free_space(struct btrfs_trans_handle *trans, 47 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info() argument 51 struct btrfs_root *root = trans->fs_info->free_space_root; in add_new_free_space_info() 61 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info() 80 struct btrfs_trans_handle *trans, in search_free_space_info() argument 93 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info() 111 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot() argument 118 ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); in btrfs_search_prev_slot() 182 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps() argument 186 struct btrfs_fs_info *fs_info = trans->fs_info; in convert_free_space_to_bitmaps() [all …]
|
/Linux-v5.4/fs/xfs/ |
D | xfs_attr_inactive.c | 32 struct xfs_trans **trans, in xfs_attr3_leaf_freextent() argument 75 bp = xfs_trans_get_buf(*trans, in xfs_attr3_leaf_freextent() 80 xfs_trans_binval(*trans, bp); in xfs_attr3_leaf_freextent() 84 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_leaf_freextent() 104 struct xfs_trans **trans, in xfs_attr3_leaf_inactive() argument 142 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive() 169 xfs_trans_brelse(*trans, bp); /* unlock for trans. in freextent() */ in xfs_attr3_leaf_inactive() 176 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive() 193 struct xfs_trans **trans, in xfs_attr3_node_inactive() argument 211 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive() [all …]
|
/Linux-v5.4/fs/btrfs/tests/ |
D | free-space-tree-tests.c | 19 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents() argument 34 info = search_free_space_info(trans, cache, path, 0); in __check_free_space_extents() 108 static int check_free_space_extents(struct btrfs_trans_handle *trans, in check_free_space_extents() argument 119 info = search_free_space_info(trans, cache, path, 0); in check_free_space_extents() 128 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 135 ret = convert_free_space_to_extents(trans, cache, path); in check_free_space_extents() 141 ret = convert_free_space_to_bitmaps(trans, cache, path); in check_free_space_extents() 147 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 151 static int test_empty_block_group(struct btrfs_trans_handle *trans, in test_empty_block_group() argument 161 return check_free_space_extents(trans, fs_info, cache, path, in test_empty_block_group() [all …]
|
D | qgroup-tests.c | 17 struct btrfs_trans_handle trans; in insert_normal_tree_ref() local 27 btrfs_init_dummy_trans(&trans, NULL); in insert_normal_tree_ref() 40 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref() 70 struct btrfs_trans_handle trans; in add_tree_ref() local 77 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() 140 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item() [all …]
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 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() 696 static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) in qlcnic_sriov_alloc_bc_trans() argument 698 *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans() 699 if (!*trans) in qlcnic_sriov_alloc_bc_trans() 702 init_completion(&(*trans)->resp_cmpl); in qlcnic_sriov_alloc_bc_trans() [all …]
|
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/ |
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-v5.4/drivers/hid/ |
D | hid-apple.c | 168 const struct apple_key_translation *trans; in apple_find_translation() local 171 for (trans = table; trans->from; trans++) in apple_find_translation() 172 if (trans->from == from) in apple_find_translation() 173 return trans; in apple_find_translation() 182 const struct apple_key_translation *trans, *table; in hidinput_apple_event() local 201 trans = apple_find_translation (table, usage->code); in hidinput_apple_event() 203 if (trans) { in hidinput_apple_event() 204 if (test_bit(trans->from, input->key)) in hidinput_apple_event() 205 code = trans->from; in hidinput_apple_event() 206 else if (test_bit(trans->to, input->key)) in hidinput_apple_event() [all …]
|
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/ |
D | dbg.c | 98 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 …]
|