Searched refs:buffer (Results 1 - 25 of 2098) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/glibc/stdlib/
H A Dseed48_r.c25 __seed48_r (seed16v, buffer)
27 struct drand48_data *buffer;
30 memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));
33 buffer->__x[2] = seed16v[2];
34 buffer->__x[1] = seed16v[1];
35 buffer->__x[0] = seed16v[0];
36 buffer->__a = 0x5deece66dull;
37 buffer
[all...]
H A Dlrand48_r.c23 lrand48_r (buffer, result)
24 struct drand48_data *buffer;
28 if (buffer == NULL)
31 return __nrand48_r (buffer->__x, buffer, result);
H A Dmrand48_r.c23 mrand48_r (buffer, result)
24 struct drand48_data *buffer;
28 if (buffer == NULL)
31 return __jrand48_r (buffer->__x, buffer, result);
H A Ddrand48_r.c25 drand48_r (buffer, result)
26 struct drand48_data *buffer;
29 return __erand48_r (buffer->__x, buffer, result);
H A Dsrand48_r.c24 __srand48_r (seedval, buffer)
26 struct drand48_data *buffer;
32 buffer->__x[2] = seedval >> 16;
33 buffer->__x[1] = seedval & 0xffffl;
34 buffer->__x[0] = 0x330e;
36 buffer->__a = 0x5deece66dull;
37 buffer->__c = 0xb;
38 buffer->__init = 1;
H A Dlcong48_r.c26 __lcong48_r (param, buffer)
28 struct drand48_data *buffer;
31 memcpy (buffer->__x, &param[0], sizeof (buffer->__x));
32 buffer->__a = ((uint64_t) param[5] << 32 | (uint32_t) param[4] << 16
34 buffer->__c = param[6];
35 buffer->__init = 1;
H A Djrand48_r.c23 __jrand48_r (xsubi, buffer, result)
25 struct drand48_data *buffer;
29 if (__drand48_iterate (xsubi, buffer) < 0)
H A Ddrand48-iter.c31 __drand48_iterate (xsubi, buffer)
33 struct drand48_data *buffer;
38 /* Initialize buffer, if not yet done. */
39 if (__builtin_expect (!buffer->__init, 0))
41 buffer->__a = 0x5deece66dull;
42 buffer->__c = 0xb;
43 buffer->__init = 1;
52 result = X * buffer->__a + buffer->__c;
/haiku/src/add-ons/kernel/generic/tty/
H A Dline_buffer.cpp14 clear_line_buffer(struct line_buffer &buffer) argument
16 buffer.in = 0;
17 buffer.first = 0;
23 init_line_buffer(struct line_buffer &buffer, size_t size) argument
25 clear_line_buffer(buffer);
27 buffer.buffer = (char *)malloc(size);
28 if (buffer.buffer == NULL)
31 buffer
38 uninit_line_buffer(struct line_buffer &buffer) argument
46 line_buffer_readable(struct line_buffer &buffer) argument
53 line_buffer_readable_line(struct line_buffer &buffer, char eol, char eof) argument
73 line_buffer_writable(struct line_buffer &buffer) argument
80 line_buffer_user_read(struct line_buffer &buffer, char *data, size_t length, char eof, bool* hitEOF) argument
136 line_buffer_putc(struct line_buffer &buffer, char c) argument
162 line_buffer_tail_getc(struct line_buffer &buffer, char *c) argument
[all...]
H A Dline_buffer.h16 char *buffer; member in struct:line_buffer
19 status_t init_line_buffer(struct line_buffer &buffer, size_t size);
20 status_t uninit_line_buffer(struct line_buffer &buffer);
21 status_t clear_line_buffer(struct line_buffer &buffer);
22 int32 line_buffer_readable(struct line_buffer &buffer);
23 int32 line_buffer_readable_line(struct line_buffer &buffer, char eol, char eof);
24 int32 line_buffer_writable(struct line_buffer &buffer);
25 ssize_t line_buffer_user_read(struct line_buffer &buffer, char *data,
27 status_t line_buffer_getc(struct line_buffer &buffer, char *_c);
28 status_t line_buffer_putc(struct line_buffer &buffer, cha
[all...]
/haiku/src/system/kernel/util/
H A Dring_buffer.cpp32 space_left_in_buffer(struct ring_buffer *buffer) argument
34 return buffer->size - buffer->in;
39 read_from_buffer(struct ring_buffer *buffer, uint8 *data, ssize_t length, argument
42 int32 available = buffer->in;
52 if (buffer->first + length <= buffer->size) {
55 if (user_memcpy(data, buffer->buffer + buffer
82 write_to_buffer(struct ring_buffer *buffer, const uint8 *data, ssize_t length, bool user) argument
137 ring_buffer* buffer = (ring_buffer*)malloc(sizeof(ring_buffer) + size); local
148 ring_buffer* buffer = (ring_buffer*)memory; local
164 delete_ring_buffer(struct ring_buffer *buffer) argument
171 ring_buffer_clear(struct ring_buffer *buffer) argument
179 ring_buffer_readable(struct ring_buffer *buffer) argument
186 ring_buffer_writable(struct ring_buffer *buffer) argument
193 ring_buffer_flush(struct ring_buffer *buffer, size_t length) argument
205 ring_buffer_read(struct ring_buffer *buffer, uint8 *data, ssize_t length) argument
212 ring_buffer_write(struct ring_buffer *buffer, const uint8 *data, ssize_t length) argument
219 ring_buffer_user_read(struct ring_buffer *buffer, uint8 *data, ssize_t length) argument
226 ring_buffer_user_write(struct ring_buffer *buffer, const uint8 *data, ssize_t length) argument
241 ring_buffer_peek(struct ring_buffer* buffer, size_t offset, void* data, size_t length) argument
280 ring_buffer_get_vecs(struct ring_buffer* buffer, struct iovec* vecs) argument
[all...]
/haiku/src/kits/debugger/dwarf/
H A DAttributeValue.cpp14 AttributeValue::ToString(char* buffer, size_t size) argument
18 snprintf(buffer, size, "%#" B_PRIx64, address);
19 return buffer;
21 snprintf(buffer, size, "(%p, %#" B_PRIx64 ")", block.data,
23 return buffer;
25 snprintf(buffer, size, "%#" B_PRIx64, constant);
26 return buffer;
28 snprintf(buffer, size, "%s", flag ? "true" : "false");
29 return buffer;
34 snprintf(buffer, siz
[all...]
/haiku/src/system/kernel/lib/arch/generic/
H A Dkernel_setjmp_save_sigs.c12 int __setjmp_save_sigs(jmp_buf buffer, int saveMask);
15 __setjmp_save_sigs(jmp_buf buffer, int saveMask) argument
H A Dkernel_longjmp_return.c11 int __longjmp_return(jmp_buf buffer, int value);
14 __longjmp_return(jmp_buf buffer, int value) argument
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dpacket_buffer.cpp18 packet_buffer* buffer local
20 if (buffer == NULL)
23 buffer->buffer = create_ring_buffer(size);
24 if (buffer->buffer == NULL) {
25 free(buffer);
28 B_INITIALIZE_SPINLOCK(&buffer->lock);
30 return buffer;
35 delete_packet_buffer(packet_buffer* buffer) argument
43 packet_buffer_clear(packet_buffer* buffer) argument
56 packet_buffer_readable(packet_buffer* buffer) argument
71 packet_buffer_writable(packet_buffer* buffer) argument
86 packet_buffer_flush(packet_buffer* buffer, size_t length) argument
99 packet_buffer_read(packet_buffer* buffer, uint8 *data, size_t length) argument
114 packet_buffer_write(packet_buffer* buffer, const uint8 *data, size_t length) argument
[all...]
H A Dpacket_buffer.h16 /** The idea behind this packet buffer is to have multi-threading safe
25 struct ring_buffer* buffer; member in struct:packet_buffer
31 void delete_packet_buffer(struct packet_buffer* buffer);
33 void packet_buffer_clear(struct packet_buffer* buffer);
34 size_t packet_buffer_readable(struct packet_buffer* buffer);
35 size_t packet_buffer_writable(struct packet_buffer *buffer);
36 void packet_buffer_flush(struct packet_buffer* buffer, size_t bytes);
37 size_t packet_buffer_read(struct packet_buffer* buffer, uint8* data, size_t
39 size_t packet_buffer_write(struct packet_buffer* buffer, const uint8* data,
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dperror.c36 char buffer[1024]; local
46 if (strerror_r(errno, buffer, sizeof(buffer)) != 0)
47 snprintf(buffer, sizeof(buffer), "Unknown error %d", errno);
49 fprintf(stderr, "%s%s%s\n", s, colon, buffer);
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dutil.h22 void dump_bytes(uint8 *buffer, uint32 count);
23 void dump_directory(uint8 *buffer);
33 #define read32(buffer,off) \
34 (((uint8 *)buffer)[(off)] + (((uint8 *)buffer)[(off)+1] << 8) + \
35 (((uint8 *)buffer)[(off)+2] << 16) + (((uint8 *)buffer)[(off)+3] << 24))
37 #define read16(buffer,off) \
38 (((uint8 *)buffer)[(off)] + (((uint8 *)buffer)[(of
[all...]
/haiku/src/system/boot/platform/u-boot/
H A Ddebug.cpp21 char buffer[512]; local
33 length = vsnprintf(buffer, sizeof(buffer), format, list);
36 if (length >= (int)sizeof(buffer))
37 length = sizeof(buffer) - 1;
39 serial_puts(buffer, length);
40 //fprintf(stderr, "%s", buffer);
41 puts(buffer);
54 char buffer[512]; local
59 length = vsnprintf(buffer, sizeo
[all...]
/haiku/src/system/boot/platform/openfirmware/arch/ppc/
H A Dstart.cpp39 char buffer[64]; local
44 if ((length = of_getprop(root, "device_type", buffer, sizeof(buffer) - 1))
46 buffer[length] = '\0';
47 if (!strcasecmp("chrp", buffer))
49 else if (!strcasecmp("bootrom", buffer))
54 if ((length = of_getprop(root, "model", buffer, sizeof(buffer) - 1))
56 buffer[length] = '\0';
57 if (!strcasecmp("pegasos", buffer))
[all...]
/haiku/src/add-ons/accelerants/nvidia/engine/
H A Dnv_brooktreetv.c55 uint8 buffer[21]; local
74 memcpy(&buffer[2], &BtNtscMacro0, 19);
79 memcpy(&buffer[2], &BtNtscMacro1, 19);
84 memcpy(&buffer[2], &BtNtscMacro2, 19);
89 memcpy(&buffer[2], &BtNtscMacro3, 19);
100 memcpy(&buffer[2], &BtPalMacro0, 19);
107 memcpy(&buffer[2], &BtPalMacro1, 19);
113 buffer[0] = si->ps.tv_encoder.adress + WR;
115 buffer[1] = 0xda;
121 i2c_writebuffer(si->ps.tv_encoder.bus, buffer, sizeo
137 uint8 buffer[3]; local
165 uint8 buffer[3]; local
287 uint8 buffer[35]; local
345 uint8 buffer[35]; local
403 uint8 buffer[35]; local
461 uint8 buffer[35]; local
519 uint8 buffer[35]; local
577 uint8 buffer[35]; local
677 uint8 buffer[35]; local
787 uint8 buffer[35]; local
881 uint8 buffer[3]; local
909 uint8 buffer[7]; local
1002 uint8 buffer[7]; local
1111 uint8 buffer[3]; local
1211 uint8 buffer[4]; local
1294 uint8 buffer[3]; local
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DVolumeSupport.h13 set_dirent_name(struct dirent* buffer, size_t bufferSize, const char* name, argument
16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer;
18 memcpy(buffer->d_name, name, nameLen);
19 buffer->d_name[nameLen] = '\0';
20 buffer->d_reclen = length;
30 next_dirent(struct dirent*& buffer, size_t& bufferSize) argument
33 char* nextBuffer = (char*)buffer + buffer->d_reclen;
36 // check, if the buffer i
[all...]
/haiku/src/system/boot/platform/atari_m68k/
H A Ddebug.cpp23 char buffer[512]; local
34 vsnprintf(buffer, sizeof(buffer), format, list);
37 Bconputs(DEV_CONSOLE, buffer);
39 nat_feat_debugprintf(buffer);
53 char buffer[512]; local
57 vsnprintf(buffer, sizeof(buffer), format, list);
60 Bconput(DEV_AUX, buffer);
63 nat_feat_debugprintf(buffer);
[all...]
/haiku/src/add-ons/media/media-add-ons/mixer/
H A DByteSwap.cpp16 static void swap_float(void *buffer, size_t bytecount);
17 static void swap_int32(void *buffer, size_t bytecount);
18 static void swap_int16(void *buffer, size_t bytecount);
19 static void do_nothing(void *buffer, size_t bytecount);
47 do_nothing(void *buffer, size_t bytecount) argument
57 swap_float(void *buffer, size_t bytecount) argument
60 swap_data(B_FLOAT_TYPE, buffer, bytecount, B_SWAP_ALWAYS);
65 swap_int32(void *buffer, size_t bytecount) argument
68 swap_data(B_INT32_TYPE, buffer, bytecount, B_SWAP_ALWAYS);
73 swap_int16(void *buffer, size_ argument
130 swap_float(void *buffer, size_t bytecount) argument
137 swap_int32(void *buffer, size_t bytecount) argument
144 swap_int16(void *buffer, size_t bytecount) argument
[all...]
/haiku/src/add-ons/kernel/bus_managers/scsi/
H A Ddma_buffer.cpp9 DMA buffer handling.
12 is DMA safe, we check that and copy data to a buffer if needed.
13 The buffer is enlarged on demand and destroyed after a time-out
21 Currently, there is only one buffer per device; in the future,
96 /** copy data from/to DMA buffer */
101 dma_buffer *buffer = request->dma_buffer; local
102 const physical_entry *sg_list = buffer->sg_list_orig;
103 uint32 num_vecs = buffer->sg_count_orig;
104 uchar *buffer_data = buffer->address;
111 // we have to use S/G list to original data; the DMA buffer
133 scsi_free_dma_buffer(dma_buffer *buffer) argument
155 scsi_alloc_dma_buffer(dma_buffer *buffer, dma_params *dma_params, uint32 size) argument
267 scsi_free_dma_buffer_sg_orig(dma_buffer *buffer) argument
280 scsi_alloc_dma_buffer_sg_orig(dma_buffer *buffer, size_t size) argument
325 scsi_dma_buffer_compose_sg_orig(dma_buffer *buffer, scsi_ccb *request) argument
351 dma_buffer *buffer; local
434 dma_buffer *buffer = request->dma_buffer; local
470 dma_buffer *buffer; local
487 scsi_dma_buffer_free(dma_buffer *buffer) argument
495 scsi_dma_buffer_init(dma_buffer *buffer) argument
[all...]

Completed in 154 milliseconds

1234567891011>>