/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | trans-gen2.c | 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 61 IWL_DEBUG_INFO(trans, "Stop card, put in low power state\n"); in iwl_pcie_gen2_apm_stop() [all …]
|
D | trans.c | 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() 123 IWL_ERR(trans, "Read failed at 0x%X\n", i); in iwl_trans_pcie_dump_regs() [all …]
|
D | internal.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() 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() 455 void iwl_trans_pcie_free(struct iwl_trans *trans); 457 bool __iwl_trans_pcie_grab_nic_access(struct iwl_trans *trans); 458 #define _iwl_trans_pcie_grab_nic_access(trans) \ argument [all …]
|
D | tx.c | 46 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 …]
|
D | rx.c | 144 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 …]
|
D | ctxt-info-gen3.c | 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() 56 &trans->dbg.fw_mon_ini[alloc_id].frags[0]; in iwl_pcie_ctxt_info_dbg_enable() [all …]
|
D | ctxt-info.c | 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 65 struct iwl_self_init_dram *dram = &trans->init_dram; in iwl_pcie_ctxt_info_free_paging() [all …]
|
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-trans.h | 59 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON argument 170 #define IWL_TRANS_MAX_FRAGS(trans) ((trans)->txqs.tfd.max_tbs - 3) argument 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); 533 int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset); 534 int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status, 537 int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd); 539 int (*tx)(struct iwl_trans *trans, struct sk_buff *skb, 541 void (*reclaim)(struct iwl_trans *trans, int queue, int ssn, [all …]
|
D | iwl-eeprom-read.c | 40 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 …]
|
D | iwl-trans.c | 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() 46 trans->txqs.tfd.addr_size = 64; in iwl_trans_alloc() [all …]
|
D | iwl-io.c | 17 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 …]
|
D | iwl-io.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, 28 int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, [all …]
|
D | iwl-scd.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 38 iwl_write_prph(trans, SCD_TXFACT, IWL_MASK(0, 7)); in iwl_scd_activate_fifos() [all …]
|
D | iwl-dbg-tlv.c | 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() 171 static int iwl_dbg_tlv_alloc_region(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_region() argument [all …]
|
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/queue/ |
D | tx.c | 19 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 …]
|
D | tx.h | 27 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/net/rds/ |
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-v5.15/drivers/net/wireless/intel/iwlwifi/fw/ |
D | pnvm.c | 23 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 …]
|
D | uefi.c | 19 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 …]
|
D | dump.c | 147 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_umac_error_log() local 149 u32 base = fwrt->trans->dbg.umac_error_event_table; in iwl_fwrt_dump_umac_error_log() 152 !(fwrt->trans->dbg.error_event_table_tlv_status & in iwl_fwrt_dump_umac_error_log() 156 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log() 162 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_fwrt_dump_umac_error_log() 163 IWL_ERR(trans, "Transport status: 0x%08lX, valid: %d\n", in iwl_fwrt_dump_umac_error_log() 164 fwrt->trans->status, table.valid); in iwl_fwrt_dump_umac_error_log() 186 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_lmac_error_log() local 188 u32 val, base = fwrt->trans->dbg.lmac_error_event_table[lmac_num]; in iwl_fwrt_dump_lmac_error_log() 208 val = iwl_trans_read_mem32(trans, base); in iwl_fwrt_dump_lmac_error_log() [all …]
|
/Linux-v5.15/drivers/net/ipa/ |
D | gsi_trans.c | 235 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/ |
D | transaction.c | 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() 238 static inline void extwriter_counter_dec(struct btrfs_transaction *trans, in extwriter_counter_dec() argument 242 atomic_dec(&trans->num_extwriters); in extwriter_counter_dec() 245 static inline void extwriter_counter_init(struct btrfs_transaction *trans, in extwriter_counter_init() argument 248 atomic_set(&trans->num_extwriters, ((type & TRANS_EXTWRITERS) ? 1 : 0)); in extwriter_counter_init() [all …]
|
D | tree-log.h | 51 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 …]
|
/Linux-v5.15/fs/xfs/ |
D | xfs_attr_inactive.c | 83 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 …]
|
/Linux-v5.15/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() 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 …]
|