Home
last modified time | relevance | path

Searched refs:rings (Results 1 – 25 of 116) sorted by relevance

12345

/openbmc/qemu/hw/9pfs/
H A Dxen-9p-backend.c65 Xen9pfsRing *rings; member
379 g_free(xen_9pdev->rings); in xen_9pfs_disconnect()
380 xen_9pdev->rings = NULL; in xen_9pfs_disconnect()
412 xen_9pdev->rings[i].evtchn = -1; in xen_9pfs_connect()
430 xen_9pdev->rings[i].intf = in xen_9pfs_connect()
434 if (!xen_9pdev->rings[i].intf) { in xen_9pfs_connect()
442 xen_9pdev->rings[i].data = in xen_9pfs_connect()
447 if (!xen_9pdev->rings[i].data) { in xen_9pfs_connect()
450 xen_9pdev->rings[i].ring.in = xen_9pdev->rings[i].data; in xen_9pfs_connect()
451 xen_9pdev->rings[i].ring.out = xen_9pdev->rings[i].data + in xen_9pfs_connect()
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dflowring.c160 flow->rings[i] = ring; in brcmf_flowring_create()
172 ring = flow->rings[flowid]; in brcmf_flowring_tid()
192 ring = flow->rings[flowid]; in brcmf_flowring_block()
202 ring = flow->rings[i]; in brcmf_flowring_block()
236 ring = flow->rings[flowid]; in brcmf_flowring_delete()
247 flow->rings[flowid] = NULL; in brcmf_flowring_delete()
264 ring = flow->rings[flowid]; in brcmf_flowring_enqueue()
372 flow->rings = kcalloc(nrofrings, sizeof(*flow->rings), in brcmf_flowring_attach()
374 if (!flow->rings) { in brcmf_flowring_attach()
393 if (flow->rings[flowid]) in brcmf_flowring_detach()
[all …]
/openbmc/linux/net/9p/
H A Dtrans_xen.c58 struct xen_9pfs_dataring *rings; member
135 ring = &priv->rings[num]; in p9_xen_request()
287 if (!priv->rings[i].intf) in xen_9pfs_front_free()
289 if (priv->rings[i].irq > 0) in xen_9pfs_front_free()
291 if (priv->rings[i].data.in) { in xen_9pfs_front_free()
307 kfree(priv->rings); in xen_9pfs_front_free()
412 priv->rings = kcalloc(priv->num_rings, sizeof(*priv->rings), in xen_9pfs_front_init()
414 if (!priv->rings) { in xen_9pfs_front_init()
420 priv->rings[i].priv = priv; in xen_9pfs_front_init()
446 priv->rings[i].ref); in xen_9pfs_front_init()
[all …]
/openbmc/linux/tools/net/ynl/samples/
H A Dethtool.c16 struct ethtool_rings_get_list *rings; in main() local
42 rings = ethtool_rings_get_dump(ys, &rreq); in main()
43 if (!rings) in main()
47 ynl_dump_foreach(rings, dev) { in main()
55 ethtool_rings_get_list_free(rings); in main()
/openbmc/qemu/hw/block/dataplane/
H A Dxen-block.c56 blkif_back_rings_t rings; member
436 &dataplane->rings.native, in xen_block_send_response()
437 dataplane->rings.native.rsp_prod_pvt); in xen_block_send_response()
441 &dataplane->rings.x86_32_part, in xen_block_send_response()
446 &dataplane->rings.x86_64_part, in xen_block_send_response()
457 dataplane->rings.common.rsp_prod_pvt++; in xen_block_send_response()
461 if (dataplane->rings.common.rsp_prod_pvt == in xen_block_send_response()
462 dataplane->rings.common.req_cons) { in xen_block_send_response()
527 rc = dataplane->rings.common.req_cons; in xen_block_handle_requests()
528 rp = dataplane->rings.common.sring->req_prod; in xen_block_handle_requests()
[all …]
/openbmc/linux/drivers/i3c/master/mipi-i3c-hci/
H A Ddma.c171 if (!rings) in hci_dma_cleanup()
175 rh = &rings->headers[i]; in hci_dma_cleanup()
204 kfree(rings); in hci_dma_cleanup()
210 struct hci_rings_data *rings; in hci_dma_init() local
226 rings = kzalloc(struct_size(rings, headers, nr_rings), GFP_KERNEL); in hci_dma_init()
227 if (!rings) in hci_dma_init()
229 hci->io_data = rings; in hci_dma_init()
230 rings->total = nr_rings; in hci_dma_init()
239 rh = &rings->headers[i]; in hci_dma_init()
364 rh = &rings->headers[ring]; in hci_dma_queue_xfer()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dpsock_fanout.c235 static int sock_fanout_read(int fds[], char *rings[], const int expect[]) in sock_fanout_read() argument
239 ret[0] = sock_fanout_read_ring(fds[0], rings[0]); in sock_fanout_read()
240 ret[1] = sock_fanout_read_ring(fds[1], rings[1]); in sock_fanout_read()
412 char *rings[2]; in test_datapath() local
431 rings[0] = sock_fanout_open_ring(fds[0]); in test_datapath()
432 rings[1] = sock_fanout_open_ring(fds[1]); in test_datapath()
435 sock_fanout_read(fds, rings, expect0); in test_datapath()
440 ret = sock_fanout_read(fds, rings, expect1); in test_datapath()
445 ret |= sock_fanout_read(fds, rings, expect2); in test_datapath()
447 if (munmap(rings[1], RING_NUM_FRAMES * getpagesize()) || in test_datapath()
[all …]
H A Dtoeplitz.c104 static struct ring_state rings[RSS_MAX_CPUS]; variable
250 do {} while (recv_block(&rings[i])); in process_rings()
404 rings[i].cpu = i; in setup_rings()
405 rings[i].fd = create_ring(&rings[i].mmap); in setup_rings()
410 set_filter(rings[i].fd); in setup_rings()
418 if (munmap(rings[i].mmap, ring_block_nr * ring_block_sz)) in cleanup_rings()
420 if (close(rings[i].fd)) in cleanup_rings()
/openbmc/linux/Documentation/devicetree/bindings/soc/ti/
H A Dk3-ringacc.yaml56 ti,num-rings:
58 description: Number of rings supported by RA
60 ti,sci-rm-range-gp-rings:
69 - ti,num-rings
70 - ti,sci-rm-range-gp-rings
90 ti,num-rings = <818>;
91 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
/openbmc/linux/Documentation/mhi/
H A Dmhi.rst58 Transfer rings: Used by the host to schedule work items for a channel. The
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
113 Event rings
119 to the host. Event rings are the array of EDs that resides in the host
128 Below is the basic usage of event rings:
[all …]
/openbmc/qemu/docs/specs/
H A Dvmw_pvscsi-spec.rst17 The shared memory consists of a registers area and a rings area.
19 commands. The rings area is used to transfer data descriptors and SCSI
35 There are three rings in shared memory:
48 used to control rings operation.
86 d. Issue ``PVSCSI_CMD_SETUP_RINGS`` command, provide rings configuration
89 rings configuration as ``struct PVSCSICmdDescSetupMsgRing``
115 and message (if enabled) rings
/openbmc/qemu/hw/net/rocker/
H A Drocker.c68 DescRing **rings; member
480 DescRing *ring = r->rings[ROCKER_RING_EVENT]; in rocker_event_link_changed()
531 DescRing *ring = r->rings[ROCKER_RING_EVENT]; in rocker_event_mac_vlan_seen()
594 return r->rings[(pport - 1) * 2 + 3]; in rocker_get_rx_ring_by_pport()
797 desc_ring_set_base_addr(r->rings[index], in rocker_io_writel()
802 desc_ring_set_size(r->rings[index], val); in rocker_io_writel()
1377 r->rings[i] = ring; in pci_rocker_realize()
1422 if (r->rings[i]) { in pci_rocker_uninit()
1423 desc_ring_free(r->rings[i]); in pci_rocker_uninit()
1426 g_free(r->rings); in pci_rocker_uninit()
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport.c267 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()
532 struct adf_etr_ring_data *ring = &bank->rings[i]; in cleanup_bank()
540 kfree(bank->rings); in cleanup_bank()
[all …]
/openbmc/qemu/hw/scsi/
H A Dvmw_pvscsi.c354 pvscsi_ring_cleanup(&s->rings); in pvscsi_reset_state()
408 cmp_descr_pa = pvscsi_ring_pop_cmp_descr(&s->rings); in pvscsi_cmp_ring_put()
418 msg_descr_pa = pvscsi_ring_pop_msg_descr(&s->rings); in pvscsi_msg_ring_put()
439 pvscsi_ring_flush_cmp(&s->rings); in pvscsi_process_completion_queue()
600 pvscsi_ring_flush_msg(&s->rings); in pvscsi_send_msg()
777 pvscsi_ring_flush_req(&s->rings); in pvscsi_process_io()
834 pvscsi_ring_init_data(&s->rings, rc); in pvscsi_on_cmd_setup_rings()
915 if (pvscsi_ring_init_msg(&s->rings, rc) < 0) { in pvscsi_on_cmd_setup_msg_ring()
1281 VMSTATE_UINT64(rings.rs_pa, PVSCSIState),
1282 VMSTATE_UINT32(rings.txr_len_mask, PVSCSIState),
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dringbuf.c37 struct ring *rings; member
100 tmp = libbpf_reallocarray(rb->rings, rb->ring_cnt + 1, sizeof(*rb->rings)); in ring_buffer__add()
103 rb->rings = tmp; in ring_buffer__add()
110 r = &rb->rings[rb->ring_cnt]; in ring_buffer__add()
173 ringbuf_unmap_ring(rb, &rb->rings[i]); in ring_buffer__free()
178 free(rb->rings); in ring_buffer__free()
281 struct ring *ring = &rb->rings[i]; in ring_buffer__consume()
308 struct ring *ring = &rb->rings[ring_id]; in ring_buffer__poll()
/openbmc/linux/drivers/soc/ti/
H A Dk3-ringacc.c219 struct k3_ring *rings; member
381 ringacc->rings[id].use_count++; in k3_ringacc_request_ring()
383 return &ringacc->rings[id]; in k3_ringacc_request_ring()
419 *fwd_ring = &ringacc->rings[fwd_id]; in k3_dmaring_request_dual_ring()
422 ringacc->rings[fwd_id].use_count++; in k3_dmaring_request_dual_ring()
1409 ringacc->rings = devm_kzalloc(dev, in k3_ringacc_init()
1410 sizeof(*ringacc->rings) * in k3_ringacc_init()
1422 ringacc->rings[i].rt = base_rt + in k3_ringacc_init()
1427 ringacc->rings[i].ring_id = i; in k3_ringacc_init()
1487 ringacc->rings = devm_kzalloc(dev, in k3_ringacc_dmarings_init()
[all …]
/openbmc/linux/drivers/block/xen-blkback/
H A Dxenbus.c84 if (!blkif->rings || !blkif->rings[0].irq || !blkif->vbd.bdev) 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()
136 if (!blkif->rings) in xen_blkif_alloc_rings()
140 struct xen_blkif_ring *ring = &blkif->rings[r]; in xen_blkif_alloc_rings()
274 struct xen_blkif_ring *ring = &blkif->rings[r]; in xen_blkif_disconnect()
338 kfree(blkif->rings); in xen_blkif_disconnect()
339 blkif->rings = NULL; in xen_blkif_disconnect()
389 if (!blkif->rings) \
393 struct xen_blkif_ring *ring = &blkif->rings[i]; \
[all …]
/openbmc/linux/io_uring/
H A Dio_uring.c192 return READ_ONCE(ctx->rings->cq.tail) - READ_ONCE(ctx->rings->cq.head); in __io_cqring_events_user()
831 struct io_rings *rings = ctx->rings; in io_cqe_cache_refill() local
2341 struct io_rings *rings = ctx->rings; in io_commit_sqring() local
2549 struct io_rings *rings = ctx->rings; in io_cqring_wait() local
2767 ctx->rings = NULL; in io_rings_free()
3171 if (ctx->rings) in io_ring_ctx_wait_and_kill()
3179 if (ctx->rings) in io_ring_ctx_wait_and_kill()
3283 if (!ctx->rings) in io_uring_try_cancel_requests()
3430 ptr = ctx->rings; in io_uring_validate_mmap_request()
3766 if (IS_ERR(rings)) in io_allocate_scq_urings()
[all …]
H A Dio_uring.h234 smp_store_release(&ctx->rings->cq.tail, ctx->cached_cq_tail); in io_commit_cqring()
263 struct io_rings *r = ctx->rings; in io_sqring_full()
270 struct io_rings *rings = ctx->rings; in io_sqring_entries() local
274 entries = smp_load_acquire(&rings->sq.tail) - ctx->cached_sq_head; in io_sqring_entries()
/openbmc/linux/include/linux/
H A Dptr_ring.h619 static inline int ptr_ring_resize_multiple(struct ptr_ring **rings, in ptr_ring_resize_multiple() argument
639 spin_lock_irqsave(&(rings[i])->consumer_lock, flags); in ptr_ring_resize_multiple()
640 spin_lock(&(rings[i])->producer_lock); in ptr_ring_resize_multiple()
641 queues[i] = __ptr_ring_swap_queue(rings[i], queues[i], in ptr_ring_resize_multiple()
643 spin_unlock(&(rings[i])->producer_lock); in ptr_ring_resize_multiple()
644 spin_unlock_irqrestore(&(rings[i])->consumer_lock, flags); in ptr_ring_resize_multiple()
H A Dskb_array.h201 static inline int skb_array_resize_multiple(struct skb_array **rings, in skb_array_resize_multiple() argument
206 return ptr_ring_resize_multiple((struct ptr_ring **)rings, in skb_array_resize_multiple()
/openbmc/linux/Documentation/devicetree/bindings/soc/qcom/
H A Dqcom,wcnss.yaml75 Should reference the tx-enable and tx-rings-empty SMEM states.
80 - const: tx-rings-empty
131 qcom,smem-state-names = "tx-enable", "tx-rings-empty";
/openbmc/linux/Documentation/networking/
H A Daf_xdp.rst24 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
42 UMEM also has two rings: the FILL ring and the COMPLETION ring. The
51 and the TX and COMPLETION rings are used for the TX path.
59 corresponding two rings, sets the XDP_SHARED_UMEM flag in the bind
136 one FILL ring, one COMPLETION ring, four TX rings and four RX rings.
138 The rings are head(producer)/tail(consumer) based rings. A producer
149 The size of the rings need to be of size power of two.
264 rings as usual, but you are going to have one or more FILL and
[all …]
/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel.c51 for (i = 0; i < priv->config.rings; i++) { in eip197_trc_cache_setupvirt()
510 for (i = 0; i < priv->config.rings; i++) { in safexcel_hw_setup_cdesc_rings()
558 for (i = 0; i < priv->config.rings; i++) { in safexcel_hw_setup_rdesc_rings()
600 priv->config.pes, priv->config.rings); in safexcel_hw_init()
720 for (i = 0; i < priv->config.rings; i++) { in safexcel_hw_init()
746 for (i = 0; i < priv->config.rings; i++) { in safexcel_hw_init()
1335 priv->config.rings = min_t(u32, priv->config.rings, in safexcel_configure()
1605 priv->config.rings + 1, in safexcel_probe_generic()
1606 priv->config.rings + 1, in safexcel_probe_generic()
1621 for (i = 0; i < priv->config.rings; i++) { in safexcel_probe_generic()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A DMakefile24 nfd3/rings.o \
27 nfdk/rings.o \

12345