Searched refs:rbi (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/hv/ |
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() 460 static u32 hv_pkt_iter_avail(const struct hv_ring_buffer_info *rbi) in hv_pkt_iter_avail() argument 462 u32 priv_read_loc = rbi->priv_read_index; in hv_pkt_iter_avail() 472 write_loc = virt_load_acquire(&rbi->ring_buffer->write_index); in hv_pkt_iter_avail() [all …]
|
D | vmbus_drv.c | 1692 struct hv_ring_buffer_info *rbi = &channel->outbound; in out_mask_show() local 1695 mutex_lock(&rbi->ring_buffer_mutex); in out_mask_show() 1696 if (!rbi->ring_buffer) { in out_mask_show() 1697 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show() 1701 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in out_mask_show() 1702 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show() 1709 struct hv_ring_buffer_info *rbi = &channel->inbound; in in_mask_show() local 1712 mutex_lock(&rbi->ring_buffer_mutex); in in_mask_show() 1713 if (!rbi->ring_buffer) { in in_mask_show() 1714 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show() [all …]
|
/linux-6.1.9/include/linux/ |
D | hyperv.h | 191 static inline u32 hv_get_bytes_to_read(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_read() argument 195 dsize = rbi->ring_datasize; in hv_get_bytes_to_read() 196 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read() 197 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read() 205 static inline u32 hv_get_bytes_to_write(const struct hv_ring_buffer_info *rbi) in hv_get_bytes_to_write() argument 209 dsize = rbi->ring_datasize; in hv_get_bytes_to_write() 210 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write() 211 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write() 219 const struct hv_ring_buffer_info *rbi) in hv_get_avail_to_write_percent() argument 221 u32 avail_write = hv_get_bytes_to_write(rbi); in hv_get_avail_to_write_percent() [all …]
|
/linux-6.1.9/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 595 struct vmxnet3_rx_buf_info *rbi; in vmxnet3_rq_alloc_rx_buf() local 598 rbi = rbi_base + ring->next2fill; in vmxnet3_rq_alloc_rx_buf() 600 rbi->comp_state = VMXNET3_RXD_COMP_PENDING; in vmxnet3_rq_alloc_rx_buf() 602 if (rbi->buf_type == VMXNET3_RX_BUF_SKB) { in vmxnet3_rq_alloc_rx_buf() 603 if (rbi->skb == NULL) { in vmxnet3_rq_alloc_rx_buf() 604 rbi->skb = __netdev_alloc_skb_ip_align(adapter->netdev, in vmxnet3_rq_alloc_rx_buf() 605 rbi->len, in vmxnet3_rq_alloc_rx_buf() 607 if (unlikely(rbi->skb == NULL)) { in vmxnet3_rq_alloc_rx_buf() 612 rbi->dma_addr = dma_map_single( in vmxnet3_rq_alloc_rx_buf() 614 rbi->skb->data, rbi->len, in vmxnet3_rq_alloc_rx_buf() [all …]
|
/linux-6.1.9/drivers/md/ |
D | raid5.c | 1152 struct bio *bi, *rbi; in ops_run_io() local 1176 rbi = &dev->rreq; /* For writing to replacement */ in ops_run_io() 1315 bio_init(rbi, rrdev->bdev, &dev->rvec, 1, op | op_flags); in ops_run_io() 1317 rbi->bi_end_io = raid5_end_write_request; in ops_run_io() 1318 rbi->bi_private = sh; in ops_run_io() 1323 rbi->bi_opf, i); in ops_run_io() 1328 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io() 1331 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io() 1336 rbi->bi_vcnt = 1; in ops_run_io() 1337 rbi->bi_io_vec[0].bv_len = RAID5_STRIPE_SIZE(conf); in ops_run_io() [all …]
|
/linux-6.1.9/drivers/net/hyperv/ |
D | netvsc.c | 1717 struct hv_ring_buffer_info *rbi = &channel->inbound; in netvsc_channel_cb() local 1720 prefetch(hv_get_ring_buffer(rbi) + rbi->priv_read_index); in netvsc_channel_cb() 1724 hv_begin_read(rbi); in netvsc_channel_cb()
|