Home
last modified time | relevance | path

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

12345678910>>...20

/linux/drivers/net/wireless/intel/iwlwifi/
H A 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->num_rx_queues = 1; in iwl_trans_alloc()
42 return trans; in iwl_trans_alloc()
45 int iwl_trans_init(struct iwl_trans *trans) in iwl_trans_init() argument
[all …]
H A 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 …]
H A 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 …]
/linux/fs/bcachefs/
H A Dbtree_iter.c121 static void bch2_btree_path_verify_cached(struct btree_trans *trans, in bch2_btree_path_verify_cached() argument
127 if (!bch2_btree_node_relock(trans, path, 0)) in bch2_btree_path_verify_cached()
135 btree_node_unlock(trans, path, 0); in bch2_btree_path_verify_cached()
138 static void bch2_btree_path_verify_level(struct btree_trans *trans, in bch2_btree_path_verify_level() argument
159 bch2_btree_path_verify_cached(trans, path); in bch2_btree_path_verify_level()
166 if (!bch2_btree_node_relock_notrace(trans, path, level)) in bch2_btree_path_verify_level()
192 btree_node_unlock(trans, path, level); in bch2_btree_path_verify_level()
220 static void bch2_btree_path_verify(struct btree_trans *trans, in bch2_btree_path_verify() argument
223 struct bch_fs *c = trans->c; in bch2_btree_path_verify()
232 bch2_btree_path_verify_level(trans, path, i); in bch2_btree_path_verify()
[all …]
H A Dbtree_trans_commit.c44 static void verify_update_old_key(struct btree_trans *trans, struct btree_insert_entry *i) in verify_update_old_key() argument
47 struct bch_fs *c = trans->c; in verify_update_old_key()
49 struct bkey_s_c k = bch2_btree_path_peek_slot_exact(trans->paths + i->path, &u); in verify_update_old_key()
51 if (unlikely(trans->journal_replay_not_finished)) { in verify_update_old_key()
67 static inline struct btree_path_level *insert_l(struct btree_trans *trans, struct btree_insert_entr… in insert_l() argument
69 return (trans->paths + i->path)->l + i->level; in insert_l()
72 static inline bool same_leaf_as_prev(struct btree_trans *trans, in same_leaf_as_prev() argument
75 return i != trans->updates && in same_leaf_as_prev()
76 insert_l(trans, &i[0])->b == insert_l(trans, &i[-1])->b; in same_leaf_as_prev()
79 static inline bool same_leaf_as_next(struct btree_trans *trans, in same_leaf_as_next() argument
[all …]
H A Dbtree_locking.c18 struct six_lock_count bch2_btree_node_lock_counts(struct btree_trans *trans, in bch2_btree_node_lock_counts() argument
32 trans_for_each_path(trans, path, i) in bch2_btree_node_lock_counts()
45 void bch2_btree_node_unlock_write(struct btree_trans *trans, in bch2_btree_node_unlock_write() argument
48 bch2_btree_node_unlock_write_inlined(trans, path, b); in bch2_btree_node_unlock_write()
54 * @trans wants to lock @b with type @type
57 struct btree_trans *trans; member
79 struct task_struct *task = READ_ONCE(i->trans->locking_wait.task); in print_cycle()
83 bch2_btree_trans_to_text(out, i->trans); in print_cycle()
93 struct task_struct *task = i->trans->locking_wait.task; in print_chain()
103 closure_put(&g->g[--g->nr].trans->ref); in lock_graph_up()
[all …]
H A Dbtree_update.c31 static noinline int extent_front_merge(struct btree_trans *trans, in extent_front_merge() argument
37 struct bch_fs *c = trans->c; in extent_front_merge()
41 if (unlikely(trans->journal_replay_not_finished)) in extent_front_merge()
44 update = bch2_bkey_make_mut_noupdate(trans, k); in extent_front_merge()
52 ret = bch2_key_has_snapshot_overwrites(trans, iter->btree_id, k.k->p) ?: in extent_front_merge()
53 bch2_key_has_snapshot_overwrites(trans, iter->btree_id, (*insert)->k.p); in extent_front_merge()
59 ret = bch2_btree_delete_at(trans, iter, flags); in extent_front_merge()
67 static noinline int extent_back_merge(struct btree_trans *trans, in extent_back_merge() argument
72 struct bch_fs *c = trans->c; in extent_back_merge()
75 if (unlikely(trans->journal_replay_not_finished)) in extent_back_merge()
[all …]
H A Dbtree_locking.h25 static inline struct btree_transaction_stats *btree_trans_stats(struct btree_trans *trans) in btree_trans_stats() argument
27 return trans->fn_idx < ARRAY_SIZE(trans->c->btree_transaction_stats) in btree_trans_stats()
28 ? &trans->c->btree_transaction_stats[trans->fn_idx] in btree_trans_stats()
85 static inline void mark_btree_node_locked(struct btree_trans *trans, in mark_btree_node_locked() argument
115 static void btree_trans_lock_hold_time_update(struct btree_trans *trans, in btree_trans_lock_hold_time_update() argument
119 __bch2_time_stats_update(&btree_trans_stats(trans)->lock_hold_times, in btree_trans_lock_hold_time_update()
127 static inline void btree_node_unlock(struct btree_trans *trans, in btree_node_unlock() argument
137 btree_trans_lock_hold_time_update(trans, path, level); in btree_node_unlock()
152 static inline void __bch2_btree_path_unlock(struct btree_trans *trans, in __bch2_btree_path_unlock() argument
158 btree_node_unlock(trans, path, btree_path_lowest_level_locked(path)); in __bch2_btree_path_unlock()
[all …]
H A Dsubvolume.c27 static int check_subvol(struct btree_trans *trans, in check_subvol() argument
31 struct bch_fs *c = trans->c; in check_subvol()
44 ret = bch2_snapshot_lookup(trans, snapid, &snapshot); in check_subvol()
53 ret = bch2_subvolume_delete(trans, iter->pos.offset); in check_subvol()
60 trans, subvol_root_fs_path_parent_nonzero, in check_subvol()
64 bch2_bkey_make_mut_typed(trans, iter, &subvol.s_c, 0, subvolume); in check_subvol()
76 bch2_bkey_get_iter(trans, &subvol_children_iter, in check_subvol()
83 trans, subvol_children_not_set, in check_subvol()
88 ret = bch2_btree_bit_mod(trans, BTREE_ID_subvolume_children, pos, true); in check_subvol()
95 ret = bch2_inode_find_by_inum_nowarn_trans(trans, in check_subvol()
[all …]
H A Dbtree_update_interior.c45 int bch2_btree_node_check_topology(struct btree_trans *trans, struct btree *b) in bch2_btree_node_check_topology() argument
47 struct bch_fs *c = trans->c; in bch2_btree_node_check_topology()
65 need_fsck_err(trans, btree_root_bad_min_key, in bch2_btree_node_check_topology()
73 need_fsck_err(trans, btree_root_bad_max_key, in bch2_btree_node_check_topology()
84 bch2_btree_and_journal_iter_init_node_iter(trans, &iter, b); in bch2_btree_node_check_topology()
109 need_fsck_err(trans, btree_node_topology_bad_min_key, "%s", buf.buf); in bch2_btree_node_check_topology()
126 need_fsck_err(trans, btree_node_topology_empty_interior_node, "%s", buf.buf); in bch2_btree_node_check_topology()
139 need_fsck_err(trans, btree_node_topology_bad_max_key, "%s", buf.buf); in bch2_btree_node_check_topology()
225 static void __btree_node_free(struct btree_trans *trans, struct btree *b) in __btree_node_free() argument
227 struct bch_fs *c = trans->c; in __btree_node_free()
[all …]
H A Dfsck.c71 static s64 bch2_count_inode_sectors(struct btree_trans *trans, u64 inum, in bch2_count_inode_sectors() argument
76 int ret = for_each_btree_key_upto(trans, iter, BTREE_ID_extents, in bch2_count_inode_sectors()
88 static s64 bch2_count_subdirs(struct btree_trans *trans, u64 inum, in bch2_count_subdirs() argument
93 int ret = for_each_btree_key_upto(trans, iter, BTREE_ID_dirents, in bch2_count_subdirs()
106 static int subvol_lookup(struct btree_trans *trans, u32 subvol, in subvol_lookup() argument
110 int ret = bch2_subvolume_get(trans, subvol, false, 0, &s); in subvol_lookup()
117 static int lookup_first_inode(struct btree_trans *trans, u64 inode_nr, in lookup_first_inode() argument
124 for_each_btree_key_norestart(trans, iter, BTREE_ID_inodes, POS(0, inode_nr), in lookup_first_inode()
135 bch_err_msg(trans->c, ret, "fetching inode %llu", inode_nr); in lookup_first_inode()
136 bch2_trans_iter_exit(trans, &iter); in lookup_first_inode()
[all …]
H A Dio_misc.c23 int bch2_extent_fallocate(struct btree_trans *trans, in bch2_extent_fallocate() argument
31 struct bch_fs *c = trans->c; in bch2_extent_fallocate()
85 ret = bch2_alloc_sectors_start_trans(trans, in bch2_extent_fallocate()
111 ret = bch2_extent_update(trans, inum, iter, new.k, &disk_res, in bch2_extent_fallocate()
128 bch2_trans_unlock_long(trans); in bch2_extent_fallocate()
138 int bch2_fpunch_at(struct btree_trans *trans, struct btree_iter *iter, in bch2_fpunch_at() argument
142 struct bch_fs *c = trans->c; in bch2_fpunch_at()
158 bch2_trans_begin(trans); in bch2_fpunch_at()
160 ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot); in bch2_fpunch_at()
184 ret = bch2_extent_update(trans, inum, iter, &delete, in bch2_fpunch_at()
[all …]
H A Dbtree_iter.h22 static inline void __btree_path_get(struct btree_trans *trans, struct btree_path *path, bool intent) in __btree_path_get() argument
24 unsigned idx = path - trans->paths; in __btree_path_get()
26 EBUG_ON(!test_bit(idx, trans->paths_allocated)); in __btree_path_get()
28 bch2_dump_trans_paths_updates(trans); in __btree_path_get()
34 trace_btree_path_get_ll(trans, path); in __btree_path_get()
37 static inline bool __btree_path_put(struct btree_trans *trans, struct btree_path *path, bool intent) in __btree_path_put() argument
39 EBUG_ON(!test_bit(path - trans->paths, trans->paths_allocated)); in __btree_path_put()
43 trace_btree_path_put_ll(trans, path); in __btree_path_put()
76 static inline void btree_trans_sort_paths(struct btree_trans *trans) in btree_trans_sort_paths() argument
79 trans->paths_sorted) in btree_trans_sort_paths()
[all …]
H A Dbtree_update.h29 "pin journal entry referred to by trans->journal_res.seq") \
72 static inline int bch2_btree_delete_at_buffered(struct btree_trans *trans, in bch2_btree_delete_at_buffered() argument
75 return bch2_btree_bit_mod_buffered(trans, btree, pos, false); in bch2_btree_delete_at_buffered()
88 static inline int bch2_insert_snapshot_whiteouts(struct btree_trans *trans, in bch2_insert_snapshot_whiteouts() argument
97 return __bch2_insert_snapshot_whiteouts(trans, btree, old_pos, new_pos); in bch2_insert_snapshot_whiteouts()
112 static inline struct jset_entry *btree_trans_journal_entries_top(struct btree_trans *trans) in btree_trans_journal_entries_top() argument
114 return (void *) ((u64 *) trans->journal_entries + trans->journal_entries_u64s); in btree_trans_journal_entries_top()
118 bch2_trans_jset_entry_alloc(struct btree_trans *trans, unsigned u64s) in bch2_trans_jset_entry_alloc() argument
120 if (!trans->journal_entries || in bch2_trans_jset_entry_alloc()
121 trans->journal_entries_u64s + u64s > trans->journal_entries_size) in bch2_trans_jset_entry_alloc()
[all …]
H A Dfs-common.c19 int bch2_create_trans(struct btree_trans *trans, in bch2_create_trans() argument
30 struct bch_fs *c = trans->c; in bch2_create_trans()
41 ret = bch2_subvolume_get_snapshot(trans, dir.subvol, &snapshot); in bch2_create_trans()
45 ret = bch2_inode_peek(trans, &dir_iter, dir_u, dir, in bch2_create_trans()
57 ret = bch2_inode_create(trans, &inode_iter, new_inode, snapshot, cpu); in bch2_create_trans()
73 ret = bch2_subvolume_get(trans, snapshot_src.subvol, true, in bch2_create_trans()
81 ret = bch2_inode_peek(trans, &inode_iter, new_inode, snapshot_src, in bch2_create_trans()
110 ret = bch2_subvolume_create(trans, new_inode->bi_inum, in bch2_create_trans()
124 ret = bch2_subvolume_get_snapshot(trans, dir.subvol, &dir_snapshot); in bch2_create_trans()
136 ret = bch2_set_acl_trans(trans, new_inum, new_inode, in bch2_create_trans()
[all …]
H A Dtrace.h52 TP_PROTO(struct btree_trans *trans, unsigned long caller_ip, const char *str),
53 TP_ARGS(trans, caller_ip, str),
63 __entry->dev = trans->c->dev;
64 strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn));
75 TP_PROTO(struct btree_trans *trans, const char *str),
76 TP_ARGS(trans, str),
85 __entry->dev = trans->c->dev;
86 strscpy(__entry->trans_fn, trans->fn, sizeof(__entry->trans_fn));
121 TP_PROTO(struct btree_trans *trans, struct btree *b),
122 TP_ARGS(trans, b),
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A 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); 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 …]
H A Dinternal.h20 #include "iwl-trans.h"
191 * @trans: transport pointer (for configuration)
194 static inline u16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument
197 if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts()
356 * @trans: pointer to the generic transport area
439 struct iwl_trans *trans; member
524 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument
526 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS()
529 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, int queue) in iwl_pcie_clear_irq() argument
539 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(queue)); in iwl_pcie_clear_irq()
[all …]
H A Dctxt-info-gen3.c6 #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 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 …]
H A Dtx.c52 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument
58 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr()
66 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument
71 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr()
78 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument
81 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_inc_wr_ptr()
93 if (!trans->trans_cfg->base_params->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr()
95 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr()
101 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr()
104 IWL_DEBUG_INFO(trans, "Tx queue %d requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_txq_inc_wr_ptr()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.c25 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() local
28 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn()
35 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()
58 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()
83 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
95 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section()
99 if (mac_type == CSR_HW_REV_TYPE(trans->hw_rev) && in iwl_pnvm_handle_section()
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_hdcp_regs.h84 #define TRANS_HDCP_CONF(trans) _MMIO_TRANS(trans, _TRANSA_HDCP_CONF, \ argument
86 #define HDCP_CONF(dev_priv, trans, port) \ argument
88 TRANS_HDCP_CONF(trans) : \
96 #define TRANS_HDCP_ANINIT(trans) _MMIO_TRANS(trans, \ argument
99 #define HDCP_ANINIT(dev_priv, trans, port) \ argument
101 TRANS_HDCP_ANINIT(trans) : \
107 #define TRANS_HDCP_ANLO(trans) _MMIO_TRANS(trans, _TRANSA_HDCP_ANLO, \ argument
109 #define HDCP_ANLO(dev_priv, trans, port) \ argument
111 TRANS_HDCP_ANLO(trans) : \
117 #define TRANS_HDCP_ANHI(trans) _MMIO_TRANS(trans, _TRANSA_HDCP_ANHI, \ argument
[all …]
/linux/drivers/net/ipa/
H A Dgsi_trans.c219 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 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 …]

12345678910>>...20