Searched refs:num_bytes (Results 1 - 25 of 47) sorted by relevance

12

/haiku-fatelf/src/add-ons/kernel/drivers/audio/module_driver/
H A Daudio_module_driver.c127 size_t *num_bytes)
129 *num_bytes = 0;
136 size_t *num_bytes)
139 if (*num_bytes >= 5 && 0 == memcmp("start", buffer, 5)
144 if (*num_bytes >= 4 && 0 == memcmp("stop", buffer, 4)
150 if (*num_bytes >= 6 && 0 == memcmp("rescan", buffer, 6)) {
154 *num_bytes = 0;
126 audio_module_driver_read(void *cookie, off_t position, void *buf, size_t *num_bytes) argument
135 audio_module_driver_write(void *cookie, off_t position, const void *buffer, size_t *num_bytes) argument
/haiku-fatelf/src/add-ons/translators/ppm/
H A Dcolorspace.cpp272 int num_bytes,
285 memcpy(out_buf, in_buf, num_bytes);
288 memcpy(out_buf, in_buf, num_bytes);
291 while (num_bytes > 3) {
297 num_bytes -= 4;
301 while (num_bytes > 3) {
307 num_bytes -= 4;
311 while (num_bytes > 3) {
317 num_bytes -= 4;
321 while (num_bytes >
[all...]
H A Dcolorspace.h23 /* This function converts num_bytes bytes of RGBA32 data into some new */
25 int collapse_data(unsigned char * in_buf, int num_bytes,
/haiku-fatelf/src/add-ons/kernel/drivers/audio/null/
H A Ddriver.c60 null_audio_read (void* cookie, off_t a, void* b, size_t* num_bytes) argument
65 *num_bytes = 0;
71 null_audio_write (void* cookie, off_t a, const void* b, size_t* num_bytes) argument
76 *num_bytes = 0;
/haiku-fatelf/src/add-ons/kernel/drivers/audio/sb16/
H A Dhooks.c25 sb16_read (void* cookie, off_t position, void *buf, size_t* num_bytes) argument
27 *num_bytes = 0; /* tell caller nothing was read */
32 sb16_write (void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
34 *num_bytes = 0; /* tell caller nothing was written */
/haiku-fatelf/src/add-ons/kernel/drivers/misc/
H A Dkdl.c99 driver_read(void* cookie, off_t position, void *buf, size_t* num_bytes) argument
103 *num_bytes = 0; // nothing to read
109 driver_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
112 *num_bytes = 1; // pretend 1 byte was written
H A Dtest.c98 driver_read(void* cookie, off_t position, void *buf, size_t* num_bytes) argument
101 *num_bytes = 0; // nothing to read
107 driver_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
111 *num_bytes = 1; // pretend 1 byte was written
/haiku-fatelf/src/add-ons/kernel/drivers/power/acpi_button/
H A Dacpi_button.c59 acpi_button_read (void* cookie, off_t position, void *buf, size_t* num_bytes) argument
61 if (*num_bytes < 1)
68 *num_bytes = 1;
78 acpi_button_write (void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
/haiku-fatelf/src/apps/3dmov/
H A DViewObject.cpp135 int num_bytes; local
136 GLDetermineFormat(sDefaultImage->ColorSpace(), &sDefaultMediaSource->mTextureFormat, &num_bytes);
139 num_bytes, // internal format
184 num_bytes number of bytes needed to store pixel at given format
189 void ViewObject :: GLDetermineFormat(color_space cs, GLenum *format, int *num_bytes) argument
194 *num_bytes = 4;
198 *num_bytes = 4;
202 *num_bytes = 3;
207 *num_bytes = 2;
211 *num_bytes
243 int num_bytes; local
[all...]
H A DViewObject.h67 void GLDetermineFormat(color_space cs, GLenum *format, int *num_bytes);
/haiku-fatelf/src/add-ons/translators/jpeg/
H A Dbe_jdatasrc.cpp156 be_skip_input_data (j_decompress_ptr cinfo, long num_bytes) argument
164 if (num_bytes > 0) {
165 while (num_bytes > (long) src->pub.bytes_in_buffer) {
166 num_bytes -= (long) src->pub.bytes_in_buffer;
172 src->pub.next_input_byte += (size_t) num_bytes;
173 src->pub.bytes_in_buffer -= (size_t) num_bytes;
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro1000/
H A Ddevice.h28 status_t ipro1000_read(void* cookie, off_t position, void *buf, size_t* num_bytes);
29 status_t ipro1000_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes);
H A Ddevice.c165 ipro1000_read(void* cookie, off_t position, void *buf, size_t* num_bytes) argument
187 *num_bytes = 0;
204 if (len > (int)*num_bytes)
205 len = *num_bytes;
208 *num_bytes = len;
218 ipro1000_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
254 mb->m_len = *num_bytes;
/haiku-fatelf/src/add-ons/kernel/drivers/network/wb840/
H A Ddevice.c140 wb840_read(void* cookie, off_t position, void* buf, size_t* num_bytes) argument
154 *num_bytes = 0;
161 *num_bytes = 0;
171 *num_bytes = 0;
177 *num_bytes = 0;
182 if (size > WB_MAX_FRAMELEN || size > *num_bytes) {
184 size = *num_bytes;
186 *num_bytes = size;
211 wb840_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
223 if (*num_bytes > WB_MAX_FRAMELE
[all...]
/haiku-fatelf/src/add-ons/kernel/bus_managers/acpi/
H A DNamespaceDump.cpp221 acpi_namespace_read(void *_cookie, off_t position, void *buf, size_t* num_bytes) argument
227 *num_bytes = 0;
235 *num_bytes = 0;
239 *num_bytes = 0;
244 *num_bytes = ringBuffer.Read(buf, *num_bytes);
256 acpi_namespace_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
258 *num_bytes = 0; /* tell caller nothing was written */
/haiku-fatelf/src/add-ons/kernel/drivers/network/rtl8169/
H A Ddevice.h35 status_t rtl8169_read(void* cookie, off_t position, void *buf, size_t* num_bytes);
36 status_t rtl8169_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes);
/haiku-fatelf/src/add-ons/kernel/drivers/power/acpi_thermal/
H A Dacpi_thermal.c54 acpi_thermal_read(void* _cookie, off_t position, void *buf, size_t* num_bytes) argument
58 if (*num_bytes < 1)
62 size_t max_len = *num_bytes;
89 sprintf((char *)buf + *num_bytes, " Passive Devices\n");
90 *num_bytes = strlen((char *)buf);
92 sprintf((char *)buf + *num_bytes, " Processor: %lu\n", therm_info.passive_package->data.package.objects[i].data.processor.cpu_id);
93 *num_bytes = strlen((char *)buf);
99 *num_bytes = strlen((char *)buf);
101 *num_bytes = 0;
109 acpi_thermal_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/bus/firewire/
H A Dfw_raw.c286 fw_read_async(struct fw_drv1 *d, off_t position, void *buf, size_t *num_bytes) argument
295 int len, pbytes = (int)*num_bytes;//pbytes:to be processed bytes
296 *num_bytes = 0;
329 *num_bytes += len;
342 *num_bytes += len;//get have been processed bytes num
361 fw_read (void *cookie, off_t position, void *buf, size_t *num_bytes) argument
370 int len, pbytes = (int)*num_bytes;
371 *num_bytes = 0;
378 return (fw_read_async(d, position, buf, num_bytes));
429 *num_bytes
451 fw_write_async(struct fw_drv1 *d, off_t position, const void *buf, size_t *num_bytes) argument
541 fw_write(void *cookie, off_t position, const void *buf, size_t *num_bytes) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/network/dp83815/
H A Ddriver.c398 read_hook (void* cookie, off_t position, void *buf, size_t* num_bytes) argument
427 *num_bytes = 0;
431 if (*num_bytes < length)
432 length = *num_bytes;
436 *num_bytes = length;
448 write_hook(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
469 if (*num_bytes > MAX_PACKET_SIZE) { /* if needed */
470 TRACE(( "Had to truncate the packet from %d to %d\n", *num_bytes,
472 *num_bytes = MAX_PACKET_SIZE; /* truncate the packet */
481 memcpy(desc->virt_buff, buffer, *num_bytes); /* no
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/ichaudio/lala/
H A Ddriver.c185 driver_read(void* cookie, off_t position, void *buf, size_t* num_bytes) argument
187 *num_bytes = 0;
192 driver_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
194 *num_bytes = 0;
/haiku-fatelf/src/add-ons/kernel/drivers/dvb/cx23882/
H A Ddriver.c255 driver_read(void* cookie, off_t position, void *buf, size_t* num_bytes) argument
258 *num_bytes = 0; // required by design for read hook!
264 driver_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
267 *num_bytes = 0; // not sure if required for write hook
/haiku-fatelf/src/add-ons/media/media-add-ons/radeon/
H A DTheater200.cpp147 ret = fread(&curr_seg->num_bytes, 4, 1, file);
156 curr_seg->data = (unsigned char*) malloc(curr_seg->num_bytes);
164 PRINT(("Microcode: curr_seg->num_bytes: %x\n", curr_seg->num_bytes));
182 if ( fread(curr_seg->data, curr_seg->num_bytes, 1, file) != 1 )
230 curr_seg->num_bytes = strtoul(tmp1, NULL, 16);
240 curr_seg->data = (unsigned char*) malloc(curr_seg->num_bytes);
248 PRINT(("Microcode: curr_seg->num_bytes: %x\n", curr_seg->num_bytes));
265 for ( i = 0; i < curr_seg->num_bytes;
[all...]
/haiku-fatelf/src/add-ons/kernel/generic/mpu401/
H A Dmpu401.c275 midi_read(void *cookie, off_t pos, void *buffer, size_t *num_bytes) argument
289 *num_bytes = 0;
298 *num_bytes = 1;
312 *num_bytes = 1; // How many bytes are being returned in buffer
331 midi_write(void * cookie, off_t pos, const void * data, size_t * num_bytes) argument
339 count = *num_bytes;
355 *num_bytes = 0;
/haiku-fatelf/src/add-ons/kernel/drivers/midi/usb_midi/
H A Dusb_midi.cpp540 void* buf, size_t* num_bytes)
551 "\n", *num_bytes, position, cookie));
561 *num_bytes = 0;
570 *num_bytes = 1;
603 const void* buf, size_t* num_bytes)
623 *num_bytes, position));
624 if (*num_bytes > 3 && midicode != 0xF0) {
626 " -- too big to handle\n", *num_bytes));
630 size_t bytes_left = *num_bytes;
539 usb_midi_read(driver_cookie* cookie, off_t position, void* buf, size_t* num_bytes) argument
602 usb_midi_write(driver_cookie* cookie, off_t position, const void* buf, size_t* num_bytes) argument
/haiku-fatelf/src/libs/pdflib/libs/png/
H A Dpng.c86 /* Tells libpng that we have already handled the first "num_bytes" bytes
88 * stream we can set num_bytes = 8 so that libpng will not attempt to read
93 png_set_sig_bytes(png_structp png_ptr, int num_bytes) argument
96 if (num_bytes > 8)
99 png_ptr->sig_bytes = (png_byte)(num_bytes < 0 ? 0 : num_bytes);
146 png_uint_32 num_bytes = (png_uint_32)items * size; local
152 ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes);
159 if (num_bytes > (png_uint_32)0x8000L)
163 (png_size_t)(num_bytes
[all...]

Completed in 183 milliseconds

12