Home
last modified time | relevance | path

Searched full:rb (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/linux/kernel/events/
H A Dring_buffer.c22 atomic_set(&handle->rb->poll, EPOLLIN | EPOLLRDNORM); in perf_output_wakeup()
42 struct perf_buffer *rb = handle->rb; in perf_output_get_handle() local
50 (*(volatile unsigned int *)&rb->nest)++; in perf_output_get_handle()
51 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle()
56 struct perf_buffer *rb = handle->rb; in perf_output_put_handle() local
62 * @rb->user_page->data_head. in perf_output_put_handle()
64 nest = READ_ONCE(rb->nest); in perf_output_put_handle()
66 WRITE_ONCE(rb in perf_output_put_handle()
158 struct perf_buffer *rb; __perf_output_begin() local
314 ring_buffer_init(struct perf_buffer * rb,long watermark,int flags) ring_buffer_init() argument
378 struct perf_buffer *rb; perf_aux_output_begin() local
466 rb_need_aux_wakeup(struct perf_buffer * rb) rb_need_aux_wakeup() argument
492 struct perf_buffer *rb = handle->rb; perf_aux_output_end() local
554 struct perf_buffer *rb = handle->rb; perf_aux_output_skip() local
591 struct perf_buffer *rb = aux_handle->rb; perf_output_copy_aux() local
648 rb_free_aux_page(struct perf_buffer * rb,int idx) rb_free_aux_page() argument
656 __rb_free_aux(struct perf_buffer * rb) __rb_free_aux() argument
683 rb_alloc_aux(struct perf_buffer * rb,struct perf_event * event,pgoff_t pgoff,int nr_pages,long watermark,int flags) rb_alloc_aux() argument
798 rb_free_aux(struct perf_buffer * rb) rb_free_aux() argument
811 __perf_mmap_to_page(struct perf_buffer * rb,unsigned long pgoff) __perf_mmap_to_page() argument
844 struct perf_buffer *rb; rb_alloc() local
888 rb_free(struct perf_buffer * rb) rb_free() argument
900 __perf_mmap_to_page(struct perf_buffer * rb,unsigned long pgoff) __perf_mmap_to_page() argument
911 struct perf_buffer *rb; rb_free_work() local
919 rb_free(struct perf_buffer * rb) rb_free() argument
926 struct perf_buffer *rb; rb_alloc() local
966 perf_mmap_to_page(struct perf_buffer * rb,unsigned long pgoff) perf_mmap_to_page() argument
[all...]
H A Dinternal.h63 extern void rb_free(struct perf_buffer *rb);
67 struct perf_buffer *rb; in rb_free_rcu() local
69 rb = container_of(rcu_head, struct perf_buffer, rcu_head); in rb_free_rcu()
70 free_uid(rb->mmap_user); in rb_free_rcu()
71 rb_free(rb); in rb_free_rcu()
74 static inline void rb_toggle_paused(struct perf_buffer *rb, bool pause) in rb_toggle_paused() argument
76 if (!pause && rb->nr_pages) in rb_toggle_paused()
77 rb->paused = 0; in rb_toggle_paused()
79 rb->paused = 1; in rb_toggle_paused()
85 extern int rb_alloc_aux(struct perf_buffer *rb, struct perf_event *event,
[all …]
/linux/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc_ct.c49 static enum bfa_status bfa_ioc_ct_pll_init(void __iomem *rb,
51 static enum bfa_status bfa_ioc_ct2_pll_init(void __iomem *rb,
251 void __iomem *rb; in bfa_ioc_ct_reg_init() local
254 rb = bfa_ioc_bar0(ioc); in bfa_ioc_ct_reg_init()
256 ioc->ioc_regs.hfn_mbox = rb + ct_fnreg[pcifn].hfn_mbox; in bfa_ioc_ct_reg_init()
257 ioc->ioc_regs.lpu_mbox = rb + ct_fnreg[pcifn].lpu_mbox; in bfa_ioc_ct_reg_init()
258 ioc->ioc_regs.host_page_num_fn = rb + ct_fnreg[pcifn].hfn_pgn; in bfa_ioc_ct_reg_init()
261 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_ct_reg_init()
262 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_ct_reg_init()
263 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_ct_reg_init()
[all …]
/linux/drivers/scsi/bfa/
H A Dbfa_ioc_ct.c185 void __iomem *rb; in bfa_ioc_ct_reg_init() local
188 rb = bfa_ioc_bar0(ioc); in bfa_ioc_ct_reg_init()
190 ioc->ioc_regs.hfn_mbox = rb + ct_fnreg[pcifn].hfn_mbox; in bfa_ioc_ct_reg_init()
191 ioc->ioc_regs.lpu_mbox = rb + ct_fnreg[pcifn].lpu_mbox; in bfa_ioc_ct_reg_init()
192 ioc->ioc_regs.host_page_num_fn = rb + ct_fnreg[pcifn].hfn_pgn; in bfa_ioc_ct_reg_init()
195 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_ct_reg_init()
196 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_ct_reg_init()
197 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_ct_reg_init()
198 ioc->ioc_regs.hfn_mbox_cmd = rb + ct_p0reg[pcifn].hfn; in bfa_ioc_ct_reg_init()
199 ioc->ioc_regs.lpu_mbox_cmd = rb + ct_p0reg[pcifn].lpu; in bfa_ioc_ct_reg_init()
[all …]
H A Dbfa_ioc_cb.c138 void __iomem *rb; in bfa_ioc_cb_reg_init() local
141 rb = bfa_ioc_bar0(ioc); in bfa_ioc_cb_reg_init()
143 ioc->ioc_regs.hfn_mbox = rb + iocreg_fnreg[pcifn].hfn_mbox; in bfa_ioc_cb_reg_init()
144 ioc->ioc_regs.lpu_mbox = rb + iocreg_fnreg[pcifn].lpu_mbox; in bfa_ioc_cb_reg_init()
145 ioc->ioc_regs.host_page_num_fn = rb + iocreg_fnreg[pcifn].hfn_pgn; in bfa_ioc_cb_reg_init()
148 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_cb_reg_init()
149 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_cb_reg_init()
150 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_cb_reg_init()
152 ioc->ioc_regs.heartbeat = (rb + BFA_IOC1_HBEAT_REG); in bfa_ioc_cb_reg_init()
153 ioc->ioc_regs.ioc_fwstate = (rb + BFA_IOC1_STATE_REG); in bfa_ioc_cb_reg_init()
[all …]
/linux/tools/lib/bpf/
H A Dringbuf.c60 static void ringbuf_free_ring(struct ring_buffer *rb, struct ring *r) in ringbuf_free_ring() argument
63 munmap(r->consumer_pos, rb->page_size); in ringbuf_free_ring()
67 munmap(r->producer_pos, rb->page_size + 2 * (r->mask + 1)); in ringbuf_free_ring()
75 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add() argument
102 tmp = libbpf_reallocarray(rb->rings, rb->ring_cnt + 1, sizeof(*rb->rings)); in ring_buffer__add()
105 rb->rings = tmp; in ring_buffer__add()
107 tmp = libbpf_reallocarray(rb->events, rb->ring_cnt + 1, sizeof(*rb->events)); in ring_buffer__add()
110 rb->events = tmp; in ring_buffer__add()
115 rb->rings[rb->ring_cnt] = r; in ring_buffer__add()
123 tmp = mmap(NULL, rb->page_size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in ring_buffer__add()
[all …]
/linux/tools/testing/selftests/bpf/benchs/
H A Drun_bench_ringbufs.sh10 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
15 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
16 summarize $b "$($RUN_RB_BENCH --rb-sampled $b)"
20 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
21 summarize $b "$($RUN_RB_BENCH --rb-b2b $b)"
22 summarize $b-sampled "$($RUN_RB_BENCH --rb-sampled --rb
[all...]
/linux/arch/x86/crypto/
H A Dserpent-sse2-i586-asm_32.S28 #define RB %xmm1 macro
513 read_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
515 K(RA, RB, RC, RD, RE, 0);
516 S0(RA, RB, RC, RD, RE); LK(RC, RB, RD, RA, RE, 1);
517 S1(RC, RB, RD, RA, RE); LK(RE, RD, RA, RC, RB, 2);
518 S2(RE, RD, RA, RC, RB); LK(RB, RD, RE, RC, RA, 3);
519 S3(RB, RD, RE, RC, RA); LK(RC, RA, RD, RB, RE, 4);
520 S4(RC, RA, RD, RB, RE); LK(RA, RD, RB, RE, RC, 5);
521 S5(RA, RD, RB, RE, RC); LK(RC, RA, RD, RE, RB, 6);
522 S6(RC, RA, RD, RE, RB); LK(RD, RB, RA, RE, RC, 7);
[all …]
H A Dserpent-sse2-x86_64-asm_64.S636 K2(RA, RB, RC, RD, RE, 0);
637 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1);
638 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2);
639 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3);
640 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4);
641 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5);
642 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6);
643 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7);
644 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8);
645 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9);
[all …]
H A Dserpent-avx2-asm_64.S566 K2(RA, RB, RC, RD, RE, 0);
567 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1);
568 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2);
569 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3);
570 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4);
571 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5);
572 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6);
573 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7);
574 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8);
575 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9);
[all …]
/linux/kernel/bpf/
H A Dringbuf.c84 struct bpf_ringbuf *rb; member
101 struct bpf_ringbuf *rb; in bpf_ringbuf_area_alloc() local
138 rb = vmap(pages, nr_meta_pages + 2 * nr_data_pages, in bpf_ringbuf_area_alloc()
140 if (rb) { in bpf_ringbuf_area_alloc()
142 rb->pages = pages; in bpf_ringbuf_area_alloc()
143 rb->nr_pages = nr_pages; in bpf_ringbuf_area_alloc()
144 return rb; in bpf_ringbuf_area_alloc()
156 struct bpf_ringbuf *rb = container_of(work, struct bpf_ringbuf, work); in bpf_ringbuf_notify() local
158 wake_up_all(&rb->waitq); in bpf_ringbuf_notify()
174 struct bpf_ringbuf *rb; in bpf_ringbuf_alloc() local
228 bpf_ringbuf_free(struct bpf_ringbuf * rb) bpf_ringbuf_free() argument
315 ringbuf_avail_data_sz(struct bpf_ringbuf * rb) ringbuf_avail_data_sz() argument
331 ringbuf_total_data_sz(const struct bpf_ringbuf * rb) ringbuf_total_data_sz() argument
364 struct bpf_ringbuf *rb; ringbuf_map_mem_usage() local
413 bpf_ringbuf_rec_pg_off(struct bpf_ringbuf * rb,struct bpf_ringbuf_hdr * hdr) bpf_ringbuf_rec_pg_off() argument
431 bpf_ringbuf_has_space(const struct bpf_ringbuf * rb,unsigned long new_prod_pos,unsigned long cons_pos,unsigned long pend_pos) bpf_ringbuf_has_space() argument
463 __bpf_ringbuf_reserve(struct bpf_ringbuf * rb,u64 size) __bpf_ringbuf_reserve() argument
563 struct bpf_ringbuf *rb; bpf_ringbuf_commit() local
643 struct bpf_ringbuf *rb; BPF_CALL_2() local
748 __bpf_user_ringbuf_peek(struct bpf_ringbuf * rb,void ** sample,u32 * size) __bpf_user_ringbuf_peek() argument
803 __bpf_user_ringbuf_sample_release(struct bpf_ringbuf * rb,size_t size,u64 flags) __bpf_user_ringbuf_sample_release() argument
820 struct bpf_ringbuf *rb; BPF_CALL_4() local
[all...]
/linux/drivers/hid/intel-ish-hid/ishtp/
H A Dclient-buffers.c23 struct ishtp_cl_rb *rb; in ishtp_cl_alloc_rx_ring() local
28 rb = ishtp_io_rb_init(cl); in ishtp_cl_alloc_rx_ring()
29 if (!rb) { in ishtp_cl_alloc_rx_ring()
33 ret = ishtp_io_rb_alloc_buf(rb, len); in ishtp_cl_alloc_rx_ring()
37 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_alloc_rx_ring()
99 struct ishtp_cl_rb *rb; in ishtp_cl_free_rx_ring() local
105 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, in ishtp_cl_free_rx_ring()
107 list_del(&rb->list); in ishtp_cl_free_rx_ring()
108 kfree(rb->buffer.data); in ishtp_cl_free_rx_ring()
109 kfree(rb); in ishtp_cl_free_rx_ring()
[all …]
H A Dclient.c25 struct ishtp_cl_rb *rb; in ishtp_read_list_flush() local
30 list_for_each_entry_safe(rb, next, &cl->dev->read_list.list, list) in ishtp_read_list_flush()
31 if (rb->cl && ishtp_cl_cmp_id(cl, rb->cl)) { in ishtp_read_list_flush()
32 list_del(&rb->list); in ishtp_read_list_flush()
34 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_read_list_flush()
593 struct ishtp_cl_rb *rb; in ishtp_cl_read_start() local
617 /* The current rb is the head of the free rb list */ in ishtp_cl_read_start()
623 rb = NULL; in ishtp_cl_read_start()
627 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, list); in ishtp_cl_read_start()
628 list_del_init(&rb->list); in ishtp_cl_read_start()
[all …]
/linux/lib/
H A Drbtree_test.c14 __param(int, nnodes, 100, "Number of nodes in the rb-tree");
15 __param(int, perf_loops, 1000, "Number of iterations modifying the rb-tree");
16 __param(int, check_loops, 100, "Number of iterations modifying and verifying the rb-tree");
21 struct rb_node rb; member
35 return rb_entry(a, struct test_node, rb)->key < in less()
36 rb_entry(b, struct test_node, rb)->key; in less()
41 rb_add(&node->rb, &root->rb_root, less); in insert()
46 rb_add_cached(&node->rb, root, less); in insert_cached()
51 rb_erase(&node->rb, &root->rb_root); in erase()
56 rb_erase_cached(&node->rb, root); in erase_cached()
[all …]
/linux/Documentation/translations/zh_CN/core-api/
H A Drbtree.rst271 node = rb_entry(root->rb_node, struct interval_tree_node, rb);
274 if (node->rb.rb_left) {
276 rb_entry(node->rb.rb_left,
277 struct interval_tree_node, rb);
294 if (node->rb.rb_right) {
295 node = rb_entry(node->rb.rb_right,
296 struct interval_tree_node, rb);
311 if (node->rb.rb_left) {
312 subtree_last = rb_entry(node->rb.rb_left,
313 struct interval_tree_node, rb)->__subtree_last;
[all …]
/linux/tools/testing/selftests/powerpc/stringloops/
H A Dmemcmp_64.S15 #define rB r10 macro
121 lbz rB,0(r4)
122 subf. rC,rB,rA
127 lbz rB,1(r4)
128 subf. rC,rB,rA
133 lbz rB,2(r4)
134 subf. rC,rB,rA
139 lbz rB,3(r4)
140 subf. rC,rB,rA
173 LD rB,0,r4
[all …]
/linux/arch/powerpc/lib/
H A Dmemcmp_64.S15 #define rB r10 macro
121 lbz rB,0(r4)
122 subf. rC,rB,rA
127 lbz rB,1(r4)
128 subf. rC,rB,rA
133 lbz rB,2(r4)
134 subf. rC,rB,rA
139 lbz rB,3(r4)
140 subf. rC,rB,rA
173 LD rB,0,r4
[all …]
/linux/lib/crypto/powerpc/
H A Dsha1-powerpc-asm.S28 #define RB(t) ((((t)+3)%6)+7) macro
40 andc r0,RD(t),RB(t); \
41 and r6,RB(t),RC(t); \
48 rotlwi RB(t),RB(t),30; \
52 and r6,RB(t),RC(t); \
53 andc r0,RD(t),RB(t); \
55 rotlwi RB(t),RB(t),30; \
67 xor r6,RB(t),RC(t); \
69 rotlwi RB(t),RB(t),30; \
77 xor r6,RB(t),RC(t); \
[all …]
/linux/Documentation/core-api/
H A Drbtree.rst293 Interval tree is an example of augmented rb tree. Reference -
319 node = rb_entry(root->rb_node, struct interval_tree_node, rb);
322 if (node->rb.rb_left) {
324 rb_entry(node->rb.rb_left,
325 struct interval_tree_node, rb);
342 if (node->rb.rb_right) {
343 node = rb_entry(node->rb.rb_right,
344 struct interval_tree_node, rb);
359 if (node->rb.rb_left) {
360 subtree_last = rb_entry(node->rb.rb_left,
[all …]
/linux/drivers/target/iscsi/
H A Discsi_target_configfs.c44 ssize_t rb; in lio_target_np_driver_show() local
48 rb = sysfs_emit(page, "1\n"); in lio_target_np_driver_show()
50 rb = sysfs_emit(page, "0\n"); in lio_target_np_driver_show()
52 return rb; in lio_target_np_driver_show()
474 ssize_t rb; \
479 rb = snprintf(page, PAGE_SIZE, \
483 rb = snprintf(page, PAGE_SIZE, "%u\n", \
488 return rb; \
530 ssize_t rb = 0; in lio_target_nacl_info_show() local
536 rb += sysfs_emit_at(page, rb, "No active iSCSI Session for Initiator" in lio_target_nacl_info_show()
[all …]
/linux/arch/powerpc/xmon/
H A Dppc-opc.c538 /* The RB field in an X, XO, M, or MDS form instruction. */
539 #define RB RAOPT + 1 macro
543 /* The RB field in an X form instruction when it must be the same as
546 #define RBS RB + 1
549 /* The RB field in an lswx instruction, which has special value
554 /* The RB field of the dccci and iccci instructions, which are optional. */
1782 /* The RB field in an X form instruction when it must be the same as
1807 /* The RB field in an lswx instruction, which has special value
2628 /* An XX1_MASK with the RB field fixed. */
2680 /* An X_MASK with the RB field fixed. */
[all …]
/linux/mm/
H A Dinterval_tree.c16 INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb,
38 if (!prev->shared.rb.rb_right) { in mapping_rmap_tree_insert_after()
40 link = &prev->shared.rb.rb_right; in mapping_rmap_tree_insert_after()
42 parent = rb_entry(prev->shared.rb.rb_right, in mapping_rmap_tree_insert_after()
43 struct vm_area_struct, shared.rb); in mapping_rmap_tree_insert_after()
46 while (parent->shared.rb.rb_left) { in mapping_rmap_tree_insert_after()
47 parent = rb_entry(parent->shared.rb.rb_left, in mapping_rmap_tree_insert_after()
48 struct vm_area_struct, shared.rb); in mapping_rmap_tree_insert_after()
52 link = &parent->shared.rb.rb_left; in mapping_rmap_tree_insert_after()
56 rb_link_node(&vma->shared.rb, in mapping_rmap_tree_insert_after()
94 INTERVAL_TREE_DEFINE(struct anon_vma_chain,rb,pgoff_t,rb_subtree_last,avc_start_pgoff,avc_last_pgoff,static,__anon_rmap_tree) INTERVAL_TREE_DEFINE() argument
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Diwl-context-info.h
/linux/drivers/infiniband/hw/hfi1/
H A Dpin_system.c17 struct mmu_rb_node rb; member
74 return node->rb.handler->mn.mm; in mm_from_sdma_node()
111 return container_of(rb_node, struct sdma_mmu_node, rb); in find_system_node()
151 node->rb.addr = start_address; in pin_system_pages()
152 node->rb.len = length; in pin_system_pages()
181 kref_init(&node->rb.refcount); in add_system_pinning()
184 kref_get(&node->rb.refcount); in add_system_pinning()
189 ret = hfi1_mmu_rb_insert(pq->handler, &node->rb); in add_system_pinning()
239 if (node->rb.addr <= start) { in get_system_cache_entry()
248 SDMA_DBG(req, "prepend: node->rb.addr %lx, node->rb.refcount %d", in get_system_cache_entry()
[all …]
/linux/fs/jffs2/
H A Dnodelist.h230 struct rb_node rb; member
271 struct rb_node rb; member
334 return rb_entry(node, struct jffs2_node_frag, rb); in frag_first()
344 return rb_entry(node, struct jffs2_node_frag, rb); in frag_last()
347 #define frag_next(frag) rb_entry(rb_next(&(frag)->rb), struct jffs2_node_frag, rb)
348 #define frag_prev(frag) rb_entry(rb_prev(&(frag)->rb), struct jffs2_node_frag, rb)
349 #define frag_parent(frag) rb_entry(rb_parent(&(frag)->rb), struct jffs2_node_frag, rb)
350 #define frag_left(frag) rb_entry((frag)->rb.rb_left, struct jffs2_node_frag, rb)
351 #define frag_right(frag) rb_entry((frag)->rb.rb_right, struct jffs2_node_frag, rb)
352 #define frag_erase(frag, list) rb_erase(&frag->rb, list)
[all …]

12345678910>>...21