/haiku-fatelf/src/add-ons/kernel/drivers/audio/module_driver/ |
H A D | audio_module_driver.c | 127 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 D | colorspace.cpp | 272 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 D | colorspace.h | 23 /* 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 D | driver.c | 60 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 D | hooks.c | 25 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 D | kdl.c | 99 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 D | test.c | 98 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 D | acpi_button.c | 59 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 D | ViewObject.cpp | 135 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 D | ViewObject.h | 67 void GLDetermineFormat(color_space cs, GLenum *format, int *num_bytes);
|
/haiku-fatelf/src/add-ons/translators/jpeg/ |
H A D | be_jdatasrc.cpp | 156 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 D | device.h | 28 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 D | device.c | 165 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 D | device.c | 140 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 D | NamespaceDump.cpp | 221 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 D | device.h | 35 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 D | acpi_thermal.c | 54 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 D | fw_raw.c | 286 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 D | driver.c | 398 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 D | driver.c | 185 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 D | driver.c | 255 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 D | Theater200.cpp | 147 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 D | mpu401.c | 275 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 D | usb_midi.cpp | 540 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 D | png.c | 86 /* 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...] |