Lines Matching refs:__smem
287 static struct qcom_smem *__smem; variable
395 if (!__smem) in qcom_smem_alloc()
399 dev_err(__smem->dev, in qcom_smem_alloc()
404 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_alloc()
410 if (host < SMEM_HOST_COUNT && __smem->partitions[host]) in qcom_smem_alloc()
411 ret = qcom_smem_alloc_private(__smem, host, item, size); in qcom_smem_alloc()
413 ret = qcom_smem_alloc_global(__smem, item, size); in qcom_smem_alloc()
415 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_alloc()
503 if (!__smem) in qcom_smem_get()
506 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_get()
512 if (host < SMEM_HOST_COUNT && __smem->partitions[host]) in qcom_smem_get()
513 ptr = qcom_smem_get_private(__smem, host, item, size); in qcom_smem_get()
515 ptr = qcom_smem_get_global(__smem, item, size); in qcom_smem_get()
517 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_get()
537 if (!__smem) in qcom_smem_get_free_space()
540 if (host < SMEM_HOST_COUNT && __smem->partitions[host]) { in qcom_smem_get_free_space()
541 phdr = __smem->partitions[host]; in qcom_smem_get_free_space()
545 header = __smem->regions[0].virt_base; in qcom_smem_get_free_space()
752 __smem = smem; in qcom_smem_probe()
759 hwspin_lock_free(__smem->hwlock); in qcom_smem_remove()
760 __smem = NULL; in qcom_smem_remove()