Home
last modified time | relevance | path

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

123456789

/linux-6.3-rc2/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.c224 memcpy(vol->name, req->name, vol->name_len); in ubi_create_volume()
244 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
245 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume()
306 cdev_device_del(&vol->cdev, &vol->dev); in ubi_create_volume()
335 struct ubi_volume *vol = desc->vol; in ubi_remove_volume() local
370 cdev_device_del(&vol->cdev, &vol->dev); in ubi_remove_volume()
407 struct ubi_volume *vol = desc->vol; in ubi_resize_volume() local
546 struct ubi_volume *vol = re->desc->vol; in ubi_rename_volumes() local
651 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
679 if (vol->upd_marker && vol->corrupted) { in self_check_volume()
[all …]
A Dkapi.c173 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume()
180 if (vol->metaonly || vol->exclusive) in ubi_open_volume()
189 desc->vol = vol; in ubi_open_volume()
261 if (vol && len == vol->name_len && !strcmp(name, vol->name)) { in ubi_open_volume_nm()
328 struct ubi_volume *vol = desc->vol; in ubi_close_volume() local
372 struct ubi_volume *vol = desc->vol; in leb_read_sanity_check() local
426 struct ubi_volume *vol = desc->vol; in ubi_leb_read() local
466 struct ubi_volume *vol = desc->vol; in ubi_leb_read_sg() local
517 struct ubi_volume *vol = desc->vol; in ubi_leb_write() local
562 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
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,
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,
881 void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
883 bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum);
884 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-6.3-rc2/fs/ntfs/
A Dsuper.c266 if (vol->nls_map && vol->nls_map != nls_map) { in parse_options()
330 vol->major_ver && vol->major_ver < 3) in parse_options()
772 if (vol->sector_size < vol->sb->s_blocksize) { in parse_ntfs_boot_sector()
792 if (vol->cluster_size < vol->sector_size) { in parse_ntfs_boot_sector()
802 vol->mft_record_size = vol->cluster_size << in parse_ntfs_boot_sector()
831 if (vol->mft_record_size < vol->sector_size) { in parse_ntfs_boot_sector()
926 vol->mftmirr_size = vol->cluster_size >> in parse_ntfs_boot_sector()
970 vol->mft_zone_start = vol->mft_zone_pos = vol->mft_lcn; in ntfs_setup_allocators()
1006 vol->data1_zone_pos = vol->mft_zone_end; in ntfs_setup_allocators()
1177 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
894 vol = base_ni->vol; in ntfs_external_attr_find()
939 name_len, ic, vol->upcase, vol->upcase_len)) { in ntfs_external_attr_find()
944 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
964 vol->upcase, vol->upcase_len); in ntfs_external_attr_find()
989 vol->upcase, vol->upcase_len)) in ntfs_external_attr_find()
1074 vol->upcase, vol->upcase_len)) in ntfs_external_attr_find()
1323 for (ad = vol->attrdef; (u8*)ad - (u8*)vol->attrdef < in ntfs_attr_find_in_attrdef()
1549 ntfs_volume *vol = ni->vol; in ntfs_attr_make_non_resident() local
1920 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()
2311 if (vol->fmask == vol->dmask) in ntfs_show_options()
2361 ntfs_volume *vol = ni->vol; in ntfs_truncate() local
[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 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()
540 ntfs_volume *vol; in ntfs_write_block() local
551 vol = ni->vol; in ntfs_write_block()
907 ntfs_volume *vol = ni->vol; in ntfs_write_mst_block() local
1290 NVolSetErrors(vol); in ntfs_write_mst_block()
1514 NVolSetErrors(ni->vol); in ntfs_writepage()
[all …]
A Dfile.c323 ntfs_volume *vol = ni->vol; in ntfs_prepare_file_for_write() local
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()
627 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
993 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1238 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1260 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1274 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1290 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
1302 NVolSetErrors(vol); in ntfs_prepare_pages_for_non_resident_write()
[all …]
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()
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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()
/linux-6.3-rc2/sound/soc/codecs/
A Dtas5805m.c166 int vol[2]; member
177 uint32_t x = tas5805m_volume[vol]; in set_dsp_scale()
193 tas5805m->is_muted, tas5805m->vol[0], tas5805m->vol[1]); in tas5805m_refresh()
203 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); in tas5805m_refresh()
204 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); in tas5805m_refresh()
235 ucontrol->value.integer.value[0] = tas5805m->vol[0]; in tas5805m_vol_get()
236 ucontrol->value.integer.value[1] = tas5805m->vol[1]; in tas5805m_vol_get()
263 tas5805m->vol[0] = ucontrol->value.integer.value[0]; in tas5805m_vol_put()
266 tas5805m->vol[0], tas5805m->vol[1], in tas5805m_vol_put()
542 tas5805m->vol[0] = TAS5805M_VOLUME_MIN; in tas5805m_i2c_probe()
[all …]

Completed in 103 milliseconds

123456789