Home
last modified time | relevance | path

Searched refs:ring_cnt (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dringbuf.c39 int ring_cnt; member
81 tmp = libbpf_reallocarray(rb->rings, rb->ring_cnt + 1, sizeof(*rb->rings)); in ring_buffer__add()
86 tmp = libbpf_reallocarray(rb->events, rb->ring_cnt + 1, sizeof(*rb->events)); in ring_buffer__add()
91 r = &rb->rings[rb->ring_cnt]; in ring_buffer__add()
126 e = &rb->events[rb->ring_cnt]; in ring_buffer__add()
130 e->data.fd = rb->ring_cnt; in ring_buffer__add()
139 rb->ring_cnt++; in ring_buffer__add()
150 for (i = 0; i < rb->ring_cnt; ++i) in ring_buffer__free()
258 for (i = 0; i < rb->ring_cnt; i++) { in ring_buffer__consume()
280 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c627 static int qlcnic_max_rings(struct qlcnic_adapter *adapter, u8 ring_cnt, in qlcnic_max_rings() argument
640 if (ring_cnt > num_rings) in qlcnic_max_rings()
643 return ring_cnt; in qlcnic_max_rings()
3973 int qlcnic_validate_rings(struct qlcnic_adapter *adapter, __u32 ring_cnt, in qlcnic_validate_rings() argument
3984 if (!is_power_of_2(ring_cnt)) { in qlcnic_validate_rings()
3996 if (ring_cnt > num_online_cpus()) { in qlcnic_validate_rings()
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Dcvmx-lmcx-defs.h2764 uint64_t ring_cnt:32; member
2766 uint64_t ring_cnt:32;