Home
last modified time | relevance | path

Searched refs:rbi (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/hv/
Dring_buffer.c52 struct hv_ring_buffer_info *rbi = &channel->outbound; in hv_signal_on_write() local
55 if (READ_ONCE(rbi->ring_buffer->interrupt_mask)) in hv_signal_on_write()
64 if (old_write == READ_ONCE(rbi->ring_buffer->read_index)) { in hv_signal_on_write()
140 hv_get_ringbuffer_availbytes(const struct hv_ring_buffer_info *rbi, in hv_get_ringbuffer_availbytes() argument
146 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_ringbuffer_availbytes()
147 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_ringbuffer_availbytes()
148 dsize = rbi->ring_datasize; in hv_get_ringbuffer_availbytes()
378 static u32 hv_pkt_iter_avail(const struct hv_ring_buffer_info *rbi) in hv_pkt_iter_avail() argument
380 u32 priv_read_loc = rbi->priv_read_index; in hv_pkt_iter_avail()
381 u32 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_pkt_iter_avail()
[all …]
Dvmbus_drv.c1639 struct hv_ring_buffer_info *rbi = &channel->outbound; in out_mask_show() local
1642 mutex_lock(&rbi->ring_buffer_mutex); in out_mask_show()
1643 if (!rbi->ring_buffer) { in out_mask_show()
1644 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1648 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in out_mask_show()
1649 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1656 struct hv_ring_buffer_info *rbi = &channel->inbound; in in_mask_show() local
1659 mutex_lock(&rbi->ring_buffer_mutex); in in_mask_show()
1660 if (!rbi->ring_buffer) { in in_mask_show()
1661 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dhyperv.h187 static inline u32 hv_get_bytes_to_read(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_read() argument
191 dsize = rbi->ring_datasize; in hv_get_bytes_to_read()
192 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read()
193 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read()
201 static inline u32 hv_get_bytes_to_write(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_write() argument
205 dsize = rbi->ring_datasize; in hv_get_bytes_to_write()
206 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()
207 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
215 const struct hv_ring_buffer_info *rbi) in hv_get_avail_to_write_percent() argument
217 u32 avail_write = hv_get_bytes_to_write(rbi); in hv_get_avail_to_write_percent()
[all …]
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_drv.c575 struct vmxnet3_rx_buf_info *rbi; in vmxnet3_rq_alloc_rx_buf() local
578 rbi = rbi_base + ring->next2fill; in vmxnet3_rq_alloc_rx_buf()
581 if (rbi->buf_type == VMXNET3_RX_BUF_SKB) { in vmxnet3_rq_alloc_rx_buf()
582 if (rbi->skb == NULL) { in vmxnet3_rq_alloc_rx_buf()
583 rbi->skb = __netdev_alloc_skb_ip_align(adapter->netdev, in vmxnet3_rq_alloc_rx_buf()
584 rbi->len, in vmxnet3_rq_alloc_rx_buf()
586 if (unlikely(rbi->skb == NULL)) { in vmxnet3_rq_alloc_rx_buf()
591 rbi->dma_addr = dma_map_single( in vmxnet3_rq_alloc_rx_buf()
593 rbi->skb->data, rbi->len, in vmxnet3_rq_alloc_rx_buf()
596 rbi->dma_addr)) { in vmxnet3_rq_alloc_rx_buf()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Draid5.c1075 struct bio *bi, *rbi; in ops_run_io() local
1098 rbi = &sh->dev[i].rreq; /* For writing to replacement */ in ops_run_io()
1241 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1242 bio_set_op_attrs(rbi, op, op_flags); in ops_run_io()
1244 rbi->bi_end_io = raid5_end_write_request; in ops_run_io()
1245 rbi->bi_private = sh; in ops_run_io()
1250 rbi->bi_opf, i); in ops_run_io()
1255 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1258 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1263 rbi->bi_vcnt = 1; in ops_run_io()
[all …]
/kernel/linux/linux-5.10/kernel/rcu/
Drcutorture.c886 struct rcu_boost_inflight rbi = { .inflight = 0 }; in rcu_torture_boost() local
893 init_rcu_head_on_stack(&rbi.rcu); in rcu_torture_boost()
925 if (!smp_load_acquire(&rbi.inflight)) { in rcu_torture_boost()
927 smp_store_release(&rbi.inflight, 1); in rcu_torture_boost()
928 call_rcu(&rbi.rcu, rcu_torture_boost_cb); in rcu_torture_boost()
945 if (!failed && smp_load_acquire(&rbi.inflight)) in rcu_torture_boost()
971 while (!kthread_should_stop() || smp_load_acquire(&rbi.inflight)) { in rcu_torture_boost()
975 destroy_rcu_head_on_stack(&rbi.rcu); in rcu_torture_boost()
/kernel/linux/linux-5.10/drivers/net/hyperv/
Dnetvsc.c1453 struct hv_ring_buffer_info *rbi = &channel->inbound; in netvsc_channel_cb() local
1456 prefetch(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in netvsc_channel_cb()
1460 hv_begin_read(rbi); in netvsc_channel_cb()