Home
last modified time | relevance | path

Searched refs:__smem (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/soc/qcom/
H A Dsmem.c357 static struct qcom_smem *__smem; variable
384 return hwspin_lock_bust(__smem->hwlock, SMEM_HOST_ID_TO_HWSPINLOCK_ID(host)); in qcom_smem_bust_hwspin_lock_by_host()
395 return !!__smem; in qcom_smem_is_available()
509 if (!__smem) in qcom_smem_alloc()
513 dev_err(__smem->dev, in qcom_smem_alloc()
518 if (WARN_ON(item >= __smem->item_count)) in qcom_smem_alloc()
521 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_alloc()
527 if (host < SMEM_HOST_COUNT && __smem->partitions[host].virt_base) { in qcom_smem_alloc()
528 part = &__smem->partitions[host]; in qcom_smem_alloc()
529 ret = qcom_smem_alloc_private(__smem, part, item, size); in qcom_smem_alloc()
[all …]
/openbmc/u-boot/drivers/smem/
H A Dmsm_smem.c335 static struct qcom_smem *__smem; variable
435 if (!__smem) in qcom_smem_alloc()
439 dev_err(__smem->dev, in qcom_smem_alloc()
444 if (WARN_ON(item >= __smem->item_count)) in qcom_smem_alloc()
447 if (host < SMEM_HOST_COUNT && __smem->partitions[host]) { in qcom_smem_alloc()
448 phdr = __smem->partitions[host]; in qcom_smem_alloc()
449 ret = qcom_smem_alloc_private(__smem, phdr, item, size); in qcom_smem_alloc()
450 } else if (__smem->global_partition) { in qcom_smem_alloc()
451 phdr = __smem->global_partition; in qcom_smem_alloc()
452 ret = qcom_smem_alloc_private(__smem, phdr, item, size); in qcom_smem_alloc()
[all …]