/kernel/linux/linux-6.6/fs/fscache/ |
H A D | 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 static void fscache_see_volume(struct fscache_volume *volume, in fscache_see_volume() argument 33 int ref = refcount_read(&volume->ref); in fscache_see_volume() 35 trace_fscache_volume(volume->debug_id, ref, where); in fscache_see_volume() 39 * Pin the cache behind a volume so that we can access it. 41 static void __fscache_begin_volume_access(struct fscache_volume *volume, in __fscache_begin_volume_access() argument 47 n_accesses = atomic_inc_return(&volume in __fscache_begin_volume_access() 83 fscache_begin_volume_access(struct fscache_volume *volume, struct fscache_cookie *cookie, enum fscache_access_trace why) fscache_begin_volume_access() argument 106 fscache_end_volume_access(struct fscache_volume *volume, struct fscache_cookie *cookie, enum fscache_access_trace why) fscache_end_volume_access() argument 136 fscache_is_acquire_pending(struct fscache_volume *volume) fscache_is_acquire_pending() argument 204 struct fscache_volume *volume; fscache_alloc_volume() local 272 struct fscache_volume *volume = fscache_create_volume_work() local 290 fscache_create_volume(struct fscache_volume *volume, bool wait) fscache_create_volume() argument 324 struct fscache_volume *volume; __fscache_acquire_volume() local 341 fscache_wake_pending_volume(struct fscache_volume *volume, struct hlist_bl_head *h) fscache_wake_pending_volume() argument 360 fscache_unhash_volume(struct fscache_volume *volume) fscache_unhash_volume() argument 378 fscache_free_volume(struct fscache_volume *volume) fscache_free_volume() argument 409 fscache_put_volume(struct fscache_volume *volume, enum fscache_volume_trace where) fscache_put_volume() argument 427 __fscache_relinquish_volume(struct fscache_volume *volume, const void *coherency_data, bool invalidate) __fscache_relinquish_volume() argument 451 fscache_withdraw_volume(struct fscache_volume *volume) fscache_withdraw_volume() argument 474 struct fscache_volume *volume; fscache_volumes_seq_show() local [all...] |
H A D | 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() 340 cookie->volume = volume; in fscache_alloc_cookie() 422 fscache_get_volume(candidate->volume, fscache_volume_get_cooki in fscache_hash_cookie() 325 fscache_alloc_cookie( struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) fscache_alloc_cookie() argument 450 __fscache_acquire_cookie( struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) __fscache_acquire_cookie() argument 1006 struct fscache_volume *volume = cookie->volume; fscache_put_cookie() local [all...] |
/kernel/linux/linux-6.6/fs/afs/ |
H A D | volume.c | 2 /* AFS volume management 15 * Insert a volume into a cell. If there's an existing volume record, that is 19 struct afs_volume *volume) in afs_insert_volume_into_cell() 30 if (p->vid < volume->vid) { in afs_insert_volume_into_cell() 32 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell() 36 volume = p; in afs_insert_volume_into_cell() 40 set_bit(AFS_VOLUME_RM_TREE, &volume->flags); in afs_insert_volume_into_cell() 41 rb_replace_node_rcu(&p->cell_node, &volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 45 rb_link_node_rcu(&volume in afs_insert_volume_into_cell() 18 afs_insert_volume_into_cell(struct afs_cell *cell, struct afs_volume *volume) afs_insert_volume_into_cell() argument 55 afs_remove_volume_from_cell(struct afs_volume *volume) afs_remove_volume_from_cell() argument 78 struct afs_volume *volume; afs_alloc_volume() local 123 struct afs_volume *candidate, *volume; afs_lookup_volume() local 185 struct afs_volume *volume; afs_create_volume() local 222 afs_destroy_volume(struct afs_net *net, struct afs_volume *volume) afs_destroy_volume() argument 243 afs_try_get_volume(struct afs_volume *volume, enum afs_volume_trace reason) afs_try_get_volume() argument 257 afs_get_volume(struct afs_volume *volume, enum afs_volume_trace reason) afs_get_volume() argument 273 afs_put_volume(struct afs_net *net, struct afs_volume *volume, enum afs_volume_trace reason) afs_put_volume() argument 291 afs_activate_volume(struct afs_volume *volume) afs_activate_volume() argument 320 afs_deactivate_volume(struct afs_volume *volume) afs_deactivate_volume() argument 336 afs_update_volume_status(struct afs_volume *volume, struct key *key) afs_update_volume_status() argument 400 afs_check_volume_status(struct afs_volume *volume, struct afs_operation *op) afs_check_volume_status() argument [all...] |
H A D | callback.c | 81 vnode->cb_v_break = vnode->volume->cb_v_break; in __afs_break_callback() 106 * Look up a volume by volume ID under RCU conditions. 111 struct afs_volume *volume = NULL; in afs_lookup_volume_rcu() local 125 volume = rb_entry(p, struct afs_volume, cell_node); in afs_lookup_volume_rcu() 127 if (volume->vid < vid) in afs_lookup_volume_rcu() 129 else if (volume->vid > vid) in afs_lookup_volume_rcu() 133 volume = NULL; in afs_lookup_volume_rcu() 139 return volume; in afs_lookup_volume_rcu() 148 static void afs_break_one_callback(struct afs_volume *volume, in afs_break_one_callback() argument 187 struct afs_volume *volume; afs_break_some_callbacks() local [all...] |
H A D | rotate.c | 28 read_lock(&op->volume->servers_lock); in afs_start_fs_iteration() 30 rcu_dereference_protected(op->volume->servers, in afs_start_fs_iteration() 31 lockdep_is_held(&op->volume->servers_lock))); in afs_start_fs_iteration() 32 read_unlock(&op->volume->servers_lock); in afs_start_fs_iteration() 71 * Post volume busy note. 73 static void afs_busy(struct afs_volume *volume, u32 abort_code) in afs_busy() argument 84 pr_notice("kAFS: Volume %llu '%s' is %s\n", volume->vid, volume->name, m); in afs_busy() 145 * might involve the server being busy or the volume having been moved. in afs_select_fileserver() 149 /* This fileserver doesn't know about the volume in afs_select_fileserver() [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() 213 * Parse the source name to get cell name, volume name, volume type and R/W 217 * "%[cell:]volume[.]" R/W volume 218 * "#[cell:]volume[ 359 struct afs_volume *volume; afs_validate_fc() local [all...] |
H A D | vl_alias.c | 15 * Sample a volume. 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() 168 continue; /* Ignore cells that don't have a root.cell volume. */ in afs_compare_cell_roots() 185 * Query the new cell for a volume from a cell we're already using. 190 struct afs_volume *volume, *pvol = NULL; in afs_query_for_alias_one() local 193 /* Arbitrarily pick a volume from the list. */ in afs_query_for_alias_one() 206 volume in afs_query_for_alias_one() [all...] |
/kernel/linux/linux-5.10/fs/afs/ |
H A D | volume.c | 2 /* AFS volume management 16 * Insert a volume into a cell. If there's an existing volume record, that is 20 struct afs_volume *volume) in afs_insert_volume_into_cell() 31 if (p->vid < volume->vid) { in afs_insert_volume_into_cell() 33 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell() 36 volume = afs_get_volume(p, afs_volume_trace_get_cell_insert); in afs_insert_volume_into_cell() 41 rb_link_node_rcu(&volume->cell_node, parent, pp); in afs_insert_volume_into_cell() 42 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell() 43 hlist_add_head_rcu(&volume in afs_insert_volume_into_cell() 19 afs_insert_volume_into_cell(struct afs_cell *cell, struct afs_volume *volume) afs_insert_volume_into_cell() argument 51 afs_remove_volume_from_cell(struct afs_volume *volume) afs_remove_volume_from_cell() argument 73 struct afs_volume *volume; afs_alloc_volume() local 122 struct afs_volume *candidate, *volume; afs_lookup_volume() local 184 struct afs_volume *volume; afs_create_volume() local 221 afs_destroy_volume(struct afs_net *net, struct afs_volume *volume) afs_destroy_volume() argument 242 afs_get_volume(struct afs_volume *volume, enum afs_volume_trace reason) afs_get_volume() argument 256 afs_put_volume(struct afs_net *net, struct afs_volume *volume, enum afs_volume_trace reason) afs_put_volume() argument 271 afs_activate_volume(struct afs_volume *volume) afs_activate_volume() argument 285 afs_deactivate_volume(struct afs_volume *volume) afs_deactivate_volume() argument 301 afs_update_volume_status(struct afs_volume *volume, struct key *key) afs_update_volume_status() argument 365 afs_check_volume_status(struct afs_volume *volume, struct afs_operation *op) afs_check_volume_status() argument [all...] |
H A D | callback.c | 66 * Look up a volume by volume ID under RCU conditions. 71 struct afs_volume *volume = NULL; in afs_lookup_volume_rcu() local 85 volume = rb_entry(p, struct afs_volume, cell_node); in afs_lookup_volume_rcu() 87 if (volume->vid < vid) in afs_lookup_volume_rcu() 89 else if (volume->vid > vid) in afs_lookup_volume_rcu() 93 volume = NULL; in afs_lookup_volume_rcu() 99 return volume; in afs_lookup_volume_rcu() 108 static void afs_break_one_callback(struct afs_volume *volume, in afs_break_one_callback() argument 116 /* The callback break applies to an entire volume in afs_break_one_callback() 147 struct afs_volume *volume; afs_break_some_callbacks() local [all...] |
H A D | rotate.c | 28 read_lock(&op->volume->servers_lock); in afs_start_fs_iteration() 30 rcu_dereference_protected(op->volume->servers, in afs_start_fs_iteration() 31 lockdep_is_held(&op->volume->servers_lock))); in afs_start_fs_iteration() 32 read_unlock(&op->volume->servers_lock); in afs_start_fs_iteration() 71 * Post volume busy note. 73 static void afs_busy(struct afs_volume *volume, u32 abort_code) in afs_busy() argument 84 pr_notice("kAFS: Volume %llu '%s' is %s\n", volume->vid, volume->name, m); in afs_busy() 145 * might involve the server being busy or the volume having been moved. in afs_select_fileserver() 149 /* This fileserver doesn't know about the volume in afs_select_fileserver() [all...] |
H A D | super.c | 158 struct afs_volume *volume = as->volume; in afs_show_devname() local 168 switch (volume->type) { in afs_show_devname() 173 if (volume->type_force) in afs_show_devname() 182 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname() 212 * Parse the source name to get cell name, volume name, volume type and R/W 216 * "%[cell:]volume[.]" R/W volume 217 * "#[cell:]volume[ 358 struct afs_volume *volume; afs_validate_fc() local [all...] |
H A D | vl_alias.c | 15 * Sample a volume. 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() 168 continue; /* Ignore cells that don't have a root.cell volume. */ in afs_compare_cell_roots() 185 * Query the new cell for a volume from a cell we're already using. 190 struct afs_volume *volume, *pvol = NULL; in afs_query_for_alias_one() local 193 /* Arbitrarily pick a volume from the list. */ in afs_query_for_alias_one() 206 volume in afs_query_for_alias_one() [all...] |
/kernel/linux/linux-6.6/fs/cachefiles/ |
H A D | volume.c | 14 * Allocate and set up a volume representation. We make sure all the fanout 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() 108 __cachefiles_free_volume(struct cachefiles_volume *volume) __cachefiles_free_volume() argument 124 struct cachefiles_volume *volume = vcookie->cache_priv; cachefiles_free_volume() local 134 cachefiles_withdraw_volume(struct cachefiles_volume *volume) cachefiles_withdraw_volume() argument [all...] |
H A D | xattr.c | 33 __u8 data[]; /* netfs volume coherency data */ 177 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write() 189 * Set the state xattr on a volume directory. 191 bool cachefiles_set_volume_xattr(struct cachefiles_volume *volume) in cachefiles_set_volume_xattr() argument 194 unsigned int len = volume->vcookie->coherency_len; in cachefiles_set_volume_xattr() 195 const void *p = volume->vcookie->coherency; in cachefiles_set_volume_xattr() 196 struct dentry *dentry = volume->dentry; in cachefiles_set_volume_xattr() 199 _enter("%x,#%d", volume->vcookie->debug_id, len); in cachefiles_set_volume_xattr() 206 memcpy(buf->data, p, volume->vcookie->coherency_len); in cachefiles_set_volume_xattr() 215 trace_cachefiles_vol_coherency(volume, d_inod in cachefiles_set_volume_xattr() 233 cachefiles_check_volume_xattr(struct cachefiles_volume *volume) cachefiles_check_volume_xattr() argument [all...] |
H A 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 38 object->volume = volume; in cachefiles_alloc_object() 92 cache = object->volume->cache->cache; in cachefiles_put_object() 175 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv; in cachefiles_lookup_cookie() 230 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_shorten_object() 277 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_resize_cookie() 352 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_withdraw_cookie() 418 struct cachefiles_volume *volume in cachefiles_invalidate_cookie() local [all...] |
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | file.c | 37 static efi_status_t efi_open_file(efi_file_protocol_t *volume, in efi_open_file() argument 47 status = volume->open(volume, &fh, fi->filename, EFI_FILE_MODE_READ, 0); in efi_open_file() 82 efi_err("Failed to open volume\n"); in efi_open_volume() 141 efi_file_protocol_t *volume = NULL; in handle_cmdline_files() local 173 if (!volume) { in handle_cmdline_files() 174 status = efi_open_volume(image, &volume); in handle_cmdline_files() 179 status = efi_open_file(volume, &fi, &file, &size); in handle_cmdline_files() 239 if (volume) in handle_cmdline_files() 240 volume in handle_cmdline_files() [all...] |
/kernel/linux/linux-5.10/sound/ppc/ |
H A D | burgundy.c | 120 * Burgundy volume: 0 - 100, stereo, word reg 124 long *volume, int shift) in snd_pmac_burgundy_write_volume() 128 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume() 129 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume() 131 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume() 132 rvolume = volume[1] ? volume[ in snd_pmac_burgundy_write_volume() 123 snd_pmac_burgundy_write_volume(struct snd_pmac *chip, unsigned int address, long *volume, int shift) snd_pmac_burgundy_write_volume() argument 142 snd_pmac_burgundy_read_volume(struct snd_pmac *chip, unsigned int address, long *volume, int shift) snd_pmac_burgundy_read_volume() argument 208 snd_pmac_burgundy_write_volume_2b(struct snd_pmac *chip, unsigned int address, long *volume, int off) snd_pmac_burgundy_write_volume_2b() argument 222 snd_pmac_burgundy_read_volume_2b(struct snd_pmac *chip, unsigned int address, long *volume, int off) snd_pmac_burgundy_read_volume_2b() argument [all...] |
H A D | beep.c | 21 int volume; /* mixer volume: 0-100 */ member 22 int volume_play; /* currently playing volume */ 133 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event() 143 p[0] = p[1] = beep_wform[j >> 8] * beep->volume; in snd_pmac_beep_event() 147 beep->volume_play = beep->volume; in snd_pmac_beep_event() 158 * beep volume mixer 177 ucontrol->value.integer.value[0] = chip->beep->volume; in snd_pmac_get_beep() 188 oval = chip->beep->volume; in snd_pmac_put_beep() 192 chip->beep->volume in snd_pmac_put_beep() [all...] |
/kernel/linux/linux-6.6/sound/ppc/ |
H A D | burgundy.c | 121 * Burgundy volume: 0 - 100, stereo, word reg 125 long *volume, int shift) in snd_pmac_burgundy_write_volume() 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[ in snd_pmac_burgundy_write_volume() 124 snd_pmac_burgundy_write_volume(struct snd_pmac *chip, unsigned int address, long *volume, int shift) snd_pmac_burgundy_write_volume() argument 143 snd_pmac_burgundy_read_volume(struct snd_pmac *chip, unsigned int address, long *volume, int shift) snd_pmac_burgundy_read_volume() argument 209 snd_pmac_burgundy_write_volume_2b(struct snd_pmac *chip, unsigned int address, long *volume, int off) snd_pmac_burgundy_write_volume_2b() argument 223 snd_pmac_burgundy_read_volume_2b(struct snd_pmac *chip, unsigned int address, long *volume, int off) snd_pmac_burgundy_read_volume_2b() argument [all...] |
H A D | beep.c | 21 int volume; /* mixer volume: 0-100 */ member 22 int volume_play; /* currently playing volume */ 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() 161 * beep volume mixer 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 in snd_pmac_put_beep() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A 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() 90 efi_err("Failed to open volume\n"); in efi_open_volume() 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() 173 efi_err("Failed to open volume\n"); 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() 229 /* try the volume that holds the kernel itself */ in handle_cmdline_files() 230 status = efi_open_volume(image, &volume); in handle_cmdline_files() [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | fscache.h | 240 __field(unsigned int, volume ) 246 __entry->volume = volume_debug_id; 252 __entry->volume, 354 __field(unsigned int, volume ) 362 __entry->volume = volume_debug_id; 370 __entry->volume, 413 __field(unsigned int, volume ) 420 __entry->volume = cookie->volume->debug_id; 421 __entry->v_ref = refcount_read(&cookie->volume [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/avs/ |
H A 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()
|
/kernel/linux/linux-6.6/fs/erofs/ |
H A D | fscache.c | 342 fscache_relinquish_volume(domain->volume, NULL, false); in erofs_fscache_domain_put() 355 struct fscache_volume *volume; in erofs_fscache_register_volume() local 364 volume = fscache_acquire_volume(name, NULL, NULL, 0); in erofs_fscache_register_volume() 365 if (IS_ERR_OR_NULL(volume)) { in erofs_fscache_register_volume() 366 erofs_err(sb, "failed to register volume for %s", name); in erofs_fscache_register_volume() 367 ret = volume ? PTR_ERR(volume) : -EOPNOTSUPP; in erofs_fscache_register_volume() 368 volume = NULL; in erofs_fscache_register_volume() 371 sbi->volume = volume; in erofs_fscache_register_volume() 440 struct fscache_volume *volume = EROFS_SB(sb)->volume; erofs_fscache_acquire_cookie() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | fscache.h | 24 #define fscache_volume_valid(volume) (volume) 31 #define fscache_volume_valid(volume) (0) 74 atomic_t n_cookies; /* Number of data cookies in volume */ 109 struct fscache_volume *volume; /* Parent volume of this file. */ member 139 u32 key_hash; /* Hash of volume, key, len */ 181 * fscache_acquire_volume - Register a volume as desiring caching services 182 * @volume_key: An identification string for the volume 187 * Register a volume a 219 fscache_relinquish_volume(struct fscache_volume *volume, const void *coherency_data, bool invalidate) fscache_relinquish_volume() argument 243 fscache_acquire_cookie(struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) fscache_acquire_cookie() argument [all...] |