Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 111) sorted by relevance

12345

/external/u-boot/drivers/mtd/ubi/
Dupd.c47 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() argument
52 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker()
54 if (vol->upd_marker) { in set_update_marker()
55 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()
60 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker()
64 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
65 vol->upd_marker = 1; in set_update_marker()
80 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument
86 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker()
88 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker()
[all …]
Dvmt.c65 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local
68 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show()
73 if (!ubi->volumes[vol->vol_id]) { in vol_attribute_show()
79 vol->ref_count += 1; in vol_attribute_show()
83 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
87 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
93 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show()
95 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show()
97 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
99 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show()
[all …]
Dkapi.c74 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() argument
77 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
79 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
80 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info()
81 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
82 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info()
83 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info()
84 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
85 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info()
86 vi->name_len = vol->name_len; in ubi_do_get_volume_info()
[all …]
Dvtbl.c134 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
135 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes()
533 struct ubi_volume *vol; local
541 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
542 if (!vol)
545 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
546 vol->alignment = be32_to_cpu(vtbl[i].alignment);
547 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
548 vol->upd_marker = vtbl[i].upd_marker;
549 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ?
[all …]
Deba.c316 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb() argument
319 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb()
328 pnum = vol->eba_tbl[lnum]; in ubi_eba_unmap_leb()
336 vol->eba_tbl[lnum] = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb()
364 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in ubi_eba_read_leb() argument
367 int err, pnum, scrub = 0, vol_id = vol->vol_id; in ubi_eba_read_leb()
375 pnum = vol->eba_tbl[lnum]; in ubi_eba_read_leb()
385 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()
393 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
441 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
[all …]
Ddebug.c97 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument
100 printf("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
101 printf("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
102 printf("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
103 printf("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
104 printf("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
105 printf("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
106 printf("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
107 printf("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
108 printf("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info()
[all …]
Dmisc.c53 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local
55 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
58 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
62 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
67 if (i == vol->used_ebs - 1) in ubi_check_volume()
68 size = vol->last_eb_bytes; in ubi_check_volume()
70 size = vol->usable_leb_size; in ubi_check_volume()
72 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
Dubi.h359 struct ubi_volume *vol; member
807 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
808 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
811 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
813 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
815 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
817 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol,
830 int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol);
831 int ubi_destroy_gluebi(struct ubi_volume *vol);
832 void ubi_gluebi_updated(struct ubi_volume *vol);
[all …]
/external/u-boot/cmd/
Dubi.c100 static int ubi_check_volumename(const struct ubi_volume *vol, char *name) in ubi_check_volumename() argument
102 return strcmp(vol->name, name); in ubi_check_volumename()
197 struct ubi_volume *vol = NULL; in ubi_find_volume() local
201 vol = ubi->volumes[i]; in ubi_find_volume()
202 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume()
203 return vol; in ubi_find_volume()
213 struct ubi_volume *vol; in ubi_remove_vol() local
215 vol = ubi_find_volume(volume); in ubi_remove_vol()
216 if (vol == NULL) in ubi_remove_vol()
219 printf("Remove UBI volume %s (id %d)\n", vol->name, vol->vol_id); in ubi_remove_vol()
[all …]
/external/webrtc/webrtc/modules/audio_device/test/
Daudio_device_test_api.cc725 uint32_t vol(0); in TEST_F() local
735 int32_t works = audio_device_->SetWaveOutVolume(vol, vol); in TEST_F()
741 for (vol = 0; vol <= maxVol; vol += (maxVol/5)) in TEST_F()
743 EXPECT_EQ(0, audio_device_->SetWaveOutVolume(vol, vol)); in TEST_F()
745 EXPECT_TRUE((volL == vol) && (volR == vol)); in TEST_F()
753 for (vol = 0; vol <= maxVol; vol += (maxVol/5)) in TEST_F()
755 EXPECT_EQ(0, audio_device_->SetWaveOutVolume(vol, vol)); in TEST_F()
757 EXPECT_TRUE((volL == vol) && (volR == vol)); in TEST_F()
763 for (vol = 0; vol <= maxVol; vol += (maxVol/5)) in TEST_F()
765 EXPECT_EQ(0, audio_device_->SetWaveOutVolume(vol, vol)); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_device/mac/
Daudio_mixer_manager_mac.cc232 const Float32 vol = (Float32)(volume / 255.0); in SetSpeakerVolume() local
234 assert(vol <= 1.0 && vol >= 0.0); in SetSpeakerVolume()
244 size = sizeof(vol); in SetSpeakerVolume()
246 _outputDeviceID, &propertyAddress, 0, NULL, size, &vol)); in SetSpeakerVolume()
258 size = sizeof(vol); in SetSpeakerVolume()
260 _outputDeviceID, &propertyAddress, 0, NULL, size, &vol)); in SetSpeakerVolume()
285 Float32 vol = 0; in SpeakerVolume() local
294 size = sizeof(vol); in SpeakerVolume()
296 _outputDeviceID, &propertyAddress, 0, NULL, &size, &vol)); in SpeakerVolume()
299 volume = static_cast<uint32_t>(vol * 255 + 0.5); in SpeakerVolume()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java130 int vol = 1; in setStreamVolume_shouldSetVolume() local
132 audioManager.setStreamVolume(stream, vol, 0); in setStreamVolume_shouldSetVolume()
133 vol++; in setStreamVolume_shouldSetVolume()
134 if (vol > ShadowAudioManager.DEFAULT_MAX_VOLUME) { in setStreamVolume_shouldSetVolume()
135 vol = 1; in setStreamVolume_shouldSetVolume()
139 vol = 1; in setStreamVolume_shouldSetVolume()
141 assertThat(audioManager.getStreamVolume(stream)).isEqualTo(vol); in setStreamVolume_shouldSetVolume()
142 vol++; in setStreamVolume_shouldSetVolume()
143 if (vol > ShadowAudioManager.DEFAULT_MAX_VOLUME) { in setStreamVolume_shouldSetVolume()
144 vol = 1; in setStreamVolume_shouldSetVolume()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAudioManager.java311 public void setCurrentVolume(int vol) { in setCurrentVolume() argument
312 if (vol > maxVolume) { in setCurrentVolume()
313 vol = maxVolume; in setCurrentVolume()
314 } else if (vol < 0) { in setCurrentVolume()
315 vol = 0; in setCurrentVolume()
317 currentVolume = vol; in setCurrentVolume()
320 public void setMaxVolume(int vol) { in setMaxVolume() argument
321 maxVolume = vol; in setMaxVolume()
/external/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.s.dcache.wb.vol.ll3 declare void @llvm.amdgcn.s.dcache.wb.vol() #0
11 call void @llvm.amdgcn.s.dcache.wb.vol()
20 call void @llvm.amdgcn.s.dcache.wb.vol()
Dllvm.amdgcn.s.dcache.inv.vol.ll4 declare void @llvm.amdgcn.s.dcache.inv.vol() #0
13 call void @llvm.amdgcn.s.dcache.inv.vol()
22 call void @llvm.amdgcn.s.dcache.inv.vol()
Dllvm.amdgcn.buffer.wbinvl1.vol.ll4 declare void @llvm.amdgcn.buffer.wbinvl1.vol() #0
12 call void @llvm.amdgcn.buffer.wbinvl1.vol()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.s.dcache.wb.vol.ll3 declare void @llvm.amdgcn.s.dcache.wb.vol() #0
11 call void @llvm.amdgcn.s.dcache.wb.vol()
20 call void @llvm.amdgcn.s.dcache.wb.vol()
Dllvm.amdgcn.s.dcache.inv.vol.ll4 declare void @llvm.amdgcn.s.dcache.inv.vol() #0
13 call void @llvm.amdgcn.s.dcache.inv.vol()
22 call void @llvm.amdgcn.s.dcache.inv.vol()
Dllvm.amdgcn.buffer.wbinvl1.vol.ll4 declare void @llvm.amdgcn.buffer.wbinvl1.vol() #0
12 call void @llvm.amdgcn.buffer.wbinvl1.vol()
/external/adhd/cras/src/server/
Dcras_mix_ops.c61 float vol) in scale_add_clip_s16_le() argument
66 if (vol > MAX_VOLUME_TO_SCALE) in scale_add_clip_s16_le()
70 sum = dst[i] + (int16_t)(src[i] * vol); in scale_add_clip_s16_le()
250 float vol) in scale_add_clip_s24_le() argument
255 if (vol > MAX_VOLUME_TO_SCALE) in scale_add_clip_s24_le()
259 sum = dst[i] + (int32_t)(src[i] * vol); in scale_add_clip_s24_le()
423 float vol) in scale_add_clip_s32_le() argument
428 if (vol > MAX_VOLUME_TO_SCALE) in scale_add_clip_s32_le()
432 sum = (int64_t)dst[i] + (int64_t)(src[i] * vol); in scale_add_clip_s32_le()
616 float vol) in scale_add_clip_s24_3le() argument
[all …]
/external/eigen/unsupported/Eigen/src/BVH/
DBVAlgorithms.h50 …bool intersectVolume(const Volume1 &vol) { return intersector.intersectVolumeObject(vol, stored); } in intersectVolume()
62 …bool intersectVolume(const Volume2 &vol) { return intersector.intersectObjectVolume(stored, vol); } in intersectVolume()
187 …Scalar minimumOnVolume(const Volume1 &vol) { return minimizer.minimumOnVolumeObject(vol, stored); } in minimumOnVolume()
200 …Scalar minimumOnVolume(const Volume2 &vol) { return minimizer.minimumOnObjectVolume(stored, vol); } in minimumOnVolume()
/external/clang/test/Sema/
Dwarn-cast-qual.c15 volatile char *vol = 0; in foo() local
16 …char *vol2 = (char *)vol; // expected-warning {{cast from 'volatile char *' to 'char *' drops vola… in foo()
/external/golang-protobuf/protoc-gen-go/testdata/
Dextension_test.go52 vol := proto.Uint32(11)
53 err := proto.SetExtension(bm, user.E_LoudMessage_Volume, vol)
72 if v := vol_out.(*uint32); *v != *vol {
73 t.Errorf("vol_out = %v, expected %v", *v, *vol)
/external/webrtc/webrtc/voice_engine/test/cmd_test/
Dvoe_cmd_test.cc408 unsigned int vol = 999; in RunTest() local
409 res = volume->GetMicVolume(vol); in RunTest()
411 if ((vol > 255) || (vol < 1)) { in RunTest()
535 unsigned vol(0); in RunTest() local
536 res = volume->GetSpeakerVolume(vol); in RunTest()
538 printf("\n Speaker Volume is %d \n", vol); in RunTest()
546 unsigned vol(0); in RunTest() local
547 res = volume->GetMicVolume(vol); in RunTest()
549 printf("\n Microphone Volume is %d \n", vol); in RunTest()
/external/webrtc/webrtc/modules/audio_device/linux/
Daudio_mixer_manager_alsa_linux.cc415 long int vol(0); in SpeakerVolume() local
421 &vol); in SpeakerVolume()
431 vol); in SpeakerVolume()
433 volume = static_cast<uint32_t> (vol); in SpeakerVolume()
1026 long int vol(0); in MicrophoneVolume() local
1033 &vol); in MicrophoneVolume()
1043 vol); in MicrophoneVolume()
1045 volume = static_cast<uint32_t> (vol); in MicrophoneVolume()

12345