| /linux/fs/afs/ |
| H A D | volume.c | 22 struct afs_volume *volume) in afs_insert_volume_into_cell() argument 33 if (p->vid < volume->vid) { in afs_insert_volume_into_cell() 35 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell() 39 volume = p; in afs_insert_volume_into_cell() 43 set_bit(AFS_VOLUME_RM_TREE, &volume->flags); in afs_insert_volume_into_cell() 44 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 48 rb_link_node_rcu(&volume->cell_node, parent, pp); in afs_insert_volume_into_cell() 49 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 50 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell() 54 return volume; in afs_insert_volume_into_cell() [all …]
|
| 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/netfs/ |
| H A D | fscache_volume.c | 20 struct fscache_volume *fscache_get_volume(struct fscache_volume *volume, in fscache_get_volume() argument 25 __refcount_inc(&volume->ref, &ref); in fscache_get_volume() 26 trace_fscache_volume(volume->debug_id, ref + 1, where); in fscache_get_volume() 27 return volume; in fscache_get_volume() 30 struct fscache_volume *fscache_try_get_volume(struct fscache_volume *volume, in fscache_try_get_volume() argument 35 if (!__refcount_inc_not_zero(&volume->ref, &ref)) in fscache_try_get_volume() 38 trace_fscache_volume(volume->debug_id, ref + 1, where); in fscache_try_get_volume() 39 return volume; in fscache_try_get_volume() 43 static void fscache_see_volume(struct fscache_volume *volume, in fscache_see_volume() argument 46 int ref = refcount_read(&volume->ref); in fscache_see_volume() [all …]
|
| 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/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/cachefiles/ |
| H A D | volume.c | 20 struct cachefiles_volume *volume; in cachefiles_acquire_volume() local 31 volume = kzalloc_obj(struct cachefiles_volume); in cachefiles_acquire_volume() 32 if (!volume) in cachefiles_acquire_volume() 34 volume->vcookie = vcookie; in cachefiles_acquire_volume() 35 volume->cache = cache; in cachefiles_acquire_volume() 36 INIT_LIST_HEAD(&volume->cache_link); in cachefiles_acquire_volume() 52 volume->dentry = vdentry; in cachefiles_acquire_volume() 55 if (!cachefiles_set_volume_xattr(volume)) in cachefiles_acquire_volume() 58 ret = cachefiles_check_volume_xattr(volume); in cachefiles_acquire_volume() 67 cachefiles_put_directory(volume->dentry); in cachefiles_acquire_volume() [all …]
|
| 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()
|
| /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/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/sound/ppc/ |
| H A D | beep.c | 21 int volume; /* mixer volume: 0-100 */ member 132 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event() 142 p[0] = p[1] = beep_wform[j >> 8] * beep->volume; in snd_pmac_beep_event() 146 beep->volume_play = beep->volume; in snd_pmac_beep_event() 175 ucontrol->value.integer.value[0] = chip->beep->volume; in snd_pmac_get_beep() 186 oval = chip->beep->volume; in snd_pmac_put_beep() 190 chip->beep->volume = nval; in snd_pmac_put_beep() 191 return oval != chip->beep->volume; in snd_pmac_put_beep() 236 beep->volume = BEEP_VOLUME; in snd_pmac_attach_beep()
|
| /linux/fs/erofs/ |
| H A D | fscache.c | 380 fscache_relinquish_volume(domain->volume, NULL, false); in erofs_fscache_domain_put() 393 struct fscache_volume *volume; in erofs_fscache_register_volume() local 402 volume = fscache_acquire_volume(name, NULL, NULL, 0); in erofs_fscache_register_volume() 403 if (IS_ERR_OR_NULL(volume)) { in erofs_fscache_register_volume() 405 ret = volume ? PTR_ERR(volume) : -EOPNOTSUPP; in erofs_fscache_register_volume() 406 volume = NULL; in erofs_fscache_register_volume() 409 sbi->volume = volume; in erofs_fscache_register_volume() 443 domain->volume = sbi->volume; in erofs_fscache_init_domain() 464 sbi->volume = domain->volume; in erofs_fscache_register_domain() 478 struct fscache_volume *volume = EROFS_SB(sb)->volume; in erofs_fscache_acquire_cookie() local [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()
|