Lines Matching refs:item

51  * Version 12 (SMEM_GLOBAL_PART_VERSION) changes the item alloc/get procedure
53 * region with partition type (SMEM_GLOBAL_HOST) and the max smem item count is
77 /* Highest accepted item number, for both global and private heaps */
200 * struct smem_private_entry - header of each item in the private partition
202 * @item: identifying number of the smem item
210 __le16 item;
224 * @num_items: highest accepted item number
257 * @item_count: max accepted item number
350 unsigned item,
364 if (le16_to_cpu(hdr->item) == item)
378 hdr->item = cpu_to_le16(item);
400 unsigned item,
407 entry = &header->toc[item];
419 * Ensure the header is consistent before we mark the item allocated,
420 * so that remote processors will get a consistent view of the item
433 * qcom_smem_alloc() - allocate space for a smem item
435 * @item: smem item handle
438 * Allocate space for a given smem item of size @size, given that the item is
441 int qcom_smem_alloc(unsigned host, unsigned item, size_t size)
450 if (item < SMEM_ITEM_LAST_FIXED) {
452 "Rejecting allocation of static entry %d\n", item);
456 if (WARN_ON(item >= __smem->item_count))
467 ret = qcom_smem_alloc_private(__smem, phdr, item, size);
470 ret = qcom_smem_alloc_private(__smem, phdr, item, size);
472 ret = qcom_smem_alloc_global(__smem, item, size);
482 unsigned item,
492 entry = &header->toc[item];
514 unsigned item,
526 if (le16_to_cpu(e->item) == item) {
546 if (le16_to_cpu(e->item) == item) {
567 * qcom_smem_get() - resolve ptr of size of a smem item
569 * @item: smem item handle
570 * @size: pointer to be filled out with size of the item
572 * Looks up smem item and returns pointer to it. Size of smem
573 * item is returned in @size.
575 void *qcom_smem_get(unsigned host, unsigned item, size_t *size)
586 if (WARN_ON(item >= __smem->item_count))
598 ptr = qcom_smem_get_private(__smem, phdr, cacheln, item, size);
602 ptr = qcom_smem_get_private(__smem, phdr, cacheln, item, size);
604 ptr = qcom_smem_get_global(__smem, item, size);
649 * with an smem item pointer (previously returned by qcom_smem_get()