Home
last modified time | relevance | path

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

/Linux-v5.4/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.c1517 struct hv_ring_buffer_info *rbi = &channel->outbound; in out_mask_show() local
1520 mutex_lock(&rbi->ring_buffer_mutex); in out_mask_show()
1521 if (!rbi->ring_buffer) { in out_mask_show()
1522 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1526 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in out_mask_show()
1527 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1534 struct hv_ring_buffer_info *rbi = &channel->inbound; in in_mask_show() local
1537 mutex_lock(&rbi->ring_buffer_mutex); in in_mask_show()
1538 if (!rbi->ring_buffer) { in in_mask_show()
1539 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show()
[all …]
/Linux-v5.4/include/linux/
Dhyperv.h139 static inline u32 hv_get_bytes_to_read(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_read() argument
143 dsize = rbi->ring_datasize; in hv_get_bytes_to_read()
144 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read()
145 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read()
153 static inline u32 hv_get_bytes_to_write(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_write() argument
157 dsize = rbi->ring_datasize; in hv_get_bytes_to_write()
158 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()
159 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
167 const struct hv_ring_buffer_info *rbi) in hv_get_avail_to_write_percent() argument
169 u32 avail_write = hv_get_bytes_to_write(rbi); in hv_get_avail_to_write_percent()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/kernel/rcu/
Drcutorture.c802 struct rcu_boost_inflight rbi = { .inflight = 0 }; in rcu_torture_boost() local
814 init_rcu_head_on_stack(&rbi.rcu); in rcu_torture_boost()
846 if (!smp_load_acquire(&rbi.inflight)) { in rcu_torture_boost()
848 smp_store_release(&rbi.inflight, 1); in rcu_torture_boost()
849 call_rcu(&rbi.rcu, rcu_torture_boost_cb); in rcu_torture_boost()
866 if (!failed && smp_load_acquire(&rbi.inflight)) in rcu_torture_boost()
892 while (!kthread_should_stop() || smp_load_acquire(&rbi.inflight)) { in rcu_torture_boost()
896 destroy_rcu_head_on_stack(&rbi.rcu); in rcu_torture_boost()
/Linux-v5.4/drivers/md/
Draid5.c997 struct bio *bi, *rbi; in ops_run_io() local
1020 rbi = &sh->dev[i].rreq; /* For writing to replacement */ in ops_run_io()
1163 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1164 bio_set_op_attrs(rbi, op, op_flags); in ops_run_io()
1166 rbi->bi_end_io = raid5_end_write_request; in ops_run_io()
1167 rbi->bi_private = sh; in ops_run_io()
1172 rbi->bi_opf, i); in ops_run_io()
1177 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1180 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1185 rbi->bi_vcnt = 1; in ops_run_io()
[all …]
/Linux-v5.4/drivers/net/hyperv/
Dnetvsc.c1344 struct hv_ring_buffer_info *rbi = &channel->inbound; in netvsc_channel_cb() local
1347 prefetch(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in netvsc_channel_cb()
1351 hv_begin_read(rbi); in netvsc_channel_cb()