Home
last modified time | relevance | path

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

12345678

/linux/drivers/mtd/ubi/
A Dupd.c94 vol->last_eb_bytes = vol->usable_leb_size; in clear_update_marker()
120 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_update()
171 ubi_assert(!vol->updating && !vol->changing_leb); in ubi_start_leb_change()
271 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data()
277 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data()
350 if (vol->upd_received == vol->upd_bytes) { in ubi_more_update_data()
386 count, vol->upd_bytes, vol->upd_received); in ubi_more_leb_change_data()
392 count = vol->upd_bytes - vol->upd_received; in ubi_more_leb_change_data()
400 if (vol->upd_received == vol->upd_bytes) { in ubi_more_leb_change_data()
403 memset(vol->upd_buf + vol->upd_bytes, 0xFF, in ubi_more_leb_change_data()
[all …]
A Dvmt.c230 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume()
250 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
251 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume()
312 cdev_device_del(&vol->cdev, &vol->dev); in ubi_create_volume()
342 struct ubi_volume *vol = desc->vol; in ubi_remove_volume() local
377 cdev_device_del(&vol->cdev, &vol->dev); in ubi_remove_volume()
414 struct ubi_volume *vol = desc->vol; in ubi_resize_volume() local
551 struct ubi_volume *vol = re->desc->vol; in ubi_rename_volumes() local
656 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
684 if (vol->upd_marker && vol->corrupted) { in self_check_volume()
[all …]
A Dkapi.c172 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume()
179 if (vol->metaonly || vol->exclusive) in ubi_open_volume()
188 desc->vol = vol; in ubi_open_volume()
260 if (vol && len == vol->name_len && !strcmp(name, vol->name)) { in ubi_open_volume_nm()
327 struct ubi_volume *vol = desc->vol; in ubi_close_volume() local
371 struct ubi_volume *vol = desc->vol; in leb_read_sanity_check() local
425 struct ubi_volume *vol = desc->vol; in ubi_leb_read() local
465 struct ubi_volume *vol = desc->vol; in ubi_leb_read_sg() local
516 struct ubi_volume *vol = desc->vol; in ubi_leb_write() local
561 struct ubi_volume *vol = desc->vol; in ubi_leb_change() local
[all …]
A Dcdev.c47 struct ubi_volume *vol = desc->vol; in get_exclusive() local
50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive()
56 vol->readers = vol->writers = vol->metaonly = 0; in get_exclusive()
73 struct ubi_volume *vol = desc->vol; in revoke_exclusive() local
76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive()
120 struct ubi_volume *vol = desc->vol; in vol_cdev_release() local
133 vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num, in vol_cdev_release()
146 struct ubi_volume *vol = desc->vol; in vol_cdev_llseek() local
175 struct ubi_volume *vol = desc->vol; in vol_cdev_read() local
252 struct ubi_volume *vol = desc->vol; in vol_cdev_direct_write() local
[all …]
A Dvtbl.c128 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
535 if (!vol) in init_volumes()
546 memcpy(vol->name, vtbl[i].name, vol->name_len); in init_volumes()
547 vol->name[vol->name_len] = '\0'; in init_volumes()
586 vol->used_ebs = vol->reserved_pebs; in init_volumes()
587 vol->last_eb_bytes = vol->usable_leb_size; in init_volumes()
589 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
627 if (!vol) in init_volumes()
636 vol->used_ebs = vol->reserved_pebs; in init_volumes()
637 vol->last_eb_bytes = vol->reserved_pebs; in init_volumes()
[all …]
A Deba.c179 ubi_assert(dst && vol && vol->eba_tbl); in ubi_eba_copy_table()
181 src = vol->eba_tbl; in ubi_eba_copy_table()
197 vol->eba_tbl = tbl; in ubi_eba_replace_table()
507 if (!vol->checkmap || test_bit(lnum, vol->checkmap)) in check_mapping()
1306 struct ubi_volume *vol; in ubi_eba_copy_leb() local
1333 if (!vol) { in ubi_eba_copy_leb()
1520 struct ubi_volume *vol; in self_check_eba() local
1537 vol = ubi->volumes[i]; in self_check_eba()
1538 if (!vol) in self_check_eba()
1631 if (!vol) in ubi_eba_init()
[all …]
A Ddebug.c98 pr_err("\tvol_id %d\n", vol->vol_id); 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()
105 pr_err("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
112 if (vol->name_len <= UBI_VOL_NAME_MAX && in ubi_dump_vol_info()
113 strnlen(vol->name, vol->name_len + 1) == vol->name_len) { in ubi_dump_vol_info()
114 pr_err("\tname %s\n", vol->name); in ubi_dump_vol_info()
117 vol->name[0], vol->name[1], vol->name[2], in ubi_dump_vol_info()
[all …]
A Dubi.h387 struct ubi_volume *vol; member
850 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
851 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
854 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
871 static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) in ubi_leb_valid() argument
873 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
877 struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
883 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
885 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum);
886 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol,
[all …]
A 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/fs/ntfs/
A Dsuper.c258 if (vol->nls_map && vol->nls_map != nls_map) { in parse_options()
322 vol->major_ver && vol->major_ver < 3) in parse_options()
764 if (vol->sector_size < vol->sb->s_blocksize) { in parse_ntfs_boot_sector()
784 if (vol->cluster_size < vol->sector_size) { in parse_ntfs_boot_sector()
794 vol->mft_record_size = vol->cluster_size << in parse_ntfs_boot_sector()
823 if (vol->mft_record_size < vol->sector_size) { in parse_ntfs_boot_sector()
918 vol->mftmirr_size = vol->cluster_size >> in parse_ntfs_boot_sector()
962 vol->mft_zone_start = vol->mft_zone_pos = vol->mft_lcn; in ntfs_setup_allocators()
998 vol->data1_zone_pos = vol->mft_zone_end; in ntfs_setup_allocators()
1169 vol->cluster_size - 1) / vol->cluster_size; in check_mft_mirror()
[all …]
A Dlcnalloc.c154 BUG_ON(!vol); in ntfs_cluster_alloc()
422 vol->mft_lcn; in ntfs_cluster_alloc()
555 vol->mft_lcn; in ntfs_cluster_alloc()
676 mft_zone_size = vol->mft_zone_end - vol->mft_zone_start; in ntfs_cluster_alloc()
692 vol->mft_zone_end = vol->mft_zone_start + mft_zone_size; in ntfs_cluster_alloc()
694 vol->data2_zone_pos = vol->mft_zone_start = in ntfs_cluster_alloc()
696 if (vol->mft_zone_pos >= vol->mft_zone_end) { in ntfs_cluster_alloc()
697 vol->mft_zone_pos = vol->mft_lcn; in ntfs_cluster_alloc()
702 vol->data1_zone_pos = vol->mft_zone_end; in ntfs_cluster_alloc()
839 ntfs_volume *vol; in __ntfs_cluster_free() local
[all …]
A Dmft.c39 ntfs_volume *vol = ni->vol; in map_mft_record_page() local
86 NVolSetErrors(vol); in map_mft_record_page()
299 ni->vol = base_ni->vol; in map_extent_mft_record()
624 NVolSetErrors(vol); in ntfs_sync_mft_mirror()
662 ntfs_volume *vol = ni->vol; in write_mft_record_nolock() local
837 NVolSetErrors(vol); in write_mft_record_nolock()
1509 NVolSetErrors(vol); in ntfs_mft_bitmap_extend_allocation_nolock()
1750 min_nr = vol->mft_record_size >> vol->cluster_size_bits; in ntfs_mft_data_extend_allocation_nolock()
1754 nr = vol->mft_record_size << 4 >> vol->cluster_size_bits; in ntfs_mft_data_extend_allocation_nolock()
2021 if (vol->major_ver < 3 || (vol->major_ver == 3 && !vol->minor_ver)) in ntfs_mft_record_layout()
[all …]
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()
87 inode_unlock(vol->quota_q_ino); in ntfs_mark_quotas_out_of_date()
92 NVolSetQuotaOutOfDate(vol); in ntfs_mark_quotas_out_of_date()
[all …]
A Dattrib.c580 ntfs_volume *vol = ctx->ntfs_ino->vol; in ntfs_attr_find() local
870 vol = base_ni->vol; in ntfs_external_attr_find()
915 name_len, ic, vol->upcase, vol->upcase_len)) { in ntfs_external_attr_find()
920 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
940 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
965 vol->upcase, vol->upcase_len)) in ntfs_external_attr_find()
1050 vol->upcase, vol->upcase_len)) in ntfs_external_attr_find()
1299 for (ad = vol->attrdef; (u8*)ad - (u8*)vol->attrdef < in ntfs_attr_find_in_attrdef()
1525 ntfs_volume *vol = ni->vol; in ntfs_attr_make_non_resident() local
1896 ntfs_volume *vol = ni->vol; in ntfs_attr_extend_allocation() local
[all …]
A Dinode.c375 ni->vol = NTFS_SB(sb); in __ntfs_init_inode()
538 vi->i_uid = vol->uid; in ntfs_read_locked_inode()
539 vi->i_gid = vol->gid; in ntfs_read_locked_inode()
1174 NVolSetErrors(vol); in ntfs_read_locked_inode()
1428 NVolSetErrors(vol); in ntfs_read_locked_attr_inode()
1708 NVolSetErrors(vol); in ntfs_read_locked_index_inode()
1783 vol->mft_ino = vi; in ntfs_read_inode_mount()
1801 block = vol->mft_lcn << vol->cluster_size_bits >> in ntfs_read_inode_mount()
2300 if (vol->fmask == vol->dmask) in ntfs_show_options()
2350 ntfs_volume *vol = ni->vol; in ntfs_truncate() local
[all …]
A Ddir.c70 ntfs_volume *vol = dir_ni->vol; in ntfs_lookup_inode_by_name() local
146 CASE_SENSITIVE, vol->upcase, vol->upcase_len)) { 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()
499 IGNORE_CASE, vol->upcase, vol->upcase_len); in ntfs_lookup_inode_by_name()
623 ntfs_volume *vol = dir_ni->vol;
708 vol->upcase, vol->upcase_len)) {
722 IGNORE_CASE, vol->upcase, vol->upcase_len);
895 vol->upcase, vol->upcase_len)) {
[all …]
A Daops.c172 ntfs_volume *vol; in ntfs_read_block() local
183 vol = ni->vol; 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()
539 ntfs_volume *vol; in ntfs_write_block() local
550 vol = ni->vol; in ntfs_write_block()
905 ntfs_volume *vol = ni->vol; in ntfs_write_mst_block() local
1288 NVolSetErrors(vol); in ntfs_write_mst_block()
1511 NVolSetErrors(ni->vol); in ntfs_writepage()
[all …]
A Dfile.c328 ntfs_volume *vol = ni->vol; in ntfs_prepare_file_for_write() local
578 ntfs_volume *vol; in ntfs_prepare_pages_for_non_resident_write() local
602 vol = ni->vol; in ntfs_prepare_pages_for_non_resident_write()
632 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
998 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1243 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1265 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1279 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1295 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1307 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
[all …]
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()
A 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()
A Dunistr.c245 int ntfs_nlstoucs(const ntfs_volume *vol, const char *ins, in ntfs_nlstoucs() argument
248 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs()
275 ntfs_error(vol->sb, "Failed to allocate buffer for converted " in ntfs_nlstoucs()
279 ntfs_error(vol->sb, "Received NULL pointer."); in ntfs_nlstoucs()
284 ntfs_error(vol->sb, "Name using character set %s contains " in ntfs_nlstoucs()
289 ntfs_error(vol->sb, "Name is too long (maximum length for a " in ntfs_nlstoucs()
322 int ntfs_ucstonls(const ntfs_volume *vol, const ntfschar *ins, in ntfs_ucstonls() argument
325 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls()
370 ntfs_error(vol->sb, "Received NULL pointer."); in ntfs_ucstonls()
373 ntfs_error(vol->sb, "Unicode name contains characters that cannot be " in ntfs_ucstonls()
[all …]
/linux/sound/ppc/
A Dawacs.c140 int vol[2]; in snd_pmac_awacs_get_volume() local
147 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume()
148 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume()
168 if (vol[0] > 0x0f || vol[1] > 0x0f) in snd_pmac_awacs_put_volume()
171 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_put_volume()
172 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_put_volume()
300 vol = 32 + (79 - vol); in awacs_amp_set_master()
302 vol = 32 - (vol - 79); in awacs_amp_set_master()
347 int vol[2]; in snd_pmac_awacs_put_volume_amp() local
376 int vol[2]; in snd_pmac_awacs_put_switch_amp() local
[all …]
/linux/sound/pci/ice1712/
A Dse.c25 } vol[8]; member
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()
495 spec->vol[n].ch2); in se200pci_cont_update()
529 spec->vol[n].ch1 = vol1; in se200pci_cont_volume_put()
533 spec->vol[n].ch2 = vol2; in se200pci_cont_volume_put()
552 spec->vol[n].ch1 = vol1; in se200pci_cont_boolean_put()
[all …]
A Dphase.c47 unsigned short vol[8]; member
350 if (vol > WM_VOL_MAX) 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()
502 unsigned int vol; in wm_vol_put() local
504 if (vol > 0x7f) in wm_vol_put()
506 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
507 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
508 spec->vol[ofs+i] = vol; in wm_vol_put()
562 spec->vol[ofs + i] |= in wm_mute_put()
[all …]
/linux/drivers/media/radio/
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()

Completed in 89 milliseconds

12345678