| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | volume.c | 355 static void enqueue_page_read(struct volume *volume, struct uds_request *request, in enqueue_page_read() argument 359 while (!enqueue_read(&volume->page_cache, request, physical_page)) { in enqueue_page_read() 361 uds_wait_cond(&volume->read_threads_read_done_cond, in enqueue_page_read() 362 &volume->read_threads_mutex); in enqueue_page_read() 365 uds_signal_cond(&volume->read_threads_cond); in enqueue_page_read() 402 static inline struct queued_read *wait_to_reserve_read_queue_entry(struct volume *volume) in wait_to_reserve_read_queue_entry() argument 406 while (!volume->read_threads_exiting) { in wait_to_reserve_read_queue_entry() 407 queue_entry = reserve_read_queue_entry(&volume->page_cache); in wait_to_reserve_read_queue_entry() 411 uds_wait_cond(&volume->read_threads_cond, &volume->read_threads_mutex); in wait_to_reserve_read_queue_entry() 417 static int init_chapter_index_page(const struct volume *volume, u8 *index_page, in init_chapter_index_page() argument [all …]
|
| H A D | volume.h | 99 struct volume { struct 127 struct volume **new_volume); argument 129 void uds_free_volume(struct volume *volume); 131 int __must_check uds_replace_volume_storage(struct volume *volume, 135 int __must_check uds_find_volume_chapter_boundaries(struct volume *volume, 139 int __must_check uds_search_volume_page_cache(struct volume *volume, 143 int __must_check uds_search_volume_page_cache_for_rebuild(struct volume *volume, 148 int __must_check uds_search_cached_record_page(struct volume *volume, 152 void uds_forget_chapter(struct volume *volume, u64 chapter); 154 int __must_check uds_write_chapter(struct volume *volume, [all …]
|
| H A D | index.c | 80 return uds_is_chapter_sparse(zone->index->volume->geometry, in is_zone_chapter_sparse() 157 !uds_is_sparse_index_geometry(zone->index->volume->geometry)) in simulate_index_zone_barrier_message() 281 expire_chapters = uds_chapters_to_expire(zone->index->volume->geometry, in open_next_chapter() 289 uds_forget_chapter(zone->index->volume, expiring++); in open_next_chapter() 345 struct volume *volume; in search_sparse_cache_in_zone() local 355 volume = zone->index->volume; in search_sparse_cache_in_zone() 356 chapter = uds_map_to_physical_chapter(volume->geometry, virtual_chapter); in search_sparse_cache_in_zone() 357 return uds_search_cached_record_page(volume, request, chapter, in search_sparse_cache_in_zone() 364 struct volume *volume; in get_record_from_zone() local 388 volume = zone->index->volume; in get_record_from_zone() [all …]
|
| /linux/fs/afs/ |
| H A D | validation.c | 122 const struct afs_volume *volume = vnode->volume; in afs_check_validity() local 130 if (atomic_read(&volume->cb_v_check) != atomic_read(&volume->cb_v_break)) in afs_check_validity() 136 else if (volume->cb_expires_at <= deadline) in afs_check_validity() 138 else if (vnode->cb_ro_snapshot != atomic_read(&volume->cb_ro_snapshot)) in afs_check_validity() 140 else if (vnode->cb_scrub != atomic_read(&volume->cb_scrub)) in afs_check_validity() 153 static bool __afs_is_server_excluded(struct afs_operation *op, struct afs_volume *volume) in __afs_is_server_excluded() argument 162 slist = rcu_dereference(volume->servers); in __afs_is_server_excluded() 179 static int afs_is_server_excluded(struct afs_operation *op, struct afs_volume *volume) in afs_is_server_excluded() argument 183 if (__afs_is_server_excluded(op, volume)) in afs_is_server_excluded() 186 set_bit(AFS_VOLUME_NEEDS_UPDATE, &volume->flags); in afs_is_server_excluded() [all …]
|
| H A D | callback.c | 36 static void afs_volume_init_callback(struct afs_volume *volume) in afs_volume_init_callback() argument 40 down_read(&volume->open_mmaps_lock); in afs_volume_init_callback() 42 list_for_each_entry(vnode, &volume->open_mmaps, cb_mmap_link) { in afs_volume_init_callback() 43 if (vnode->cb_v_check != atomic_read(&volume->cb_v_break)) { in afs_volume_init_callback() 49 up_read(&volume->open_mmaps_lock); in afs_volume_init_callback() 64 se->volume->cb_expires_at = AFS_NO_CB_PROMISE; in afs_init_callback_state() 65 trace_afs_cb_v_break(se->volume->vid, atomic_read(&se->volume->cb_v_break), in afs_init_callback_state() 67 if (!list_empty(&se->volume->open_mmaps)) in afs_init_callback_state() 68 afs_volume_init_callback(se->volume); in afs_init_callback_state() 84 vnode->cb_v_check = atomic_read(&vnode->volume->cb_v_break); in __afs_break_callback() [all …]
|
| H A D | server_list.c | 27 struct afs_server_list *afs_alloc_server_list(struct afs_volume *volume, in afs_alloc_server_list() argument 33 unsigned int type_mask = 1 << volume->type; in afs_alloc_server_list() 82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], in afs_alloc_server_list() 100 afs_unuse_server_notime(volume->cell->net, server, in afs_alloc_server_list() 111 slist->servers[j].volume = volume; in afs_alloc_server_list() 125 afs_put_serverlist(volume->cell->net, slist); in afs_alloc_server_list() 157 void afs_attach_volume_to_servers(struct afs_volume *volume, struct afs_server_list *slist) in afs_attach_volume_to_servers() argument 164 down_write(&volume->cell->vs_lock); in afs_attach_volume_to_servers() 172 if (volume->vid <= pe->volume->vid) in afs_attach_volume_to_servers() 179 up_write(&volume->cell->vs_lock); in afs_attach_volume_to_servers() [all …]
|
| H A D | super.c | 159 struct afs_volume *volume = as->volume; in afs_show_devname() local 169 switch (volume->type) { in afs_show_devname() 174 if (volume->type_force) in afs_show_devname() 183 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname() 358 struct afs_volume *volume; in afs_validate_fc() local 382 if (ctx->volume) { in afs_validate_fc() 383 afs_put_volume(ctx->volume, afs_volume_trace_put_validate_fc); in afs_validate_fc() 384 ctx->volume = NULL; in afs_validate_fc() 403 volume = afs_create_volume(ctx); in afs_validate_fc() 404 if (IS_ERR(volume)) in afs_validate_fc() [all …]
|
| H A D | vl_alias.c | 20 struct afs_volume *volume; in afs_sample_volume() local 30 volume = afs_create_volume(&fc); in afs_sample_volume() 31 _leave(" = %p", volume); in afs_sample_volume() 32 return volume; in afs_sample_volume() 141 struct afs_volume *volume, *pvol = NULL; in afs_query_for_alias_one() local 157 volume = afs_sample_volume(cell, key, pvol->name, pvol->name_len); in afs_query_for_alias_one() 158 if (IS_ERR(volume)) { in afs_query_for_alias_one() 160 if (PTR_ERR(volume) != -ENOMEDIUM) in afs_query_for_alias_one() 161 return PTR_ERR(volume); in afs_query_for_alias_one() 170 if (pvol->vid == volume->vid) { in afs_query_for_alias_one() [all …]
|
| H A D | rotate.c | 43 read_lock(&op->volume->servers_lock); in afs_start_fs_iteration() 45 rcu_dereference_protected(op->volume->servers, in afs_start_fs_iteration() 46 lockdep_is_held(&op->volume->servers_lock))); in afs_start_fs_iteration() 47 read_unlock(&op->volume->servers_lock); in afs_start_fs_iteration() 126 op->volume->vid, op->volume->name, &op->server->uuid, m); in afs_busy() 165 op->debug_id, op->nr_iterations, op->volume->vid, in afs_select_fileserver() 243 write_lock(&op->volume->servers_lock); in afs_select_fileserver() 245 write_unlock(&op->volume->servers_lock); in afs_select_fileserver() 247 set_bit(AFS_VOLUME_NEEDS_UPDATE, &op->volume->flags); in afs_select_fileserver() 248 error = afs_check_volume_status(op->volume, op); in afs_select_fileserver() [all …]
|
| H A D | fs_operation.c | 18 struct afs_operation *afs_alloc_operation(struct key *key, struct afs_volume *volume) in afs_alloc_operation() argument 29 key = afs_request_key(volume->cell); in afs_alloc_operation() 39 op->volume = afs_get_volume(volume, afs_volume_trace_get_new_op); in afs_alloc_operation() 40 op->net = volume->cell->net; in afs_alloc_operation() 41 op->cb_v_break = atomic_read(&volume->cb_v_break); in afs_alloc_operation() 42 op->pre_volsync.creation = volume->creation_time; in afs_alloc_operation() 43 op->pre_volsync.update = volume->update_time; in afs_alloc_operation() 251 op->cb_v_break = atomic_read(&op->volume->cb_v_break); in afs_begin_vnode_operation() 366 afs_put_volume(op->volume, afs_volume_trace_put_put_op); in afs_put_operation()
|
| /linux/fs/cachefiles/ |
| H A D | xattr.c | 198 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write() 212 bool cachefiles_set_volume_xattr(struct cachefiles_volume *volume) in cachefiles_set_volume_xattr() argument 215 unsigned int len = volume->vcookie->coherency_len; in cachefiles_set_volume_xattr() 216 const void *p = volume->vcookie->coherency; in cachefiles_set_volume_xattr() 217 struct dentry *dentry = volume->dentry; in cachefiles_set_volume_xattr() 220 _enter("%x,#%d", volume->vcookie->debug_id, len); in cachefiles_set_volume_xattr() 227 memcpy(buf->data, p, volume->vcookie->coherency_len); in cachefiles_set_volume_xattr() 231 ret = mnt_want_write(volume->cache->mnt); in cachefiles_set_volume_xattr() 236 mnt_drop_write(volume->cache->mnt); in cachefiles_set_volume_xattr() 242 trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino, in cachefiles_set_volume_xattr() [all …]
|
| H A D | cache.c | 321 struct cachefiles_volume *volume; in cachefiles_withdraw_fscache_volumes() local 328 volume = list_entry(cur, struct cachefiles_volume, cache_link); in cachefiles_withdraw_fscache_volumes() 330 if (atomic_read(&volume->vcookie->n_accesses) == 0) in cachefiles_withdraw_fscache_volumes() 333 vcookie = fscache_try_get_volume(volume->vcookie, in cachefiles_withdraw_fscache_volumes() 356 struct cachefiles_volume *volume = NULL; in cachefiles_withdraw_volumes() local 360 volume = list_first_entry(&cache->volumes, in cachefiles_withdraw_volumes() 362 vcookie = fscache_try_get_volume(volume->vcookie, in cachefiles_withdraw_volumes() 369 list_del_init(&volume->cache_link); in cachefiles_withdraw_volumes() 372 if (!volume) in cachefiles_withdraw_volumes() 375 cachefiles_withdraw_volume(volume); in cachefiles_withdraw_volumes()
|
| H A D | ondemand.c | 31 cache = object->volume->cache; in cachefiles_ondemand_fd_release() 62 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_write_iter() 120 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_ioctl() 304 cache = object->volume->cache; in cachefiles_ondemand_get_fd() 490 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_send_req() 613 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_open_req() local 622 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_open_req() 623 volume_key = volume->key + 1; in cachefiles_ondemand_init_open_req() 675 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_object() local 690 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_object() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | configfs-usb-gadget-uac1 | 12 c_volume_present capture volume control enable 13 c_volume_min capture volume control min value 15 c_volume_max capture volume control max value 17 c_volume_res capture volume control resolution 23 p_volume_present playback volume control enable 24 p_volume_min playback volume control min value 26 p_volume_max playback volume control max value 28 p_volume_res playback volume control resolution 36 p_fu_vol_name playback mute/volume functional unit name 40 c_fu_vol_name capture mute/volume functional unit name
|
| H A D | configfs-usb-gadget-uac2 | 15 c_volume_present capture volume control enable 16 c_volume_min capture volume control min value 18 c_volume_max capture volume control max value 20 c_volume_res capture volume control resolution 28 p_volume_present playback volume control enable 29 p_volume_min playback volume control min value 31 p_volume_max playback volume control max value 33 p_volume_res playback volume control resolution 44 p_fu_vol_name playback mute/volume function unit name 48 c_fu_vol_name capture mute/volume functional unit name
|
| /linux/include/trace/events/ |
| H A D | fscache.h | 244 __field(unsigned int, volume ) 250 __entry->volume = volume_debug_id; 256 __entry->volume, 358 __field(unsigned int, volume ) 366 __entry->volume = volume_debug_id; 374 __entry->volume, 417 __field(unsigned int, volume ) 424 __entry->volume = cookie->volume->debug_id; 425 __entry->v_ref = refcount_read(&cookie->volume->ref); 426 __entry->v_n_cookies = atomic_read(&cookie->volume->n_cookies); [all …]
|
| /linux/fs/netfs/ |
| H A D | fscache_cookie.c | 48 cookie->volume->debug_id, in fscache_print_cookie() 49 cookie->volume->key); in fscache_print_cookie() 185 !fscache_cache_is_live(cookie->volume->cache)) { in fscache_begin_cookie_access() 295 cookie->key_hash = fscache_hash(cookie->volume->key_hash, in fscache_set_key() 306 a->volume != b->volume || in fscache_cookie_same() 326 struct fscache_volume *volume, in fscache_alloc_cookie() argument 340 cookie->volume = volume; in fscache_alloc_cookie() 422 fscache_get_volume(candidate->volume, fscache_volume_get_cookie); in fscache_hash_cookie() 423 atomic_inc(&candidate->volume->n_cookies); in fscache_hash_cookie() 451 struct fscache_volume *volume, in __fscache_acquire_cookie() argument [all …]
|
| /linux/Documentation/ABI/stable/ |
| H A D | sysfs-class-ubi | 8 and per-UBI volume information. 30 device information and per UBI volume information (each UBI 39 create a new UBI volume which has this amount of logical 149 this volume has to be aligned on. For example, 2048 means that 151 volume logical eraseblock size is UBI device logical eraseblock 159 Contains ASCII "0\n" if the UBI volume is OK, and ASCII "1\n" 160 if it is corrupted (e.g., due to an interrupted volume update). 167 The amount of data this volume contains. This value makes sense 168 only for static volumes, and for dynamic volume it equivalent 169 to the total volume size in bytes. [all …]
|
| /linux/include/linux/ |
| H A D | fscache-cache.h | 57 void (*acquire_volume)(struct fscache_volume *volume); 60 void (*free_volume)(struct fscache_volume *volume); 96 extern void fscache_withdraw_volume(struct fscache_volume *volume); 102 fscache_try_get_volume(struct fscache_volume *volume, 104 extern void fscache_put_volume(struct fscache_volume *volume, 106 extern void fscache_end_volume_access(struct fscache_volume *volume,
|
| /linux/sound/firewire/oxfw/ |
| H A D | oxfw-spkr.c | 12 s16 volume[6]; member 202 value->value.integer.value[channel_map[i]] = spkr->volume[i]; in spkr_volume_get() 214 s16 volume; in spkr_volume_put() local 229 spkr->volume[i]) in spkr_volume_put() 236 volume = value->value.integer.value[channel_map[i ? i - 1 : 0]]; in spkr_volume_put() 239 spkr->volume_fb_id, &volume, in spkr_volume_put() 245 spkr->volume[i - 1] = volume; in spkr_volume_put() 306 &spkr->volume[i], first_ch + i, in snd_oxfw_add_spkr()
|
| /linux/sound/i2c/other/ |
| H A D | pt2258.c | 54 pt->volume[i] = 0; in snd_pt2258_reset() 87 ucontrol->value.integer.value[0] = 79 - pt->volume[base]; in pt2258_stereo_volume_get() 88 ucontrol->value.integer.value[1] = 79 - pt->volume[base + 1]; in pt2258_stereo_volume_get() 104 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put() 107 pt->volume[base] = val0; in pt2258_stereo_volume_put() 115 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put()
|
| /linux/Documentation/admin-guide/ |
| H A D | jfs.rst | 19 Resize the volume to <value> blocks. JFS only supports 20 growing a volume, not shrinking it. This option is only 21 valid during a remount, when the volume is mounted 23 the volume to the full size of the partition. 27 is to allow for higher performance when restoring a volume 28 from backup media. The integrity of the volume is not 33 remount a volume where the nointegrity option was
|
| /linux/sound/soc/renesas/rcar/ |
| H A D | mix.c | 83 (VOL_MAX - rsnd_kctrl_vals(mix->volume##X)) : 0 183 struct rsnd_kctrl_cfg_s *volume; in rsnd_mix_pcm_new() local 189 volume = &mix->volumeA; in rsnd_mix_pcm_new() 194 volume = &mix->volumeB; in rsnd_mix_pcm_new() 199 volume = &mix->volumeC; in rsnd_mix_pcm_new() 204 volume = &mix->volumeD; in rsnd_mix_pcm_new() 217 volume, VOL_MAX); in rsnd_mix_pcm_new() 220 rsnd_kctrl_vals(*volume) = VOL_MAX; in rsnd_mix_pcm_new()
|
| /linux/Documentation/filesystems/caching/ |
| H A D | netfs-api.rst | 48 cookie, hereafter referred to as "volume cookies" and "cookies". 50 A network filesystem acquires a volume cookie for a volume using a volume key, 51 which represents all the information that defines that volume (e.g. cell name 52 or server address, volume ID or share name). This must be rendered as a 58 A filesystem would typically have a volume cookie for each superblock. 60 The filesystem then acquires a cookie for each file within that volume using an 62 their parent volume. The cache backend is responsible for rendering the binary 94 The first step for a network filesystem is to acquire a volume cookie for the 95 volume it wants to access:: 103 This function creates a volume cookie with the specified volume key as its name [all …]
|
| H A D | fscache.rst | 104 * There are three types of cookie: cache, volume and data file cookies. 106 to the netfs; the netfs gets a volume cookie to represent a collection of 114 cell name or server address, volume name or share path. It must be a 118 represent the object within a volume (so the volume key need not form 172 | |v=N |Number of volume index cookies allocated | 174 | |vcol=N |Number of volume index key collisions | 176 | |voom=N |Number of OOM events when allocating volume cookies | 256 FS-Cache provides a list of volume cookies: 271 VOLUME The volume cookie debug ID (also appears in traces) 272 REF Number of references on the volume cookie [all …]
|