Lines Matching refs:item
214 __le16 item; member
344 unsigned int item, in qcom_smem_alloc_private() argument
363 if (le16_to_cpu(hdr->item) == item) in qcom_smem_alloc_private()
377 hdr->item = cpu_to_le16(item); in qcom_smem_alloc_private()
394 unsigned int item, in qcom_smem_alloc_global() argument
401 entry = &header->toc[item]; in qcom_smem_alloc_global()
435 static int qcom_smem_alloc(unsigned int host, unsigned int item, size_t size) in qcom_smem_alloc() argument
443 if (item < SMEM_ITEM_LAST_FIXED) { in qcom_smem_alloc()
445 "Rejecting allocation of static entry %d\n", item); in qcom_smem_alloc()
449 if (WARN_ON(item >= __smem->item_count)) in qcom_smem_alloc()
454 ret = qcom_smem_alloc_private(__smem, phdr, item, size); in qcom_smem_alloc()
457 ret = qcom_smem_alloc_private(__smem, phdr, item, size); in qcom_smem_alloc()
459 ret = qcom_smem_alloc_global(__smem, item, size); in qcom_smem_alloc()
466 unsigned int item, in qcom_smem_get_global() argument
476 entry = &header->toc[item]; in qcom_smem_get_global()
498 unsigned int item, in qcom_smem_get_private() argument
510 if (le16_to_cpu(e->item) == item) { in qcom_smem_get_private()
530 if (le16_to_cpu(e->item) == item) { in qcom_smem_get_private()
559 static void *qcom_smem_get(unsigned int host, unsigned int item, size_t *size) in qcom_smem_get() argument
568 if (WARN_ON(item >= __smem->item_count)) in qcom_smem_get()
574 ptr = qcom_smem_get_private(__smem, phdr, cacheln, item, size); in qcom_smem_get()
578 ptr = qcom_smem_get_private(__smem, phdr, cacheln, item, size); in qcom_smem_get()
580 ptr = qcom_smem_get_global(__smem, item, size); in qcom_smem_get()