Home
last modified time | relevance | path

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

12345678910>>...19

/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans-gen2.c6 #include "iwl-trans.h"
20 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument
24 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init()
35 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init()
39 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init()
45 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_pcie_gen2_apm_init()
48 iwl_pcie_apm_config(trans); in iwl_pcie_gen2_apm_init()
50 ret = iwl_finish_nic_init(trans, trans->trans_cfg); in iwl_pcie_gen2_apm_init()
54 set_bit(STATUS_DEVICE_ENABLED, &trans->status); in iwl_pcie_gen2_apm_init()
59 static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, bool op_mode_leave) in iwl_pcie_gen2_apm_stop() argument
[all …]
Dtrans.c19 #include "iwl-trans.h"
35 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) in iwl_trans_pcie_dump_regs() argument
41 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs()
65 IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); in iwl_trans_pcie_dump_regs()
69 IWL_ERR(trans, "iwlwifi device config registers:\n"); in iwl_trans_pcie_dump_regs()
75 IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); in iwl_trans_pcie_dump_regs()
77 *ptr = iwl_read32(trans, i); in iwl_trans_pcie_dump_regs()
82 IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); in iwl_trans_pcie_dump_regs()
97 IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", in iwl_trans_pcie_dump_regs()
110 IWL_ERR(trans, "iwlwifi root port (%s) AER cap structure:\n", in iwl_trans_pcie_dump_regs()
[all …]
Dtx.c46 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
52 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
60 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument
65 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
72 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument
86 if (!trans->trans_cfg->base_params->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr()
87 txq_id != trans->txqs.cmd.q_id && in iwl_pcie_txq_inc_wr_ptr()
88 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr()
94 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr()
97 IWL_DEBUG_INFO(trans, "Tx queue %d requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_txq_inc_wr_ptr()
[all …]
Dctxt-info-gen3.c5 #include "iwl-trans.h"
12 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable() argument
20 if (!iwl_trans_dbg_ini_valid(trans)) { in iwl_pcie_ctxt_info_dbg_enable()
21 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_ctxt_info_dbg_enable()
23 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_dbg_enable()
28 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
38 fw_mon_cfg = &trans->dbg.fw_mon_cfg[alloc_id]; in iwl_pcie_ctxt_info_dbg_enable()
43 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
49 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable()
54 if (trans->dbg.fw_mon_ini[alloc_id].num_frags) { in iwl_pcie_ctxt_info_dbg_enable()
[all …]
Drx.c144 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument
146 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_rx_stop()
148 iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_GEN3, 0); in iwl_pcie_rx_stop()
149 return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_GEN3, in iwl_pcie_rx_stop()
151 } else if (trans->trans_cfg->mq_rx_supported) { in iwl_pcie_rx_stop()
152 iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); in iwl_pcie_rx_stop()
153 return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, in iwl_pcie_rx_stop()
156 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop()
157 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop()
166 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_rxq_inc_wr_ptr() argument
[all …]
Dinternal.h20 #include "iwl-trans.h"
184 static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument
187 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts()
284 * @trans: pointer to the generic transport area
340 struct iwl_trans *trans; member
422 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument
424 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS()
427 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, int queue) in iwl_pcie_clear_irq() argument
437 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(queue)); in iwl_pcie_clear_irq()
448 * Convention: trans API functions: iwl_trans_pcie_XXX
[all …]
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 static 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-v5.15/drivers/net/wireless/intel/iwlwifi/
Diwl-io.c17 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
20 iwl_trans_write8(trans, ofs, val); in iwl_write8()
24 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
26 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
27 iwl_trans_write32(trans, ofs, val); in iwl_write32()
31 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument
33 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64()
34 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64()
35 iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); in iwl_write64()
[all …]
Diwl-io.h9 #include "iwl-trans.h"
11 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val);
12 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val);
13 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val);
14 u32 iwl_read32(struct iwl_trans *trans, u32 ofs);
16 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument
18 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit()
21 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit() argument
23 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit()
26 int iwl_poll_bit(struct iwl_trans *trans, u32 addr,
[all …]
Diwl-trans.c11 #include "iwl-trans.h"
23 struct iwl_trans *trans; in iwl_trans_alloc() local
28 trans = devm_kzalloc(dev, sizeof(*trans) + priv_size, GFP_KERNEL); in iwl_trans_alloc()
29 if (!trans) in iwl_trans_alloc()
32 trans->trans_cfg = cfg_trans; in iwl_trans_alloc()
35 lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", in iwl_trans_alloc()
39 trans->dev = dev; in iwl_trans_alloc()
40 trans->ops = ops; in iwl_trans_alloc()
41 trans->num_rx_queues = 1; in iwl_trans_alloc()
45 if (trans->trans_cfg->use_tfh) { in iwl_trans_alloc()
[all …]
Diwl-trans.h59 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON argument
112 * trans->system_pm_mode to IWL_PLAT_PM_MODE_D3.
170 #define IWL_TRANS_MAX_FRAGS(trans) ((trans)->txqs.tfd.max_tbs - 3) argument
295 * @STATUS_TRANS_GOING_IDLE: shutting down the trans, only special commands
297 * @STATUS_TRANS_IDLE: the trans is idle - general commands are not to be sent
298 * @STATUS_TRANS_DEAD: trans is dead - avoid any read/write operation
519 * of the trans debugfs
528 int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw,
530 void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr);
531 void (*stop_device)(struct iwl_trans *trans);
[all …]
Diwl-eeprom-read.c40 static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) in iwl_eeprom_acquire_semaphore() argument
47 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
51 ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_acquire_semaphore()
56 IWL_DEBUG_EEPROM(trans->dev, in iwl_eeprom_acquire_semaphore()
66 static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) in iwl_eeprom_release_semaphore() argument
68 iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_eeprom_release_semaphore()
72 static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) in iwl_eeprom_verify_signature() argument
74 u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; in iwl_eeprom_verify_signature()
76 IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); in iwl_eeprom_verify_signature()
81 IWL_ERR(trans, "EEPROM with bad signature: 0x%08x\n", in iwl_eeprom_verify_signature()
[all …]
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 …]
Diwl-dbg-tlv.c7 #include "iwl-trans.h"
94 static int iwl_dbg_tlv_alloc_debug_info(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_debug_info() argument
102 IWL_DEBUG_FW(trans, "WRT: Loading debug cfg: %s\n", in iwl_dbg_tlv_alloc_debug_info()
105 return iwl_dbg_tlv_add(tlv, &trans->dbg.debug_info_tlv_list); in iwl_dbg_tlv_alloc_debug_info()
108 static int iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_buf_alloc() argument
137 trans->dbg.fw_mon_cfg[alloc_id] = *alloc; in iwl_dbg_tlv_alloc_buf_alloc()
141 IWL_ERR(trans, in iwl_dbg_tlv_alloc_buf_alloc()
147 static int iwl_dbg_tlv_alloc_hcmd(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_hcmd() argument
162 IWL_ERR(trans, in iwl_dbg_tlv_alloc_hcmd()
168 return iwl_dbg_tlv_add(tlv, &trans->dbg.time_point[tp].hcmd_list); in iwl_dbg_tlv_alloc_hcmd()
[all …]
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c19 static void iwl_pcie_gen2_update_byte_tbl(struct iwl_trans *trans, in iwl_pcie_gen2_update_byte_tbl() argument
43 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_gen2_update_byte_tbl()
47 WARN_ON(trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
55 WARN_ON(!trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
66 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_inc_wr_ptr() argument
70 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq->id, txq->write_ptr); in iwl_txq_inc_wr_ptr()
76 iwl_write32(trans, HBUS_TARG_WRPTR, txq->write_ptr | (txq->id << 16)); in iwl_txq_inc_wr_ptr()
79 static u8 iwl_txq_gen2_get_num_tbs(struct iwl_trans *trans, in iwl_txq_gen2_get_num_tbs() argument
85 void iwl_txq_gen2_tfd_unmap(struct iwl_trans *trans, struct iwl_cmd_meta *meta, in iwl_txq_gen2_tfd_unmap() argument
91 num_tbs = iwl_txq_gen2_get_num_tbs(trans, tfd); in iwl_txq_gen2_tfd_unmap()
[all …]
Dtx.h27 void iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id);
29 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
32 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
33 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); in iwl_wake_queue()
34 iwl_op_mode_queue_not_full(trans->op_mode, txq->id); in iwl_wake_queue()
38 static inline void *iwl_txq_get_tfd(struct iwl_trans *trans, in iwl_txq_get_tfd() argument
41 if (trans->trans_cfg->use_tfh) in iwl_txq_get_tfd()
44 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
47 int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
59 int iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q);
[all …]
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/fw/
Dpnvm.c23 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() local
26 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn()
33 static int iwl_pnvm_handle_section(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_handle_section() argument
44 IWL_DEBUG_FW(trans, "Handling PNVM section\n"); in iwl_pnvm_handle_section()
56 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_pnvm_handle_section()
67 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
75 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
81 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
93 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
97 if (mac_type == CSR_HW_REV_TYPE(trans->hw_rev) && in iwl_pnvm_handle_section()
[all …]
Duefi.c19 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len) in iwl_uefi_get_pnvm() argument
51 IWL_DEBUG_FW(trans, in iwl_uefi_get_pnvm()
59 IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %lu\n", package_size); in iwl_uefi_get_pnvm()
68 static void *iwl_uefi_reduce_power_section(struct iwl_trans *trans, in iwl_uefi_reduce_power_section() argument
75 IWL_DEBUG_FW(trans, "Handling REDUCE_POWER section\n"); in iwl_uefi_reduce_power_section()
87 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_uefi_reduce_power_section()
97 IWL_DEBUG_FW(trans, in iwl_uefi_reduce_power_section()
101 IWL_DEBUG_FW(trans, "Adding data (size %d)\n", tlv_len); in iwl_uefi_reduce_power_section()
105 IWL_DEBUG_FW(trans, in iwl_uefi_reduce_power_section()
121 IWL_DEBUG_FW(trans, in iwl_uefi_reduce_power_section()
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/drivers/net/ipa/
Dgsi_trans.c235 struct gsi_trans *trans) in gsi_channel_trans_map() argument
238 channel->trans_info.map[index % channel->tre_ring.count] = trans; in gsi_channel_trans_map()
257 static void gsi_trans_move_pending(struct gsi_trans *trans) in gsi_trans_move_pending() argument
259 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_pending()
264 list_move_tail(&trans->links, &trans_info->pending); in gsi_trans_move_pending()
272 void gsi_trans_move_complete(struct gsi_trans *trans) in gsi_trans_move_complete() argument
274 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_complete()
281 list_cut_position(&list, &trans_info->pending, &trans->links); in gsi_trans_move_complete()
288 void gsi_trans_move_polled(struct gsi_trans *trans) in gsi_trans_move_polled() argument
290 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_polled()
[all …]
/Linux-v5.15/fs/btrfs/
Dtransaction.c38 * | New trans handles can be attached to transaction N by calling all
42 * | Call btrfs_commit_transaction() on any trans handle attached to
51 * | - Wait for all other trans handle holders to release.
62 * | Caller is chosen to commit transaction N, and all other trans handle
158 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots() argument
160 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots()
161 struct btrfs_fs_info *fs_info = trans->fs_info; in switch_commit_roots()
182 btrfs_free_log(trans, root); in switch_commit_roots()
231 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc() argument
235 atomic_inc(&trans->num_extwriters); in extwriter_counter_inc()
[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()
186 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps() argument
190 struct btrfs_fs_info *fs_info = trans->fs_info; in convert_free_space_to_bitmaps()
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c166 wq = create_singlethread_workqueue("bc-trans"); in qlcnic_sriov_init()
170 "Cannot create bc-trans workqueue\n"); in qlcnic_sriov_init()
239 struct qlcnic_bc_trans *trans; in qlcnic_sriov_cleanup_list() local
246 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
248 list_del(&trans->list); in qlcnic_sriov_cleanup_list()
250 cmd.req.arg = (u32 *)trans->req_pay; in qlcnic_sriov_cleanup_list()
251 cmd.rsp.arg = (u32 *)trans->rsp_pay; in qlcnic_sriov_cleanup_list()
253 qlcnic_sriov_cleanup_transaction(trans); in qlcnic_sriov_cleanup_list()
695 static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) in qlcnic_sriov_alloc_bc_trans() argument
697 *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); in qlcnic_sriov_alloc_bc_trans()
[all …]
/Linux-v5.15/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 …]

12345678910>>...19