Searched refs:ring (Results 1 – 10 of 10) sorted by relevance
/net/rds/ |
D | iw_ring.c | 66 void rds_iw_ring_init(struct rds_iw_work_ring *ring, u32 nr) in rds_iw_ring_init() argument 68 memset(ring, 0, sizeof(*ring)); in rds_iw_ring_init() 69 ring->w_nr = nr; in rds_iw_ring_init() 70 rdsdebug("ring %p nr %u\n", ring, ring->w_nr); in rds_iw_ring_init() 73 static inline u32 __rds_iw_ring_used(struct rds_iw_work_ring *ring) in __rds_iw_ring_used() argument 78 diff = ring->w_alloc_ctr - (u32) atomic_read(&ring->w_free_ctr); in __rds_iw_ring_used() 79 BUG_ON(diff > ring->w_nr); in __rds_iw_ring_used() 84 void rds_iw_ring_resize(struct rds_iw_work_ring *ring, u32 nr) in rds_iw_ring_resize() argument 88 BUG_ON(__rds_iw_ring_used(ring)); in rds_iw_ring_resize() 89 ring->w_nr = nr; in rds_iw_ring_resize() [all …]
|
D | ib_ring.c | 66 void rds_ib_ring_init(struct rds_ib_work_ring *ring, u32 nr) in rds_ib_ring_init() argument 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() 73 static inline u32 __rds_ib_ring_used(struct rds_ib_work_ring *ring) in __rds_ib_ring_used() argument 78 diff = ring->w_alloc_ctr - (u32) atomic_read(&ring->w_free_ctr); in __rds_ib_ring_used() 79 BUG_ON(diff > ring->w_nr); in __rds_ib_ring_used() 84 void rds_ib_ring_resize(struct rds_ib_work_ring *ring, u32 nr) in rds_ib_ring_resize() argument 88 BUG_ON(__rds_ib_ring_used(ring)); in rds_ib_ring_resize() 89 ring->w_nr = nr; in rds_ib_ring_resize() [all …]
|
D | ib.h | 331 void rds_ib_ring_init(struct rds_ib_work_ring *ring, u32 nr); 332 void rds_ib_ring_resize(struct rds_ib_work_ring *ring, u32 nr); 333 u32 rds_ib_ring_alloc(struct rds_ib_work_ring *ring, u32 val, u32 *pos); 334 void rds_ib_ring_free(struct rds_ib_work_ring *ring, u32 val); 335 void rds_ib_ring_unalloc(struct rds_ib_work_ring *ring, u32 val); 336 int rds_ib_ring_empty(struct rds_ib_work_ring *ring); 337 int rds_ib_ring_low(struct rds_ib_work_ring *ring); 338 u32 rds_ib_ring_oldest(struct rds_ib_work_ring *ring); 339 u32 rds_ib_ring_completed(struct rds_ib_work_ring *ring, u32 wr_id, u32 oldest);
|
D | iw.h | 340 void rds_iw_ring_init(struct rds_iw_work_ring *ring, u32 nr); 341 void rds_iw_ring_resize(struct rds_iw_work_ring *ring, u32 nr); 342 u32 rds_iw_ring_alloc(struct rds_iw_work_ring *ring, u32 val, u32 *pos); 343 void rds_iw_ring_free(struct rds_iw_work_ring *ring, u32 val); 344 void rds_iw_ring_unalloc(struct rds_iw_work_ring *ring, u32 val); 345 int rds_iw_ring_empty(struct rds_iw_work_ring *ring); 346 int rds_iw_ring_low(struct rds_iw_work_ring *ring); 347 u32 rds_iw_ring_oldest(struct rds_iw_work_ring *ring); 348 u32 rds_iw_ring_completed(struct rds_iw_work_ring *ring, u32 wr_id, u32 oldest);
|
/net/dccp/ccids/lib/ |
D | packet_history.c | 152 struct tfrc_rx_hist_entry *tmp = h->ring[idx_a]; in tfrc_rx_hist_swap() 154 h->ring[idx_a] = h->ring[idx_b]; in tfrc_rx_hist_swap() 155 h->ring[idx_b] = tmp; in tfrc_rx_hist_swap() 354 h->ring[i] = kmem_cache_alloc(tfrc_rx_hist_slab, GFP_ATOMIC); in tfrc_rx_hist_alloc() 355 if (h->ring[i] == NULL) in tfrc_rx_hist_alloc() 364 kmem_cache_free(tfrc_rx_hist_slab, h->ring[i]); in tfrc_rx_hist_alloc() 365 h->ring[i] = NULL; in tfrc_rx_hist_alloc() 375 if (h->ring[i] != NULL) { in tfrc_rx_hist_purge() 376 kmem_cache_free(tfrc_rx_hist_slab, h->ring[i]); in tfrc_rx_hist_purge() 377 h->ring[i] = NULL; in tfrc_rx_hist_purge() [all …]
|
D | loss_interval.c | 28 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek() 35 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval() 43 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next() 44 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next() 46 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next() 55 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup() 57 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup() 58 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()
|
D | packet_history.h | 95 struct tfrc_rx_hist_entry *ring[TFRC_NDUPACK + 1]; member 115 return h->ring[tfrc_rx_hist_index(h, h->loss_count)]; in tfrc_rx_hist_last_rcv() 124 return h->ring[tfrc_rx_hist_index(h, n)]; in tfrc_rx_hist_entry() 133 return h->ring[h->loss_start]; in tfrc_rx_hist_loss_prev()
|
D | loss_interval.h | 46 struct tfrc_loss_interval *ring[LIH_SIZE]; member
|
/net/packet/ |
D | diag.c | 71 static int pdiag_put_ring(struct packet_ring_buffer *ring, int ver, int nl_type, in pdiag_put_ring() argument 76 if (!ring->pg_vec || ((ver > TPACKET_V2) && 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/hsr/ |
D | Kconfig | 11 and it must be connected as a node in a ring network together with 15 directions on the ring (over both slave ports), giving a redundant, 16 instant fail-over network. Each HSR node in the ring acts like a
|