Searched refs:ring (Results 1 – 13 of 13) sorted by relevance
| /net/rds/ |
| A D | ib_ring.c | 68 memset(ring, 0, sizeof(*ring)); in rds_ib_ring_init() 69 ring->w_nr = nr; in rds_ib_ring_init() 70 rdsdebug("ring %p nr %u\n", ring, ring->w_nr); in rds_ib_ring_init() 78 diff = ring->w_alloc_ctr - (u32) atomic_read(&ring->w_free_ctr); in __rds_ib_ring_used() 89 ring->w_nr = nr; in rds_ib_ring_resize() 101 avail = ring->w_nr - __rds_ib_ring_used(ring); in rds_ib_ring_alloc() 110 ring->w_alloc_ptr = (ring->w_alloc_ptr + ret) % ring->w_nr; in rds_ib_ring_alloc() 119 ring->w_free_ptr = (ring->w_free_ptr + val) % ring->w_nr; in rds_ib_ring_free() 129 ring->w_alloc_ptr = (ring->w_alloc_ptr - val) % ring->w_nr; in rds_ib_ring_unalloc() 140 return __rds_ib_ring_used(ring) <= (ring->w_nr >> 1); in rds_ib_ring_low() [all …]
|
| A D | ib.h | 411 void rds_ib_ring_init(struct rds_ib_work_ring *ring, u32 nr); 412 void rds_ib_ring_resize(struct rds_ib_work_ring *ring, u32 nr); 413 u32 rds_ib_ring_alloc(struct rds_ib_work_ring *ring, u32 val, u32 *pos); 414 void rds_ib_ring_free(struct rds_ib_work_ring *ring, u32 val); 415 void rds_ib_ring_unalloc(struct rds_ib_work_ring *ring, u32 val); 416 int rds_ib_ring_empty(struct rds_ib_work_ring *ring); 417 int rds_ib_ring_low(struct rds_ib_work_ring *ring); 418 u32 rds_ib_ring_oldest(struct rds_ib_work_ring *ring); 419 u32 rds_ib_ring_completed(struct rds_ib_work_ring *ring, u32 wr_id, u32 oldest);
|
| /net/9p/ |
| A D | trans_xen.c | 24 #define XEN_9PFS_RING_SIZE(ring) XEN_FLEX_RING_SIZE(ring->intf->ring_order) argument 107 cons = ring->intf->out_cons; in p9_xen_write_todo() 134 ring = &priv->rings[num]; in p9_xen_request() 180 priv = ring->priv; in p9_xen_response() 245 if (!ring || !ring->priv->client) { in xen_9pfs_front_event_handler() 332 if (!ring->intf) in xen_9pfs_front_alloc_dataring() 338 ring->ref = ret; in xen_9pfs_front_alloc_dataring() 353 ring->data.in = bytes; in xen_9pfs_front_alloc_dataring() 359 ring->irq = bind_evtchn_to_irqhandler(ring->evtchn, in xen_9pfs_front_alloc_dataring() 362 if (ring->irq >= 0) in xen_9pfs_front_alloc_dataring() [all …]
|
| /net/xdp/ |
| A D | xsk_queue.h | 45 struct xdp_ring *ring; member 122 struct xdp_umem_ring *ring = (struct xdp_umem_ring *)q->ring; in __xskq_cons_read_addr_unchecked() local 125 *addr = ring->desc[idx]; in __xskq_cons_read_addr_unchecked() 213 struct xdp_rxtx_ring *ring = (struct xdp_rxtx_ring *)q->ring; in xskq_cons_read_desc() local 216 *desc = ring->desc[idx]; in xskq_cons_read_desc() 248 struct xdp_rxtx_ring *ring = (struct xdp_rxtx_ring *)q->ring; in xskq_cons_read_desc_batch() local 342 return READ_ONCE(q->ring->producer) - READ_ONCE(q->ring->consumer); in xskq_cons_present_entries() 383 struct xdp_umem_ring *ring = (struct xdp_umem_ring *)q->ring; in xskq_prod_reserve_addr() local 396 struct xdp_umem_ring *ring = (struct xdp_umem_ring *)q->ring; in xskq_prod_write_addr_batch() local 409 struct xdp_rxtx_ring *ring = (struct xdp_rxtx_ring *)q->ring; in xskq_prod_reserve_desc() local [all …]
|
| A D | xsk_queue.c | 49 q->ring = vmalloc_user(size); in xskq_create() 50 if (!q->ring) { in xskq_create() 64 vfree(q->ring); in xskq_destroy()
|
| A D | xsk.c | 44 pool->fq->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_set_rx_need_wakeup() 58 xs->tx->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_set_tx_need_wakeup() 71 pool->fq->ring->flags &= ~XDP_RING_NEED_WAKEUP; in xsk_clear_rx_need_wakeup() 85 xs->tx->ring->flags &= ~XDP_RING_NEED_WAKEUP; in xsk_clear_tx_need_wakeup() 1374 xs->tx->ring->flags |= XDP_RING_NEED_WAKEUP; in xsk_setsockopt() 1468 ring->producer = offsetof(struct xdp_rxtx_ring, ptrs.producer); in xsk_enter_rxtx_offsets() 1469 ring->consumer = offsetof(struct xdp_rxtx_ring, ptrs.consumer); in xsk_enter_rxtx_offsets() 1470 ring->desc = offsetof(struct xdp_rxtx_ring, desc); in xsk_enter_rxtx_offsets() 1475 ring->producer = offsetof(struct xdp_umem_ring, ptrs.producer); in xsk_enter_umem_offsets() 1477 ring->desc = offsetof(struct xdp_umem_ring, desc); in xsk_enter_umem_offsets() [all …]
|
| /net/packet/ |
| A D | diag.c | 72 static int pdiag_put_ring(struct packet_ring_buffer *ring, int ver, int nl_type, in pdiag_put_ring() argument 77 if (!ring->pg_vec) in pdiag_put_ring() 80 pdr.pdr_block_size = ring->pg_vec_pages << PAGE_SHIFT; in pdiag_put_ring() 81 pdr.pdr_block_nr = ring->pg_vec_len; in pdiag_put_ring() 82 pdr.pdr_frame_size = ring->frame_size; in pdiag_put_ring() 83 pdr.pdr_frame_nr = ring->frame_max + 1; in pdiag_put_ring() 86 pdr.pdr_retire_tmo = ring->prb_bdqc.retire_blk_tov; in pdiag_put_ring() 87 pdr.pdr_sizeof_priv = ring->prb_bdqc.blk_sizeof_priv; in pdiag_put_ring() 88 pdr.pdr_features = ring->prb_bdqc.feature_req_word; in pdiag_put_ring()
|
| /net/core/ |
| A D | page_pool.c | 107 stats->recycle_stats.ring += pcpu->ring; in page_pool_get_stats() 147 *data++ = pool_stats->recycle_stats.ring; in page_pool_ethtool_stats_get() 162 __acquires(&pool->ring.producer_lock) in page_pool_producer_lock() 167 spin_lock(&pool->ring.producer_lock); in page_pool_producer_lock() 176 __releases(&pool->ring.producer_lock) in page_pool_producer_unlock() 179 spin_unlock(&pool->ring.producer_lock); in page_pool_producer_unlock() 311 ptr_ring_cleanup(&pool->ring, NULL); in page_pool_init() 321 ptr_ring_cleanup(&pool->ring, NULL); in page_pool_uninit() 378 struct ptr_ring *r = &pool->ring; in page_pool_refill_alloc_cache() 750 recycle_stat_inc(pool, ring); in page_pool_recycle_in_ring() [all …]
|
| A D | page_pool_user.c | 156 stats.recycle_stats.ring) || in page_pool_nl_stats_fill()
|
| /net/hsr/ |
| A D | Kconfig | 17 For DANH, it must be connected as a node in a ring network together 19 device will be sent in both directions on the ring (over both slave 21 in the ring acts like a bridge for HSR frames, but filters frames
|
| /net/ipv6/ |
| A D | seg6_hmac.c | 173 char *ring, *off; in seg6_hmac_compute() local 198 ring = this_cpu_ptr(hmac_storage.hmac_ring); in seg6_hmac_compute() 199 off = ring; in seg6_hmac_compute() 221 dgsize = __do_hmac(hinfo, ring, plen, tmp_out, in seg6_hmac_compute()
|
| /net/ethtool/ |
| A D | common.c | 646 u64 ring = rule_info.fs.ring_cookie; in ethtool_get_max_rxnfc_channel() local 653 ring += ethtool_get_rss_ctx_max_channel(ctx); in ethtool_get_max_rxnfc_channel() 655 max_ring = max_t(u64, max_ring, ring); in ethtool_get_max_rxnfc_channel()
|
| /net/sched/ |
| A D | sch_generic.c | 823 if (!q->ring.queue) in pfifo_fast_reset() 890 if (!q->ring.queue) in pfifo_fast_destroy() 895 ptr_ring_cleanup(&q->ring, NULL); in pfifo_fast_destroy()
|
Completed in 27 milliseconds