Lines Matching refs:host_buffers

69 static struct kvm_ffa_buffers host_buffers;  variable
210 hyp_spin_lock(&host_buffers.lock); in do_ffa_rxtx_map()
211 if (host_buffers.tx) { in do_ffa_rxtx_map()
250 host_buffers.tx = tx_virt; in do_ffa_rxtx_map()
251 host_buffers.rx = rx_virt; in do_ffa_rxtx_map()
254 hyp_spin_unlock(&host_buffers.lock); in do_ffa_rxtx_map()
281 hyp_spin_lock(&host_buffers.lock); in do_ffa_rxtx_unmap()
282 if (!host_buffers.tx) { in do_ffa_rxtx_unmap()
287 hyp_unpin_shared_mem(host_buffers.tx, host_buffers.tx + 1); in do_ffa_rxtx_unmap()
288 WARN_ON(__pkvm_host_unshare_hyp(hyp_virt_to_pfn(host_buffers.tx))); in do_ffa_rxtx_unmap()
289 host_buffers.tx = NULL; in do_ffa_rxtx_unmap()
291 hyp_unpin_shared_mem(host_buffers.rx, host_buffers.rx + 1); in do_ffa_rxtx_unmap()
292 WARN_ON(__pkvm_host_unshare_hyp(hyp_virt_to_pfn(host_buffers.rx))); in do_ffa_rxtx_unmap()
293 host_buffers.rx = NULL; in do_ffa_rxtx_unmap()
298 hyp_spin_unlock(&host_buffers.lock); in do_ffa_rxtx_unmap()
388 hyp_spin_lock(&host_buffers.lock); in do_ffa_mem_frag_tx()
389 if (!host_buffers.tx) in do_ffa_mem_frag_tx()
393 memcpy(buf, host_buffers.tx, fraglen); in do_ffa_mem_frag_tx()
413 hyp_spin_unlock(&host_buffers.lock); in do_ffa_mem_frag_tx()
455 hyp_spin_lock(&host_buffers.lock); in __do_ffa_mem_xfer()
456 if (!host_buffers.tx) { in __do_ffa_mem_xfer()
467 memcpy(buf, host_buffers.tx, fraglen); in __do_ffa_mem_xfer()
506 hyp_spin_unlock(&host_buffers.lock); in __do_ffa_mem_xfer()
539 hyp_spin_lock(&host_buffers.lock); in do_ffa_mem_reclaim()
601 hyp_spin_unlock(&host_buffers.lock); in do_ffa_mem_reclaim()
753 hyp_spin_lock(&host_buffers.lock); in do_ffa_part_get()
754 if (!host_buffers.rx) { in do_ffa_part_get()
787 memcpy(host_buffers.rx, hyp_buffers.rx, copy_sz); in do_ffa_part_get()
789 hyp_spin_unlock(&host_buffers.lock); in do_ffa_part_get()
910 host_buffers = (struct kvm_ffa_buffers) { in hyp_ffa_init()