msg_ring 682 drivers/crypto/hisilicon/sec/sec_drv.c struct sec_queue_ring_cmd *msg_ring = &queue->ring_cmd; msg_ring 694 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + q_id; msg_ring 705 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + queue->expected; msg_ring 707 drivers/crypto/hisilicon/sec/sec_drv.c msg_ring->callback(msg, msg_ring 712 drivers/crypto/hisilicon/sec/sec_drv.c atomic_dec(&msg_ring->used); msg_ring 720 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + q_id; msg_ring 844 drivers/crypto/hisilicon/sec/sec_drv.c struct sec_queue_ring_cmd *msg_ring = &queue->ring_cmd; msg_ring 846 drivers/crypto/hisilicon/sec/sec_drv.c return !atomic_read(&msg_ring->used); msg_ring 859 drivers/crypto/hisilicon/sec/sec_drv.c struct sec_queue_ring_cmd *msg_ring = &queue->ring_cmd; msg_ring 863 drivers/crypto/hisilicon/sec/sec_drv.c mutex_lock(&msg_ring->lock); msg_ring 866 drivers/crypto/hisilicon/sec/sec_drv.c if (write == read && atomic_read(&msg_ring->used) == SEC_QUEUE_LEN) { msg_ring 867 drivers/crypto/hisilicon/sec/sec_drv.c mutex_unlock(&msg_ring->lock); msg_ring 870 drivers/crypto/hisilicon/sec/sec_drv.c memcpy(msg_ring->vaddr + write, msg, sizeof(*msg)); msg_ring 878 drivers/crypto/hisilicon/sec/sec_drv.c atomic_inc(&msg_ring->used); msg_ring 879 drivers/crypto/hisilicon/sec/sec_drv.c mutex_unlock(&msg_ring->lock); msg_ring 886 drivers/crypto/hisilicon/sec/sec_drv.c struct sec_queue_ring_cmd *msg_ring = &queue->ring_cmd; msg_ring 888 drivers/crypto/hisilicon/sec/sec_drv.c return SEC_QUEUE_LEN - atomic_read(&msg_ring->used) >= num; msg_ring 89 drivers/scsi/vmw_pvscsi.c struct PVSCSIRingMsgDesc *msg_ring; msg_ring 467 drivers/scsi/vmw_pvscsi.c adapter->msg_ring = dma_alloc_coherent(&adapter->dev->dev, msg_ring 470 drivers/scsi/vmw_pvscsi.c if (!adapter->msg_ring) msg_ring 516 drivers/scsi/vmw_pvscsi.c memset(adapter->msg_ring, 0, adapter->msg_pages * PAGE_SIZE); msg_ring 1087 drivers/scsi/vmw_pvscsi.c struct PVSCSIRingMsgDesc *ring = adapter->msg_ring; msg_ring 1233 drivers/scsi/vmw_pvscsi.c if (adapter->msg_ring) msg_ring 1236 drivers/scsi/vmw_pvscsi.c adapter->msg_ring, adapter->msgRingPA);