Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 4 of 4) sorted by relevance

/haiku/src/add-ons/kernel/drivers/audio/generic/
H A Dmulti.c101 size_t allocSize; in multi_audio_control_generic() local
108 allocSize = sizeof(multi_mix_control) * info.control_count; in multi_audio_control_generic()
109 controls = (multi_mix_control *)malloc(allocSize); in multi_audio_control_generic()
114 || user_memcpy(controls, info.controls, allocSize) < B_OK) { in multi_audio_control_generic()
127 status = user_memcpy(info.controls, controls, allocSize); in multi_audio_control_generic()
142 size_t allocSize; in multi_audio_control_generic() local
149 allocSize = sizeof(multi_mix_value) * info.item_count; in multi_audio_control_generic()
150 values = (multi_mix_value *)malloc(allocSize); in multi_audio_control_generic()
155 || user_memcpy(values, info.values, allocSize) < B_OK) { in multi_audio_control_generic()
168 status = user_memcpy(info.values, values, allocSize); in multi_audio_control_generic()
[all …]
/haiku/src/kits/media/
H A DBufferGroup.cpp64 size_t allocSize = (size + 63) & ~63; in BBufferGroup() local
68 = ((allocSize * count) + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1); in BBufferGroup()
83 info.offset = i * allocSize; in BBufferGroup()
/haiku/src/add-ons/kernel/drivers/audio/usb/
H A DDevice.cpp292 size_t allocSize; in Control() local
301 allocSize = sizeof(multi_mix_control) * info.control_count; in Control()
302 controls = (multi_mix_control *)malloc(allocSize); in Control()
307 || user_memcpy(controls, info.controls, allocSize) < B_OK) { in Control()
320 status = user_memcpy(info.controls, controls, allocSize); in Control()
/haiku/src/system/runtime_loader/
H A Dimages.cpp202 size_t allocSize = sizeof(image_t) in create_image() local
205 image_t* image = (image_t*)malloc(allocSize); in create_image()
211 memset(image, 0, allocSize); in create_image()