Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hv/
H A Dring_buffer.c57 if (READ_ONCE(rbi->ring_buffer->interrupt_mask)) in hv_signal_on_write()
141 dsize = rbi->ring_datasize; in hv_get_ringbuffer_availbytes()
440 u32 priv_read_loc = rbi->priv_read_index; in hv_pkt_iter_avail()
471 bytes_avail = hv_pkt_iter_avail(rbi); in hv_pkt_iter_first()
476 desc = (struct vmpacket_descriptor *)(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in hv_pkt_iter_first()
527 u32 dsize = rbi->ring_datasize; in __hv_pkt_iter_next()
532 if (rbi->priv_read_index >= dsize) in __hv_pkt_iter_next()
533 rbi->priv_read_index -= dsize; in __hv_pkt_iter_next()
548 rbi->priv_read_index; in hv_pkt_iter_bytes_read()
583 rbi->ring_buffer->read_index = rbi->priv_read_index; in hv_pkt_iter_close()
[all …]
H A Dvmbus_drv.c1529 mutex_lock(&rbi->ring_buffer_mutex); in out_mask_show()
1530 if (!rbi->ring_buffer) { in out_mask_show()
1536 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1546 mutex_lock(&rbi->ring_buffer_mutex); in in_mask_show()
1547 if (!rbi->ring_buffer) { in in_mask_show()
1553 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show()
1563 mutex_lock(&rbi->ring_buffer_mutex); in read_avail_show()
1564 if (!rbi->ring_buffer) { in read_avail_show()
1570 mutex_unlock(&rbi->ring_buffer_mutex); in read_avail_show()
1580 mutex_lock(&rbi->ring_buffer_mutex); in write_avail_show()
[all …]
/openbmc/linux/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c651 rbi->skb->data, rbi->len, in vmxnet3_rq_alloc_rx_buf()
656 rbi->skb = NULL; in vmxnet3_rq_alloc_rx_buf()
681 rbi->page = NULL; in vmxnet3_rq_alloc_rx_buf()
1677 rbi->dma_addr, in vmxnet3_rq_rx_complete()
1678 rbi->len, in vmxnet3_rq_rx_complete()
1751 rbi->dma_addr, rbi->len, in vmxnet3_rq_rx_complete()
1932 rbi->page && rbi->buf_type == VMXNET3_RX_BUF_XDP) { in vmxnet3_rq_cleanup()
1934 rbi->page); in vmxnet3_rq_cleanup()
1937 rbi->skb) { in vmxnet3_rq_cleanup()
1941 rbi->skb = NULL; in vmxnet3_rq_cleanup()
[all …]
H A Dvmxnet3_xdp.c371 struct vmxnet3_rx_buf_info *rbi, in vmxnet3_process_xdp() argument
382 page = rbi->page; in vmxnet3_process_xdp()
385 rq->page_pool->p.offset, rbi->len, in vmxnet3_process_xdp()
390 rbi->len, false); in vmxnet3_process_xdp()
413 rbi->page = virt_to_page(new_data); in vmxnet3_process_xdp()
414 rbi->dma_addr = new_dma_addr; in vmxnet3_process_xdp()
415 rxd->addr = cpu_to_le64(rbi->dma_addr); in vmxnet3_process_xdp()
416 rxd->len = rbi->len; in vmxnet3_process_xdp()
H A Dvmxnet3_xdp.h32 struct vmxnet3_rx_buf_info *rbi,
/openbmc/linux/include/linux/
H A Dhyperv.h215 dsize = rbi->ring_datasize; in hv_get_bytes_to_read()
216 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read()
229 dsize = rbi->ring_datasize; in hv_get_bytes_to_write()
230 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()
231 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
239 const struct hv_ring_buffer_info *rbi) in hv_get_avail_to_write_percent() argument
241 u32 avail_write = hv_get_bytes_to_write(rbi); in hv_get_avail_to_write_percent()
245 rbi->ring_size_div10_reciprocal); in hv_get_avail_to_write_percent()
1687 rbi->ring_buffer->interrupt_mask = 1; in hv_begin_read()
1699 rbi->ring_buffer->interrupt_mask = 0; in hv_end_read()
[all …]
/openbmc/linux/drivers/md/
H A Draid5.c1158 struct bio *bi, *rbi; in ops_run_io() local
1329 rbi->bi_opf, i); in ops_run_io()
1342 rbi->bi_vcnt = 1; in ops_run_io()
1351 rbi->bi_vcnt = 0; in ops_run_io()
1469 rbi = dev->read; in ops_complete_biofill()
1471 while (rbi && rbi->bi_iter.bi_sector < in ops_complete_biofill()
1474 bio_endio(rbi); in ops_complete_biofill()
1475 rbi = rbi2; in ops_complete_biofill()
1499 struct bio *rbi; in ops_run_biofill() local
1504 while (rbi && rbi->bi_iter.bi_sector < in ops_run_biofill()
[all …]
/openbmc/linux/drivers/net/hyperv/
H A Dnetvsc.c1698 struct hv_ring_buffer_info *rbi = &channel->inbound; in netvsc_channel_cb() local
1701 prefetch(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in netvsc_channel_cb()
1705 hv_begin_read(rbi); in netvsc_channel_cb()