Searched refs:rbi (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/hv/ |
H A D | ring_buffer.c | 54 struct hv_ring_buffer_info *rbi = &channel->outbound; in hv_signal_on_write() local 57 if (READ_ONCE(rbi->ring_buffer->interrupt_mask)) in hv_signal_on_write() 66 if (old_write == READ_ONCE(rbi->ring_buffer->read_index)) { in hv_signal_on_write() 133 hv_get_ringbuffer_availbytes(const struct hv_ring_buffer_info *rbi, in hv_get_ringbuffer_availbytes() argument 139 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_ringbuffer_availbytes() 140 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_ringbuffer_availbytes() 141 dsize = rbi->ring_datasize; in hv_get_ringbuffer_availbytes() 438 static u32 hv_pkt_iter_avail(const struct hv_ring_buffer_info *rbi) in hv_pkt_iter_avail() argument 440 u32 priv_read_loc = rbi->priv_read_index; in hv_pkt_iter_avail() 450 write_loc = virt_load_acquire(&rbi->ring_buffer->write_index); in hv_pkt_iter_avail() [all …]
|
H A D | vmbus_drv.c | 1544 struct hv_ring_buffer_info *rbi = &channel->outbound; in out_mask_show() local 1547 mutex_lock(&rbi->ring_buffer_mutex); in out_mask_show() 1548 if (!rbi->ring_buffer) { in out_mask_show() 1549 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show() 1553 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in out_mask_show() 1554 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show() 1561 struct hv_ring_buffer_info *rbi = &channel->inbound; in in_mask_show() local 1564 mutex_lock(&rbi->ring_buffer_mutex); in in_mask_show() 1565 if (!rbi->ring_buffer) { in in_mask_show() 1566 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show() [all …]
|
/linux/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 670 struct vmxnet3_rx_buf_info *rbi; in vmxnet3_rq_alloc_rx_buf() local 673 rbi = rbi_base + ring->next2fill; in vmxnet3_rq_alloc_rx_buf() 675 rbi->comp_state = VMXNET3_RXD_COMP_PENDING; in vmxnet3_rq_alloc_rx_buf() 677 if (rbi->buf_type == VMXNET3_RX_BUF_XDP) { in vmxnet3_rq_alloc_rx_buf() 679 &rbi->dma_addr, in vmxnet3_rq_alloc_rx_buf() 685 rbi->page = virt_to_page(data); in vmxnet3_rq_alloc_rx_buf() 687 } else if (rbi->buf_type == VMXNET3_RX_BUF_SKB) { in vmxnet3_rq_alloc_rx_buf() 688 if (rbi->skb == NULL) { in vmxnet3_rq_alloc_rx_buf() 689 rbi->skb = __netdev_alloc_skb_ip_align(adapter->netdev, in vmxnet3_rq_alloc_rx_buf() 690 rbi->len, in vmxnet3_rq_alloc_rx_buf() [all …]
|
H A D | vmxnet3_xdp.c | 371 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 D | vmxnet3_xdp.h | 32 struct vmxnet3_rx_buf_info *rbi,
|
/linux/include/linux/ |
H A D | hyperv.h | 211 static inline u32 hv_get_bytes_to_read(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_read() argument 215 dsize = rbi->ring_datasize; in hv_get_bytes_to_read() 216 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read() 217 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read() 225 static inline u32 hv_get_bytes_to_write(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_write() argument 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() [all …]
|
/linux/drivers/md/ |
H A D | raid5.c | 1159 struct bio *bi, *rbi; in ops_run_io() local 1183 rbi = &dev->rreq; /* For writing to replacement */ in ops_run_io() 1310 bio_init(rbi, rrdev->bdev, &dev->rvec, 1, op | op_flags); in ops_run_io() 1312 rbi->bi_end_io = raid5_end_write_request; in ops_run_io() 1313 rbi->bi_private = sh; in ops_run_io() 1318 rbi->bi_opf, i); in ops_run_io() 1323 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io() 1326 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io() 1331 rbi->bi_vcnt = 1; in ops_run_io() 1332 rbi->bi_io_vec[0].bv_len = RAID5_STRIPE_SIZE(conf); in ops_run_io() [all …]
|
/linux/drivers/net/hyperv/ |
H A D | netvsc.c | 1700 struct hv_ring_buffer_info *rbi = &channel->inbound; in netvsc_channel_cb() local 1703 prefetch(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in netvsc_channel_cb() 1707 hv_begin_read(rbi); in netvsc_channel_cb()
|