| /linux/tools/testing/selftests/drivers/net/ |
| H A D | hds.py | 16 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}}) 19 if 'tcp-data-split' not in rings: 21 return rings['tcp-data-split'] 37 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}}) 41 if 'tx' not in rings: 45 ethtool(f"--disable-netlink -G {cfg.ifname} tx {rings['tx'] // 2}") 47 ethtool(f"--disable-netlink -G {cfg.ifname} tx {rings['tx'] * 2}") 48 defer(ethtool, f"-G {cfg.ifname} tx {rings['tx']}") 57 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}}) 60 if 'hds-thresh' not in rings 64 _hds_reset(cfg, netnl, rings) global() argument [all...] |
| H A D | ring_reconfig.py | 120 rings = cfg.eth.rings_get(ehdr) 125 for key in rings.keys(): 128 maxes[param] = rings[key] 130 restore[param] = rings[param] 139 val = rings[param] 153 ksft_pr(f"Reached min for '{param}' at {val} (max {rings[param]})") 157 # Try max across all params, if the driver supports large rings 315 rings = cfg.eth.rings_get(ehdr) 316 if 'rx' not in rings or 'tx' not in rings [all...] |
| /linux/drivers/net/ethernet/intel/libie/ |
| H A D | fwlog.c | 78 static bool libie_fwlog_ring_empty(struct libie_fwlog_ring *rings) in libie_fwlog_ring_empty() argument 80 return rings->head == rings->tail; in libie_fwlog_ring_empty() 88 static int libie_fwlog_alloc_ring_buffs(struct libie_fwlog_ring *rings) in libie_fwlog_alloc_ring_buffs() argument 93 nr_bytes = rings->size * LIBIE_AQ_MAX_BUF_LEN; in libie_fwlog_alloc_ring_buffs() 98 for (i = 0; i < rings->size; i++) { in libie_fwlog_alloc_ring_buffs() 99 struct libie_fwlog_data *ring = &rings->rings[i]; in libie_fwlog_alloc_ring_buffs() 109 static void libie_fwlog_free_ring_buffs(struct libie_fwlog_ring *rings) in libie_fwlog_free_ring_buffs() argument 113 for (i = 0; i < rings->size; i++) { in libie_fwlog_free_ring_buffs() 114 struct libie_fwlog_data *ring = &rings->rings[i]; in libie_fwlog_free_ring_buffs() 156 ring.rings = kzalloc_objs(*ring.rings, ring_size); in libie_fwlog_realloc_rings() [all …]
|
| /linux/io_uring/ |
| H A D | register.c | 172 /* Restrictions allowed only if rings started disabled */ in io_register_restrictions() 473 struct io_rings *rings; member 550 n.rings = io_region_get_ptr(&n.ring_region); in io_register_resize_rings() 553 * At this point n.rings is shared with userspace, just like o.rings in io_register_resize_rings() 560 WRITE_ONCE(n.rings->sq_ring_mask, p->sq_entries - 1); in io_register_resize_rings() 561 WRITE_ONCE(n.rings->cq_ring_mask, p->cq_entries - 1); in io_register_resize_rings() 562 WRITE_ONCE(n.rings->sq_ring_entries, p->sq_entries); in io_register_resize_rings() 563 WRITE_ONCE(n.rings->cq_ring_entries, p->cq_entries); in io_register_resize_rings() 596 * existing rings beyon in io_register_resize_rings() [all...] |
| H A D | tw.c | 24 atomic_andnot(IORING_SQ_TASKRUN, &ctx->rings->sq_flags); in ctx_flush_and_put() 138 * RCU protected rings pointer to be safe against concurrent ring resizing. 145 struct io_rings *rings = rcu_dereference(ctx->rings_rcu); in io_ctx_mark_taskrun() local 147 atomic_or(IORING_SQ_TASKRUN, &rings->sq_flags); in io_ctx_mark_taskrun() 259 atomic_or(IORING_SQ_TASKRUN, &ctx->rings->sq_flags); in io_cancel_local_task_work() 319 atomic_or(IORING_SQ_TASKRUN, &ctx->rings->sq_flags); in __io_run_local_work() 354 atomic_andnot(IORING_SQ_TASKRUN, &ctx->rings->sq_flags); in io_run_local_work()
|
| H A D | eventfd.c | 80 struct io_rings *rings; in io_eventfd_signal() local 84 rings = rcu_dereference(ctx->rings_rcu); in io_eventfd_signal() 85 if (!rings) in io_eventfd_signal() 87 if (READ_ONCE(rings->cq_flags) & IORING_CQ_EVENTFD_DISABLED) in io_eventfd_signal()
|
| H A D | io_uring.h | 158 struct io_rings *rings; in io_should_wake() 162 rings = io_get_rings(ctx); in io_should_wake() 169 dist = READ_ONCE(rings->cq.tail) - (int) iowq->cq_tail; in io_should_wake() 430 smp_store_release(&ctx->rings->cq.tail, ctx->cached_cq_tail); in __io_wq_wake() 484 struct io_rings *rings = io_get_rings(ctx); 488 entries = smp_load_acquire(&rings->sq.tail) - ctx->cached_sq_head; 156 struct io_rings *rings; io_should_wake() local 471 struct io_rings *rings = io_get_rings(ctx); __io_sqring_entries() local
|
| H A D | io_uring.c | 559 /* IOPOLL rings only need to wake up if it's also SQPOLL */ in __io_cqring_overflow_flush() 627 atomic_andnot(IORING_SQ_CQ_OVERFLOW, &ctx->rings->sq_flags); in io_cqring_add_overflow() 634 if (ctx->rings) in io_cqring_add_overflow() 694 struct io_rings *r = ctx->rings; 707 atomic_or(IORING_SQ_CQ_OVERFLOW, &ctx->rings->sq_flags); in io_fill_nop_cqe() 748 struct io_rings *rings = io_get_rings(ctx); in io_cqe_cache_refill() 751 diff = (int)(ctx->cached_cq_tail - READ_ONCE(rings->cq.head)); in io_cqe_cache_refill() 764 struct io_uring_cqe *cqe = &ctx->rings->cqes[off]; in io_fill_cqe_aux32() 782 struct io_rings *rings = ctx->rings; in io_fill_cqe_aux() 686 struct io_rings *rings = io_get_rings(ctx); io_cqring_queued() local 720 struct io_rings *rings = ctx->rings; io_cqe_cache_refill() local 1961 struct io_rings *rings = ctx->rings; io_commit_sqring() local 2084 struct io_rings *rings; rings_size() local 2726 struct io_rings *rings; io_allocate_scq_urings() local [all...] |
| /linux/tools/net/ynl/samples/ |
| H A D | ethtool.c | |
| /linux/Documentation/mhi/ |
| H A D | mhi.rst | 58 Transfer rings: Used by the host to schedule work items for a channel. The 59 transfer rings are organized as a circular queue of Transfer Descriptors (TD). 64 Event rings: Used by the device to send completion and state transition messages 70 Command rings: Used by the host to send MHI commands to the device. The command 71 rings are organized as a circular queue of Command Descriptors (CD). 81 Two unidirectional channels with their associated transfer rings form a 87 Transfer rings 91 Transfer Descriptors (TD). TDs are managed through transfer rings, which are 101 Below is the basic usage of transfer rings: 110 buffer information, increments the WP to the next element and rings the [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | psock_fanout.c | 263 static int sock_fanout_read(int fds[], char *rings[], const int expect[]) in sock_fanout_read() argument 267 ret[0] = sock_fanout_read_ring(fds[0], rings[0]); in sock_fanout_read() 268 ret[1] = sock_fanout_read_ring(fds[1], rings[1]); in sock_fanout_read() 482 char *rings[2]; in test_datapath() local 501 rings[0] = sock_fanout_open_ring(fds[0]); in test_datapath() 502 rings[1] = sock_fanout_open_ring(fds[1]); in test_datapath() 505 sock_fanout_read(fds, rings, expect0); in test_datapath() 510 ret = sock_fanout_read(fds, rings, expect1); in test_datapath() 515 ret |= sock_fanout_read(fds, rings, expect2); in test_datapath() 517 if (munmap(rings[1], RING_NUM_FRAMES * getpagesize()) || in test_datapath() [all …]
|
| /linux/net/9p/ |
| H A D | trans_xen.c | 58 struct xen_9pfs_dataring rings[XEN_9PFS_NUM_RINGS]; member 136 ring = &priv->rings[num]; in p9_xen_request() 291 struct xen_9pfs_dataring *ring = &priv->rings[i]; in xen_9pfs_front_free() 445 max_rings = xenbus_read_unsigned(dev->otherend, "max-rings", 0); in xen_9pfs_front_init() 461 priv->rings[i].priv = priv; in xen_9pfs_front_init() 462 ret = xen_9pfs_front_alloc_dataring(dev, &priv->rings[i], in xen_9pfs_front_init() 477 ret = xenbus_printf(xbt, dev->nodename, "num-rings", "%u", in xen_9pfs_front_init() 488 priv->rings[i].ref); in xen_9pfs_front_init() 494 priv->rings[i].evtchn); in xen_9pfs_front_init()
|
| /linux/tools/lib/bpf/ |
| H A D | ringbuf.c | 37 struct ring **rings; member 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() 115 rb->rings[rb->ring_cnt] = r; in ring_buffer__add() 180 ringbuf_free_ring(rb, rb->rings[i]); in ring_buffer__free() 185 free(rb->rings); in ring_buffer__free() 293 struct ring *ring = rb->rings[i]; in ring_buffer__consume_n() 318 struct ring *ring = rb->rings[i]; in ring_buffer__consume() 347 struct ring *ring = rb->rings[ring_id]; in ring_buffer__poll() 370 return rb->rings[idx]; in ring_buffer__ring()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_transport.c | 267 ring = &bank->rings[ring_num]; in adf_create_ring() 338 adf_handle_response(&bank->rings[i]); in adf_ring_response_handler() 406 bank->rings = kzalloc_node(size, GFP_KERNEL, in adf_init_bank() 408 if (!bank->rings) in adf_init_bank() 425 ring = &bank->rings[i]; in adf_init_bank() 439 tx_ring = &bank->rings[i - hw_data->tx_rx_gap]; in adf_init_bank() 456 ring = &bank->rings[i]; in adf_init_bank() 460 kfree(bank->rings); in adf_init_bank() 530 struct adf_etr_ring_data *ring = &bank->rings[i]; in cleanup_bank() 538 kfree(bank->rings); in cleanup_bank() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_dev_coredump.c | 442 ring_idx = coredump->rings[i].ring_index; in amdgpu_devcoredump_format() 443 ring = coredump->adev->rings[ring_idx]; in amdgpu_devcoredump_format() 447 coredump->rings[i].rptr, in amdgpu_devcoredump_format() 448 coredump->rings[i].wptr, in amdgpu_devcoredump_format() 453 if (!coredump->rings[i].ring_dw) { in amdgpu_devcoredump_format() 463 coredump->rings[i].ring_dw[j / 4]); in amdgpu_devcoredump_format() 508 kvfree(coredump->rings[i].ring_dw); in amdgpu_devcoredump_free() 509 kvfree(coredump->rings); in amdgpu_devcoredump_free() 594 ring = adev->rings[i]; in amdgpu_coredump() 596 /* Only dump rings wit in amdgpu_coredump() [all...] |
| H A D | amdgpu_ring.c | 116 * This is the generic insert_nop function for rings except SDMA 129 * This is the generic pad_ib function for rings except SDMA in amdgpu_ring_insert_nop() 253 adev->rings[ring->idx] = ring; in amdgpu_ring_init() 391 if (!(ring->adev) || !(ring->adev->rings[ring->idx])) 422 * Helper for rings that don't support write and wait in a 931 * amdgpu_multi_ring_reset_helper_begin() - Prepare multiple rings for a reset. in amdgpu_ring_reset_helper_end() 938 * multiple rings at the same time, such as an IP block soft 944 * Prepare the affected rings before the reset, make sure to 946 * the rings. Then the caller can call the actual HW specific 950 * amdgpu_multi_ring_reset_helper_end() to restore the rings [all...] |
| H A D | amdgpu_fence.c | 403 * Not all asics have all rings, so each asic will only 404 * start the fence driver on the rings it has. 474 * for all possible rings. 478 * Init the fence driver for all possible rings (all asics). 479 * Not all asics have all rings, so each asic will only 480 * start the fence driver on the rings it has using 495 * Interrupts for rings that belong to GFX IP don't need to be restored 527 * for all possible rings. 531 * Tear down the fence driver for all possible rings (all asics). 538 struct amdgpu_ring *ring = adev->rings[ in amdgpu_fence_driver_hw_fini() [all...] |
| H A D | amdgpu_dev_coredump.h | 55 struct amdgpu_coredump_ring *rings; member
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | toeplitz.c | 113 static struct ring_state rings[RSS_MAX_CPUS]; variable 274 pkts_found |= recv_block(&rings[i]); in process_rings() 434 rings[i].cpu = i; in setup_rings() 435 rings[i].fd = create_ring(&rings[i].mmap); in setup_rings() 440 set_filter(rings[i].fd); in setup_rings() 448 if (munmap(rings[i].mmap, ring_block_nr * ring_block_sz)) in cleanup_rings() 450 if (close(rings[i].fd)) in cleanup_rings()
|
| H A D | devmem_lib.py | 83 """Channels, rings, RSS, queue lease for netkit devmem.""" 102 rings = ethnl.rings_get({'header': {'dev-index': cfg.ifindex}}) 103 orig_rx_rings = rings['rx'] 104 orig_hds_thresh = rings.get('hds-thresh', 0)
|
| /linux/drivers/block/xen-blkback/ |
| H A D | xenbus.c | 84 if (!blkif->rings || !blkif->rings[0].irq || !blkif->vbd.bdev_file) in xen_update_blkif_status() 110 ring = &blkif->rings[i]; in xen_update_blkif_status() 124 ring = &blkif->rings[i]; in xen_update_blkif_status() 134 struct xen_blkif_ring *rings; in xen_blkif_alloc_rings() 136 rings = kzalloc_objs(struct xen_blkif_ring, nr_rings); in xen_blkif_alloc_rings() 137 if (!rings) in xen_blkif_alloc_rings() 142 blkif->rings = rings; in xen_blkif_alloc_rings() 148 struct xen_blkif_ring *ring = &blkif->rings[ in xen_blkif_alloc_rings() [all...] |
| /linux/Documentation/networking/ |
| H A D | af_xdp.rst | 24 syscall. Associated with each XSK are two rings: the RX ring and the 26 packets on the TX ring. These rings are registered and sized with the 28 to have at least one of these rings for each socket. An RX or TX 37 one of the rings references a frame by referencing its addr. The addr 42 UMEM also has two rings: the FILL ring and the COMPLETION ring. The 60 corresponding two rings, sets the XDP_SHARED_UMEM flag in the bind 66 process has to create its own socket with associated RX and TX rings, 68 reason that there is only one set of FILL and COMPLETION rings per 122 The UMEM has two single-producer/single-consumer rings that are used 129 There are a four different kind of rings: FILL, COMPLETION, RX and [all …]
|
| /linux/include/linux/ |
| H A D | ptr_ring.h | 649 static inline int ptr_ring_resize_multiple_bh_noprof(struct ptr_ring **rings, in ptr_ring_resize_multiple_bh_noprof() argument 668 spin_lock_bh(&(rings[i])->consumer_lock); in ptr_ring_resize_multiple_bh_noprof() 669 spin_lock(&(rings[i])->producer_lock); in ptr_ring_resize_multiple_bh_noprof() 670 queues[i] = __ptr_ring_swap_queue(rings[i], queues[i], in ptr_ring_resize_multiple_bh_noprof() 672 spin_unlock(&(rings[i])->producer_lock); in ptr_ring_resize_multiple_bh_noprof() 673 spin_unlock_bh(&(rings[i])->consumer_lock); in ptr_ring_resize_multiple_bh_noprof()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | Makefile | 24 nfd3/rings.o \ 27 nfdk/rings.o \
|
| /linux/Documentation/networking/device_drivers/ethernet/google/ |
| H A D | gve.rst | 125 The descriptor rings are power-of-two-sized ring buffers consisting of 136 gve maps the buffers for transmit rings into a FIFO and copies the packets 141 The buffers for receive rings are put into a data ring that is the same 143 the rings together.
|