/third_party/ntfs-3g/src/ |
H A D | ntfs-3g.c | 136 ((scx)->vol->secure_flags & (1 << SECURITY_DEFAULT) \ 275 static s64 ntfs_get_nr_free_mft_records(ntfs_volume *vol) in ntfs_get_nr_free_mft_records() argument 277 ntfs_attr *na = vol->mftbmp_na; in ntfs_get_nr_free_mft_records() 297 scx->vol = ctx->vol; in ntfs_fuse_fill_security_context() 342 if (scx->vol->secure_flags & (1 << SECURITY_DEFAULT)) in ntfs_allowed_dir_access() 358 dir_ni2 = ntfs_pathname_to_inode(scx->vol, in ntfs_allowed_dir_access() 378 ni2 = ntfs_pathname_to_inode(scx->vol, NULL, in ntfs_allowed_dir_access() 427 dir_ni2 = ntfs_pathname_to_inode(scx->vol, NULL, in ntfs_allowed_real_dir_access() 453 dir_ni = ntfs_pathname_to_inode(ctx->vol, in get_parent_dir() 487 ntfs_volume *vol; ntfs_fuse_statfs() local [all...] |
H A D | lowntfs-3g.c | 152 (ctx->vol->secure_flags & (1 << SECURITY_DEFAULT) ? 10.0 : 0.0)) 154 (ctx->vol->secure_flags & (1 << SECURITY_DEFAULT) ? 10.0 : 0.0)) 165 ((scx)->vol->secure_flags & (1 << SECURITY_DEFAULT) \ 326 static s64 ntfs_get_nr_free_mft_records(ntfs_volume *vol) in ntfs_get_nr_free_mft_records() argument 328 ntfs_attr *na = vol->mftbmp_na; in ntfs_get_nr_free_mft_records() 349 scx->vol = ctx->vol; in ntfs_fuse_fill_security_context() 382 dir_ni = ntfs_inode_open(ctx->vol, INODE(parent)); in ntfs_fuse_inode_lookup() 430 ni2 = ntfs_inode_open(ctx->vol, INODE(ino)); in ntfs_allowed_dir_access() 468 ntfs_volume *vol; in ntfs_fuse_statfs() local 4313 ntfs_volume *vol; global() local [all...] |
H A D | ntfs-3g.probe.c | 66 ntfs_volume *vol; in ntfs_open() local 73 vol = ntfs_mount(device, flags); in ntfs_open() 74 if (!vol) in ntfs_open() 77 if (ret == 0 && ntfs_umount(vol, FALSE) == -1) in ntfs_open()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | compress.c | 714 ntfs_volume *vol; in ntfs_compressed_attr_pread() local 728 if (!na || !na->ni || !na->ni->vol || !b in ntfs_compressed_attr_pread() 772 vol = na->ni->vol; in ntfs_compressed_attr_pread() 792 start_vcn = (pos & ~cb_size_mask) >> vol->cluster_size_bits; in ntfs_compressed_attr_pread() 800 vol->cluster_size_bits; in ntfs_compressed_attr_pread() 802 nr_cbs = (end_vcn - start_vcn) << vol->cluster_size_bits >> in ntfs_compressed_attr_pread() 847 ofs += vcn << vol->cluster_size_bits; in ntfs_compressed_attr_pread() 913 (vcn << vol->cluster_size_bits) + in ntfs_compressed_attr_pread() 921 (long long)(vcn << vol in ntfs_compressed_attr_pread() 981 read_clusters(ntfs_volume *vol, const runlist_element *rl, s64 offs, u32 to_read, char *inbuf) read_clusters() argument 1023 write_clusters(ntfs_volume *vol, const runlist_element *rl, s64 offs, s32 to_write, const char *outbuf) write_clusters() argument 1071 ntfs_volume *vol; ntfs_comp_set() local 1242 ntfs_volume *vol; ntfs_compress_overwr_free() local 1456 ntfs_volume *vol; ntfs_compress_free() local 1675 ntfs_volume *vol; ntfs_compressed_pwrite() local 1876 ntfs_volume *vol; ntfs_compressed_close() local [all...] |
H A D | device.c | 424 * @vol: volume to read from 430 * volume @vol into buffer @b. Return number of clusters read or -1 on error, 433 s64 ntfs_cluster_read(const ntfs_volume *vol, const s64 lcn, const s64 count, in ntfs_cluster_read() argument 438 if (!vol || lcn < 0 || count < 0) { in ntfs_cluster_read() 442 if (vol->nr_clusters < lcn + count) { in ntfs_cluster_read() 445 "(%lld < %lld)", (long long)vol->nr_clusters, in ntfs_cluster_read() 449 br = ntfs_pread(vol->dev, lcn << vol->cluster_size_bits, in ntfs_cluster_read() 450 count << vol->cluster_size_bits, b); in ntfs_cluster_read() 455 return br >> vol in ntfs_cluster_read() 469 ntfs_cluster_write(const ntfs_volume *vol, const s64 lcn, const s64 count, const void *b) ntfs_cluster_write() argument [all...] |
H A D | reparse.c | 134 ntfs_volume *vol = dir_ni->vol; in ntfs_fix_file_name() local 163 if ((cpuchar < vol->upcase_len) in ntfs_fix_file_name() 164 && (le16_to_cpu(vol->upcase[cpuchar]) < cpuchar)) in ntfs_fix_file_name() 165 find.attr.file_name[i] = vol->upcase[cpuchar]; in ntfs_fix_file_name() 189 vol->upcase, vol->upcase_len)) in ntfs_fix_file_name() 198 if (NVolCaseSensitive(vol) || !vol->locase) { in ntfs_fix_file_name() 203 uname[i] = vol in ntfs_fix_file_name() 220 search_absolute(ntfs_volume *vol, ntfschar *path, int count, BOOL isdir) search_absolute() argument 393 ntfs_drive_letter(ntfs_volume *vol, ntfschar letter) ntfs_drive_letter() argument 559 ntfs_get_fulllink(ntfs_volume *vol, ntfschar *junction, int count, const char *mnt_point, BOOL isdir) ntfs_get_fulllink() argument 662 ntfs_get_abslink(ntfs_volume *vol, ntfschar *junction, int count, const char *mnt_point __attribute__((unused)), BOOL isdir) ntfs_get_abslink() argument 791 ntfs_volume *vol; ntfs_make_symlink() local 1020 open_reparse_index(ntfs_volume *vol) open_reparse_index() argument [all...] |
H A D | collate.c | 45 * @vol: unused 55 static int ntfs_collate_binary(ntfs_volume *vol __attribute__((unused)), in ntfs_collate_binary() 75 * @vol: unused 85 static int ntfs_collate_ntofs_ulong(ntfs_volume *vol __attribute__((unused)), in ntfs_collate_ntofs_ulong() 117 static int ntfs_collate_ntofs_ulongs(ntfs_volume *vol __attribute__((unused)), in ntfs_collate_ntofs_ulongs() 155 * @vol: unused 165 static int ntfs_collate_ntofs_security_hash(ntfs_volume *vol __attribute__((unused)), in ntfs_collate_ntofs_security_hash() 208 * @vol: 218 static int ntfs_collate_file_name(ntfs_volume *vol, in ntfs_collate_file_name() argument 234 CASE_SENSITIVE, vol in ntfs_collate_file_name() [all...] |
H A D | security.c | 437 static int entersecurity_stuff(ntfs_volume *vol, off_t offs) in entersecurity_stuff() argument 450 written = ntfs_attr_data_write(vol->secure_ni, in entersecurity_stuff() 477 static int entersecurity_data(ntfs_volume *vol, in entersecurity_data() argument 508 written1 = ntfs_attr_data_write(vol->secure_ni, in entersecurity_data() 511 written2 = ntfs_attr_data_write(vol->secure_ni, in entersecurity_data() 524 res = ntfs_attr_shrink_size(vol->secure_ni,STREAM_SDS, in entersecurity_data() 542 static int entersecurity_indexes(ntfs_volume *vol, s64 attrsz, in entersecurity_indexes() argument 561 xsii = vol->secure_xsii; in entersecurity_indexes() 582 xsdh = vol->secure_xsdh; in entersecurity_indexes() 620 static le32 entersecurityattr(ntfs_volume *vol, in entersecurityattr() argument 819 setsecurityattr(ntfs_volume *vol, const SECURITY_DESCRIPTOR_RELATIVE *attr, s64 attrsz) setsecurityattr() argument 942 update_secur_descr(ntfs_volume *vol, char *newattr, ntfs_inode *ni) update_secur_descr() argument 1068 upgrade_secur_desc(ntfs_volume *vol, const char *attr, ntfs_inode *ni) upgrade_secur_desc() argument 1795 retrievesecurityattr(ntfs_volume *vol, SII_INDEX_KEY id) retrievesecurityattr() argument 1869 getsecurityattr(ntfs_volume *vol, ntfs_inode *ni) getsecurityattr() argument 4473 ntfs_open_secure(ntfs_volume *vol) ntfs_open_secure() argument 4524 ntfs_close_secure(ntfs_volume *vol) ntfs_close_secure() argument 4711 mergesecurityattr(ntfs_volume *vol, const char *oldattr, const char *newattr, u32 selection, ntfs_inode *ni) mergesecurityattr() argument 5336 ntfs_volume *vol; ntfs_initialize_file_security() local 5387 ntfs_volume *vol; ntfs_leave_file_security() local [all...] |
H A D | runlist.c | 758 * @vol: ntfs volume on which the attribute resides 783 static runlist_element *ntfs_mapping_pairs_decompress_i(const ntfs_volume *vol, in ntfs_mapping_pairs_decompress_i() argument 908 if (vol->major_ver < 3) { in ntfs_mapping_pairs_decompress_i() 962 vol->cluster_size - 1) >> in ntfs_mapping_pairs_decompress_i() 963 vol->cluster_size_bits); in ntfs_mapping_pairs_decompress_i() 1024 runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol, in ntfs_mapping_pairs_decompress() argument 1030 rle = ntfs_mapping_pairs_decompress_i(vol, attr, old_rl); in ntfs_mapping_pairs_decompress() 1091 * @vol: ntfs volume to read from 1097 * This function will read @count bytes from the volume @vol to the data buffer 1113 s64 ntfs_rl_pread(const ntfs_volume *vol, cons argument 1202 ntfs_rl_pwrite(const ntfs_volume *vol, const runlist_element *rl, s64 ofs, const s64 pos, s64 count, void *b) ntfs_rl_pwrite() argument 1326 ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, const runlist_element *rl, const VCN start_vcn, int max_size) ntfs_get_size_for_mapping_pairs() argument 1489 ntfs_mapping_pairs_build(const ntfs_volume *vol, u8 *dst, const int dst_len, const runlist_element *rl, const VCN start_vcn, runlist_element const **stop_rl) ntfs_mapping_pairs_build() argument 1746 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl) ntfs_rl_get_compressed_size() argument 2099 test_rl_frag_combine(ntfs_volume *vol, ATTR_RECORD *attr1, ATTR_RECORD *attr2, ATTR_RECORD *attr3) test_rl_frag_combine() argument 2134 ntfs_volume vol; test_rl_frag() local [all...] |
H A D | inode.c | 85 * @vol: 91 static ntfs_inode *__ntfs_inode_allocate(ntfs_volume *vol) in __ntfs_inode_allocate() argument 97 ni->vol = vol; in __ntfs_inode_allocate() 103 * @vol: 109 ntfs_inode *ntfs_inode_allocate(ntfs_volume *vol) in ntfs_inode_allocate() argument 111 return __ntfs_inode_allocate(vol); in ntfs_inode_allocate() 136 * @vol: volume to get the inode from 145 * volume @vol, and attach it to the ntfs_inode structure (->mrec). The 157 static ntfs_inode *ntfs_inode_real_open(ntfs_volume *vol, cons argument 441 ntfs_inode_invalidate(ntfs_volume *vol, const MFT_REF mref) ntfs_inode_invalidate() argument 465 ntfs_inode_open(ntfs_volume *vol, const MFT_REF mref) ntfs_inode_open() argument 582 ntfs_volume *vol; ntfs_extent_inode_open() local [all...] |
H A D | cache.c | 557 void ntfs_create_lru_caches(ntfs_volume *vol) in ntfs_create_lru_caches() argument 561 vol->xinode_cache = ntfs_create_cache("inode",(cache_free)NULL, in ntfs_create_lru_caches() 567 vol->nidata_cache = ntfs_create_cache("nidata", in ntfs_create_lru_caches() 574 vol->lookup_cache = ntfs_create_cache("lookup", in ntfs_create_lru_caches() 579 vol->securid_cache = ntfs_create_cache("securid",(cache_free)NULL, in ntfs_create_lru_caches() 582 vol->legacy_cache = ntfs_create_cache("legacy",(cache_free)NULL, in ntfs_create_lru_caches() 591 void ntfs_free_lru_caches(ntfs_volume *vol) in ntfs_free_lru_caches() argument 594 ntfs_free_cache(vol->xinode_cache); in ntfs_free_lru_caches() 597 ntfs_free_cache(vol->nidata_cache); in ntfs_free_lru_caches() 600 ntfs_free_cache(vol in ntfs_free_lru_caches() [all...] |
/third_party/ntfs-3g/include/ntfs-3g/ |
H A D | volume.h | 302 extern int ntfs_umount(ntfs_volume *vol, const BOOL force); 304 extern int ntfs_version_is_supported(ntfs_volume *vol); 305 extern int ntfs_volume_check_hiberfile(ntfs_volume *vol, int verbose); 306 extern int ntfs_logfile_reset(ntfs_volume *vol); 308 extern int ntfs_volume_write_flags(ntfs_volume *vol, const le16 flags); 311 extern void ntfs_mount_error(const char *vol, const char *mntpoint, int err); 313 extern int ntfs_volume_get_free_space(ntfs_volume *vol); 314 extern int ntfs_volume_rename(ntfs_volume *vol, const ntfschar *label, 317 extern int ntfs_set_shown_files(ntfs_volume *vol, 320 extern int ntfs_set_ignore_case(ntfs_volume *vol); [all...] |
H A D | lcnalloc.h | 41 extern runlist *ntfs_cluster_alloc(ntfs_volume *vol, VCN start_vcn, s64 count, 44 extern int ntfs_cluster_free_from_rl(ntfs_volume *vol, runlist *rl); 45 extern int ntfs_cluster_free_basic(ntfs_volume *vol, s64 lcn, s64 count); 47 extern int ntfs_cluster_free(ntfs_volume *vol, ntfs_attr *na, VCN start_vcn,
|
/third_party/ntfs-3g/ntfsprogs/ |
H A D | ntfscat.c | 334 static int cat(ntfs_volume *vol, ntfs_inode *inode, ATTR_TYPES type, in cat() argument 357 block_size = vol->mft_record_size; in cat() 404 ntfs_volume *vol; in main() local 418 vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY | in main() 420 if (!vol) { in main() 426 inode = ntfs_inode_open(vol, opts.inode); in main() 433 inode = ntfs_pathname_to_inode(vol, NULL, in main() 439 inode = ntfs_pathname_to_inode(vol, NULL, opts.file); in main() 452 result = cat(vol, inode, attr, opts.attr_name, opts.attr_name_len); in main() 455 ntfs_umount(vol, FALS in main() [all...] |
H A D | ntfsclone.c | 201 static ntfs_volume *vol = NULL; variable 329 if (vol) in err_exit() 330 ntfs_umount(vol,FALSE); in err_exit() 347 if (vol) in perr_exit() 348 ntfs_umount(vol,FALSE); in perr_exit() 649 s64 s = (s64)16384 - rl->vcn * vol->cluster_size; 651 s = rounded_up_division(s, vol->cluster_size); 719 if (vol->dev->d_ops->seek(dev, pos, SEEK_SET) == (off_t)-1) 761 /* vol is NULL if opt.restore_image is set */ 771 csize = vol [all...] |
H A D | ntfsdump_logfile.c | 81 ntfs_volume *vol; member 102 if (ntfs_umount(logfile->vol, 0)) in logfile_close() 115 * @vol: volume to unmount. 124 static void device_err_exit(ntfs_volume *vol, ntfs_inode *ni, in device_err_exit() argument 134 if (ntfs_umount(vol, 0)) in device_err_exit() 196 ntfs_volume *vol; in logfile_open() local 203 vol = ntfs_mount(filename, NTFS_MNT_RDONLY); in logfile_open() 204 if (!vol) in logfile_open() 208 vol->vol_name ? vol in logfile_open() [all...] |
H A D | ntfsmftalloc.c | 76 static ntfs_volume *vol; variable 282 if (ntfs_umount(vol, 0) == -1) in ntfsmftalloc_exit() 318 vol = ntfs_mount(dev_name, ul); in main() 319 if (!vol) in main() 330 base_ni = ntfs_inode_open(vol, base_mft_no); in main() 337 ni = ntfs_mft_record_alloc(vol, base_ni); in main() 360 err = ntfs_umount(vol, 0); in main()
|
H A D | utils.h | 48 int utils_attr_get_name(ntfs_volume *vol, ATTR_RECORD *attr, char *buffer, int bufsize); 49 int utils_cluster_in_use(ntfs_volume *vol, long long lcn); 50 int utils_mftrec_in_use(ntfs_volume *vol, MFT_REF mref); 81 ntfs_volume *vol; member 85 struct mft_search_ctx * mft_get_search_ctx(ntfs_volume *vol);
|
H A D | cluster.c | 44 int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void *data) in cluster_find() argument 55 if (!vol || !cb) in cluster_find() 58 m_ctx = mft_get_search_ctx(vol); in cluster_find() 81 runs = ntfs_mapping_pairs_decompress(vol, a_ctx->attr, NULL); in cluster_find()
|
/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | volume_tools.cpp | 76 AUDIO_ERR_LOG("GetChannelVolumes failed with invalid vol:%{public}d %{public}d channel: %{public}d", volStart, in GetChannelVolumes() 92 AUDIO_ERR_LOG("GetChannelVolumes failed with invalid vol:%{public}f %{public}f channel: %{public}d", volStart, in GetChannelVolumes() 142 inline int32_t VolumeFlatten(int32_t vol) in VolumeFlatten() argument 144 return vol < INT32_VOLUME_MIN ? 0 : (vol > INT32_VOLUME_MAX ? INT32_VOLUME_MAX : vol); in VolumeFlatten() 147 void ProcessOneFrame(uint8_t *ptr, AudioSampleFormat format, int32_t vol) in ProcessOneFrame() argument 156 temp = (temp * vol) >> VOLUME_SHIFT; in ProcessOneFrame() 162 temp = (*raw16 * static_cast<int64_t>(vol)) >> VOLUME_SHIFT; in ProcessOneFrame() 166 temp = static_cast<int32_t>(ReadInt24LE(ptr) << INT24_SHIFT) * static_cast<int64_t>(vol) >> VOLUME_SHIF in ProcessOneFrame() 218 int32_t vol = volStep[channelIdx] * frameIndex + vols.volStart[channelIdx]; Process() local 228 GetVolDb(AudioSampleFormat format, int32_t vol) GetVolDb() argument [all...] |
/third_party/FatFs/source/ |
H A D | ff.h | 104 #define LD2DI(vol) (VolToPart[vol].di) /* Get physical disk id */ 105 #define LD2PD(vol) (VolToPart[vol].pd) /* Get physical drive number */ 108 #define LD2PT(vol) (VolToPart[vol].pt) /* Get partition index */ 109 #define LD2PS(vol) (VolToPart[vol].ps) /* Get partition start sector */ 110 #define LD2PC(vol) (VolToPart[vol] [all...] |
/vendor/hisilicon/hispark_pegasus/demo/environment_demo/ |
H A D | app_demo_mq2.c | 80 float vol = voltage; in Mq2GetPpm() local 85 float VolDif = (VOILTAGE_5_V - vol); in Mq2GetPpm() 86 float SeekModule = VolDif / vol; in Mq2GetPpm() 95 ppm = pow(X_CONSTANT_2 * vol / (VOILTAGE_5_V - vol), 1.0 / Y_CONSTANT_2); /* 计算ppm */ in Mq2GetPpm()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | remap.c | 275 int32_t vol = m->map_table_i[oc][ic]; in remap_channels_matrix_s16ne_c() local 277 if (vol <= 0) in remap_channels_matrix_s16ne_c() 280 if (vol >= 0x10000) { in remap_channels_matrix_s16ne_c() 285 *d += (int16_t) (((int32_t)*s * vol) >> 16); in remap_channels_matrix_s16ne_c() 305 int32_t vol = m->map_table_i[oc][ic]; in remap_channels_matrix_s32ne_c() local 307 if (vol <= 0) in remap_channels_matrix_s32ne_c() 310 if (vol >= 0x10000) { in remap_channels_matrix_s32ne_c() 315 *d += (int32_t) (((int64_t)*s * vol) >> 16); in remap_channels_matrix_s32ne_c() 335 float vol = m->map_table_f[oc][ic]; in remap_channels_matrix_float32ne_c() local 337 if (vol < in remap_channels_matrix_float32ne_c() 366 int32_t vol = m->map_table_i[oc][ic]; pa_setup_remap_arrange() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | sbgdec.c | 85 int vol; member 611 static int parse_volume(struct sbg_parser *p, int *vol) in parse_volume() argument 619 if (scale_double(p->log, v, 0.01, vol)) in parse_volume() 628 int carrier, beat, vol; in parse_synth_channel_sine() local 634 FORWARD_ERROR(parse_volume(p, &vol)); in parse_synth_channel_sine() 641 synth->vol = vol; in parse_synth_channel_sine() 648 int vol; in parse_synth_channel_pink() local 652 FORWARD_ERROR(parse_volume(p, &vol)); in parse_synth_channel_pink() 654 synth->vol in parse_synth_channel_pink() 662 int carrier, vol; parse_synth_channel_bell() local 680 int vol; parse_synth_channel_mix() local 694 int carrier, beat, vol; parse_synth_channel_spin() local [all...] |
/third_party/pulseaudio/src/modules/oss/ |
H A D | oss-util.c | 261 unsigned vol; in pa_oss_get_volume() local 267 if (ioctl(fd, mixer, &vol) < 0) in pa_oss_get_volume() 272 volume->values[0] = PA_CLAMP_VOLUME(((vol & 0xFF) * PA_VOLUME_NORM) / 100); in pa_oss_get_volume() 275 volume->values[1] = PA_CLAMP_VOLUME((((vol >> 8) & 0xFF) * PA_VOLUME_NORM) / 100); in pa_oss_get_volume() 283 unsigned vol; in pa_oss_set_volume() local 288 vol = (l*100)/PA_VOLUME_NORM; in pa_oss_set_volume() 292 vol |= ((r*100)/PA_VOLUME_NORM) << 8; in pa_oss_set_volume() 295 if (ioctl(fd, mixer, &vol) < 0) in pa_oss_set_volume()
|