/linux-6.12.1/fs/afs/ |
D | volume.c | 21 struct afs_volume *volume) in afs_insert_volume_into_cell() argument 32 if (p->vid < volume->vid) { in afs_insert_volume_into_cell() 34 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell() 38 volume = p; in afs_insert_volume_into_cell() 42 set_bit(AFS_VOLUME_RM_TREE, &volume->flags); in afs_insert_volume_into_cell() 43 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 47 rb_link_node_rcu(&volume->cell_node, parent, pp); in afs_insert_volume_into_cell() 48 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 49 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell() 53 return volume; in afs_insert_volume_into_cell() [all …]
|
D | validation.c | 122 const struct afs_volume *volume = vnode->volume; in afs_check_validity() local 128 if (atomic_read(&volume->cb_v_check) != atomic_read(&volume->cb_v_break) || in afs_check_validity() 130 volume->cb_expires_at <= deadline || in afs_check_validity() 131 vnode->cb_ro_snapshot != atomic_read(&volume->cb_ro_snapshot) || in afs_check_validity() 132 vnode->cb_scrub != atomic_read(&volume->cb_scrub) || in afs_check_validity() 144 static bool __afs_is_server_excluded(struct afs_operation *op, struct afs_volume *volume) in __afs_is_server_excluded() argument 153 slist = rcu_dereference(volume->servers); in __afs_is_server_excluded() 170 static int afs_is_server_excluded(struct afs_operation *op, struct afs_volume *volume) in afs_is_server_excluded() argument 174 if (__afs_is_server_excluded(op, volume)) in afs_is_server_excluded() 177 set_bit(AFS_VOLUME_NEEDS_UPDATE, &volume->flags); in afs_is_server_excluded() [all …]
|
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 …]
|
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_put_server(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 …]
|
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() 359 struct afs_volume *volume; in afs_validate_fc() local 383 if (ctx->volume) { in afs_validate_fc() 384 afs_put_volume(ctx->volume, afs_volume_trace_put_validate_fc); in afs_validate_fc() 385 ctx->volume = NULL; in afs_validate_fc() 404 volume = afs_create_volume(ctx); in afs_validate_fc() 405 if (IS_ERR(volume)) in afs_validate_fc() [all …]
|
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 …]
|
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 …]
|
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() 152 op->cb_v_break = atomic_read(&op->volume->cb_v_break); in afs_begin_vnode_operation() 267 afs_put_volume(op->volume, afs_volume_trace_put_put_op); in afs_put_operation()
|
/linux-6.12.1/fs/netfs/ |
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 …]
|
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-6.12.1/drivers/md/dm-vdo/indexer/ |
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 …]
|
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 …]
|
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-6.12.1/fs/cachefiles/ |
D | volume.c | 19 struct cachefiles_volume *volume; in cachefiles_acquire_volume() local 30 volume = kzalloc(sizeof(struct cachefiles_volume), GFP_KERNEL); in cachefiles_acquire_volume() 31 if (!volume) in cachefiles_acquire_volume() 33 volume->vcookie = vcookie; in cachefiles_acquire_volume() 34 volume->cache = cache; in cachefiles_acquire_volume() 35 INIT_LIST_HEAD(&volume->cache_link); in cachefiles_acquire_volume() 51 volume->dentry = vdentry; in cachefiles_acquire_volume() 54 if (!cachefiles_set_volume_xattr(volume)) in cachefiles_acquire_volume() 57 ret = cachefiles_check_volume_xattr(volume); in cachefiles_acquire_volume() 64 cachefiles_put_directory(volume->dentry); in cachefiles_acquire_volume() [all …]
|
D | xattr.c | 191 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write() 205 bool cachefiles_set_volume_xattr(struct cachefiles_volume *volume) in cachefiles_set_volume_xattr() argument 208 unsigned int len = volume->vcookie->coherency_len; in cachefiles_set_volume_xattr() 209 const void *p = volume->vcookie->coherency; in cachefiles_set_volume_xattr() 210 struct dentry *dentry = volume->dentry; in cachefiles_set_volume_xattr() 213 _enter("%x,#%d", volume->vcookie->debug_id, len); in cachefiles_set_volume_xattr() 220 memcpy(buf->data, p, volume->vcookie->coherency_len); in cachefiles_set_volume_xattr() 224 ret = mnt_want_write(volume->cache->mnt); in cachefiles_set_volume_xattr() 229 mnt_drop_write(volume->cache->mnt); in cachefiles_set_volume_xattr() 235 trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino, in cachefiles_set_volume_xattr() [all …]
|
D | interface.c | 24 struct fscache_volume *vcookie = cookie->volume; in cachefiles_alloc_object() 25 struct cachefiles_volume *volume = vcookie->cache_priv; in cachefiles_alloc_object() local 34 if (cachefiles_ondemand_init_obj_info(object, volume)) { in cachefiles_alloc_object() 43 object->volume = volume; in cachefiles_alloc_object() 97 cache = object->volume->cache->cache; in cachefiles_put_object() 180 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv; in cachefiles_lookup_cookie() 235 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_shorten_object() 282 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_resize_cookie() 357 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_withdraw_cookie() 423 struct cachefiles_volume *volume = object->volume; in cachefiles_invalidate_cookie() local [all …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
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
|
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-6.12.1/sound/ppc/ |
D | burgundy.c | 125 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument 129 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume() 130 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume() 132 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume() 133 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume() 144 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument 150 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume() 151 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume() 152 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume() 154 volume[0] = 0; in snd_pmac_burgundy_read_volume() [all …]
|
D | beep.c | 21 int volume; /* mixer volume: 0-100 */ member 136 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event() 146 p[0] = p[1] = beep_wform[j >> 8] * beep->volume; in snd_pmac_beep_event() 150 beep->volume_play = beep->volume; in snd_pmac_beep_event() 180 ucontrol->value.integer.value[0] = chip->beep->volume; in snd_pmac_get_beep() 191 oval = chip->beep->volume; in snd_pmac_put_beep() 195 chip->beep->volume = nval; in snd_pmac_put_beep() 196 return oval != chip->beep->volume; in snd_pmac_put_beep() 241 beep->volume = BEEP_VOLUME; in snd_pmac_attach_beep()
|
/linux-6.12.1/include/trace/events/ |
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-6.12.1/drivers/firmware/efi/libstub/ |
D | file.c | 37 static efi_status_t efi_open_file(efi_file_protocol_t *volume, in efi_open_file() argument 54 status = efi_call_proto(volume, open, &fh, fi->filename, in efi_open_file() 128 static efi_status_t efi_open_device_path(efi_file_protocol_t **volume, in efi_open_device_path() argument 171 status = efi_call_proto(io, open_volume, volume); in efi_open_device_path() 195 efi_file_protocol_t *volume = NULL; in handle_cmdline_files() local 227 status = efi_open_device_path(&volume, &fi); in handle_cmdline_files() 230 status = efi_open_volume(image, &volume); in handle_cmdline_files() 235 status = efi_open_file(volume, &fi, &file, &size); in handle_cmdline_files() 290 efi_call_proto(volume, close); in handle_cmdline_files() 304 efi_call_proto(volume, close); in handle_cmdline_files()
|
/linux-6.12.1/Documentation/ABI/stable/ |
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-6.12.1/sound/soc/intel/avs/ |
D | control.c | 71 ucontrol->value.integer.value[0] = ctl_data->volume; in avs_control_volume_get() 83 long *volume = &ctl_data->volume; in avs_control_volume_put() local 95 if (*volume != ctlvol) { in avs_control_volume_put() 96 *volume = ctlvol; in avs_control_volume_put() 103 dspvol.target_volume = *volume; in avs_control_volume_put()
|
/linux-6.12.1/include/linux/ |
D | fscache.h | 24 #define fscache_volume_valid(volume) (volume) argument 31 #define fscache_volume_valid(volume) (0) argument 109 struct fscache_volume *volume; /* Parent volume of this file. */ member 222 void fscache_relinquish_volume(struct fscache_volume *volume, in fscache_relinquish_volume() argument 226 if (fscache_volume_valid(volume)) in fscache_relinquish_volume() 227 __fscache_relinquish_volume(volume, coherency_data, invalidate); in fscache_relinquish_volume() 246 struct fscache_cookie *fscache_acquire_cookie(struct fscache_volume *volume, in fscache_acquire_cookie() argument 254 if (!fscache_volume_valid(volume)) in fscache_acquire_cookie() 256 return __fscache_acquire_cookie(volume, advice, in fscache_acquire_cookie()
|