| /kernel/linux/linux-5.10/kernel/events/ |
| D | ring_buffer.c | 22 atomic_set(&handle->rb->poll, EPOLLIN); in perf_output_wakeup() 38 struct perf_buffer *rb = handle->rb; in perf_output_get_handle() local 46 (*(volatile unsigned int *)&rb->nest)++; in perf_output_get_handle() 47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 52 struct perf_buffer *rb = handle->rb; in perf_output_put_handle() local 58 * @rb->user_page->data_head. in perf_output_put_handle() 60 nest = READ_ONCE(rb->nest); in perf_output_put_handle() 62 WRITE_ONCE(rb->nest, nest - 1); in perf_output_put_handle() 69 * we must ensure the load of @rb->head happens after we've in perf_output_put_handle() 70 * incremented @rb->nest. in perf_output_put_handle() [all …]
|
| /kernel/linux/linux-4.19/kernel/events/ |
| D | ring_buffer.c | 23 atomic_set(&handle->rb->poll, EPOLLIN); in perf_output_wakeup() 39 struct ring_buffer *rb = handle->rb; in perf_output_get_handle() local 42 local_inc(&rb->nest); in perf_output_get_handle() 43 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle() 48 struct ring_buffer *rb = handle->rb; in perf_output_put_handle() local 54 * we must ensure the load of @rb->head happens after we've in perf_output_put_handle() 55 * incremented @rb->nest. in perf_output_put_handle() 57 * Otherwise we can observe a @rb->head value before one published in perf_output_put_handle() 61 head = local_read(&rb->head); in perf_output_put_handle() 64 * IRQ/NMI can happen here and advance @rb->head, causing our in perf_output_put_handle() [all …]
|
| /kernel/linux/linux-5.10/drivers/lightnvm/ |
| D | pblk-rb.c | 17 * pblk-rb.c - pblk's write buffer 26 static void pblk_rb_data_free(struct pblk_rb *rb) in pblk_rb_data_free() argument 31 list_for_each_entry_safe(p, t, &rb->pages, list) { in pblk_rb_data_free() 39 void pblk_rb_free(struct pblk_rb *rb) in pblk_rb_free() argument 41 pblk_rb_data_free(rb); in pblk_rb_free() 42 vfree(rb->entries); in pblk_rb_free() 72 int pblk_rb_init(struct pblk_rb *rb, unsigned int size, unsigned int threshold, in pblk_rb_init() argument 75 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_init() 92 rb->entries = entries; in pblk_rb_init() 93 rb->seg_size = (1 << power_seg_sz); in pblk_rb_init() [all …]
|
| /kernel/linux/linux-4.19/drivers/lightnvm/ |
| D | pblk-rb.c | 16 * pblk-rb.c - pblk's write buffer 25 void pblk_rb_data_free(struct pblk_rb *rb) in pblk_rb_data_free() argument 30 list_for_each_entry_safe(p, t, &rb->pages, list) { in pblk_rb_data_free() 43 int pblk_rb_init(struct pblk_rb *rb, struct pblk_rb_entry *rb_entry_base, in pblk_rb_init() argument 46 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_init() 53 rb->entries = rb_entry_base; in pblk_rb_init() 54 rb->seg_size = (1 << power_seg_sz); in pblk_rb_init() 55 rb->nr_entries = (1 << power_size); in pblk_rb_init() 56 rb->mem = rb->subm = rb->sync = rb->l2p_update = 0; in pblk_rb_init() 57 rb->flush_point = EMPTY_ENTRY; in pblk_rb_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/ |
| D | bfa_ioc_ct.c | 49 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/brocade/bna/ |
| D | bfa_ioc_ct.c | 57 static enum bfa_status bfa_ioc_ct_pll_init(void __iomem *rb, 59 static enum bfa_status bfa_ioc_ct2_pll_init(void __iomem *rb, 259 void __iomem *rb; in bfa_ioc_ct_reg_init() local 262 rb = bfa_ioc_bar0(ioc); in bfa_ioc_ct_reg_init() 264 ioc->ioc_regs.hfn_mbox = rb + ct_fnreg[pcifn].hfn_mbox; in bfa_ioc_ct_reg_init() 265 ioc->ioc_regs.lpu_mbox = rb + ct_fnreg[pcifn].lpu_mbox; in bfa_ioc_ct_reg_init() 266 ioc->ioc_regs.host_page_num_fn = rb + ct_fnreg[pcifn].hfn_pgn; in bfa_ioc_ct_reg_init() 269 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_ct_reg_init() 270 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_ct_reg_init() 271 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_ct_reg_init() [all …]
|
| /kernel/linux/linux-4.19/drivers/misc/mic/scif/ |
| D | scif_rb.c | 30 * @rb: ring buffer 36 void scif_rb_init(struct scif_rb *rb, u32 *read_ptr, u32 *write_ptr, in scif_rb_init() argument 39 rb->rb_base = rb_base; in scif_rb_init() 40 rb->size = (1 << size); in scif_rb_init() 41 rb->read_ptr = read_ptr; in scif_rb_init() 42 rb->write_ptr = write_ptr; in scif_rb_init() 43 rb->current_read_offset = *read_ptr; in scif_rb_init() 44 rb->current_write_offset = *write_ptr; in scif_rb_init() 48 static void memcpy_torb(struct scif_rb *rb, void *header, in memcpy_torb() argument 53 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/bfa/ |
| D | bfa_ioc_ct.c | 185 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 …]
|
| D | bfa_ioc_cb.c | 138 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 …]
|
| /kernel/linux/linux-4.19/drivers/scsi/bfa/ |
| D | bfa_ioc_ct.c | 193 void __iomem *rb; in bfa_ioc_ct_reg_init() local 196 rb = bfa_ioc_bar0(ioc); in bfa_ioc_ct_reg_init() 198 ioc->ioc_regs.hfn_mbox = rb + ct_fnreg[pcifn].hfn_mbox; in bfa_ioc_ct_reg_init() 199 ioc->ioc_regs.lpu_mbox = rb + ct_fnreg[pcifn].lpu_mbox; in bfa_ioc_ct_reg_init() 200 ioc->ioc_regs.host_page_num_fn = rb + ct_fnreg[pcifn].hfn_pgn; in bfa_ioc_ct_reg_init() 203 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_ct_reg_init() 204 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_ct_reg_init() 205 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_ct_reg_init() 206 ioc->ioc_regs.hfn_mbox_cmd = rb + ct_p0reg[pcifn].hfn; in bfa_ioc_ct_reg_init() 207 ioc->ioc_regs.lpu_mbox_cmd = rb + ct_p0reg[pcifn].lpu; in bfa_ioc_ct_reg_init() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/ |
| D | run_bench_ringbufs.sh | 34 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 39 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 40 summarize $b "$($RUN_BENCH --rb-sampled $b)" 44 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 45 summarize $b "$($RUN_BENCH --rb-b2b $b)" 46 summarize $b-sampled "$($RUN_BENCH --rb-sampled --rb-b2b $b)" 51 …summarize "rb-sampled-$b" "$($RUN_BENCH --rb-b2b --rb-batch-cnt $b --rb-sampled --rb-sample-rate $… 55 …summarize "pb-sampled-$b" "$($RUN_BENCH --rb-b2b --rb-batch-cnt $b --rb-sampled --rb-sample-rate $… 59 summarize "reserve" "$($RUN_BENCH --rb-b2b rb-custom)" 60 summarize "output" "$($RUN_BENCH --rb-b2b --rb-use-output rb-custom)" [all …]
|
| /kernel/linux/linux-5.10/arch/x86/crypto/ |
| D | serpent-sse2-i586-asm_32.S | 28 #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 …]
|
| D | serpent-sse2-x86_64-asm_64.S | 636 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 …]
|
| D | serpent-avx2-asm_64.S | 577 K2(RA, RB, RC, RD, RE, 0); 578 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1); 579 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2); 580 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3); 581 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4); 582 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5); 583 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6); 584 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7); 585 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8); 586 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9); [all …]
|
| D | serpent-avx-x86_64-asm_64.S | 571 K2(RA, RB, RC, RD, RE, 0); 572 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1); 573 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2); 574 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3); 575 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4); 576 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5); 577 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6); 578 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7); 579 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8); 580 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9); [all …]
|
| /kernel/linux/linux-4.19/arch/x86/crypto/ |
| D | serpent-sse2-i586-asm_32.S | 43 #define RB %xmm1 macro 528 read_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE); 530 K(RA, RB, RC, RD, RE, 0); 531 S0(RA, RB, RC, RD, RE); LK(RC, RB, RD, RA, RE, 1); 532 S1(RC, RB, RD, RA, RE); LK(RE, RD, RA, RC, RB, 2); 533 S2(RE, RD, RA, RC, RB); LK(RB, RD, RE, RC, RA, 3); 534 S3(RB, RD, RE, RC, RA); LK(RC, RA, RD, RB, RE, 4); 535 S4(RC, RA, RD, RB, RE); LK(RA, RD, RB, RE, RC, 5); 536 S5(RA, RD, RB, RE, RC); LK(RC, RA, RD, RE, RB, 6); 537 S6(RC, RA, RD, RE, RB); LK(RD, RB, RA, RE, RC, 7); [all …]
|
| D | serpent-sse2-x86_64-asm_64.S | 651 K2(RA, RB, RC, RD, RE, 0); 652 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1); 653 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2); 654 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3); 655 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4); 656 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5); 657 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6); 658 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7); 659 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8); 660 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9); [all …]
|
| D | serpent-avx2-asm_64.S | 582 K2(RA, RB, RC, RD, RE, 0); 583 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1); 584 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2); 585 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3); 586 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4); 587 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5); 588 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6); 589 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7); 590 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8); 591 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9); [all …]
|
| D | serpent-avx-x86_64-asm_64.S | 586 K2(RA, RB, RC, RD, RE, 0); 587 S(S0, RA, RB, RC, RD, RE); LK2(RC, RB, RD, RA, RE, 1); 588 S(S1, RC, RB, RD, RA, RE); LK2(RE, RD, RA, RC, RB, 2); 589 S(S2, RE, RD, RA, RC, RB); LK2(RB, RD, RE, RC, RA, 3); 590 S(S3, RB, RD, RE, RC, RA); LK2(RC, RA, RD, RB, RE, 4); 591 S(S4, RC, RA, RD, RB, RE); LK2(RA, RD, RB, RE, RC, 5); 592 S(S5, RA, RD, RB, RE, RC); LK2(RC, RA, RD, RE, RB, 6); 593 S(S6, RC, RA, RD, RE, RB); LK2(RD, RB, RA, RE, RC, 7); 594 S(S7, RD, RB, RA, RE, RC); LK2(RC, RA, RE, RD, RB, 8); 595 S(S0, RC, RA, RE, RD, RB); LK2(RE, RA, RD, RC, RB, 9); [all …]
|
| /kernel/linux/linux-5.10/tools/lib/bpf/ |
| D | ringbuf.c | 42 static void ringbuf_unmap_ring(struct ring_buffer *rb, struct ring *r) in ringbuf_unmap_ring() argument 45 munmap(r->consumer_pos, rb->page_size); in ringbuf_unmap_ring() 49 munmap(r->producer_pos, rb->page_size + 2 * (r->mask + 1)); in ringbuf_unmap_ring() 55 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add() argument 81 tmp = libbpf_reallocarray(rb->rings, rb->ring_cnt + 1, sizeof(*rb->rings)); in ring_buffer__add() 84 rb->rings = tmp; in ring_buffer__add() 86 tmp = libbpf_reallocarray(rb->events, rb->ring_cnt + 1, sizeof(*rb->events)); in ring_buffer__add() 89 rb->events = tmp; in ring_buffer__add() 91 r = &rb->rings[rb->ring_cnt]; in ring_buffer__add() 100 tmp = mmap(NULL, rb->page_size, PROT_READ | PROT_WRITE, MAP_SHARED, in ring_buffer__add() [all …]
|
| /kernel/linux/linux-4.19/lib/ |
| D | rbtree_test.c | 13 __param(int, nnodes, 100, "Number of nodes in the rb-tree"); 14 __param(int, perf_loops, 1000, "Number of iterations modifying the rb-tree"); 15 __param(int, check_loops, 100, "Number of iterations modifying and verifying the rb-tree"); 19 struct rb_node rb; member 38 if (key < rb_entry(parent, struct test_node, rb)->key) in insert() 44 rb_link_node(&node->rb, parent, new); in insert() 45 rb_insert_color(&node->rb, &root->rb_root); in insert() 56 if (key < rb_entry(parent, struct test_node, rb)->key) in insert_cached() 64 rb_link_node(&node->rb, parent, new); in insert_cached() 65 rb_insert_color_cached(&node->rb, root, leftmost); in insert_cached() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | rbtree_test.c | 14 __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"); 20 struct rb_node rb; member 39 if (key < rb_entry(parent, struct test_node, rb)->key) in insert() 45 rb_link_node(&node->rb, parent, new); in insert() 46 rb_insert_color(&node->rb, &root->rb_root); in insert() 57 if (key < rb_entry(parent, struct test_node, rb)->key) in insert_cached() 65 rb_link_node(&node->rb, parent, new); in insert_cached() 66 rb_insert_color_cached(&node->rb, root, leftmost); in insert_cached() [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/ishtp/ |
| D | client-buffers.c | 23 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 …]
|
| /kernel/linux/linux-4.19/drivers/hid/intel-ish-hid/ishtp/ |
| D | client-buffers.c | 32 struct ishtp_cl_rb *rb; in ishtp_cl_alloc_rx_ring() local 37 rb = ishtp_io_rb_init(cl); in ishtp_cl_alloc_rx_ring() 38 if (!rb) { in ishtp_cl_alloc_rx_ring() 42 ret = ishtp_io_rb_alloc_buf(rb, len); in ishtp_cl_alloc_rx_ring() 46 list_add_tail(&rb->list, &cl->free_rb_list.list); in ishtp_cl_alloc_rx_ring() 105 struct ishtp_cl_rb *rb; in ishtp_cl_free_rx_ring() local 111 rb = list_entry(cl->free_rb_list.list.next, struct ishtp_cl_rb, in ishtp_cl_free_rx_ring() 113 list_del(&rb->list); in ishtp_cl_free_rx_ring() 114 kfree(rb->buffer.data); in ishtp_cl_free_rx_ring() 115 kfree(rb); in ishtp_cl_free_rx_ring() [all …]
|
| /kernel/linux/linux-5.10/kernel/bpf/ |
| D | ringbuf.c | 53 struct bpf_ringbuf *rb; member 70 struct bpf_ringbuf *rb; in bpf_ringbuf_area_alloc() local 110 rb = vmap(pages, nr_meta_pages + 2 * nr_data_pages, in bpf_ringbuf_area_alloc() 112 if (rb) { in bpf_ringbuf_area_alloc() 114 rb->pages = pages; in bpf_ringbuf_area_alloc() 115 rb->nr_pages = nr_pages; in bpf_ringbuf_area_alloc() 116 return rb; in bpf_ringbuf_area_alloc() 128 struct bpf_ringbuf *rb = container_of(work, struct bpf_ringbuf, work); in bpf_ringbuf_notify() local 130 wake_up_all(&rb->waitq); in bpf_ringbuf_notify() 135 struct bpf_ringbuf *rb; in bpf_ringbuf_alloc() local [all …]
|