Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 163) sorted by relevance

1234567

/linux/drivers/mtd/ubi/
H A Dupd.c41 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() argument
46 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker()
48 if (vol->upd_marker) { in set_update_marker()
49 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()
54 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker()
58 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
59 vol->upd_marker = 1; in set_update_marker()
74 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument
80 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker()
82 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker()
[all …]
H A Dvmt.c58 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local
59 struct ubi_device *ubi = vol->ubi; in vol_attribute_show()
62 if (!ubi->volumes[vol->vol_id] || ubi->volumes[vol->vol_id]->is_dead) { in vol_attribute_show()
67 vol->ref_count += 1; in vol_attribute_show()
71 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
75 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
81 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show()
83 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show()
85 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
87 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show()
[all …]
H A Dkapi.c67 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() argument
70 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
73 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info()
74 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
75 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info()
76 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info()
77 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
78 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info()
79 vi->name_len = vol->name_len; in ubi_do_get_volume_info()
[all …]
H A Dcdev.c47 struct ubi_volume *vol = desc->vol; in get_exclusive() local
49 spin_lock(&vol->ubi->volumes_lock); in get_exclusive()
50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive()
53 ubi_err(vol->ubi, "%d users for volume %d", users, vol->vol_id); in get_exclusive()
56 vol in get_exclusive()
73 struct ubi_volume *vol = desc->vol; revoke_exclusive() local
120 struct ubi_volume *vol = desc->vol; vol_cdev_release() local
146 struct ubi_volume *vol = desc->vol; vol_cdev_llseek() local
175 struct ubi_volume *vol = desc->vol; vol_cdev_read() local
252 struct ubi_volume *vol = desc->vol; vol_cdev_direct_write() local
328 struct ubi_volume *vol = desc->vol; vol_cdev_write() local
383 struct ubi_volume *vol = desc->vol; vol_cdev_ioctl() local
[all...]
H A Dvtbl.c128 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
129 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes()
526 struct ubi_volume *vol; in init_volumes() local
534 vol = kzalloc_obj(struct ubi_volume); in init_volumes()
535 if (!vol) in init_volumes()
538 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in init_volumes()
539 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes()
540 vol->data_pad = be32_to_cpu(vtbl[i].data_pad); in init_volumes()
541 vol->upd_marker = vtbl[i].upd_marker; in init_volumes()
542 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? in init_volumes()
[all …]
H A Deba.c104 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum, in ubi_eba_get_ldesc() argument
108 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_get_ldesc()
120 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol, in ubi_eba_create_table() argument
169 void ubi_eba_copy_table(struct ubi_volume *vol, struct ubi_eba_table *dst, in ubi_eba_copy_table() argument
175 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()
177 src = vol->eba_tbl; in ubi_eba_copy_table()
190 void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl) in ubi_eba_replace_table() argument
192 ubi_eba_destroy_table(vol->eba_tbl); in ubi_eba_replace_table()
193 vol->eba_tbl = tbl; in ubi_eba_replace_table()
431 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum) in ubi_eba_is_mapped() argument
[all …]
H A Dubi.h380 struct ubi_volume *vol; member
865 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
866 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
869 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
871 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
873 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
875 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol,
886 static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) in ubi_leb_valid() argument
888 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
892 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
[all …]
H A Ddebug.c125 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument
128 pr_err("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
129 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
130 pr_err("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
131 pr_err("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
132 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
133 pr_err("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
134 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
135 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
136 pr_err("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info()
[all …]
/linux/fs/ntfs/
H A Dsuper.c142 struct ntfs_volume *vol = fc->s_fs_info; in ntfs_parse_param()
152 vol->uid = make_kuid(current_user_ns(), result.uint_32); in ntfs_parse_param()
155 vol->gid = make_kgid(current_user_ns(), result.uint_32); in ntfs_parse_param()
158 vol->fmask = vol->dmask = result.uint_32; in ntfs_parse_param()
161 vol->dmask = result.uint_32; in ntfs_parse_param()
164 vol->fmask = result.uint_32; in ntfs_parse_param()
167 vol->on_errors = result.uint_32; in ntfs_parse_param()
171 if (vol->nls_map) in ntfs_parse_param()
172 unload_nls(vol in ntfs_parse_param()
125 struct ntfs_volume *vol = fc->s_fs_info; ntfs_parse_param() local
268 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_reconfigure() local
335 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_handle_error() local
370 ntfs_write_volume_flags(struct ntfs_volume * vol,const __le16 flags) ntfs_write_volume_flags() argument
420 ntfs_set_volume_flags(struct ntfs_volume * vol,__le16 flags) ntfs_set_volume_flags() argument
435 ntfs_clear_volume_flags(struct ntfs_volume * vol,__le16 flags) ntfs_clear_volume_flags() argument
442 ntfs_write_volume_label(struct ntfs_volume * vol,char * label) ntfs_write_volume_label() argument
643 parse_ntfs_boot_sector(struct ntfs_volume * vol,const struct ntfs_boot_sector * b) parse_ntfs_boot_sector() argument
824 ntfs_setup_allocators(struct ntfs_volume * vol) ntfs_setup_allocators() argument
900 load_and_init_mft_mirror(struct ntfs_volume * vol) load_and_init_mft_mirror() argument
957 check_mft_mirror(struct ntfs_volume * vol) check_mft_mirror() argument
1090 load_and_check_logfile(struct ntfs_volume * vol,struct restart_page_header ** rp) load_and_check_logfile() argument
1138 check_windows_hibernation_status(struct ntfs_volume * vol) check_windows_hibernation_status() argument
1225 load_and_init_attrdef(struct ntfs_volume * vol) load_and_init_attrdef() argument
1291 load_and_init_upcase(struct ntfs_volume * vol) load_and_init_upcase() argument
1399 load_system_files(struct ntfs_volume * vol) load_system_files() argument
1668 ntfs_volume_free(struct ntfs_volume * vol) ntfs_volume_free() argument
1713 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_put_super() local
1822 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_force_shutdown() local
1855 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_sync_fs() local
1895 get_nr_free_clusters(struct ntfs_volume * vol) get_nr_free_clusters() argument
1981 ntfs_available_clusters_count(struct ntfs_volume * vol,s64 nr_clusters) ntfs_available_clusters_count() argument
2016 __get_nr_free_mft_records(struct ntfs_volume * vol,s64 nr_free,const pgoff_t max_index) __get_nr_free_mft_records() argument
2095 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_statfs() local
2182 struct ntfs_volume *vol = container_of(work, struct ntfs_volume, precalc_work); precalc_free_clusters() local
2214 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_fill_super() local
2530 struct ntfs_volume *vol = fc->s_fs_info; ntfs_free_fs_context() local
2545 struct ntfs_volume *vol; ntfs_init_fs_context() local
[all...]
H A Dlcnalloc.c24 * @vol: mounted ntfs volume on which to free the clusters
27 * Free all the clusters described by the runlist @rl on the volume @vol. In
36 int ntfs_cluster_free_from_rl_nolock(struct ntfs_volume *vol, in ntfs_cluster_free_from_rl_nolock() argument
39 struct inode *lcnbmp_vi = vol->lcnbmp_ino; in ntfs_cluster_free_from_rl_nolock()
47 if (!NVolFreeClusterKnown(vol)) in ntfs_cluster_free_from_rl_nolock()
48 wait_event(vol->free_waitq, NVolFreeClusterKnown(vol)); in ntfs_cluster_free_from_rl_nolock()
61 ntfs_inc_free_clusters(vol, nr_freed); in ntfs_cluster_free_from_rl_nolock()
121 * @vol: mounted ntfs volume on which to allocate clusters
132 * @vol
183 ntfs_cluster_alloc(struct ntfs_volume * vol,const s64 start_vcn,const s64 count,const s64 start_lcn,const int zone,const bool is_extension,const bool is_contig,const bool is_dealloc) ntfs_cluster_alloc() argument
846 struct ntfs_volume *vol; __ntfs_cluster_free() local
[all...]
H A Dmft.c31 int ntfs_mft_record_check(const struct ntfs_volume *vol, struct mft_record *m, in ntfs_mft_record_check()
35 struct super_block *sb = vol->sb; in ntfs_mft_record_check()
46 (vol->mft_record_size >> NTFS_BLOCK_SIZE_BITS) + 1 != le16_to_cpu(m->usa_count) || in ntfs_mft_record_check()
47 le16_to_cpu(m->usa_ofs) + le16_to_cpu(m->usa_count) * 2 > vol->mft_record_size) { in ntfs_mft_record_check()
53 if (le32_to_cpu(m->bytes_allocated) != vol->mft_record_size) { in ntfs_mft_record_check()
55 mft_no, vol->mft_record_size, in ntfs_mft_record_check()
60 if (le32_to_cpu(m->bytes_in_use) > vol->mft_record_size) { in ntfs_mft_record_check()
63 vol->mft_record_size); in ntfs_mft_record_check()
83 if ((char *)a < (char *)m || (char *)a > (char *)m + vol->mft_record_size) { in ntfs_mft_record_check()
115 struct ntfs_volume *vol in map_mft_record_folio()
28 ntfs_mft_record_check(const struct ntfs_volume * vol,struct mft_record * m,u64 mft_no) ntfs_mft_record_check() argument
112 struct ntfs_volume *vol = ni->vol; map_mft_record_folio() local
461 ntfs_sync_mft_mirror(struct ntfs_volume * vol,const u64 mft_no,struct mft_record * m) ntfs_sync_mft_mirror() argument
550 struct ntfs_volume *vol = ni->vol; write_mft_record_nolock() local
746 ntfs_may_write_mft_record(struct ntfs_volume * vol,const u64 mft_no,const struct mft_record * m,struct ntfs_inode ** locked_ni,struct inode ** ref_vi) ntfs_may_write_mft_record() argument
850 mft_reserved_is_free(struct ntfs_volume * vol,struct ntfs_inode * mft_ni,s64 mft_no) mft_reserved_is_free() argument
976 mft_bitmap_alloc_free_rec(struct ntfs_volume * vol,struct ntfs_inode * base_ni,s64 max_mft_no,s64 * new_reserve_end) mft_bitmap_alloc_free_rec() argument
1178 ntfs_mft_bitmap_extend_allocation_nolock(struct ntfs_volume * vol) ntfs_mft_bitmap_extend_allocation_nolock() argument
1480 ntfs_mft_bitmap_extend_initialized_nolock(struct ntfs_volume * vol) ntfs_mft_bitmap_extend_initialized_nolock() argument
1613 ntfs_mft_data_extend_allocation_nolock(struct ntfs_volume * vol) ntfs_mft_data_extend_allocation_nolock() argument
1909 ntfs_mft_record_layout(const struct ntfs_volume * vol,const s64 mft_no,struct mft_record * m) ntfs_mft_record_layout() argument
1983 ntfs_mft_record_format(const struct ntfs_volume * vol,const s64 mft_no) ntfs_mft_record_format() argument
2132 ntfs_mft_record_alloc(struct ntfs_volume * vol,const int mode,struct ntfs_inode ** ni,struct ntfs_inode * base_ni,struct mft_record ** ni_mrec,const s64 mft_data_vcn) ntfs_mft_record_alloc() argument
2743 ntfs_mft_record_free(struct ntfs_volume * vol,struct ntfs_inode * ni) ntfs_mft_record_free() argument
2857 lcn_from_index(struct ntfs_volume * vol,struct ntfs_inode * ni,unsigned long index) lcn_from_index() argument
2889 struct ntfs_volume *vol = ni->vol; ntfs_write_mft_block() local
[all...]
H A Dntfs.h55 #define NTFS_B_TO_CLU(vol, b) ((b) >> (vol)->cluster_size_bits) argument
56 #define NTFS_CLU_TO_B(vol, clu) ((u64)(clu) << (vol)->cluster_size_bits) argument
57 #define NTFS_B_TO_CLU_OFS(vol, clu) ((u64)(clu) & (vol)->cluster_size_mask) argument
59 #define NTFS_MFT_NR_TO_CLU(vol, mft_no) (((u64)mft_no << (vol)->mft_record_size_bits) >> \ argument
60 (vol)->cluster_size_bits)
61 #define NTFS_MFT_NR_TO_PIDX(vol, mft_n argument
63 NTFS_MFT_NR_TO_POFS(vol,mft_no) global() argument
66 NTFS_PIDX_TO_BLK(vol,idx) global() argument
68 NTFS_PIDX_TO_CLU(vol,idx) global() argument
70 NTFS_CLU_TO_PIDX(vol,clu) global() argument
72 NTFS_CLU_TO_POFS(vol,clu) global() argument
93 ntfs_bytes_to_cluster(const struct ntfs_volume * vol,s64 bytes) ntfs_bytes_to_cluster() argument
100 ntfs_cluster_to_bytes(const struct ntfs_volume * vol,u64 clusters) ntfs_cluster_to_bytes() argument
107 ntfs_bytes_to_cluster_off(const struct ntfs_volume * vol,u64 bytes) ntfs_bytes_to_cluster_off() argument
114 ntfs_mft_no_to_cluster(const struct ntfs_volume * vol,unsigned long mft_no) ntfs_mft_no_to_cluster() argument
122 ntfs_mft_no_to_pidx(const struct ntfs_volume * vol,unsigned long mft_no) ntfs_mft_no_to_pidx() argument
129 ntfs_mft_no_to_poff(const struct ntfs_volume * vol,unsigned long mft_no) ntfs_mft_no_to_poff() argument
136 ntfs_pidx_to_cluster(const struct ntfs_volume * vol,pgoff_t idx) ntfs_pidx_to_cluster() argument
143 ntfs_cluster_to_pidx(const struct ntfs_volume * vol,u64 clu) ntfs_cluster_to_pidx() argument
150 ntfs_cluster_to_poff(const struct ntfs_volume * vol,u64 clu) ntfs_cluster_to_poff() argument
[all...]
H A Dvolume.h230 static inline int NVol##flag(struct ntfs_volume *vol) \ in DEFINE_NVOL_BIT_OPS()
232 return test_bit(NV_##flag, &(vol)->flags); \ in DEFINE_NVOL_BIT_OPS()
234 static inline void NVolSet##flag(struct ntfs_volume *vol) \ in DEFINE_NVOL_BIT_OPS()
236 set_bit(NV_##flag, &(vol)->flags); \ in DEFINE_NVOL_BIT_OPS()
238 static inline void NVolClear##flag(struct ntfs_volume *vol) \ in DEFINE_NVOL_BIT_OPS()
240 clear_bit(NV_##flag, &(vol)->flags); \ in DEFINE_NVOL_BIT_OPS()
265 static inline void ntfs_inc_free_clusters(struct ntfs_volume *vol, s64 nr) in ntfs_dec_free_mft_records()
267 if (!NVolFreeClusterKnown(vol)) in ntfs_dec_free_mft_records()
268 wait_event(vol->free_waitq, NVolFreeClusterKnown(vol));
252 ntfs_dec_free_clusters(struct ntfs_volume * vol,s64 nr) ntfs_dec_free_clusters() argument
259 ntfs_inc_free_mft_records(struct ntfs_volume * vol,s64 nr) ntfs_inc_free_mft_records() argument
264 ntfs_dec_free_mft_records(struct ntfs_volume * vol,s64 nr) ntfs_dec_free_mft_records() argument
269 ntfs_set_lcn_empty_bits(struct ntfs_volume * vol,unsigned long index,u8 val,unsigned int count) ntfs_set_lcn_empty_bits() argument
281 ntfs_hold_dirty_clusters(struct ntfs_volume * vol,s64 nr_clusters) ntfs_hold_dirty_clusters() argument
286 ntfs_release_dirty_clusters(struct ntfs_volume * vol,s64 nr_clusters) ntfs_release_dirty_clusters() argument
[all...]
H A Dfile.c59 if (NVolShutdown(ni->vol)) in ntfs_file_open()
90 struct ntfs_volume *vol = ni->vol; in ntfs_trim_prealloc()
101 aligned_data_size = round_up(ni->data_size, vol->cluster_size); in ntfs_trim_prealloc()
105 vcn_ds = ntfs_bytes_to_cluster(vol, aligned_data_size); in ntfs_trim_prealloc()
116 err = ntfs_rl_truncate_nolock(vol, &ni->runlist, vcn_tr); in ntfs_trim_prealloc()
120 ntfs_error(vol->sb, "Preallocated block rollback failed"); in ntfs_trim_prealloc()
122 ni->allocated_size = ntfs_cluster_to_bytes(vol, vcn_tr); in ntfs_trim_prealloc()
126 ntfs_error(vol->sb, in ntfs_trim_prealloc()
159 if (NVolShutdown(ni->vol)) in ntfs_file_fsync()
81 struct ntfs_volume *vol = ni->vol; ntfs_trim_prealloc() local
164 struct ntfs_volume *vol = ni->vol; ntfs_file_fsync() local
312 struct ntfs_volume *vol = ni->vol; ntfs_setattr() local
557 struct ntfs_volume *vol = ni->vol; ntfs_expand_for_write() local
585 struct ntfs_volume *vol = ni->vol; ntfs_file_write_iter() local
801 struct ntfs_volume *vol = NTFS_SB(file_inode(filp)->i_sb); ntfs_ioctl_get_volume_label() local
824 struct ntfs_volume *vol = NTFS_SB(file_inode(filp)->i_sb); ntfs_ioctl_set_volume_label() local
846 ntfs_ioctl_fitrim(struct ntfs_volume * vol,unsigned long arg) ntfs_ioctl_fitrim() argument
910 struct ntfs_volume *vol = ni->vol; ntfs_allocate_range() local
949 struct ntfs_volume *vol = ni->vol; ntfs_punch_hole() local
1023 struct ntfs_volume *vol = ni->vol; ntfs_collapse_range() local
1069 struct ntfs_volume *vol = ni->vol; ntfs_insert_range() local
1132 struct ntfs_volume *vol = ni->vol; ntfs_fallocate() local
[all...]
H A Dnamei.c64 * @vol: NTFS volume in ntfs_check_bad_windows_name()
73 int ntfs_check_bad_windows_name(struct ntfs_volume *vol, in ntfs_check_bad_windows_name()
77 if (!NVolCheckWindowsNames(vol)) in ntfs_check_bad_windows_name()
90 __le16 *upcase = vol->upcase; in ntfs_check_bad_windows_name()
91 u32 size = vol->upcase_len; in ntfs_check_bad_windows_name()
101 __le16 *upcase = vol->upcase;
102 u32 size = vol->upcase_len, port;
187 struct ntfs_volume *vol = NTFS_SB(dir_ino->i_sb); in ntfs_lookup()
199 stream_path_len = ntfs_stream_path_parse(vol, &dent->d_name, in ntfs_lookup()
207 uname_len = ntfs_nlstoucs(vol, den in ntfs_lookup()
60 ntfs_check_bad_windows_name(struct ntfs_volume * vol,const __le16 * wc,unsigned int wc_len) ntfs_check_bad_windows_name() argument
173 struct ntfs_volume *vol = NTFS_SB(dir_ino->i_sb); ntfs_lookup() local
399 struct ntfs_volume *vol = dir_ni->vol; __ntfs_create() local
738 struct ntfs_volume *vol = NTFS_SB(dir->i_sb); ntfs_create() local
1012 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_unlink() local
1056 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_mkdir() local
1097 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_rmdir() local
1263 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_rename() local
1406 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_symlink() local
1454 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_mknod() local
1507 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_link() local
[all...]
H A Dbitmap.c22 int ntfs_bitmap_check_used(struct ntfs_volume *vol, s64 start, s64 count, in ntfs_trim_fs()
25 struct address_space *mapping = vol->lcnbmp_ino->i_mapping; in ntfs_trim_fs()
32 if (start < 0 || count <= 0 || start >= vol->nr_clusters || in ntfs_trim_fs()
33 count > vol->nr_clusters - start || NVolFreeClusterKnown(vol)) in ntfs_trim_fs()
35 if (repair && sb_rdonly(vol->sb)) in ntfs_trim_fs()
68 int ntfs_trim_fs(struct ntfs_volume *vol, struct fstrim_range *range) in ntfs_trim_fs()
77 u64 start_cluster = ntfs_bytes_to_cluster(vol, range->start); in ntfs_trim_fs()
78 u32 dq = bdev_discard_granularity(vol->sb->s_bdev); in ntfs_trim_fs()
82 dq = vol in ntfs_trim_fs()
15 ntfs_trim_fs(struct ntfs_volume * vol,struct fstrim_range * range) ntfs_trim_fs() argument
133 struct ntfs_volume *vol = ni->vol; __ntfs_bitmap_set_bits_in_run() local
[all...]
H A Dattrib.c111 if (unlikely(NVolMftBootstrap(ni->vol) && in ntfs_map_runlist_nolock()
112 base_ni == NTFS_I(ni->vol->mft_ino))) { in ntfs_map_runlist_nolock()
113 ntfs_error(ni->vol->sb, in ntfs_map_runlist_nolock()
139 ntfs_bytes_to_cluster(ni->vol, ni->allocated_size); in ntfs_map_runlist_nolock()
206 rl = ntfs_mapping_pairs_decompress(ni->vol, a, &ni->runlist, &new_rl_count); in ntfs_map_runlist_nolock()
373 if ((s64)ntfs_cluster_to_bytes(ni->vol, vcn) < allocated_size)
468 ntfs_error(ni->vol->sb, "Failed with error code %lli.", in __ntfs_attr_find_vcn_nolock()
613 ntfs_error(ni->vol->sb, "Failed with error code %i.", err); in ntfs_attr_type_is_resident_only()
774 static bool ntfs_attr_value_is_valid(struct ntfs_volume *vol, in ntfs_attr_value_is_valid()
813 ntfs_error(vol
734 ntfs_attr_value_is_valid(struct ntfs_volume * vol,const struct attr_record * a,const u64 mft_no) ntfs_attr_value_is_valid() argument
841 struct ntfs_volume *vol = ctx->ntfs_ino->vol; ntfs_attr_find() local
979 ntfs_attr_name_get(const struct ntfs_volume * vol,const __le16 * uname,const int uname_len) ntfs_attr_name_get() argument
1151 struct ntfs_volume *vol; ntfs_external_attr_find() local
1734 ntfs_attr_find_in_attrdef(const struct ntfs_volume * vol,const __le32 type) ntfs_attr_find_in_attrdef() argument
1766 ntfs_attr_size_bounds_check(const struct ntfs_volume * vol,const __le32 type,const s64 size) ntfs_attr_size_bounds_check() argument
1801 ntfs_attr_can_be_non_resident(const struct ntfs_volume * vol,const __le32 type) ntfs_attr_can_be_non_resident() argument
1834 ntfs_attr_can_be_resident(const struct ntfs_volume * vol,const __le32 type) ntfs_attr_can_be_resident() argument
1942 struct ntfs_volume *vol = ni->vol; ntfs_attr_make_non_resident() local
3072 struct ntfs_volume *vol = ni->vol; ntfs_attr_init() local
3276 struct ntfs_volume *vol = ni->vol; ntfs_attr_map_whole_runlist() local
4116 struct ntfs_volume *vol = ni->vol; ntfs_attr_make_resident() local
4244 struct ntfs_volume *vol; ntfs_non_resident_attr_shrink() local
4445 struct ntfs_volume *vol; ntfs_non_resident_attr_expand() local
4737 struct ntfs_volume *vol = attr_ni->vol; ntfs_resident_attr_resize() local
5134 struct ntfs_volume *vol = ni->vol; ntfs_attr_map_cluster() local
5501 struct ntfs_volume *vol = ni->vol; ntfs_non_resident_attr_insert_range() local
5580 struct ntfs_volume *vol = ni->vol; ntfs_non_resident_attr_collapse_range() local
5675 struct ntfs_volume *vol = ni->vol; ntfs_non_resident_attr_punch_hole() local
5732 struct ntfs_volume *vol = ni->vol; ntfs_attr_fallocate() local
[all...]
H A Ddir.c78 struct ntfs_volume *vol = dir_ni->vol; in ntfs_lookup_inode_by_name()
79 struct super_block *sb = vol->sb; in ntfs_lookup_inode_by_name()
156 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
201 if ((!NVolCaseSensitive(vol) || in ntfs_lookup_inode_by_name()
206 IGNORE_CASE, vol->upcase, in ntfs_lookup_inode_by_name()
207 vol->upcase_len)) { in ntfs_lookup_inode_by_name()
243 IGNORE_CASE, vol->upcase, vol in ntfs_lookup_inode_by_name()
77 struct ntfs_volume *vol = dir_ni->vol; ntfs_lookup_inode_by_name() local
592 ntfs_filldir(struct ntfs_volume * vol,struct ntfs_inode * ndir,struct page * ia_page,struct index_entry * ie,u8 * name,struct dir_context * actor) ntfs_filldir() argument
723 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_readdir() local
1115 struct ntfs_volume *vol = NTFS_I(vi)->vol; ntfs_dir_fsync() local
[all...]
H A Dinode.c64 IGNORE_CASE, ni->vol->upcase, in ntfs_test_inode()
65 ni->vol->upcase_len)) in ntfs_test_inode()
370 struct super_block *sb = ni->vol->sb; in ntfs_non_resident_dealloc_clusters()
385 err = ntfs_cluster_free_from_rl(ni->vol, ni->runlist.rl); in ntfs_drop_big_inode()
397 rl = ntfs_mapping_pairs_decompress(ni->vol, actx->attr, NULL, in ntfs_drop_big_inode()
406 err = ntfs_cluster_free_from_rl(ni->vol, rl); in ntfs_drop_big_inode()
414 ntfs_release_dirty_clusters(ni->vol, ni->i_dealloc_clusters); in ntfs_drop_big_inode()
507 ni->vol = NTFS_SB(sb);
609 ntfs_error(ctx->ntfs_ino->vol->sb, in ntfs_is_extended_system_file()
614 ntfs_error(ctx->ntfs_ino->vol in ntfs_is_extended_system_file()
681 struct ntfs_volume *vol = NTFS_SB(vi->i_sb); ntfs_read_locked_inode() local
1283 struct ntfs_volume *vol = NTFS_SB(vi->i_sb); ntfs_read_locked_attr_inode() local
1523 struct ntfs_volume *vol = NTFS_SB(vi->i_sb); ntfs_read_locked_index_inode() local
1759 load_attribute_list_mount(struct ntfs_volume * vol,struct runlist_element * rl,u8 * al_start,const s64 size,const s64 initialized_size) load_attribute_list_mount() argument
1861 struct ntfs_volume *vol = NTFS_SB(sb); ntfs_read_inode_mount() local
2371 struct ntfs_volume *vol = NTFS_SB(root->d_sb); ntfs_show_options() local
3752 struct ntfs_volume *vol = ni->vol; __ntfs_inode_non_resident_attr_pwrite() local
[all...]
H A Daops.c140 struct ntfs_volume *vol = ni->vol; in ntfs_bmap() local
148 ntfs_error(vol->sb, "BMAP does not make sense for %s attributes, returning 0.", in ntfs_bmap()
156 blocksize = vol->sb->s_blocksize; in ntfs_bmap()
157 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_bmap()
171 lcn = ntfs_attr_vcn_to_lcn_nolock(ni, ntfs_bytes_to_cluster(vol, ofs), in ntfs_bmap()
192 ntfs_error(vol->sb, in ntfs_bmap()
197 ntfs_error(vol->sb, in ntfs_bmap()
214 delta = ofs & vol->cluster_size_mask; in ntfs_bmap()
216 block = lcn = (ntfs_cluster_to_bytes(vol, lc in ntfs_bmap()
[all...]
H A Dattrlist.c72 struct ntfs_volume *vol = attr_ni->vol; in ntfs_attrlist_repack()
109 nr_clusters = ntfs_bytes_to_cluster(vol, in ntfs_attrlist_repack()
110 alloc_size + vol->cluster_size - 1); in ntfs_attrlist_repack()
117 new_rl = ntfs_cluster_alloc(vol, 0, nr_clusters, -1, DATA_ZONE, in ntfs_attrlist_repack()
130 ntfs_cluster_free_from_rl(vol, new_rl); in ntfs_attrlist_repack()
143 attr_ni->allocated_size = ntfs_cluster_to_bytes(vol, nr_clusters); in ntfs_attrlist_repack()
160 if (ntfs_cluster_free_from_rl(vol, old_rl)) { in ntfs_attrlist_repack()
161 ntfs_error(vol->sb, in ntfs_attrlist_repack()
164 NVolSetErrors(vol); in ntfs_attrlist_repack()
74 struct ntfs_volume *vol = attr_ni->vol; ntfs_attrlist_repack() local
[all...]
/linux/sound/ppc/
H A Dawacs.c140 int vol[2]; in snd_pmac_awacs_get_volume() local
143 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume()
144 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume()
146 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume()
147 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume()
149 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume()
150 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume()
162 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local
164 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume()
165 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume()
[all …]
/linux/sound/pci/ice1712/
H A Dse.c25 } vol[8]; member
450 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get()
451 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get()
461 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get()
471 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get()
482 spec->vol[n].ch1, in se200pci_cont_update()
483 spec->vol[n].ch2); in se200pci_cont_update()
488 spec->vol[n].ch1, in se200pci_cont_update()
489 spec->vol[n].ch2); in se200pci_cont_update()
494 spec->vol[n].ch1, in se200pci_cont_update()
[all …]
H A Dphase.c47 unsigned short vol[8]; member
266 unsigned short vol, unsigned short master) in wm_set_vol() argument
270 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol()
273 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol()
348 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local
349 if (vol > WM_VOL_MAX) in wm_master_vol_put()
351 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
352 if (vol != spec->master[ch]) { in wm_master_vol_put()
354 spec->master[ch] = vol; in wm_master_vol_put()
357 spec->vol[dac + ch], in wm_master_vol_put()
[all …]
/linux/drivers/media/radio/
H A Dradio-typhoon.c111 static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in typhoon_s_mute_volume() argument
116 vol = 0; in typhoon_s_mute_volume()
117 vol >>= 14; /* Map 16 bit to 2 bit */ in typhoon_s_mute_volume()
118 vol &= 3; in typhoon_s_mute_volume()
119 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */ in typhoon_s_mute_volume()
120 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */ in typhoon_s_mute_volume()
122 if (vol == 0 && !ty->muted) { in typhoon_s_mute_volume()
126 if (vol && ty->muted) { in typhoon_s_mute_volume()

1234567