Home
last modified time | relevance | path

Searched refs:vcn (Results 1 - 25 of 90) sorted by relevance

1234

/kernel/linux/linux-6.6/fs/ntfs3/
H A Drun.c21 CLST vcn; /* Virtual cluster number. */ member
27 * run_lookup - Lookup the index of a MCB entry that is first <= vcn.
34 static bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *index) in run_lookup() argument
49 if (vcn < r->vcn) { in run_lookup()
54 if (vcn < r->vcn + r->len) { in run_lookup()
60 if (vcn >= r->vcn + r->len) { in run_lookup()
65 if (vcn > in run_lookup()
192 run_lookup_entry(const struct runs_tree *run, CLST vcn, CLST *lcn, CLST *len, size_t *index) run_lookup_entry() argument
228 run_truncate_head(struct runs_tree *run, CLST vcn) run_truncate_head() argument
263 run_truncate(struct runs_tree *run, CLST vcn) run_truncate() argument
300 run_truncate_around(struct runs_tree *run, CLST vcn) run_truncate_around() argument
316 run_add_entry(struct runs_tree *run, CLST vcn, CLST lcn, CLST len, bool is_mft) run_add_entry() argument
489 run_collapse_range(struct runs_tree *run, CLST vcn, CLST len) run_collapse_range() argument
555 run_insert_range(struct runs_tree *run, CLST vcn, CLST len) run_insert_range() argument
595 run_get_entry(const struct runs_tree *run, size_t index, CLST *vcn, CLST *lcn, CLST *len) run_get_entry() argument
820 CLST next_vcn, vcn, lcn; run_pack() local
920 run_unpack(struct runs_tree *run, struct ntfs_sb_info *sbi, CLST ino, CLST svcn, CLST evcn, CLST vcn, const u8 *run_buf, int run_buf_size) run_unpack() argument
1050 run_unpack_ex(struct runs_tree *run, struct ntfs_sb_info *sbi, CLST ino, CLST svcn, CLST evcn, CLST vcn, const u8 *run_buf, int run_buf_size) run_unpack_ex() argument
1117 run_get_highest_vcn(CLST vcn, const u8 *run_buf, u64 *highest_vcn) run_get_highest_vcn() argument
[all...]
H A Dattrib.c61 struct runs_tree *run, const CLST *vcn) in attr_load_runs()
72 if (vcn && (evcn < *vcn || *vcn < svcn)) in attr_load_runs()
82 vcn ? *vcn : svcn, Add2Ptr(attr, run_off), in attr_load_runs()
94 CLST vcn, CLST len, CLST *done, bool trim) in run_deallocate_ex()
97 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex()
103 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex()
131 vcn_next = vcn in run_deallocate_ex()
60 attr_load_runs(struct ATTRIB *attr, struct ntfs_inode *ni, struct runs_tree *run, const CLST *vcn) attr_load_runs() argument
93 run_deallocate_ex(struct ntfs_sb_info *sbi, struct runs_tree *run, CLST vcn, CLST len, CLST *done, bool trim) run_deallocate_ex() argument
149 attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run, CLST vcn, CLST lcn, CLST len, CLST *pre_alloc, enum ALLOCATE_OPT opt, CLST *alen, const size_t fr, CLST *new_lcn, CLST *new_len) attr_allocate_clusters() argument
414 CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn; attr_set_size() local
882 attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn, CLST *len, bool *new, bool zero) attr_data_get_block() argument
1299 attr_load_runs_vcn(struct ntfs_inode *ni, enum ATTR_TYPE type, const __le16 *name, u8 name_len, struct runs_tree *run, CLST vcn) attr_load_runs_vcn() argument
1348 CLST vcn; attr_load_runs_range() local
1522 CLST clen, lcn, vcn, alen, slen, vcn_next; attr_is_frame_compressed() local
1631 CLST vcn, end, clst_data; attr_allocate_frame() local
1856 CLST vcn, end; attr_collapse_range() local
2113 CLST svcn, evcn1, vcn, len, end, alen, hole, next_svcn; attr_punch_hole() local
2331 CLST vcn, svcn, evcn1, len, next_svcn; attr_insert_range() local
[all...]
H A Dattrlist.c188 u8 name_len, const CLST *vcn) in al_find_ex()
207 le_vcn = le64_to_cpu(le->vcn); in al_find_ex()
210 * Compare entry names only for entry with vcn == 0. in al_find_ex()
222 if (!vcn) in al_find_ex()
225 if (*vcn == le_vcn) in al_find_ex()
228 if (*vcn < le_vcn) in al_find_ex()
245 u8 name_len, CLST vcn) in al_find_le_to_insert()
260 if (!le->vcn) { in al_find_le_to_insert()
262 * Compare entry names only for entry with vcn == 0. in al_find_le_to_insert()
274 if (le64_to_cpu(le->vcn) > in al_find_le_to_insert()
185 al_find_ex(struct ntfs_inode *ni, struct ATTR_LIST_ENTRY *le, enum ATTR_TYPE type, const __le16 *name, u8 name_len, const CLST *vcn) al_find_ex() argument
242 al_find_le_to_insert(struct ntfs_inode *ni, enum ATTR_TYPE type, const __le16 *name, u8 name_len, CLST vcn) al_find_le_to_insert() argument
388 al_delete_le(struct ntfs_inode *ni, enum ATTR_TYPE type, CLST vcn, const __le16 *name, u8 name_len, const struct MFT_REF *ref) al_delete_le() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vcn.c71 INIT_DELAYED_WORK(&adev->vcn.idle_work, amdgpu_vcn_idle_work_handler); in amdgpu_vcn_sw_init()
72 mutex_init(&adev->vcn.vcn_pg_lock); in amdgpu_vcn_sw_init()
73 mutex_init(&adev->vcn.vcn1_jpeg1_workaround); in amdgpu_vcn_sw_init()
74 atomic_set(&adev->vcn.total_submission_cnt, 0); in amdgpu_vcn_sw_init()
75 for (i = 0; i < adev->vcn.num_vcn_inst; i++) in amdgpu_vcn_sw_init()
76 atomic_set(&adev->vcn.inst[i].dpg_enc_submission_cnt, 0); in amdgpu_vcn_sw_init()
91 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init()
101 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init()
107 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init()
113 adev->vcn in amdgpu_vcn_sw_init()
[all...]
H A Dvcn_v2_5.c35 #include "vcn/vcn_2_5_offset.h"
36 #include "vcn/vcn_2_5_sh_mask.h"
37 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
80 adev->vcn.num_vcn_inst = 2; in vcn_v2_5_early_init()
81 adev->vcn.harvest_config = 0; in vcn_v2_5_early_init()
82 adev->vcn.num_enc_rings = 1; in vcn_v2_5_early_init()
86 adev->vcn.num_vcn_inst = VCN25_MAX_HW_INSTANCES_ARCTURUS; in vcn_v2_5_early_init()
87 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v2_5_early_init()
90 adev->vcn.harvest_config |= 1 << i; in vcn_v2_5_early_init()
92 if (adev->vcn in vcn_v2_5_early_init()
[all...]
H A Dvcn_v2_0.c36 #include "vcn/vcn_2_0_0_offset.h"
37 #include "vcn/vcn_2_0_0_sh_mask.h"
38 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
72 adev->vcn.num_vcn_inst = 1; in vcn_v2_0_early_init()
74 adev->vcn.num_enc_rings = 1; in vcn_v2_0_early_init()
76 adev->vcn.num_enc_rings = 2; in vcn_v2_0_early_init()
102 &adev->vcn.inst->irq); in vcn_v2_0_sw_init()
107 for (i = 0; i < adev->vcn.num_enc_rings; ++i) { in vcn_v2_0_sw_init()
110 &adev->vcn.inst->irq); in vcn_v2_0_sw_init()
121 hdr = (const struct common_firmware_header *)adev->vcn in vcn_v2_0_sw_init()
[all...]
H A Dvcn_v3_0.c33 #include "vcn/vcn_3_0_0_offset.h"
34 #include "vcn/vcn_3_0_0_sh_mask.h"
35 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
86 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID; in vcn_v3_0_early_init()
87 adev->vcn.harvest_config = 0; in vcn_v3_0_early_init()
88 adev->vcn.num_enc_rings = 1; in vcn_v3_0_early_init()
95 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID; in vcn_v3_0_early_init()
96 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v3_0_early_init()
99 adev->vcn.harvest_config |= 1 << i; in vcn_v3_0_early_init()
102 if (adev->vcn in vcn_v3_0_early_init()
[all...]
H A Dvcn_v1_0.c33 #include "vcn/vcn_1_0_offset.h"
34 #include "vcn/vcn_1_0_sh_mask.h"
39 #include "ivsrcid/vcn/irqsrcs_vcn_1_0.h"
70 adev->vcn.num_vcn_inst = 1; in vcn_v1_0_early_init()
71 adev->vcn.num_enc_rings = 2; in vcn_v1_0_early_init()
97 VCN_1_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst->irq); in vcn_v1_0_sw_init()
102 for (i = 0; i < adev->vcn.num_enc_rings; ++i) { in vcn_v1_0_sw_init()
104 &adev->vcn.inst->irq); in vcn_v1_0_sw_init()
114 adev->vcn.idle_work.work.func = vcn_v1_0_idle_work_handler; in vcn_v1_0_sw_init()
118 hdr = (const struct common_firmware_header *)adev->vcn in vcn_v1_0_sw_init()
[all...]
/kernel/linux/linux-5.10/fs/ntfs/
H A Drunlist.c151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable()
238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append()
286 disc = (src[0].vcn > 0); in ntfs_rl_insert()
296 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length); in ntfs_rl_insert()
325 dst[marker].vcn in ntfs_rl_insert()
738 VCN vcn; /* Current vcn. */ ntfs_mapping_pairs_decompress() local
990 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) ntfs_rl_vcn_to_lcn() argument
1039 ntfs_rl_find_vcn_nolock(runlist_element *rl, const VCN vcn) ntfs_rl_find_vcn_nolock() argument
[all...]
H A Dindex.c108 VCN vcn, old_vcn; in ntfs_index_lookup() local
247 /* Get the starting vcn of the index_block holding the child node. */ in ntfs_index_lookup()
248 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_index_lookup()
260 * Convert vcn to index into the index allocation attribute in units in ntfs_index_lookup()
264 page = ntfs_map_page(ia_mapping, vcn << in ntfs_index_lookup()
276 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_index_lookup()
286 ntfs_error(sb, "Index record with vcn 0x%llx is corrupt. " in ntfs_index_lookup()
288 (long long)vcn, idx_ni->mft_no); in ntfs_index_lookup()
291 if (sle64_to_cpu(ia->index_block_vcn) != vcn) { in ntfs_index_lookup()
297 (unsigned long long)vcn, idx_n in ntfs_index_lookup()
[all...]
H A Dlogfile.c715 VCN vcn, end_vcn; in ntfs_empty_logfile() local
739 vcn = 0; in ntfs_empty_logfile()
747 if (unlikely(!rl || vcn < rl->vcn || !rl->length)) { in ntfs_empty_logfile()
749 err = ntfs_map_runlist_nolock(log_ni, vcn, NULL); in ntfs_empty_logfile()
756 BUG_ON(!rl || vcn < rl->vcn || !rl->length); in ntfs_empty_logfile()
758 /* Seek to the runlist element containing @vcn. */ in ntfs_empty_logfile()
759 while (rl->length && vcn >= rl[1].vcn) in ntfs_empty_logfile()
[all...]
H A Ddir.c80 VCN vcn, old_vcn; in ntfs_lookup_inode_by_name() local
291 /* Get the starting vcn of the index_block holding the child node. */ in ntfs_lookup_inode_by_name()
292 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_lookup_inode_by_name()
304 * Convert vcn to index into the index allocation attribute in units in ntfs_lookup_inode_by_name()
308 page = ntfs_map_page(ia_mapping, vcn << in ntfs_lookup_inode_by_name()
320 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_lookup_inode_by_name()
330 ntfs_error(sb, "Directory index record with vcn 0x%llx is " in ntfs_lookup_inode_by_name()
332 (unsigned long long)vcn, dir_ni->mft_no); in ntfs_lookup_inode_by_name()
335 if (sle64_to_cpu(ia->index_block_vcn) != vcn) { in ntfs_lookup_inode_by_name()
341 (unsigned long long)vcn, dir_n in ntfs_lookup_inode_by_name()
[all...]
H A Dattrib.h49 extern int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn,
51 extern int ntfs_map_runlist(ntfs_inode *ni, VCN vcn);
53 extern LCN ntfs_attr_vcn_to_lcn_nolock(ntfs_inode *ni, const VCN vcn,
57 const VCN vcn, ntfs_attr_search_ctx *ctx);
/kernel/linux/linux-6.6/fs/ntfs/
H A Drunlist.c151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable()
238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append()
286 disc = (src[0].vcn > 0); in ntfs_rl_insert()
296 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length); in ntfs_rl_insert()
325 dst[marker].vcn in ntfs_rl_insert()
738 VCN vcn; /* Current vcn. */ ntfs_mapping_pairs_decompress() local
990 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) ntfs_rl_vcn_to_lcn() argument
1039 ntfs_rl_find_vcn_nolock(runlist_element *rl, const VCN vcn) ntfs_rl_find_vcn_nolock() argument
[all...]
H A Dindex.c108 VCN vcn, old_vcn; in ntfs_index_lookup() local
247 /* Get the starting vcn of the index_block holding the child node. */ in ntfs_index_lookup()
248 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_index_lookup()
260 * Convert vcn to index into the index allocation attribute in units in ntfs_index_lookup()
264 page = ntfs_map_page(ia_mapping, vcn << in ntfs_index_lookup()
276 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_index_lookup()
286 ntfs_error(sb, "Index record with vcn 0x%llx is corrupt. " in ntfs_index_lookup()
288 (long long)vcn, idx_ni->mft_no); in ntfs_index_lookup()
291 if (sle64_to_cpu(ia->index_block_vcn) != vcn) { in ntfs_index_lookup()
297 (unsigned long long)vcn, idx_n in ntfs_index_lookup()
[all...]
H A Dlogfile.c714 VCN vcn, end_vcn; in ntfs_empty_logfile() local
738 vcn = 0; in ntfs_empty_logfile()
746 if (unlikely(!rl || vcn < rl->vcn || !rl->length)) { in ntfs_empty_logfile()
748 err = ntfs_map_runlist_nolock(log_ni, vcn, NULL); in ntfs_empty_logfile()
755 BUG_ON(!rl || vcn < rl->vcn || !rl->length); in ntfs_empty_logfile()
757 /* Seek to the runlist element containing @vcn. */ in ntfs_empty_logfile()
758 while (rl->length && vcn >= rl[1].vcn) in ntfs_empty_logfile()
[all...]
H A Ddir.c80 VCN vcn, old_vcn; in ntfs_lookup_inode_by_name() local
291 /* Get the starting vcn of the index_block holding the child node. */ in ntfs_lookup_inode_by_name()
292 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_lookup_inode_by_name()
304 * Convert vcn to index into the index allocation attribute in units in ntfs_lookup_inode_by_name()
308 page = ntfs_map_page(ia_mapping, vcn << in ntfs_lookup_inode_by_name()
320 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_lookup_inode_by_name()
330 ntfs_error(sb, "Directory index record with vcn 0x%llx is " in ntfs_lookup_inode_by_name()
332 (unsigned long long)vcn, dir_ni->mft_no); in ntfs_lookup_inode_by_name()
335 if (sle64_to_cpu(ia->index_block_vcn) != vcn) { in ntfs_lookup_inode_by_name()
341 (unsigned long long)vcn, dir_n in ntfs_lookup_inode_by_name()
[all...]
H A Dattrib.h49 extern int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn,
51 extern int ntfs_map_runlist(ntfs_inode *ni, VCN vcn);
53 extern LCN ntfs_attr_vcn_to_lcn_nolock(ntfs_inode *ni, const VCN vcn,
57 const VCN vcn, ntfs_attr_search_ctx *ctx);
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vcn.c94 r = amdgpu_ucode_request(adev, &adev->vcn.fw, fw_name); in amdgpu_vcn_early_init()
96 amdgpu_ucode_release(&adev->vcn.fw); in amdgpu_vcn_early_init()
109 INIT_DELAYED_WORK(&adev->vcn.idle_work, amdgpu_vcn_idle_work_handler); in amdgpu_vcn_sw_init()
110 mutex_init(&adev->vcn.vcn_pg_lock); in amdgpu_vcn_sw_init()
111 mutex_init(&adev->vcn.vcn1_jpeg1_workaround); in amdgpu_vcn_sw_init()
112 atomic_set(&adev->vcn.total_submission_cnt, 0); in amdgpu_vcn_sw_init()
113 for (i = 0; i < adev->vcn.num_vcn_inst; i++) in amdgpu_vcn_sw_init()
114 atomic_set(&adev->vcn.inst[i].dpg_enc_submission_cnt, 0); in amdgpu_vcn_sw_init()
118 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init()
132 adev->vcn in amdgpu_vcn_sw_init()
1070 struct amdgpu_vcn_inst *vcn; amdgpu_debugfs_vcn_fwlog_read() local
1134 amdgpu_debugfs_vcn_fwlog_init(struct amdgpu_device *adev, uint8_t i, struct amdgpu_vcn_inst *vcn) amdgpu_debugfs_vcn_fwlog_init() argument
1149 amdgpu_vcn_fwlog_init(struct amdgpu_vcn_inst *vcn) amdgpu_vcn_fwlog_init() argument
[all...]
H A Dvcn_v2_5.c36 #include "vcn/vcn_2_5_offset.h"
37 #include "vcn/vcn_2_5_sh_mask.h"
38 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
86 adev->vcn.num_vcn_inst = 2; in vcn_v2_5_early_init()
87 adev->vcn.harvest_config = 0; in vcn_v2_5_early_init()
88 adev->vcn.num_enc_rings = 1; in vcn_v2_5_early_init()
93 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v2_5_early_init()
96 adev->vcn.harvest_config |= 1 << i; in vcn_v2_5_early_init()
98 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v2_5_early_init()
103 adev->vcn in vcn_v2_5_early_init()
[all...]
H A Dvcn_v2_0.c36 #include "vcn/vcn_2_0_0_offset.h"
37 #include "vcn/vcn_2_0_0_sh_mask.h"
38 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
77 adev->vcn.num_enc_rings = 1; in vcn_v2_0_early_init()
79 adev->vcn.num_enc_rings = 2; in vcn_v2_0_early_init()
105 &adev->vcn.inst->irq); in vcn_v2_0_sw_init()
110 for (i = 0; i < adev->vcn.num_enc_rings; ++i) { in vcn_v2_0_sw_init()
113 &adev->vcn.inst->irq); in vcn_v2_0_sw_init()
128 ring = &adev->vcn.inst->ring_dec; in vcn_v2_0_sw_init()
131 ring->doorbell_index = adev->doorbell_index.vcn in vcn_v2_0_sw_init()
[all...]
H A Dvcn_v3_0.c35 #include "vcn/vcn_3_0_0_offset.h"
36 #include "vcn/vcn_3_0_0_sh_mask.h"
37 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
93 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID; in vcn_v3_0_early_init()
94 adev->vcn.harvest_config = 0; in vcn_v3_0_early_init()
95 adev->vcn.num_enc_rings = 1; in vcn_v3_0_early_init()
98 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v3_0_early_init()
104 adev->vcn.num_enc_rings = 0; in vcn_v3_0_early_init()
106 adev->vcn.num_enc_rings = 2; in vcn_v3_0_early_init()
143 * vcn_db_base = adev->doorbell_index.vcn in vcn_v3_0_sw_init()
[all...]
H A Dvcn_v4_0.c36 #include "vcn/vcn_4_0_0_offset.h"
37 #include "vcn/vcn_4_0_0_sh_mask.h"
38 #include "ivsrcid/vcn/irqsrcs_vcn_4_0.h"
84 adev->vcn.harvest_config = VCN_HARVEST_MMSCH; in vcn_v4_0_early_init()
85 for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { in vcn_v4_0_early_init()
87 adev->vcn.harvest_config |= 1 << i; in vcn_v4_0_early_init()
94 adev->vcn.num_enc_rings = 1; in vcn_v4_0_early_init()
126 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v4_0_sw_init()
129 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_sw_init()
134 atomic_set(&adev->vcn in vcn_v4_0_sw_init()
[all...]
H A Dvcn_v1_0.c34 #include "vcn/vcn_1_0_offset.h"
35 #include "vcn/vcn_1_0_sh_mask.h"
39 #include "ivsrcid/vcn/irqsrcs_vcn_1_0.h"
71 adev->vcn.num_enc_rings = 2; in vcn_v1_0_early_init()
97 VCN_1_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst->irq); in vcn_v1_0_sw_init()
102 for (i = 0; i < adev->vcn.num_enc_rings; ++i) { in vcn_v1_0_sw_init()
104 &adev->vcn.inst->irq); in vcn_v1_0_sw_init()
114 adev->vcn.idle_work.work.func = vcn_v1_0_idle_work_handler; in vcn_v1_0_sw_init()
122 ring = &adev->vcn.inst->ring_dec; in vcn_v1_0_sw_init()
125 r = amdgpu_ring_init(adev, ring, 512, &adev->vcn in vcn_v1_0_sw_init()
[all...]
H A Dvcn_v4_0_3.c36 #include "vcn/vcn_4_0_3_offset.h"
37 #include "vcn/vcn_4_0_3_sh_mask.h"
38 #include "ivsrcid/vcn/irqsrcs_vcn_4_0.h"
71 adev->vcn.num_enc_rings = 1; in vcn_v4_0_3_early_init()
105 VCN_4_0__SRCID__UVD_ENC_GENERAL_PURPOSE, &adev->vcn.inst->irq); in vcn_v4_0_3_sw_init()
109 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v4_0_3_sw_init()
114 ring = &adev->vcn.inst[i].ring_enc[0]; in vcn_v4_0_3_sw_init()
119 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in vcn_v4_0_3_sw_init()
123 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in vcn_v4_0_3_sw_init()
126 ring->vm_hub = AMDGPU_MMHUB0(adev->vcn in vcn_v4_0_3_sw_init()
[all...]

Completed in 23 milliseconds

1234