Home
last modified time | relevance | path

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

12345678910>>...22

/openbmc/linux/fs/fscache/
H A 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 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 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 …]
/openbmc/linux/fs/afs/
H A Dvolume.c2 /* 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() 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()
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()
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 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
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
157 write_lock(&volume->cb_v_break_lock); in afs_break_one_callback()
158 volume->cb_v_break++; in afs_break_one_callback()
[all …]
H A 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 …]
H A 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 …]
H A Dvl_alias.c15 * 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...]
/openbmc/linux/fs/cachefiles/
H A 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 …]
H A Dxattr.c191 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 …]
H A 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
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()
363 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_withdraw_cookie()
429 struct cachefiles_volume *volume = object->volume; in cachefiles_invalidate_cookie() local
[all …]
H A 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()
522 ret = cachefiles_has_space(object->volume->cache, 1, 0, in cachefiles_create_file()
545 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 …]
/openbmc/u-boot/doc/
H A DREADME.ubi14 ubi info [l[ayout]] - Display volume and ubi layout information
15 ubi create[vol] volume [size] [type] - create volume name with size
16 ubi write[vol] address volume size - Write volume from address with size
17 ubi write.part address volume size [fullsize]
18 - Write part of a volume from address
19 ubi read[vol] address volume [size] - Read volume to address with size
20 ubi remove[vol] volume - Remove volume
22 volume: character name
77 ubi info Display volume and ubi layout information
78 ubi createvol Create UBI volume on UBI device
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A 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
H A 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
/openbmc/linux/sound/ppc/
H A Dburgundy.c125 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 …]
H A 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()
/openbmc/u-boot/cmd/
H A Dubi.c148 static int ubi_create_vol(char *volume, int64_t size, int dynamic, int vol_id) in ubi_create_vol() argument
162 strcpy(req.name, volume); in ubi_create_vol()
163 req.name_len = strlen(volume); in ubi_create_vol()
173 dynamic ? "dynamic" : "static", volume, size); in ubi_create_vol()
178 static struct ubi_volume *ubi_find_volume(char *volume) in ubi_find_volume() argument
185 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume()
189 printf("Volume %s not found!\n", volume); in ubi_find_volume()
193 static int ubi_remove_vol(char *volume) in ubi_remove_vol() argument
198 vol = ubi_find_volume(volume); in ubi_remove_vol()
241 ubi_err(ubi, "cannot remove volume %s, error %d", volume, err); in ubi_remove_vol()
[all …]
/openbmc/linux/include/trace/events/
H A Dfscache.h244 __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 …]
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dfile.c37 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()
/openbmc/linux/Documentation/ABI/stable/
H A 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 …]
/openbmc/linux/fs/erofs/
H A Dfscache.c342 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()
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()
405 domain->volume = sbi->volume; in erofs_fscache_init_domain()
426 sbi->volume = domain->volume; in erofs_fscache_register_domain()
440 struct fscache_volume *volume = EROFS_SB(sb)->volume; in erofs_fscache_acquire_cookie() local
[all …]
/openbmc/linux/sound/soc/intel/avs/
H A Dcontrol.c71 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()
/openbmc/linux/include/linux/
H A Dfscache-cache.h57 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,
H A 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()
/openbmc/linux/sound/firewire/oxfw/
H A 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()

12345678910>>...22