Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/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 …]
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 …]
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 …]
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/rds/
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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/fs/btrfs/
Dtransaction.c153 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots() argument
155 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots()
156 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots()
179 btrfs_free_log(trans, root); in switch_commit_roots()
226 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument
230 atomic_inc(&trans->num_extwriters); in extwriter_counter_inc()
233 static inline void extwriter_counter_dec(struct btrfs_transaction *trans, in extwriter_counter_dec() argument
237 atomic_dec(&trans->num_extwriters); in extwriter_counter_dec()
240 static inline void extwriter_counter_init(struct btrfs_transaction *trans, in extwriter_counter_init() argument
243 atomic_set(&trans->num_extwriters, ((type & TRANS_EXTWRITERS) ? 1 : 0)); in extwriter_counter_init()
[all …]
Dtree-log.h51 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit() argument
53 WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid); in btrfs_set_log_full_commit()
56 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit() argument
58 return READ_ONCE(trans->fs_info->last_trans_log_full_commit) == in btrfs_need_log_full_commit()
59 trans->transid; in btrfs_need_log_full_commit()
62 int btrfs_sync_log(struct btrfs_trans_handle *trans,
64 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
65 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
68 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
71 int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
[all …]
Dfree-space-tree.c15 static int __add_block_group_free_space(struct btrfs_trans_handle *trans,
50 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info() argument
54 struct btrfs_root *root = trans->fs_info->free_space_root; in add_new_free_space_info()
64 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
83 struct btrfs_trans_handle *trans, in search_free_space_info() argument
96 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info()
114 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot() argument
121 ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); in btrfs_search_prev_slot()
185 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps() argument
189 struct btrfs_fs_info *fs_info = trans->fs_info; in convert_free_space_to_bitmaps()
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_attr_inactive.c83 struct xfs_trans **trans, in xfs_attr3_leaf_inactive() argument
120 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive()
131 struct xfs_trans **trans, in xfs_attr3_node_inactive() argument
149 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive()
156 xfs_trans_brelse(*trans, bp); in xfs_attr3_node_inactive()
160 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive()
174 error = xfs_da3_node_read(*trans, dp, child_fsb, &child_bp, in xfs_attr3_node_inactive()
189 error = xfs_attr3_node_inactive(trans, dp, child_bp, in xfs_attr3_node_inactive()
194 error = xfs_attr3_leaf_inactive(trans, dp, child_bp); in xfs_attr3_node_inactive()
198 xfs_trans_brelse(*trans, child_bp); in xfs_attr3_node_inactive()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dfree-space-tree-tests.c19 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()
106 static int check_free_space_extents(struct btrfs_trans_handle *trans, in check_free_space_extents() argument
117 info = search_free_space_info(trans, cache, path, 0); in check_free_space_extents()
126 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents()
133 ret = convert_free_space_to_extents(trans, cache, path); in check_free_space_extents()
139 ret = convert_free_space_to_bitmaps(trans, cache, path); in check_free_space_extents()
145 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents()
149 static int test_empty_block_group(struct btrfs_trans_handle *trans, in test_empty_block_group() argument
159 return check_free_space_extents(trans, fs_info, cache, path, in test_empty_block_group()
[all …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...14