Searched refs:shadow_idx (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_wq.c | 386 wq->shadow_idx = devm_kcalloc(&pdev->dev, wq->num_q_pages, in alloc_wqes_shadow() 387 sizeof(*wq->shadow_idx), GFP_KERNEL); in alloc_wqes_shadow() 388 if (!wq->shadow_idx) in alloc_wqes_shadow() 407 devm_kfree(&pdev->dev, wq->shadow_idx); in free_wqes_shadow() 777 wq->shadow_idx[curr_pg] = *prod_idx; in hinic_get_wqe() 898 prod_idx = wq->shadow_idx[curr_pg]; in hinic_write_wqe()
|
H A D | hinic_hw_wq.h | 42 u16 *shadow_idx; member
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio.c | 747 static bool virtio_queue_split_poll(VirtQueue *vq, unsigned shadow_idx) in virtio_queue_split_poll() argument 753 return (uint16_t)shadow_idx != vring_avail_idx(vq); in virtio_queue_split_poll() 756 static bool virtio_queue_packed_poll(VirtQueue *vq, unsigned shadow_idx) in virtio_queue_packed_poll() argument 771 shadow_idx, true); in virtio_queue_packed_poll() 776 static bool virtio_queue_poll(VirtQueue *vq, unsigned shadow_idx) in virtio_queue_poll() argument 783 return virtio_queue_packed_poll(vq, shadow_idx); in virtio_queue_poll() 785 return virtio_queue_split_poll(vq, shadow_idx); in virtio_queue_poll()
|