Home
last modified time | relevance | path

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

1234567891011

/openbmc/u-boot/drivers/mtd/ubi/
H A Dupd.c47 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() argument
52 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker()
54 if (vol->upd_marker) { in set_update_marker()
55 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()
60 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker()
64 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
65 vol->upd_marker = 1; in set_update_marker()
80 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument
86 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker()
88 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker()
[all …]
H A Dvmt.c65 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local
68 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show()
73 if (!ubi->volumes[vol->vol_id]) { in vol_attribute_show()
79 vol->ref_count += 1; in vol_attribute_show()
83 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
87 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
93 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show()
95 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show()
97 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
99 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show()
[all …]
H A Dkapi.c74 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() argument
77 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
79 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
80 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info()
81 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
82 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info()
83 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info()
84 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
85 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info()
86 vi->name_len = vol->name_len; in ubi_do_get_volume_info()
[all …]
H A Dvtbl.c134 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
135 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes()
533 struct ubi_volume *vol; local
541 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
542 if (!vol)
545 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
546 vol->alignment = be32_to_cpu(vtbl[i].alignment);
547 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
548 vol->upd_marker = vtbl[i].upd_marker;
549 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ?
[all …]
H A Deba.c316 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb() argument
319 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb()
328 pnum = vol->eba_tbl[lnum]; in ubi_eba_unmap_leb()
336 vol->eba_tbl[lnum] = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb()
364 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in ubi_eba_read_leb() argument
367 int err, pnum, scrub = 0, vol_id = vol->vol_id; in ubi_eba_read_leb()
375 pnum = vol->eba_tbl[lnum]; in ubi_eba_read_leb()
385 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()
393 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
441 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
[all …]
H A Dmisc.c53 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local
55 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
58 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
62 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
67 if (i == vol->used_ebs - 1) in ubi_check_volume()
68 size = vol->last_eb_bytes; in ubi_check_volume()
70 size = vol->usable_leb_size; in ubi_check_volume()
72 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
H A Ddebug.c97 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument
100 printf("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
101 printf("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
102 printf("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
103 printf("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
104 printf("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
105 printf("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
106 printf("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
107 printf("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
108 printf("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info()
[all …]
/openbmc/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]) { 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->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 …]
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(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 …]
H A 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 …]
/openbmc/linux/fs/ntfs/
H A Dsuper.c95 static bool parse_options(ntfs_volume *vol, char *opt) in parse_options() argument
200 ntfs_warning(vol->sb, "Ignoring obsolete option %s.", in parse_options()
204 ntfs_warning(vol->sb, "Option iocharset is " in parse_options()
215 ntfs_error(vol->sb, "NLS character set " in parse_options()
219 ntfs_error(vol->sb, "NLS character set %s not " in parse_options()
228 ntfs_warning(vol->sb, "Option utf8 is no longer " in parse_options()
242 ntfs_error(vol->sb, "Unrecognized mount option %s.", p); in parse_options()
255 ntfs_warning(vol->sb, "Sloppy option given. Ignoring " in parse_options()
260 ntfs_error(vol->sb, "Invalid errors option argument " in parse_options()
266 if (vol->nls_map && vol->nls_map != nls_map) { in parse_options()
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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()
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/u-boot/cmd/
H A Dubi.c84 static int ubi_check_volumename(const struct ubi_volume *vol, char *name) in ubi_check_volumename() argument
86 return strcmp(vol->name, name); in ubi_check_volumename()
180 struct ubi_volume *vol = NULL; in ubi_find_volume() local
184 vol = ubi->volumes[i]; in ubi_find_volume()
185 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume()
186 return vol; in ubi_find_volume()
196 struct ubi_volume *vol; in ubi_remove_vol() local
198 vol = ubi_find_volume(volume); in ubi_remove_vol()
199 if (vol == NULL) in ubi_remove_vol()
202 printf("Remove UBI volume %s (id %d)\n", vol->name, vol->vol_id); in ubi_remove_vol()
[all …]
/openbmc/linux/sound/ppc/
H A Dawacs.c141 int vol[2]; in snd_pmac_awacs_get_volume() local
144 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume()
145 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume()
148 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume()
149 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume()
151 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume()
152 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume()
165 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local
167 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume()
168 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume()
[all …]

1234567891011