Searched refs:kbuffer (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/tools/lib/traceevent/
H A Dkbuffer.h44 struct kbuffer;
46 struct kbuffer *kbuffer_alloc(enum kbuffer_long_size size, enum kbuffer_endian endian);
47 void kbuffer_free(struct kbuffer *kbuf);
48 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer);
49 void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts);
50 void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts);
51 unsigned long long kbuffer_timestamp(struct kbuffer *kbuf);
55 void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts);
57 int kbuffer_curr_index(struct kbuffer *kbuf);
59 int kbuffer_curr_offset(struct kbuffer *kbuf);
60 int kbuffer_curr_size(struct kbuffer *kbuf);
61 int kbuffer_event_size(struct kbuffer *kbuf);
62 int kbuffer_missed_events(struct kbuffer *kbuf);
63 int kbuffer_subbuffer_size(struct kbuffer *kbuf);
65 void kbuffer_set_old_format(struct kbuffer *kbuf);
66 int kbuffer_start_of_data(struct kbuffer *kbuf);
H A Dkbuffer-parse.c25 #include "kbuffer.h"
41 /** kbuffer
44 * @flags - special flags of the kbuffer
58 struct kbuffer { struct
72 unsigned long long (*read_long)(struct kbuffer *kbuf, void *ptr);
73 int (*next_event)(struct kbuffer *kbuf);
90 static int do_swap(struct kbuffer *kbuf) do_swap()
140 static unsigned long long read_8(struct kbuffer *kbuf, void *ptr) read_8()
145 static unsigned int read_4(struct kbuffer *kbuf, void *ptr) read_4()
150 static unsigned long long __read_long_8(struct kbuffer *kbuf, void *ptr) __read_long_8()
155 static unsigned long long __read_long_4(struct kbuffer *kbuf, void *ptr) __read_long_4()
160 static unsigned long long read_long(struct kbuffer *kbuf, void *ptr) read_long()
165 static int calc_index(struct kbuffer *kbuf, void *ptr) calc_index()
170 static int __next_event(struct kbuffer *kbuf);
173 * kbuffer_alloc - allocat a new kbuffer
177 * Allocates and returns a new kbuffer.
179 struct kbuffer * kbuffer_alloc()
182 struct kbuffer *kbuf; kbuffer_alloc()
233 /** kbuffer_free - free an allocated kbuffer
234 * @kbuf: The kbuffer to free
238 void kbuffer_free(struct kbuffer *kbuf) kbuffer_free()
243 static unsigned int type4host(struct kbuffer *kbuf, type4host()
252 static unsigned int len4host(struct kbuffer *kbuf, len4host()
261 static unsigned int type_len4host(struct kbuffer *kbuf, type_len4host()
270 static unsigned int ts4host(struct kbuffer *kbuf, ts4host()
290 static unsigned int old_update_pointers(struct kbuffer *kbuf) old_update_pointers()
344 static int __old_next_event(struct kbuffer *kbuf) __old_next_event()
359 translate_data(struct kbuffer *kbuf, void *data, void **rptr, translate_data()
405 static unsigned int update_pointers(struct kbuffer *kbuf) update_pointers()
434 struct kbuffer kbuf; kbuffer_translate_data()
462 static int __next_event(struct kbuffer *kbuf) __next_event()
476 static int next_event(struct kbuffer *kbuf) next_event()
483 * @kbuf: The kbuffer to read
486 * Increments the pointers into the subbuffer of the kbuffer to point to the
493 void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts) kbuffer_next_event()
511 * kbuffer_load_subbuffer - load a new subbuffer into the kbuffer
512 * @kbuf: The kbuffer to load
521 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer) kbuffer_load_subbuffer()
564 * kbuffer_read_event - read the next event in the kbuffer subbuffer
565 * @kbuf: The kbuffer to read from
571 void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts) kbuffer_read_event()
586 * @kbuf: The kbuffer to read from
590 unsigned long long kbuffer_timestamp(struct kbuffer *kbuf) kbuffer_timestamp()
597 * @kbuf: The kbuffer to read from
613 void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, kbuffer_read_at_offset()
637 * @kbuf: The kbuffer to read from
643 int kbuffer_subbuffer_size(struct kbuffer *kbuf) kbuffer_subbuffer_size()
650 * @kbuf: The kbuffer to read from
658 int kbuffer_curr_index(struct kbuffer *kbuf) kbuffer_curr_index()
665 * @kbuf: The kbuffer to read from
670 int kbuffer_curr_offset(struct kbuffer *kbuf) kbuffer_curr_offset()
677 * @kbuf: The kbuffer to read
682 int kbuffer_event_size(struct kbuffer *kbuf) kbuffer_event_size()
689 * @kbuf: The kbuffer to read
694 int kbuffer_curr_size(struct kbuffer *kbuf) kbuffer_curr_size()
701 * @kbuf: The kbuffer to read from
708 int kbuffer_missed_events(struct kbuffer *kbuf) kbuffer_missed_events()
718 * kbuffer_set_old_forma - set the kbuffer to use the old format parsing
719 * @kbuf: The kbuffer to set
723 * (2.6.30 and earlier). It is still somewhat supported by kbuffer,
726 void kbuffer_set_old_format(struct kbuffer *kbuf) kbuffer_set_old_format()
735 * @kbuf: The kbuffer
739 int kbuffer_start_of_data(struct kbuffer *kbuf) kbuffer_start_of_data()
/linux-4.1.27/drivers/char/
H A Dppdev.c112 char * kbuffer; pp_read() local
127 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); pp_read()
128 if (!kbuffer) { pp_read()
158 bytes_read = (*fn)(pport, kbuffer, need, flags); pp_read()
160 bytes_read = parport_read (pport, kbuffer, need); pp_read()
181 if (bytes_read > 0 && copy_to_user (buf, kbuffer, bytes_read)) pp_read()
184 kfree (kbuffer); pp_read()
194 char * kbuffer; pp_write() local
206 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); pp_write()
207 if (!kbuffer) { pp_write()
221 if (copy_from_user (kbuffer, buf + bytes_written, n)) { pp_write()
230 kbuffer, n, PARPORT_EPP_FAST); pp_write()
233 kbuffer, n, PARPORT_EPP_FAST); pp_write()
236 wrote = parport_write (pp->pdev->port, kbuffer, n); pp_write()
262 kfree (kbuffer); pp_write()
/linux-4.1.27/drivers/hv/
H A Dchannel.c215 static int create_gpadl_header(void *kbuffer, u32 size, create_gpadl_header() argument
259 kbuffer + PAGE_SIZE * i) >> PAGE_SHIFT; create_gpadl_header()
313 kbuffer + PAGE_SIZE * (pfnsum + i)) >> create_gpadl_header()
341 kbuffer + PAGE_SIZE * i) >> PAGE_SHIFT; create_gpadl_header()
358 * @kbuffer: from kmalloc or vmalloc
362 int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, vmbus_establish_gpadl() argument
378 ret = create_gpadl_header(kbuffer, size, &msginfo, &msgcount); vmbus_establish_gpadl()
/linux-4.1.27/include/linux/
H A Dhyperv.h905 void *kbuffer,

Completed in 208 milliseconds