Home
last modified time | relevance | path

Searched refs:ring_cons (Results 1 – 2 of 2) sorted by relevance

/drivers/xen/
Devtchn.c69 unsigned int ring_cons, ring_prod, ring_overflow; member
174 if ((u->ring_prod - u->ring_cons) < u->ring_size) { in evtchn_interrupt()
177 if (u->ring_cons == u->ring_prod++) { in evtchn_interrupt()
213 c = u->ring_cons; in evtchn_read()
224 u->ring_cons != u->ring_prod); in evtchn_read()
254 u->ring_cons += (bytes1 + bytes2) / sizeof(evtchn_port_t); in evtchn_read()
587 u->ring_cons = u->ring_prod = u->ring_overflow = 0; in evtchn_ioctl()
630 if (u->ring_cons != u->ring_prod) in evtchn_poll()
/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c444 u32 ring_cons; in mlx4_en_process_tx_cq() local
454 ring_cons = READ_ONCE(ring->cons); in mlx4_en_process_tx_cq()
455 ring_index = ring_cons & size_mask; in mlx4_en_process_tx_cq()
495 !!((ring_cons + txbbs_stamp) & in mlx4_en_process_tx_cq()
518 WRITE_ONCE(ring->cons, ring_cons + txbbs_skipped); in mlx4_en_process_tx_cq()
871 u32 __maybe_unused ring_cons; in mlx4_en_xmit() local
894 ring_cons = READ_ONCE(ring->cons); in mlx4_en_xmit()
929 (u32)(ring->prod - ring_cons - 1)); in mlx4_en_xmit()