Home
last modified time | relevance | path

Searched refs:ring_buffer (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/drivers/hv/
Dring_buffer.c57 if (READ_ONCE(rbi->ring_buffer->interrupt_mask)) in hv_signal_on_write()
66 if (old_write == READ_ONCE(rbi->ring_buffer->read_index)) { in hv_signal_on_write()
76 u32 next = ring_info->ring_buffer->write_index; in hv_get_next_write_location()
86 ring_info->ring_buffer->write_index = next_write_location; in hv_set_next_write_location()
100 return (u64)ring_info->ring_buffer->write_index << 32; in hv_get_ring_bufferindices()
113 void *ring_buffer = hv_get_ring_buffer(ring_info); in hv_copyto_ringbuffer() local
116 memcpy(ring_buffer + start_write_offset, src, srclen); in hv_copyto_ringbuffer()
139 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_ringbuffer_availbytes()
140 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_ringbuffer_availbytes()
157 if (!ring_info->ring_buffer) { in hv_ringbuffer_get_debuginfo()
[all …]
DMakefile11 channel_mgmt.o ring_buffer.o hv_trace.o
Dvmbus_drv.c1530 if (!rbi->ring_buffer) { in out_mask_show()
1535 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in out_mask_show()
1547 if (!rbi->ring_buffer) { in in_mask_show()
1552 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in in_mask_show()
1564 if (!rbi->ring_buffer) { in read_avail_show()
1581 if (!rbi->ring_buffer) { in write_avail_show()
/linux-6.6.21/drivers/uio/
Duio_hv_generic.c84 dev->channel->inbound.ring_buffer->interrupt_mask = !irq_state; in hv_uio_irqcontrol()
99 chan->inbound.ring_buffer->interrupt_mask = 1; in hv_uio_channel_cb()
132 void *ring_buffer = page_address(channel->ringbuffer_page); in hv_uio_ring_mmap() local
137 return vm_iomap_memory(vma, virt_to_phys(ring_buffer), in hv_uio_ring_mmap()
168 new_sc->inbound.ring_buffer->interrupt_mask = 1; in hv_uio_new_channel()
211 dev->channel->inbound.ring_buffer->interrupt_mask = 1; in hv_uio_open()
239 void *ring_buffer; in hv_uio_probe() local
270 ring_buffer = page_address(channel->ringbuffer_page); in hv_uio_probe()
272 = (uintptr_t)virt_to_phys(ring_buffer); in hv_uio_probe()
/linux-6.6.21/tools/lib/bpf/
Dringbuf.c35 struct ring_buffer { struct
60 static void ringbuf_unmap_ring(struct ring_buffer *rb, struct ring *r) in ringbuf_unmap_ring() argument
73 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add()
165 void ring_buffer__free(struct ring_buffer *rb) in ring_buffer__free()
182 struct ring_buffer *
186 struct ring_buffer *rb; in ring_buffer__new()
275 int ring_buffer__consume(struct ring_buffer *rb) in ring_buffer__consume()
297 int ring_buffer__poll(struct ring_buffer *rb, int timeout_ms) in ring_buffer__poll()
321 int ring_buffer__epoll_fd(const struct ring_buffer *rb) in ring_buffer__epoll_fd()
Dlibbpf.h1231 struct ring_buffer;
1242 LIBBPF_API struct ring_buffer *
1245 LIBBPF_API void ring_buffer__free(struct ring_buffer *rb);
1246 LIBBPF_API int ring_buffer__add(struct ring_buffer *rb, int map_fd,
1248 LIBBPF_API int ring_buffer__poll(struct ring_buffer *rb, int timeout_ms);
1249 LIBBPF_API int ring_buffer__consume(struct ring_buffer *rb);
1250 LIBBPF_API int ring_buffer__epoll_fd(const struct ring_buffer *rb);
/linux-6.6.21/include/linux/
Dhyperv.h172 struct hv_ring_buffer *ring_buffer; member
196 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read()
197 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read()
210 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()
211 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
1120 c->outbound.ring_buffer->pending_send_sz = size; in set_channel_pending_send_size()
1658 return ring_info->ring_buffer->buffer; in hv_get_ring_buffer()
1666 rbi->ring_buffer->interrupt_mask = 1; in hv_begin_read()
1678 rbi->ring_buffer->interrupt_mask = 0; in hv_end_read()
/linux-6.6.21/drivers/usb/misc/
Dldusb.c159 char *ring_buffer; member
209 kfree(dev->ring_buffer); in ld_usb_delete()
245 …actual_buffer = (size_t *)(dev->ring_buffer + dev->ring_head * (sizeof(size_t)+dev->interrupt_in_e… in ld_usb_interrupt_in_callback()
482 …actual_buffer = (size_t *)(dev->ring_buffer + dev->ring_tail * (sizeof(size_t)+dev->interrupt_in_e… in ld_usb_read()
698 dev->ring_buffer = kcalloc(ring_buffer_size, in ld_usb_probe()
701 if (!dev->ring_buffer) in ld_usb_probe()
/linux-6.6.21/kernel/events/
DMakefile2 obj-y := core.o ring_buffer.o callchain.o
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Duser_ringbuf.c142 struct ring_buffer **kern_ringbuf_out, in load_skel_create_ringbufs()
147 struct ring_buffer *kern_ringbuf = NULL; in load_skel_create_ringbufs()
522 static void drain_kernel_messages_buffer(struct ring_buffer *kern_ringbuf, in drain_kernel_messages_buffer()
536 struct ring_buffer *kern_ringbuf; in test_user_ringbuf_msg_protocol()
Dringbuf_multi.c44 struct ring_buffer *ringbuf = NULL; in test_ringbuf_multi()
Dtest_ima.c68 struct ring_buffer *ringbuf = NULL; in test_test_ima()
Dunpriv_bpf_disabled.c63 struct ring_buffer *ringbuf = NULL; in test_unpriv_bpf_disabled_positive()
Dringbuf.c64 static struct ring_buffer *ringbuf;
/linux-6.6.21/kernel/trace/
DMakefile46 obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
/linux-6.6.21/drivers/staging/media/atomisp/pci/runtime/debug/src/
Dia_css_debug.c139 static char ring_buffer[200]; variable
2601 if (strlen(ring_buffer) > 0) { in ia_css_debug_pipe_graph_dump_epilogue()
2602 dtrace_dot(ring_buffer); in ia_css_debug_pipe_graph_dump_epilogue()
2631 memset(ring_buffer, 0, sizeof(ring_buffer)); in ia_css_debug_pipe_graph_dump_epilogue()
2865 snprintf(ring_buffer, sizeof(ring_buffer), in ia_css_debug_pipe_graph_dump_sp_raw_copy()
2873 dtrace_dot(ring_buffer); in ia_css_debug_pipe_graph_dump_sp_raw_copy()
/linux-6.6.21/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c124 struct ring_buffer *ringbuf;
/linux-6.6.21/tools/memory-model/Documentation/
Drecipes.txt330 perf_output_put_handle() in kernel/events/ring_buffer.c:
383 perf_output_put_handle() in kernel/events/ring_buffer.c, showing a