/linux-2.6.39/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 memcpy(&vtbl_rec, &ubi->vtbl[vol->vol_id], in set_update_marker() 72 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker() 73 vol->upd_marker = 1; in set_update_marker() 88 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument 94 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker() 96 memcpy(&vtbl_rec, &ubi->vtbl[vol->vol_id], in clear_update_marker() [all …]
|
D | vmt.c | 74 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local 77 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show() 82 if (!ubi->volumes[vol->vol_id]) { in vol_attribute_show() 88 vol->ref_count += 1; in vol_attribute_show() 92 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show() 96 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show() 102 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show() 104 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show() 106 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 108 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; in get_exclusive() 66 dbg_err("%d users for volume %d", users, vol->vol_id); in get_exclusive() 69 vol->readers = vol->writers = 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); in revoke_exclusive() [all …]
|
D | vtbl.c | 136 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local 137 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes() 553 struct ubi_volume *vol; in init_volumes() local 561 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL); in init_volumes() 562 if (!vol) in init_volumes() 565 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in init_volumes() 566 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes() 567 vol->data_pad = be32_to_cpu(vtbl[i].data_pad); in init_volumes() 568 vol->upd_marker = vtbl[i].upd_marker; in init_volumes() 569 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? in init_volumes() [all …]
|
D | debug.c | 99 void ubi_dbg_dump_vol_info(const struct ubi_volume *vol) in ubi_dbg_dump_vol_info() argument 102 printk(KERN_DEBUG "\tvol_id %d\n", vol->vol_id); in ubi_dbg_dump_vol_info() 103 printk(KERN_DEBUG "\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dbg_dump_vol_info() 104 printk(KERN_DEBUG "\talignment %d\n", vol->alignment); in ubi_dbg_dump_vol_info() 105 printk(KERN_DEBUG "\tdata_pad %d\n", vol->data_pad); in ubi_dbg_dump_vol_info() 106 printk(KERN_DEBUG "\tvol_type %d\n", vol->vol_type); in ubi_dbg_dump_vol_info() 107 printk(KERN_DEBUG "\tname_len %d\n", vol->name_len); in ubi_dbg_dump_vol_info() 108 printk(KERN_DEBUG "\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dbg_dump_vol_info() 109 printk(KERN_DEBUG "\tused_ebs %d\n", vol->used_ebs); in ubi_dbg_dump_vol_info() 110 printk(KERN_DEBUG "\tused_bytes %lld\n", vol->used_bytes); in ubi_dbg_dump_vol_info() [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() 77 if (i == vol->used_ebs - 1) in ubi_check_volume() 78 size = vol->last_eb_bytes; in ubi_check_volume() 80 size = vol->usable_leb_size; in ubi_check_volume() 82 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
|
D | eba.c | 324 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb() argument 327 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() 336 pnum = vol->eba_tbl[lnum]; in ubi_eba_unmap_leb() 343 vol->eba_tbl[lnum] = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb() 370 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in ubi_eba_read_leb() argument 373 int err, pnum, scrub = 0, vol_id = vol->vol_id; in ubi_eba_read_leb() 381 pnum = vol->eba_tbl[lnum]; in ubi_eba_read_leb() 391 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb() 399 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb() 447 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb() [all …]
|
/linux-2.6.39/fs/ntfs/ |
D | super.c | 100 static bool parse_options(ntfs_volume *vol, char *opt) in parse_options() argument 181 ntfs_warning(vol->sb, "Ignoring obsolete option %s.", in parse_options() 185 ntfs_warning(vol->sb, "Option iocharset is " in parse_options() 196 ntfs_error(vol->sb, "NLS character set " in parse_options() 200 ntfs_error(vol->sb, "NLS character set %s not " in parse_options() 209 ntfs_warning(vol->sb, "Option utf8 is no longer " in parse_options() 223 ntfs_error(vol->sb, "Unrecognized mount option %s.", p); in parse_options() 236 ntfs_warning(vol->sb, "Sloppy option given. Ignoring " in parse_options() 241 ntfs_error(vol->sb, "Invalid errors option argument " in parse_options() 247 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 | 50 ntfs_volume *vol = ni->vol; in map_mft_record_page() local 51 struct inode *mft_vi = vol->mft_ino; in map_mft_record_page() 63 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page() 65 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK; in map_mft_record_page() 74 vol->mft_record_size) { in map_mft_record_page() 76 ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, " in map_mft_record_page() 93 ntfs_error(vol->sb, "Mft record 0x%lx is corrupt. " in map_mft_record_page() 97 NVolSetErrors(vol); in map_mft_record_page() 173 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record() 293 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 mutex_lock(&vol->quota_q_ino->i_mutex); 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 | 401 ni->vol = NTFS_SB(sb); in __ntfs_init_inode() 484 ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name " in ntfs_is_extended_system_file() 489 ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file " in ntfs_is_extended_system_file() 494 ntfs_error(ctx->ntfs_ino->vol->sb, "File name with " in ntfs_is_extended_system_file() 500 ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file " in ntfs_is_extended_system_file() 516 ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count " in ntfs_is_extended_system_file() 552 ntfs_volume *vol = NTFS_SB(vi->i_sb); in ntfs_read_locked_inode() local 571 vi->i_uid = vol->uid; in ntfs_read_locked_inode() 572 vi->i_gid = vol->gid; in ntfs_read_locked_inode() 634 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 | 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 | 490 ntfs_volume *vol; in ntfs_prepare_pages_for_non_resident_write() local 514 vol = ni->vol; in ntfs_prepare_pages_for_non_resident_write() 519 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write() 520 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_prepare_pages_for_non_resident_write() 542 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 544 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 563 bh_cpos = bh_pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 564 bh_cofs = bh_pos & vol->cluster_size_mask; in ntfs_prepare_pages_for_non_resident_write() 607 bh->b_bdev = vol->sb->s_bdev; in ntfs_prepare_pages_for_non_resident_write() 621 (cdelta << (vol->cluster_size_bits - in ntfs_prepare_pages_for_non_resident_write() [all …]
|
D | aops.c | 107 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read() 193 ntfs_volume *vol; in ntfs_read_block() local 204 vol = ni->vol; in ntfs_read_block() 209 blocksize = vol->sb->s_blocksize; in ntfs_read_block() 210 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_read_block() 257 bh->b_bdev = vol->sb->s_bdev; in ntfs_read_block() 264 vol->cluster_size_bits; in ntfs_read_block() 266 vol->cluster_size_mask; in ntfs_read_block() 282 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block() 324 ntfs_error(vol->sb, "Failed to read from inode 0x%lx, " in ntfs_read_block() [all …]
|
D | unistr.c | 259 int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins, in ntfs_nlstoucs() argument 262 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs() 289 ntfs_error(vol->sb, "Failed to allocate buffer for converted " in ntfs_nlstoucs() 293 ntfs_error(vol->sb, "Received NULL pointer."); in ntfs_nlstoucs() 298 ntfs_error(vol->sb, "Name using character set %s contains " in ntfs_nlstoucs() 303 ntfs_error(vol->sb, "Name is too long (maximum length for a " in ntfs_nlstoucs() 336 int ntfs_ucstonls(const ntfs_volume *vol, const ntfschar *ins, in ntfs_ucstonls() argument 339 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls() 384 ntfs_error(vol->sb, "Received NULL pointer."); in ntfs_ucstonls() 387 ntfs_error(vol->sb, "Unicode name contains characters that cannot be " in ntfs_ucstonls() [all …]
|
D | namei.c | 106 ntfs_volume *vol = NTFS_SB(dir_ino->i_sb); in ntfs_lookup() local 117 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len, in ntfs_lookup() 121 ntfs_error(vol->sb, "Failed to convert name to " in ntfs_lookup() 131 dent_inode = ntfs_iget(vol->sb, dent_ino); in ntfs_lookup() 148 ntfs_error(vol->sb, "Found stale reference to inode " in ntfs_lookup() 157 ntfs_error(vol->sb, "ntfs_iget(0x%lx) failed with " in ntfs_lookup() 172 ntfs_error(vol->sb, "ntfs_lookup_ino_by_name() failed with error " in ntfs_lookup() 187 nls_name.len = (unsigned)ntfs_ucstonls(vol, in ntfs_lookup() 218 ntfs_error(vol->sb, "Inode corrupt: No WIN32 " in ntfs_lookup() 241 nls_name.len = (unsigned)ntfs_ucstonls(vol, in ntfs_lookup() [all …]
|
/linux-2.6.39/fs/cifs/ |
D | connect.c | 822 struct smb_vol *vol) in cifs_parse_mount_options() argument 841 memset(vol->source_rfc1001_name, 0x20, RFC1001_NAME_LEN); in cifs_parse_mount_options() 843 vol->source_rfc1001_name[i] = toupper(nodename[i]); in cifs_parse_mount_options() 845 vol->source_rfc1001_name[RFC1001_NAME_LEN] = 0; in cifs_parse_mount_options() 848 vol->target_rfc1001_name[0] = 0; in cifs_parse_mount_options() 849 vol->cred_uid = current_uid(); in cifs_parse_mount_options() 850 vol->linux_uid = current_uid(); in cifs_parse_mount_options() 851 vol->linux_gid = current_gid(); in cifs_parse_mount_options() 854 vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR; in cifs_parse_mount_options() 858 vol->posix_paths = 1; in cifs_parse_mount_options() [all …]
|
/linux-2.6.39/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-2.6.39/sound/pci/ice1712/ |
D | se.c | 40 } vol[8]; member 472 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 473 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 483 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_boolean_get() 493 uc->value.enumerated.item[0] = spec->vol[n].ch1; in se200pci_cont_enum_get() 504 spec->vol[n].ch1, in se200pci_cont_update() 505 spec->vol[n].ch2); in se200pci_cont_update() 510 spec->vol[n].ch1, in se200pci_cont_update() 511 spec->vol[n].ch2); in se200pci_cont_update() 516 spec->vol[n].ch1, in se200pci_cont_update() [all …]
|
D | phase.c | 62 unsigned short vol[8]; member 281 unsigned short vol, unsigned short master) in wm_set_vol() argument 285 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 288 nvol = 127 - wm_vol[(((vol & ~WM_VOL_MUTE) * in wm_set_vol() 364 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put() local 365 if (vol > WM_VOL_MAX) in wm_master_vol_put() 367 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 368 if (vol != spec->master[ch]) { in wm_master_vol_put() 370 spec->master[ch] = vol; in wm_master_vol_put() 373 spec->vol[dac + ch], in wm_master_vol_put() [all …]
|