Home
last modified time | relevance | path

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

123456789

/linux-6.1.9/drivers/mtd/ubi/
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 …]
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]) { 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 …]
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 …]
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->readers = vol->writers = vol->metaonly = 0; in get_exclusive()
57 vol->exclusive = 1; in get_exclusive()
61 spin_unlock(&vol->ubi->volumes_lock); in get_exclusive()
73 struct ubi_volume *vol = desc->vol; in revoke_exclusive() local
75 spin_lock(&vol->ubi->volumes_lock); in revoke_exclusive()
76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive()
[all …]
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(sizeof(struct ubi_volume), GFP_KERNEL); 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 …]
Deba.c107 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum, in ubi_eba_get_ldesc() argument
111 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_get_ldesc()
123 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol, in ubi_eba_create_table() argument
173 void ubi_eba_copy_table(struct ubi_volume *vol, struct ubi_eba_table *dst, in ubi_eba_copy_table() argument
179 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()
181 src = vol->eba_tbl; in ubi_eba_copy_table()
194 void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl) in ubi_eba_replace_table() argument
196 ubi_eba_destroy_table(vol->eba_tbl); in ubi_eba_replace_table()
197 vol->eba_tbl = tbl; in ubi_eba_replace_table()
435 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum) in ubi_eba_is_mapped() argument
[all …]
Ddebug.c95 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument
98 pr_err("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
99 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
100 pr_err("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
101 pr_err("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
102 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
103 pr_err("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
104 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
105 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
106 pr_err("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info()
[all …]
Dubi.h387 struct ubi_volume *vol; member
848 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
849 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
852 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
854 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
856 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
858 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol,
869 static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) in ubi_leb_valid() argument
871 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
875 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
[all …]
Dmisc.c52 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local
54 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
57 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
61 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
66 if (i == vol->used_ebs - 1) in ubi_check_volume()
67 size = vol->last_eb_bytes; in ubi_check_volume()
69 size = vol->usable_leb_size; in ubi_check_volume()
71 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
/linux-6.1.9/fs/ntfs/
Dsuper.c87 static bool parse_options(ntfs_volume *vol, char *opt) in parse_options() argument
192 ntfs_warning(vol->sb, "Ignoring obsolete option %s.", in parse_options()
196 ntfs_warning(vol->sb, "Option iocharset is " in parse_options()
207 ntfs_error(vol->sb, "NLS character set " in parse_options()
211 ntfs_error(vol->sb, "NLS character set %s not " in parse_options()
220 ntfs_warning(vol->sb, "Option utf8 is no longer " in parse_options()
234 ntfs_error(vol->sb, "Unrecognized mount option %s.", p); in parse_options()
247 ntfs_warning(vol->sb, "Sloppy option given. Ignoring " in parse_options()
252 ntfs_error(vol->sb, "Invalid errors option argument " in parse_options()
258 if (vol->nls_map && vol->nls_map != nls_map) { in parse_options()
[all …]
Dlcnalloc.c36 int ntfs_cluster_free_from_rl_nolock(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()
132 runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, const VCN start_vcn, in ntfs_cluster_alloc() argument
154 BUG_ON(!vol); in ntfs_cluster_alloc()
155 lcnbmp_vi = vol->lcnbmp_ino; in ntfs_cluster_alloc()
167 down_write(&vol->lcnbmp_lock); in ntfs_cluster_alloc()
189 zone_start = vol->data1_zone_pos; in ntfs_cluster_alloc()
191 zone_start = vol->mft_zone_pos; in ntfs_cluster_alloc()
199 } else if (zone == DATA_ZONE && zone_start >= vol->mft_zone_start && in ntfs_cluster_alloc()
200 zone_start < vol->mft_zone_end) { in ntfs_cluster_alloc()
[all …]
Dmft.c39 ntfs_volume *vol = ni->vol; in map_mft_record_page() local
40 struct inode *mft_vi = vol->mft_ino; in map_mft_record_page()
52 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page()
54 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page()
63 vol->mft_record_size) { in map_mft_record_page()
65 ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, " in map_mft_record_page()
82 ntfs_error(vol->sb, "Mft record 0x%lx is corrupt. " in map_mft_record_page()
86 NVolSetErrors(vol); in map_mft_record_page()
162 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record()
282 ntfs_error(base_ni->vol->sb, "Found stale extent mft " in map_extent_mft_record()
[all …]
Dquota.c23 bool ntfs_mark_quotas_out_of_date(ntfs_volume *vol) in ntfs_mark_quotas_out_of_date() argument
31 if (NVolQuotaOutOfDate(vol)) in ntfs_mark_quotas_out_of_date()
33 if (!vol->quota_ino || !vol->quota_q_ino) { in ntfs_mark_quotas_out_of_date()
34 ntfs_error(vol->sb, "Quota inodes are not open."); in ntfs_mark_quotas_out_of_date()
37 inode_lock(vol->quota_q_ino); in ntfs_mark_quotas_out_of_date()
38 ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino)); in ntfs_mark_quotas_out_of_date()
40 ntfs_error(vol->sb, "Failed to get index context."); in ntfs_mark_quotas_out_of_date()
46 ntfs_error(vol->sb, "Quota defaults entry is not " in ntfs_mark_quotas_out_of_date()
49 ntfs_error(vol->sb, "Lookup of quota defaults entry " in ntfs_mark_quotas_out_of_date()
54 ntfs_error(vol->sb, "Quota defaults entry size is invalid. " in ntfs_mark_quotas_out_of_date()
[all …]
Dattrib.c109 ni->vol->cluster_size_bits; in ntfs_map_runlist_nolock()
173 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock()
388 ntfs_error(ni->vol->sb, "Failed with error code %lli.", in ntfs_attr_vcn_to_lcn_nolock()
514 ntfs_error(ni->vol->sb, "Failed with error code %i.", err); in ntfs_attr_find_vcn_nolock()
580 ntfs_volume *vol = ctx->ntfs_ino->vol; in ntfs_attr_find() local
581 ntfschar *upcase = vol->upcase; in ntfs_attr_find()
582 u32 upcase_len = vol->upcase_len; in ntfs_attr_find()
699 ntfs_error(vol->sb, "Inode is corrupt. Run chkdsk."); in ntfs_attr_find()
700 NVolSetErrors(vol); in ntfs_attr_find()
720 int load_attribute_list(ntfs_volume *vol, runlist *runlist, u8 *al_start, in load_attribute_list() argument
[all …]
Dinode.c375 ni->vol = NTFS_SB(sb); in __ntfs_init_inode()
458 ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name " in ntfs_is_extended_system_file()
463 ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file " in ntfs_is_extended_system_file()
468 ntfs_error(ctx->ntfs_ino->vol->sb, "File name with " in ntfs_is_extended_system_file()
474 ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file " in ntfs_is_extended_system_file()
490 ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count " in ntfs_is_extended_system_file()
526 ntfs_volume *vol = NTFS_SB(vi->i_sb); in ntfs_read_locked_inode() local
538 vi->i_uid = vol->uid; in ntfs_read_locked_inode()
539 vi->i_gid = vol->gid; in ntfs_read_locked_inode()
601 vi->i_mode &= ~vol->dmask; in ntfs_read_locked_inode()
[all …]
Dusnjrnl.c33 bool ntfs_stamp_usnjrnl(ntfs_volume *vol) in ntfs_stamp_usnjrnl() argument
36 if (likely(!NVolUsnJrnlStamped(vol))) { in ntfs_stamp_usnjrnl()
41 page = ntfs_map_page(vol->usnjrnl_max_ino->i_mapping, 0); in ntfs_stamp_usnjrnl()
43 ntfs_error(vol->sb, "Failed to read from " in ntfs_stamp_usnjrnl()
56 i_size_read(vol->usnjrnl_j_ino)); in ntfs_stamp_usnjrnl()
58 cpu_to_sle64(i_size_read(vol->usnjrnl_j_ino)); in ntfs_stamp_usnjrnl()
64 NVolSetUsnJrnlStamped(vol); in ntfs_stamp_usnjrnl()
Ddir.c70 ntfs_volume *vol = dir_ni->vol; in ntfs_lookup_inode_by_name() local
71 struct super_block *sb = vol->sb; in ntfs_lookup_inode_by_name()
146 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
191 if (!NVolCaseSensitive(vol) && in ntfs_lookup_inode_by_name()
196 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
237 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
256 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
406 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
451 if (!NVolCaseSensitive(vol) && in ntfs_lookup_inode_by_name()
456 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name()
[all …]
Daops.c91 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read()
172 ntfs_volume *vol; in ntfs_read_block() local
183 vol = ni->vol; in ntfs_read_block()
188 blocksize = vol->sb->s_blocksize; in ntfs_read_block()
189 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_read_block()
236 bh->b_bdev = vol->sb->s_bdev; in ntfs_read_block()
243 vol->cluster_size_bits; in ntfs_read_block()
245 vol->cluster_size_mask; in ntfs_read_block()
261 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
303 ntfs_error(vol->sb, "Failed to read from inode 0x%lx, " in ntfs_read_block()
[all …]
Dfile.c323 ntfs_volume *vol = ni->vol; in ntfs_prepare_file_for_write() local
374 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
375 ~(u64)vol->cluster_size_mask; in ntfs_prepare_file_for_write()
573 ntfs_volume *vol; in ntfs_prepare_pages_for_non_resident_write() local
597 vol = ni->vol; in ntfs_prepare_pages_for_non_resident_write()
602 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write()
603 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_prepare_pages_for_non_resident_write()
625 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
627 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
646 bh_cpos = bh_pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dlcnalloc.h29 extern runlist_element *ntfs_cluster_alloc(ntfs_volume *vol,
99 extern int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol,
118 static inline int ntfs_cluster_free_from_rl(ntfs_volume *vol, in ntfs_cluster_free_from_rl() argument
123 down_write(&vol->lcnbmp_lock); in ntfs_cluster_free_from_rl()
124 ret = ntfs_cluster_free_from_rl_nolock(vol, rl); in ntfs_cluster_free_from_rl()
125 up_write(&vol->lcnbmp_lock); in ntfs_cluster_free_from_rl()
/linux-6.1.9/sound/ppc/
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()
147 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume()
148 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume()
150 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume()
151 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume()
164 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local
166 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume()
167 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume()
[all …]
/linux-6.1.9/sound/soc/codecs/
Dtas5805m.c165 int vol[2]; member
170 static void set_dsp_scale(struct regmap *rm, int offset, int vol) in set_dsp_scale() argument
173 uint32_t x = tas5805m_volume[vol]; in set_dsp_scale()
191 tas5805m->is_muted, tas5805m->vol[0], tas5805m->vol[1]); in tas5805m_refresh()
201 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); in tas5805m_refresh()
202 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); in tas5805m_refresh()
229 ucontrol->value.integer.value[0] = tas5805m->vol[0]; in tas5805m_vol_get()
230 ucontrol->value.integer.value[1] = tas5805m->vol[1]; in tas5805m_vol_get()
251 if (tas5805m->vol[0] != ucontrol->value.integer.value[0] || in tas5805m_vol_put()
252 tas5805m->vol[1] != ucontrol->value.integer.value[1]) { in tas5805m_vol_put()
[all …]
/linux-6.1.9/sound/pci/ice1712/
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 …]
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()
349 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local
350 if (vol > WM_VOL_MAX) in wm_master_vol_put()
352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
353 if (vol != spec->master[ch]) { in wm_master_vol_put()
355 spec->master[ch] = vol; in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
[all …]
/linux-6.1.9/drivers/media/radio/
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()

123456789