Searched refs:this_volume (Results 1 – 2 of 2) sorted by relevance
| /trusted-services/components/media/volume/ |
| A D | volume.c | 15 this_volume->dev_info.funcs = io_dev_funcs; in volume_init() 18 this_volume->dev_handle = (uintptr_t)&this_volume->dev_info; in volume_init() 19 this_volume->io_spec = concrete_volume; in volume_init() 21 this_volume->io_handle = 0; in volume_init() 24 this_volume->erase = NULL; in volume_init() 25 this_volume->get_storage_ids = NULL; in volume_init() 30 return io_open(this_volume->dev_handle, this_volume->io_spec, &this_volume->io_handle); in volume_open() 35 return io_close(this_volume->io_handle); in volume_close() 61 return (this_volume->erase) ? this_volume->erase(this_volume->dev_info.info) : 0; in volume_erase() 67 if (this_volume->get_storage_ids) in volume_get_storage_ids() [all …]
|
| A D | volume.h | 64 void volume_init(struct volume *this_volume, const io_dev_funcs_t *io_dev_funcs, 74 int volume_open(struct volume *this_volume); 83 int volume_close(struct volume *this_volume); 94 int volume_seek(struct volume *this_volume, io_seek_mode_t mode, signed long long offset); 104 int volume_size(struct volume *this_volume, size_t *size); 118 int volume_read(struct volume *this_volume, uintptr_t buffer, size_t length, size_t *length_read); 132 int volume_write(struct volume *this_volume, const uintptr_t buffer, size_t length, 142 int volume_erase(struct volume *this_volume); 155 int volume_get_storage_ids(struct volume *this_volume, struct uuid_octets *partition_guid,
|
Completed in 6 milliseconds