Lines Matching refs:item

53  * Version 12 (SMEM_GLOBAL_PART_VERSION) changes the item alloc/get procedure
55 * region with partition type (SMEM_GLOBAL_HOST) and the max smem item count is
79 /* Highest accepted item number, for both global and private heaps */
216 * struct smem_private_entry - header of each item in the private partition
218 * @item: identifying number of the smem item
226 __le16 item;
240 * @num_items: highest accepted item number
271 * @item_count: max accepted item number
375 unsigned item,
397 if (le16_to_cpu(hdr->item) == item)
414 hdr->item = cpu_to_le16(item);
436 unsigned item,
443 entry = &header->toc[item];
455 * Ensure the header is consistent before we mark the item allocated,
456 * so that remote processors will get a consistent view of the item
469 * qcom_smem_alloc() - allocate space for a smem item
471 * @item: smem item handle
474 * Allocate space for a given smem item of size @size, given that the item is
477 int qcom_smem_alloc(unsigned host, unsigned item, size_t size)
486 if (item < SMEM_ITEM_LAST_FIXED) {
488 "Rejecting allocation of static entry %d\n", item);
492 if (WARN_ON(item >= __smem->item_count))
503 ret = qcom_smem_alloc_private(__smem, part, item, size);
506 ret = qcom_smem_alloc_private(__smem, part, item, size);
508 ret = qcom_smem_alloc_global(__smem, item, size);
518 unsigned item,
530 entry = &header->toc[item];
558 unsigned item,
577 if (le16_to_cpu(e->item) == item) {
613 if (le16_to_cpu(e->item) == item) {
647 * qcom_smem_get() - resolve ptr of size of a smem item
649 * @item: smem item handle
650 * @size: pointer to be filled out with size of the item
652 * Looks up smem item and returns pointer to it. Size of smem
653 * item is returned in @size.
655 void *qcom_smem_get(unsigned host, unsigned item, size_t *size)
665 if (WARN_ON(item >= __smem->item_count))
676 ptr = qcom_smem_get_private(__smem, part, item, size);
679 ptr = qcom_smem_get_private(__smem, part, item, size);
681 ptr = qcom_smem_get_global(__smem, item, size);
743 * with an smem item pointer (previously returned by qcom_smem_get()