| /linux/fs/ntfs3/ |
| H A D | run.c | 22 CLST vcn; /* Virtual cluster number. */ member 35 static bool run_lookup(const struct runs_tree *run, CLST vcn, size_t *index) in run_lookup() argument 50 if (vcn < r->vcn) { in run_lookup() 55 if (vcn < r->vcn + r->len) { in run_lookup() 61 if (vcn >= r->vcn + r->len) { in run_lookup() 66 if (vcn >= r->vcn) { in run_lookup() 75 if (vcn < r->vcn) { in run_lookup() 79 } else if (vcn >= r->vcn + r->len) { in run_lookup() 105 CLST end = r->vcn + r->len; in run_consolidate() 109 if (n->vcn > end) in run_consolidate() [all …]
|
| H A D | attrib.c | 61 struct runs_tree *run, const CLST *vcn) in attr_load_runs() argument 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() argument 98 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() 104 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex() 127 if (!run_remove_range(run_da, vcn, clen, in run_deallocate_ex() 142 vcn_next = vcn + clen; in run_deallocate_ex() 143 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex() 144 vcn != vcn_next) { in run_deallocate_ex() [all …]
|
| H A D | attrlist.c | 200 u8 name_len, const CLST *vcn) in al_find_ex() argument 220 le_vcn = le64_to_cpu(le->vcn); in al_find_ex() 235 if (!vcn) in al_find_ex() 238 if (*vcn == le_vcn) in al_find_ex() 241 if (*vcn < le_vcn) in al_find_ex() 258 u8 name_len, CLST vcn) in al_find_le_to_insert() argument 274 if (!le->vcn) { in al_find_le_to_insert() 288 if (le64_to_cpu(le->vcn) >= vcn) in al_find_le_to_insert() 349 le->vcn = cpu_to_le64(svcn); in al_add_le()
|
| H A D | ntfs_fs.h | 461 struct runs_tree *run_da, CLST vcn, CLST lcn, 481 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn, 484 int attr_data_get_block_locked(struct ntfs_inode *ni, CLST vcn, CLST clen, 490 CLST vcn); 519 u8 name_len, const CLST *vcn); 581 u8 name_len, const CLST *vcn, 884 bool run_lookup_entry(const struct runs_tree *run, CLST vcn, CLST *lcn, 887 const struct runs_tree *run_da, CLST vcn, CLST *lcn, 889 void run_truncate(struct runs_tree *run, CLST vcn); 890 void run_truncate_head(struct runs_tree *run, CLST vcn); [all …]
|
| H A D | fsntfs.c | 844 CLST lcn, vcn, len; in ntfs_refresh_zone() local 853 vcn = bytes_to_cluster(sbi, in ntfs_refresh_zone() 856 if (!run_lookup_entry(&ni->file.run, vcn - 1, &lcn, &len, NULL)) in ntfs_refresh_zone() 1132 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; in ntfs_sb_write_run() local 1136 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) in ntfs_sb_write_run() 1156 vcn_next = vcn + clen; in ntfs_sb_write_run() 1157 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in ntfs_sb_write_run() 1158 vcn != vcn_next) in ntfs_sb_write_run() 1201 CLST vcn_next, vcn = vbo >> cluster_bits; in ntfs_read_run_nb_ra() local 1217 } else if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in ntfs_read_run_nb_ra() [all …]
|
| H A D | frecord.c | 203 const __le16 *name, u8 name_len, const CLST *vcn, in ni_find_attr() argument 223 le = al_find_ex(ni, le_o ? *le_o : NULL, type, name, name_len, vcn); in ni_find_attr() 241 if (vcn && *vcn) in ni_find_attr() 243 } else if (!vcn) { in ni_find_attr() 246 } else if (le64_to_cpu(attr->nres.svcn) > *vcn || in ni_find_attr() 247 *vcn > le64_to_cpu(attr->nres.evcn)) { in ni_find_attr() 511 if (svcn != le64_to_cpu(le->vcn)) { in ni_repack() 584 attr->nres.svcn = le->vcn = cpu_to_le64(next_svcn); in ni_repack() 659 if (le->vcn) in ni_try_remove_attr_list() 821 le->vcn = 0; in ni_create_attr_list() [all …]
|
| H A D | file.c | 425 CLST vcn = from >> sbi->cluster_bits; in ntfs_file_mmap_prepare() local 429 for (; vcn < end; vcn += len) { in ntfs_file_mmap_prepare() 430 err = attr_data_get_block(ni, vcn, 1, &lcn, in ntfs_file_mmap_prepare() 661 CLST vcn = vbo >> cluster_bits; in ntfs_fallocate() local 669 for (; vcn < cend; vcn += clen) { in ntfs_fallocate() 670 err = attr_data_get_block(ni, vcn, cend - vcn, in ntfs_fallocate()
|
| H A D | fslog.c | 154 __le64 vcn; // 0x10: Vcn of dirty page member 662 u32 target_attr, u64 vcn) in find_dp() argument 668 u64 dp_vcn = le64_to_cpu(dp->vcn); in find_dp() 670 if (dp->target_attr == ta && vcn >= dp_vcn && in find_dp() 671 vcn < dp_vcn + le32_to_cpu(dp->lcns_follow)) { in find_dp() 3865 u64 size, vcn, undo_next_lsn; in log_replay() local 4359 memmove(&dp->vcn, &dp0->vcn_low, in log_replay() 4379 next->vcn == dp->vcn) { in log_replay() 4672 dp->vcn = cpu_to_le64(t64 & ~((u64)t32 - 1)); in log_replay() 4683 if (le64_to_cpu(lrh->target_vcn) < le64_to_cpu(dp->vcn)) { in log_replay() [all …]
|
| H A D | ntfs.h | 525 __le64 vcn; // 0x08: Starting VCN of this attribute. member 640 static inline void de_set_vbn_le(struct NTFS_DE *e, __le64 vcn) in de_set_vbn_le() argument 644 *v = vcn; in de_set_vbn_le() 647 static inline void de_set_vbn(struct NTFS_DE *e, CLST vcn) in de_set_vbn() argument 651 *v = cpu_to_le64(vcn); in de_set_vbn()
|
| H A D | index.c | 210 CLST vcn = off >> sbi->cluster_bits; in bmp_buf_get() local 220 &vcn, &bbuf->mi); in bmp_buf_get() 377 CLST lcn, clen, vcn, vcn_next; in scan_nres_bitmap() local 388 vcn = vbo >> sbi->cluster_bits; in scan_nres_bitmap() 391 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in scan_nres_bitmap() 401 name->name_len, run, vcn); in scan_nres_bitmap() 406 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in scan_nres_bitmap() 448 vcn_next = vcn + clen; in scan_nres_bitmap() 450 ok = run_get_entry(run, ++idx, &vcn, &lcn, &clen) && vcn == vcn_next; in scan_nres_bitmap() 452 vcn = vcn_next; in scan_nres_bitmap()
|
| H A D | inode.c | 133 if (le && le->vcn) { in ntfs_read_mft() 940 CLST vcn = offset >> cluster_bits; in ntfs_iomap_begin() local 968 clen_max = bytes_to_cluster(sbi, endbyte) - vcn; in ntfs_iomap_begin() 978 err = attr_data_get_block(ni, vcn, clen_max, &lcn, &clen, in ntfs_iomap_begin() 1404 CLST vcn; in ntfs_create_inode() local 1762 &vcn); in ntfs_create_inode() 1766 if (vcn != clst) { in ntfs_create_inode()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | vcn_v2_0.c | 116 adev->vcn.inst[0].num_enc_rings = 1; in vcn_v2_0_early_init() 118 adev->vcn.inst[0].num_enc_rings = 2; in vcn_v2_0_early_init() 120 adev->vcn.inst->set_pg_state = vcn_v2_0_set_pg_state; in vcn_v2_0_early_init() 145 &adev->vcn.inst->irq); in vcn_v2_0_sw_init() 150 for (i = 0; i < adev->vcn.inst[0].num_enc_rings; ++i) { in vcn_v2_0_sw_init() 153 &adev->vcn.inst->irq); in vcn_v2_0_sw_init() 168 ring = &adev->vcn.inst->ring_dec; in vcn_v2_0_sw_init() 171 ring->doorbell_index = adev->doorbell_index.vcn.vcn_ring0_1 << 1; in vcn_v2_0_sw_init() 175 r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0, in vcn_v2_0_sw_init() 180 adev->vcn.inst[0].internal.context_id = mmUVD_CONTEXT_ID_INTERNAL_OFFSET; in vcn_v2_0_sw_init() [all …]
|
| H A D | vcn_v5_0_0.c | 100 for (i = 0; i < adev->vcn.num_vcn_inst; ++i) in vcn_v5_0_0_early_init() 102 adev->vcn.inst[i].num_enc_rings = 1; in vcn_v5_0_0_early_init() 107 for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { in vcn_v5_0_0_early_init() 108 adev->vcn.inst[i].set_pg_state = vcn_v5_0_0_set_pg_state; in vcn_v5_0_0_early_init() 131 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v5_0_0_sw_init() 134 if (adev->vcn.harvest_config & (1 << i)) in vcn_v5_0_0_sw_init() 147 atomic_set(&adev->vcn.inst[i].sched_score, 0); in vcn_v5_0_0_sw_init() 151 VCN_5_0__SRCID__UVD_ENC_GENERAL_PURPOSE, &adev->vcn.inst[i].irq); in vcn_v5_0_0_sw_init() 157 VCN_5_0__SRCID_UVD_POISON, &adev->vcn.inst[i].irq); in vcn_v5_0_0_sw_init() 161 ring = &adev->vcn.inst[i].ring_enc[0]; in vcn_v5_0_0_sw_init() [all …]
|
| H A D | vcn_v3_0.c | 132 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID; in vcn_v3_0_early_init() 133 adev->vcn.harvest_config = 0; in vcn_v3_0_early_init() 134 for (i = 0; i < adev->vcn.num_vcn_inst; i++) in vcn_v3_0_early_init() 135 adev->vcn.inst[i].num_enc_rings = 1; in vcn_v3_0_early_init() 138 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v3_0_early_init() 143 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v3_0_early_init() 146 adev->vcn.inst[i].num_enc_rings = 0; in vcn_v3_0_early_init() 148 adev->vcn.inst[i].num_enc_rings = 2; in vcn_v3_0_early_init() 156 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v3_0_early_init() 157 adev->vcn.inst[i].set_pg_state = vcn_v3_0_set_pg_state; in vcn_v3_0_early_init() [all …]
|
| H A D | vcn_v4_0.c | 121 adev->vcn.harvest_config = VCN_HARVEST_MMSCH; in vcn_v4_0_early_init() 122 for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { in vcn_v4_0_early_init() 124 adev->vcn.harvest_config |= 1 << i; in vcn_v4_0_early_init() 130 for (i = 0; i < adev->vcn.num_vcn_inst; ++i) in vcn_v4_0_early_init() 132 adev->vcn.inst[i].num_enc_rings = 1; in vcn_v4_0_early_init() 138 for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { in vcn_v4_0_early_init() 139 adev->vcn.inst[i].set_pg_state = vcn_v4_0_set_pg_state; in vcn_v4_0_early_init() 153 fw_shared = adev->vcn.inst[inst_idx].fw_shared.cpu_addr; in vcn_v4_0_fw_shared_init() 169 amdgpu_vcn_fwlog_init(&adev->vcn.inst[inst_idx]); in vcn_v4_0_fw_shared_init() 187 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v4_0_sw_init() [all …]
|
| H A D | vega10_reg_init.c | 83 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_DOORBELL64_VCN0_1; in vega10_doorbell_index_init() 84 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_DOORBELL64_VCN2_3; in vega10_doorbell_index_init() 85 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_DOORBELL64_VCN4_5; in vega10_doorbell_index_init() 86 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_DOORBELL64_VCN6_7; in vega10_doorbell_index_init()
|
| H A D | vega20_reg_init.c | 89 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_VEGA20_DOORBELL64_VCN0_1; in vega20_doorbell_index_init() 90 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_VEGA20_DOORBELL64_VCN2_3; in vega20_doorbell_index_init() 91 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_VEGA20_DOORBELL64_VCN4_5; in vega20_doorbell_index_init() 92 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_VEGA20_DOORBELL64_VCN6_7; in vega20_doorbell_index_init()
|
| H A D | soc24.c | 77 if (adev->vcn.num_vcn_inst == hweight8(adev->vcn.harvest_config)) in soc24_query_video_codecs() 291 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_NAVI10_DOORBELL64_VCN0_1; in soc24_init_doorbell_index() 292 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_NAVI10_DOORBELL64_VCN2_3; in soc24_init_doorbell_index() 293 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_NAVI10_DOORBELL64_VCN4_5; in soc24_init_doorbell_index() 294 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_NAVI10_DOORBELL64_VCN6_7; in soc24_init_doorbell_index()
|
| H A D | soc21.c | 173 if (adev->vcn.num_vcn_inst == hweight8(adev->vcn.harvest_config)) in soc21_query_video_codecs() 182 if ((adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) || in soc21_query_video_codecs() 195 if ((adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0)) { in soc21_query_video_codecs() 508 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_NAVI10_DOORBELL64_VCN0_1; in soc21_init_doorbell_index() 509 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_NAVI10_DOORBELL64_VCN2_3; in soc21_init_doorbell_index() 510 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_NAVI10_DOORBELL64_VCN4_5; in soc21_init_doorbell_index() 511 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_NAVI10_DOORBELL64_VCN6_7; in soc21_init_doorbell_index() 922 if ((adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) || in soc21_common_late_init()
|
| H A D | amdgpu_discovery.c | 513 adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN1; in amdgpu_discovery_harvest_config_quirk() 514 adev->vcn.inst_mask &= ~AMDGPU_VCN_HARVEST_VCN1; in amdgpu_discovery_harvest_config_quirk() 843 adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN0; in amdgpu_discovery_read_harvest_bit_per_ip() 844 adev->vcn.inst_mask &= in amdgpu_discovery_read_harvest_bit_per_ip() 849 adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN1; in amdgpu_discovery_read_harvest_bit_per_ip() 850 adev->vcn.inst_mask &= in amdgpu_discovery_read_harvest_bit_per_ip() 909 adev->vcn.harvest_config |= BIT(inst); in amdgpu_discovery_read_from_harvest_table() 912 adev->vcn.inst_mask &= ~BIT(inst); in amdgpu_discovery_read_from_harvest_table() 1203 harvest = ((1 << inst) & adev->vcn.inst_mask) == 0; in amdgpu_discovery_get_harvest_info() 1749 adev->vcn.inst_mask = 0; in amdgpu_discovery_reg_base_init() [all …]
|
| H A D | jpeg_v4_0.c | 126 …amdgpu_sriov_vf(adev) ? (((adev->doorbell_index.vcn.vcn_ring0_1) << 1) + 4) : ((adev->doorbell_ind… in jpeg_v4_0_sw_init() 199 (adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0); in jpeg_v4_0_hw_init()
|
| H A D | jpeg_v5_0_1.c | 195 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in jpeg_v5_0_1_sw_init() 199 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in jpeg_v5_0_1_sw_init() 296 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 11 * jpeg_inst, in jpeg_v5_0_1_hw_init() 865 struct amdgpu_vcn_inst *vinst = &adev->vcn.inst[ring->me]; in jpeg_v5_0_1_ring_reset()
|
| H A D | jpeg_v4_0_3.c | 198 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in jpeg_v4_0_3_sw_init() 203 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in jpeg_v4_0_3_sw_init() 207 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in jpeg_v4_0_3_sw_init() 421 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + in jpeg_v4_0_3_hw_init() 1206 struct amdgpu_vcn_inst *vinst = &adev->vcn.inst[ring->me]; in jpeg_v4_0_3_ring_reset()
|
| H A D | jpeg_v4_0_5.c | 162 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1 + 8 * i; in jpeg_v4_0_5_sw_init() 516 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 8 * i, i); in jpeg_v4_0_5_start()
|
| H A D | umsch_mm_v4_0.c | 226 (adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0); in umsch_mm_v4_0_ring_start()
|