Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/linux-6.1.9/fs/fscache/
Dvolume.c20 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()
41 static void __fscache_begin_volume_access(struct fscache_volume *volume, in __fscache_begin_volume_access() argument
47 n_accesses = atomic_inc_return(&volume->n_accesses); in __fscache_begin_volume_access()
49 trace_fscache_access_volume(volume->debug_id, cookie ? cookie->debug_id : 0, in __fscache_begin_volume_access()
[all …]
Dcookie.c48 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.1.9/fs/afs/
Dvolume.c19 struct afs_volume *volume) in afs_insert_volume_into_cell() argument
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()
35 volume = afs_get_volume(p, afs_volume_trace_get_cell_insert); in afs_insert_volume_into_cell()
40 rb_link_node_rcu(&volume->cell_node, parent, pp); in afs_insert_volume_into_cell()
41 rb_insert_color(&volume->cell_node, &cell->volumes); in afs_insert_volume_into_cell()
42 hlist_add_head_rcu(&volume->proc_link, &cell->proc_volumes); in afs_insert_volume_into_cell()
46 return volume; in afs_insert_volume_into_cell()
50 static void afs_remove_volume_from_cell(struct afs_volume *volume) in afs_remove_volume_from_cell() argument
52 struct afs_cell *cell = volume->cell; in afs_remove_volume_from_cell()
[all …]
Dcallback.c81 vnode->cb_v_break = vnode->volume->cb_v_break; in __afs_break_callback()
111 struct afs_volume *volume = NULL; in afs_lookup_volume_rcu() local
124 volume = rb_entry(p, struct afs_volume, cell_node); in afs_lookup_volume_rcu()
126 if (volume->vid < vid) in afs_lookup_volume_rcu()
128 else if (volume->vid > vid) in afs_lookup_volume_rcu()
132 volume = NULL; in afs_lookup_volume_rcu()
138 return volume; in afs_lookup_volume_rcu()
147 static void afs_break_one_callback(struct afs_volume *volume, in afs_break_one_callback() argument
156 write_lock(&volume->cb_v_break_lock); in afs_break_one_callback()
157 volume->cb_v_break++; in afs_break_one_callback()
[all …]
Drotate.c28 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()
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()
159 write_lock(&op->volume->servers_lock); in afs_select_fileserver()
161 write_unlock(&op->volume->servers_lock); in afs_select_fileserver()
163 set_bit(AFS_VOLUME_NEEDS_UPDATE, &op->volume->flags); in afs_select_fileserver()
164 error = afs_check_volume_status(op->volume, op); in afs_select_fileserver()
[all …]
Dsuper.c159 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->net, ctx->volume, in afs_validate_fc()
386 ctx->volume = NULL; in afs_validate_fc()
405 volume = afs_create_volume(ctx); in afs_validate_fc()
406 if (IS_ERR(volume)) in afs_validate_fc()
[all …]
Dvl_alias.c20 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()
190 struct afs_volume *volume, *pvol = NULL; in afs_query_for_alias_one() local
206 volume = afs_sample_volume(cell, key, pvol->name, pvol->name_len); in afs_query_for_alias_one()
207 if (IS_ERR(volume)) { in afs_query_for_alias_one()
209 if (PTR_ERR(volume) != -ENOMEDIUM) in afs_query_for_alias_one()
210 return PTR_ERR(volume); in afs_query_for_alias_one()
219 if (pvol->vid == volume->vid) { in afs_query_for_alias_one()
[all …]
Dfs_operation.c18 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 = volume->cb_v_break; in afs_alloc_operation()
150 op->cb_v_break = op->volume->cb_v_break; in afs_begin_vnode_operation()
248 afs_put_volume(op->net, op->volume, afs_volume_trace_put_put_op); in afs_put_operation()
/linux-6.1.9/fs/cachefiles/
Dvolume.c19 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 …]
Dxattr.c177 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write()
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_inode(dentry)->i_ino, in cachefiles_set_volume_xattr()
219 volume->cache, "Failed to set xattr with error %d", ret); in cachefiles_set_volume_xattr()
221 trace_cachefiles_vol_coherency(volume, d_inode(dentry)->i_ino, in cachefiles_set_volume_xattr()
[all …]
Dinterface.c24 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 = object->volume; in cachefiles_invalidate_cookie() local
419 struct dentry *fan = volume->fanout[(u8)cookie->key_hash]; in cachefiles_invalidate_cookie()
[all …]
Dnamei.c69 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_unmark_inode_in_use()
417 struct cachefiles_volume *volume = object->volume; in cachefiles_delete_object() local
419 struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_delete_object()
428 ret = cachefiles_unlink(volume->cache, object, fan, dentry, why); in cachefiles_delete_object()
440 struct cachefiles_volume *volume = object->volume; in cachefiles_create_tmpfile() local
441 struct cachefiles_cache *cache = volume->cache; in cachefiles_create_tmpfile()
443 struct dentry *fan = volume->fanout[(u8)object->cookie->key_hash]; in cachefiles_create_tmpfile()
521 ret = cachefiles_has_space(object->volume->cache, 1, 0, in cachefiles_create_file()
544 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_open_file()
620 struct cachefiles_volume *volume = object->volume; in cachefiles_look_up_object() local
[all …]
Dondemand.c11 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_release()
44 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_write_iter()
84 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_ioctl()
195 cache = object->volume->cache; in cachefiles_ondemand_get_fd()
315 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_send_req()
400 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_open_req() local
409 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_open_req()
410 volume_key = volume->key + 1; in cachefiles_ondemand_init_open_req()
479 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_object() local
491 volume_key_size = volume->key[0] + 1; in cachefiles_ondemand_init_object()
/linux-6.1.9/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uac112 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
Dconfigfs-usb-gadget-uac215 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
/linux-6.1.9/drivers/firmware/efi/libstub/
Dfile.c37 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()
159 efi_file_protocol_t *volume = NULL; in handle_cmdline_files() local
191 if (!volume) { in handle_cmdline_files()
192 status = efi_open_volume(image, &volume); in handle_cmdline_files()
197 status = efi_open_file(volume, &fi, &file, &size); in handle_cmdline_files()
257 if (volume) in handle_cmdline_files()
258 volume->close(volume); in handle_cmdline_files()
268 volume->close(volume); in handle_cmdline_files()
/linux-6.1.9/sound/ppc/
Dburgundy.c124 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument
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[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
143 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument
149 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume()
150 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
151 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
153 volume[0] = 0; in snd_pmac_burgundy_read_volume()
[all …]
Dbeep.c21 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.1.9/include/trace/events/
Dfscache.h240 __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->ref);
422 __entry->v_n_cookies = atomic_read(&cookie->volume->n_cookies);
[all …]
/linux-6.1.9/Documentation/ABI/stable/
Dsysfs-class-ubi8 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.1.9/include/linux/
Dfscache.h24 #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
219 void fscache_relinquish_volume(struct fscache_volume *volume, in fscache_relinquish_volume() argument
223 if (fscache_volume_valid(volume)) in fscache_relinquish_volume()
224 __fscache_relinquish_volume(volume, coherency_data, invalidate); in fscache_relinquish_volume()
243 struct fscache_cookie *fscache_acquire_cookie(struct fscache_volume *volume, in fscache_acquire_cookie() argument
251 if (!fscache_volume_valid(volume)) in fscache_acquire_cookie()
253 return __fscache_acquire_cookie(volume, advice, in fscache_acquire_cookie()
/linux-6.1.9/fs/erofs/
Dfscache.c402 fscache_relinquish_volume(domain->volume, NULL, false); in erofs_fscache_domain_put()
414 struct fscache_volume *volume; in erofs_fscache_register_volume() local
423 volume = fscache_acquire_volume(name, NULL, NULL, 0); in erofs_fscache_register_volume()
424 if (IS_ERR_OR_NULL(volume)) { in erofs_fscache_register_volume()
426 ret = volume ? PTR_ERR(volume) : -EOPNOTSUPP; in erofs_fscache_register_volume()
427 volume = NULL; in erofs_fscache_register_volume()
430 sbi->volume = volume; in erofs_fscache_register_volume()
463 domain->volume = sbi->volume; in erofs_fscache_init_domain()
484 sbi->volume = domain->volume; in erofs_fscache_register_domain()
500 struct fscache_volume *volume = EROFS_SB(sb)->volume; in erofs_fscache_acquire_cookie() local
[all …]
/linux-6.1.9/sound/firewire/oxfw/
Doxfw-spkr.c12 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-6.1.9/drivers/mfd/
Dwl1273-core.c141 static int wl1273_fm_set_volume(struct wl1273_core *core, unsigned int volume) in wl1273_fm_set_volume() argument
145 if (volume > WL1273_MAX_VOLUME) in wl1273_fm_set_volume()
148 if (core->volume == volume) in wl1273_fm_set_volume()
151 r = wl1273_fm_write_cmd(core, WL1273_VOLUME_SET, volume); in wl1273_fm_set_volume()
155 core->volume = volume; in wl1273_fm_set_volume()
/linux-6.1.9/sound/i2c/other/
Dpt2258.c54 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()

12345678910>>...15