/Linux-v4.19/drivers/mtd/ubi/ |
D | upd.c | 54 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() argument 59 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker() 61 if (vol->upd_marker) { in set_update_marker() 62 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker() 67 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker() 71 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker() 72 vol->upd_marker = 1; in set_update_marker() 87 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument 93 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker() 95 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker() [all …]
|
D | vmt.c | 71 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local 74 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show() 79 if (!ubi->volumes[vol->vol_id]) { in vol_attribute_show() 85 vol->ref_count += 1; in vol_attribute_show() 89 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show() 93 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show() 99 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show() 101 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show() 103 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 105 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show() [all …]
|
D | kapi.c | 80 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() argument 83 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info() 85 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info() 86 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info() 87 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info() 88 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info() 89 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info() 90 vi->alignment = vol->alignment; in ubi_do_get_volume_info() 91 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info() 92 vi->name_len = vol->name_len; in ubi_do_get_volume_info() [all …]
|
D | cdev.c | 60 struct ubi_volume *vol = desc->vol; in get_exclusive() local 62 spin_lock(&vol->ubi->volumes_lock); in get_exclusive() 63 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive() 66 ubi_err(vol->ubi, "%d users for volume %d", users, vol->vol_id); in get_exclusive() 69 vol->readers = vol->writers = vol->metaonly = 0; in get_exclusive() 70 vol->exclusive = 1; in get_exclusive() 74 spin_unlock(&vol->ubi->volumes_lock); in get_exclusive() 86 struct ubi_volume *vol = desc->vol; in revoke_exclusive() local 88 spin_lock(&vol->ubi->volumes_lock); in revoke_exclusive() 89 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive() [all …]
|
D | vtbl.c | 141 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local 142 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes() 539 struct ubi_volume *vol; in init_volumes() local 547 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL); in init_volumes() 548 if (!vol) in init_volumes() 551 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in init_volumes() 552 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes() 553 vol->data_pad = be32_to_cpu(vtbl[i].data_pad); in init_volumes() 554 vol->upd_marker = vtbl[i].upd_marker; in init_volumes() 555 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? in init_volumes() [all …]
|
D | eba.c | 120 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum, in ubi_eba_get_ldesc() argument 124 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_get_ldesc() 136 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol, in ubi_eba_create_table() argument 187 void ubi_eba_copy_table(struct ubi_volume *vol, struct ubi_eba_table *dst, in ubi_eba_copy_table() argument 193 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table() 195 src = vol->eba_tbl; in ubi_eba_copy_table() 208 void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl) in ubi_eba_replace_table() argument 210 ubi_eba_destroy_table(vol->eba_tbl); in ubi_eba_replace_table() 211 vol->eba_tbl = tbl; in ubi_eba_replace_table() 449 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum) in ubi_eba_is_mapped() argument [all …]
|
D | ubi.h | 400 struct ubi_volume *vol; member 861 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol); 862 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol); 865 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, 867 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, 869 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, 871 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, 882 static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) in ubi_leb_valid() argument 884 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid() 888 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol, [all …]
|
D | misc.c | 65 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local 67 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume() 70 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume() 74 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume() 79 if (i == vol->used_ebs - 1) in ubi_check_volume() 80 size = vol->last_eb_bytes; in ubi_check_volume() 82 size = vol->usable_leb_size; in ubi_check_volume() 84 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
|
D | debug.c | 108 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument 111 pr_err("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info() 112 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info() 113 pr_err("\talignment %d\n", vol->alignment); in ubi_dump_vol_info() 114 pr_err("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info() 115 pr_err("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info() 116 pr_err("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info() 117 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info() 118 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info() 119 pr_err("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info() [all …]
|
/Linux-v4.19/fs/ntfs/ |
D | super.c | 101 static bool parse_options(ntfs_volume *vol, char *opt) in parse_options() argument 206 ntfs_warning(vol->sb, "Ignoring obsolete option %s.", in parse_options() 210 ntfs_warning(vol->sb, "Option iocharset is " in parse_options() 221 ntfs_error(vol->sb, "NLS character set " in parse_options() 225 ntfs_error(vol->sb, "NLS character set %s not " in parse_options() 234 ntfs_warning(vol->sb, "Option utf8 is no longer " in parse_options() 248 ntfs_error(vol->sb, "Unrecognized mount option %s.", p); in parse_options() 261 ntfs_warning(vol->sb, "Sloppy option given. Ignoring " in parse_options() 266 ntfs_error(vol->sb, "Invalid errors option argument " in parse_options() 272 if (vol->nls_map && vol->nls_map != nls_map) { in parse_options() [all …]
|
D | lcnalloc.c | 50 int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol, in ntfs_cluster_free_from_rl_nolock() argument 53 struct inode *lcnbmp_vi = vol->lcnbmp_ino; in ntfs_cluster_free_from_rl_nolock() 146 runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, const VCN start_vcn, in ntfs_cluster_alloc() argument 168 BUG_ON(!vol); in ntfs_cluster_alloc() 169 lcnbmp_vi = vol->lcnbmp_ino; in ntfs_cluster_alloc() 181 down_write(&vol->lcnbmp_lock); in ntfs_cluster_alloc() 203 zone_start = vol->data1_zone_pos; in ntfs_cluster_alloc() 205 zone_start = vol->mft_zone_pos; in ntfs_cluster_alloc() 213 } else if (zone == DATA_ZONE && zone_start >= vol->mft_zone_start && in ntfs_cluster_alloc() 214 zone_start < vol->mft_zone_end) { in ntfs_cluster_alloc() [all …]
|
D | mft.c | 53 ntfs_volume *vol = ni->vol; in map_mft_record_page() local 54 struct inode *mft_vi = vol->mft_ino; in map_mft_record_page() 66 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page() 68 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page() 77 vol->mft_record_size) { in map_mft_record_page() 79 ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, " in map_mft_record_page() 96 ntfs_error(vol->sb, "Mft record 0x%lx is corrupt. " in map_mft_record_page() 100 NVolSetErrors(vol); in map_mft_record_page() 176 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record() 296 ntfs_error(base_ni->vol->sb, "Found stale extent mft " in map_extent_mft_record() [all …]
|
D | quota.c | 37 bool ntfs_mark_quotas_out_of_date(ntfs_volume *vol) in ntfs_mark_quotas_out_of_date() argument 45 if (NVolQuotaOutOfDate(vol)) in ntfs_mark_quotas_out_of_date() 47 if (!vol->quota_ino || !vol->quota_q_ino) { in ntfs_mark_quotas_out_of_date() 48 ntfs_error(vol->sb, "Quota inodes are not open."); in ntfs_mark_quotas_out_of_date() 51 inode_lock(vol->quota_q_ino); in ntfs_mark_quotas_out_of_date() 52 ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino)); in ntfs_mark_quotas_out_of_date() 54 ntfs_error(vol->sb, "Failed to get index context."); in ntfs_mark_quotas_out_of_date() 60 ntfs_error(vol->sb, "Quota defaults entry is not " in ntfs_mark_quotas_out_of_date() 63 ntfs_error(vol->sb, "Lookup of quota defaults entry " in ntfs_mark_quotas_out_of_date() 68 ntfs_error(vol->sb, "Quota defaults entry size is invalid. " in ntfs_mark_quotas_out_of_date() [all …]
|
D | attrib.c | 123 ni->vol->cluster_size_bits; in ntfs_map_runlist_nolock() 187 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock() 402 ntfs_error(ni->vol->sb, "Failed with error code %lli.", in ntfs_attr_vcn_to_lcn_nolock() 528 ntfs_error(ni->vol->sb, "Failed with error code %i.", err); in ntfs_attr_find_vcn_nolock() 594 ntfs_volume *vol = ctx->ntfs_ino->vol; in ntfs_attr_find() local 595 ntfschar *upcase = vol->upcase; in ntfs_attr_find() 596 u32 upcase_len = vol->upcase_len; in ntfs_attr_find() 689 ntfs_error(vol->sb, "Inode is corrupt. Run chkdsk."); in ntfs_attr_find() 690 NVolSetErrors(vol); in ntfs_attr_find() 710 int load_attribute_list(ntfs_volume *vol, runlist *runlist, u8 *al_start, in load_attribute_list() argument [all …]
|
D | usnjrnl.c | 47 bool ntfs_stamp_usnjrnl(ntfs_volume *vol) in ntfs_stamp_usnjrnl() argument 50 if (likely(!NVolUsnJrnlStamped(vol))) { in ntfs_stamp_usnjrnl() 55 page = ntfs_map_page(vol->usnjrnl_max_ino->i_mapping, 0); in ntfs_stamp_usnjrnl() 57 ntfs_error(vol->sb, "Failed to read from " in ntfs_stamp_usnjrnl() 70 i_size_read(vol->usnjrnl_j_ino)); in ntfs_stamp_usnjrnl() 72 cpu_to_sle64(i_size_read(vol->usnjrnl_j_ino)); in ntfs_stamp_usnjrnl() 78 NVolSetUsnJrnlStamped(vol); in ntfs_stamp_usnjrnl()
|
D | inode.c | 400 ni->vol = NTFS_SB(sb); in __ntfs_init_inode() 483 ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name " in ntfs_is_extended_system_file() 488 ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file " in ntfs_is_extended_system_file() 493 ntfs_error(ctx->ntfs_ino->vol->sb, "File name with " in ntfs_is_extended_system_file() 499 ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file " in ntfs_is_extended_system_file() 515 ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count " in ntfs_is_extended_system_file() 551 ntfs_volume *vol = NTFS_SB(vi->i_sb); in ntfs_read_locked_inode() local 563 vi->i_uid = vol->uid; in ntfs_read_locked_inode() 564 vi->i_gid = vol->gid; in ntfs_read_locked_inode() 626 vi->i_mode &= ~vol->dmask; in ntfs_read_locked_inode() [all …]
|
D | dir.c | 83 ntfs_volume *vol = dir_ni->vol; in ntfs_lookup_inode_by_name() local 84 struct super_block *sb = vol->sb; in ntfs_lookup_inode_by_name() 159 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name() 204 if (!NVolCaseSensitive(vol) && in ntfs_lookup_inode_by_name() 209 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name() 250 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name() 269 CASE_SENSITIVE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name() 419 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name() 464 if (!NVolCaseSensitive(vol) && in ntfs_lookup_inode_by_name() 469 IGNORE_CASE, vol->upcase, vol->upcase_len)) { in ntfs_lookup_inode_by_name() [all …]
|
D | aops.c | 105 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read() 189 ntfs_volume *vol; in ntfs_read_block() local 200 vol = ni->vol; in ntfs_read_block() 205 blocksize = vol->sb->s_blocksize; in ntfs_read_block() 206 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_read_block() 253 bh->b_bdev = vol->sb->s_bdev; in ntfs_read_block() 260 vol->cluster_size_bits; in ntfs_read_block() 262 vol->cluster_size_mask; in ntfs_read_block() 278 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block() 320 ntfs_error(vol->sb, "Failed to read from inode 0x%lx, " in ntfs_read_block() [all …]
|
D | lcnalloc.h | 43 extern runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, 113 extern int ntfs_cluster_free_from_rl_nolock(ntfs_volume *vol, 132 static inline int ntfs_cluster_free_from_rl(ntfs_volume *vol, in ntfs_cluster_free_from_rl() argument 137 down_write(&vol->lcnbmp_lock); in ntfs_cluster_free_from_rl() 138 ret = ntfs_cluster_free_from_rl_nolock(vol, rl); in ntfs_cluster_free_from_rl() 139 up_write(&vol->lcnbmp_lock); in ntfs_cluster_free_from_rl()
|
D | file.c | 341 ntfs_volume *vol = ni->vol; in ntfs_prepare_file_for_write() local 395 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write() 396 ~(u64)vol->cluster_size_mask; in ntfs_prepare_file_for_write() 594 ntfs_volume *vol; in ntfs_prepare_pages_for_non_resident_write() local 618 vol = ni->vol; in ntfs_prepare_pages_for_non_resident_write() 623 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write() 624 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_prepare_pages_for_non_resident_write() 646 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 648 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 667 bh_cpos = bh_pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/Linux-v4.19/fs/cifs/ |
D | connect.c | 1114 struct smb_vol *vol) in cifs_parse_security_flavors() argument 1123 vol->sectype = Unspecified; in cifs_parse_security_flavors() 1124 vol->sign = false; in cifs_parse_security_flavors() 1131 vol->sign = true; in cifs_parse_security_flavors() 1134 vol->sectype = Kerberos; in cifs_parse_security_flavors() 1137 vol->sign = true; in cifs_parse_security_flavors() 1140 vol->sectype = RawNTLMSSP; in cifs_parse_security_flavors() 1143 vol->sign = true; in cifs_parse_security_flavors() 1146 vol->sectype = NTLM; in cifs_parse_security_flavors() 1149 vol->sign = true; in cifs_parse_security_flavors() [all …]
|
/Linux-v4.19/sound/ppc/ |
D | awacs.c | 153 int vol[2]; in snd_pmac_awacs_get_volume() local 156 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume() 157 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume() 160 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume() 161 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume() 163 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume() 164 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume() 177 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local 179 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume() 180 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume() [all …]
|
/Linux-v4.19/sound/pci/ice1712/ |
D | se.c | 39 } vol[8]; member 464 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 465 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 475 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get() 485 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get() 496 spec->vol[n].ch1, in se200pci_cont_update() 497 spec->vol[n].ch2); in se200pci_cont_update() 502 spec->vol[n].ch1, in se200pci_cont_update() 503 spec->vol[n].ch2); in se200pci_cont_update() 508 spec->vol[n].ch1, in se200pci_cont_update() [all …]
|
D | phase.c | 61 unsigned short vol[8]; member 280 unsigned short vol, unsigned short master) in wm_set_vol() argument 284 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 287 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol() 363 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 364 if (vol > WM_VOL_MAX) in wm_master_vol_put() 366 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 367 if (vol != spec->master[ch]) { in wm_master_vol_put() 369 spec->master[ch] = vol; in wm_master_vol_put() 372 spec->vol[dac + ch], in wm_master_vol_put() [all …]
|
/Linux-v4.19/drivers/media/radio/ |
D | radio-typhoon.c | 110 static int typhoon_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in typhoon_s_mute_volume() argument 115 vol = 0; in typhoon_s_mute_volume() 116 vol >>= 14; /* Map 16 bit to 2 bit */ in typhoon_s_mute_volume() 117 vol &= 3; in typhoon_s_mute_volume() 118 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */ in typhoon_s_mute_volume() 119 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */ in typhoon_s_mute_volume() 121 if (vol == 0 && !ty->muted) { in typhoon_s_mute_volume() 125 if (vol && ty->muted) { in typhoon_s_mute_volume()
|