/openbmc/linux/drivers/firmware/arm_ffa/ |
H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0 20 static int ffa_device_match(struct device *dev, struct device_driver *drv) in ffa_device_match() argument 25 id_table = to_ffa_driver(drv)->id_table; in ffa_device_match() 26 ffa_dev = to_ffa_dev(dev); in ffa_device_match() 28 while (!uuid_is_null(&id_table->uuid)) { in ffa_device_match() 30 * FF-A v1.0 doesn't provide discovery of UUIDs, just the in ffa_device_match() 32 * id_table UUID and assign the UUID to the device if the in ffa_device_match() 35 if (uuid_is_null(&ffa_dev->uuid)) in ffa_device_match() 36 ffa_device_match_uuid(ffa_dev, &id_table->uuid); in ffa_device_match() 38 if (uuid_equal(&ffa_dev->uuid, &id_table->uuid)) in ffa_device_match() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-virtio-dmabuf.c | 2 * QEMU tests for shared dma-buf API 22 #include "hw/virtio/virtio-dmabuf.h" 27 QemuUUID uuid; in test_add_remove_resources() local 31 qemu_uuid_generate(&uuid); in test_add_remove_resources() 34 g_assert(virtio_add_dmabuf(&uuid, dmabuf_fd)); in test_add_remove_resources() 35 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, dmabuf_fd); in test_add_remove_resources() 37 g_assert(virtio_remove_resource(&uuid)); in test_add_remove_resources() 39 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, -1); in test_add_remove_resources() 45 QemuUUID uuid; in test_add_remove_dev() local 46 struct vhost_dev *dev = g_new0(struct vhost_dev, 1); in test_add_remove_dev() local [all …]
|
/openbmc/linux/drivers/nvdimm/ |
H A D | namespace_devs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 12 #include "nd-core.h" 17 static void namespace_io_release(struct device *dev) in namespace_io_release() argument 19 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in namespace_io_release() 24 static void namespace_pmem_release(struct device *dev) in namespace_pmem_release() argument 26 struct nd_namespace_pmem *nspm = to_nd_namespace_pmem(dev); in namespace_pmem_release() 27 struct nd_region *nd_region = to_nd_region(dev->parent); in namespace_pmem_release() 29 if (nspm->id >= 0) in namespace_pmem_release() 30 ida_simple_remove(&nd_region->ns_ida, nspm->id); in namespace_pmem_release() [all …]
|
H A D | btt_devs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 11 #include "nd-core.h" 15 static void nd_btt_release(struct device *dev) in nd_btt_release() argument 17 struct nd_region *nd_region = to_nd_region(dev->parent); in nd_btt_release() 18 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_btt_release() 20 dev_dbg(dev, "trace\n"); in nd_btt_release() 21 nd_detach_ndns(&nd_btt->dev, &nd_btt->ndns); in nd_btt_release() 22 ida_simple_remove(&nd_region->btt_ida, nd_btt->id); in nd_btt_release() 23 kfree(nd_btt->uuid); in nd_btt_release() [all …]
|
H A D | nd.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 20 * support and is an input to the geometry/on-disk-format of a 29 struct device *dev; member 42 if (ndd->cxl) in nsl_ref_name() 43 return nd_label->cxl.name; in nsl_ref_name() 44 return nd_label->efi.name; in nsl_ref_name() 50 if (ndd->cxl) in nsl_get_name() 51 return memcpy(name, nd_label->cxl.name, NSLABEL_NAME_LEN); in nsl_get_name() 52 return memcpy(name, nd_label->efi.name, NSLABEL_NAME_LEN); in nsl_get_name() [all …]
|
H A D | pfn_devs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2016 Intel Corporation. All rights reserved. 12 #include "nd-core.h" 18 static void nd_pfn_release(struct device *dev) in nd_pfn_release() argument 20 struct nd_region *nd_region = to_nd_region(dev->parent); in nd_pfn_release() 21 struct nd_pfn *nd_pfn = to_nd_pfn(dev); in nd_pfn_release() 23 dev_dbg(dev, "trace\n"); in nd_pfn_release() 24 nd_detach_ndns(&nd_pfn->dev, &nd_pfn->ndns); in nd_pfn_release() 25 ida_simple_remove(&nd_region->pfn_ida, nd_pfn->id); in nd_pfn_release() 26 kfree(nd_pfn->uuid); in nd_pfn_release() [all …]
|
H A D | label.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 7 #include <linux/uuid.h> 11 #include "nd-core.h" 47 return ndd->nslabel_size; in sizeof_namespace_label() 59 return (ndd->nsarea.config_size - index_size * 2) / in __nvdimm_num_label_slots() 67 tmp_nslot = ndd->nsarea.config_size / sizeof_namespace_label(ndd); in nvdimm_num_label_slots() 84 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd); in sizeof_namespace_index() 89 dev_err(ndd->dev, "label area (%d) too small to host (%d byte) labels\n", in sizeof_namespace_index() 90 ndd->nsarea.config_size, sizeof_namespace_label(ndd)); in sizeof_namespace_index() [all …]
|
/openbmc/linux/block/ |
H A D | early-lookup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 const char *uuid; member 15 * match_dev_by_uuid - callback for finding a partition using its uuid 16 * @dev: device passed in by the caller 21 static int __init match_dev_by_uuid(struct device *dev, const void *data) in match_dev_by_uuid() argument 23 struct block_device *bdev = dev_to_bdev(dev); in match_dev_by_uuid() 26 if (!bdev->bd_meta_info || in match_dev_by_uuid() 27 strncasecmp(cmp->uuid, bdev->bd_meta_info->uuid, cmp->len)) in match_dev_by_uuid() 33 * devt_from_partuuid - looks up the dev_t of a partition by its UUID 34 * @uuid_str: char array containing ascii UUID [all …]
|
/openbmc/qemu/hw/display/ |
H A D | virtio-dmabuf.c | 2 * Virtio Shared dma-buf 10 * See the COPYING file in the top-level directory. 15 #include "hw/virtio/virtio-dmabuf.h" 22 * uuid_equal_func: wrapper for UUID is_equal function to 30 static bool virtio_add_resource(QemuUUID *uuid, VirtioSharedObject *value) in virtio_add_resource() argument 41 if (g_hash_table_lookup(resource_uuids, uuid) == NULL) { in virtio_add_resource() 42 g_hash_table_insert(resource_uuids, uuid, value); in virtio_add_resource() 51 bool virtio_add_dmabuf(QemuUUID *uuid, int udmabuf_fd) in virtio_add_dmabuf() argument 59 vso->type = TYPE_DMABUF; in virtio_add_dmabuf() 60 vso->value = GINT_TO_POINTER(udmabuf_fd); in virtio_add_dmabuf() [all …]
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-sst-utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * skl-sst-utils.c - SKL sst utils functions 10 #include <linux/uuid.h> 11 #include "../common/sst-dsp.h" 12 #include "../common/sst-dsp-priv.h" 53 u8 uuid[16]; member 94 for (pvt_id = 0; pvt_id < module->max_instance; pvt_id++) { in skl_get_pvtid_map() 95 if (module->instance_id[pvt_id] == instance_id) in skl_get_pvtid_map() 98 return -EINVAL; in skl_get_pvtid_map() 106 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_instance_id_map() [all …]
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-dmabuf.h | 2 * Virtio Shared dma-buf 10 * See the COPYING file in the top-level directory. 16 #include "qemu/uuid.h" 31 * virtio_add_dmabuf() - Add a new dma-buf resource to the lookup table 32 * @uuid: new resource's UUID 33 * @dmabuf_fd: the dma-buf descriptor that will be stored and shared with 37 * Note: @dmabuf_fd must be a valid (non-negative) file descriptor. 39 * Return: true if the UUID did not exist and the resource has been added, 40 * false if another resource with the same UUID already existed. 41 * Note that if it finds a repeated UUID, the resource is not inserted in [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc4-loader.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 12 #include "ipc4-priv.h" 13 #include "sof-audio.h" 14 #include "sof-priv.h" 23 struct sof_ipc4_fw_data *ipc4_data = sdev->private; in sof_ipc4_fw_parse_ext_man() 24 const struct firmware *fw = fw_lib->sof_fw.fw; in sof_ipc4_fw_parse_ext_man() 35 dev_err(sdev->dev, "%s: ipc4_data is not available\n", __func__); in sof_ipc4_fw_parse_ext_man() 36 return -EINVAL; in sof_ipc4_fw_parse_ext_man() 39 remaining = fw->size; in sof_ipc4_fw_parse_ext_man() 41 dev_err(sdev->dev, "Firmware size is too small: %zu\n", remaining); in sof_ipc4_fw_parse_ext_man() [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | xdomain.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <linux/uuid.h> 44 [XDOMAIN_STATE_UUID] = "UUID", 79 /* UUID for XDomain discovery protocol: b638d70e-42ff-40bb-97c2-90e2c0b2ff07 */ 92 switch (pkg->frame.eof) { in tb_xdomain_match() 97 const struct tb_xdp_header *res_hdr = pkg->buffer; in tb_xdomain_match() 98 const struct tb_xdp_header *req_hdr = req->request; in tb_xdomain_match() 100 if (pkg->frame.size < req->response_size / 4) in tb_xdomain_match() 104 if ((res_hdr->xd_hdr.route_hi & ~BIT(31)) != in tb_xdomain_match() 105 req_hdr->xd_hdr.route_hi) in tb_xdomain_match() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | wm831x-otp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm831x-otp.c -- OTP for Wolfson WM831x PMICs 41 static ssize_t unique_id_show(struct device *dev, in unique_id_show() argument 44 struct wm831x *wm831x = dev_get_drvdata(dev); in unique_id_show() 59 char uuid[WM831X_UNIQUE_ID_LEN]; in wm831x_otp_init() local 62 ret = device_create_file(wm831x->dev, &dev_attr_unique_id); in wm831x_otp_init() 64 dev_err(wm831x->dev, "Unique ID attribute not created: %d\n", in wm831x_otp_init() 67 ret = wm831x_unique_id_read(wm831x, uuid); in wm831x_otp_init() 69 add_device_randomness(uuid, sizeof(uuid)); in wm831x_otp_init() 71 dev_err(wm831x->dev, "Failed to read UUID: %d\n", ret); in wm831x_otp_init() [all …]
|
/openbmc/u-boot/drivers/tee/ |
H A D | sandbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 * struct ta_entry - TA entries 19 * @uuid: UUID of an emulated TA 26 struct tee_optee_ta_uuid uuid; member 163 { .uuid = TA_AVB_UUID, 170 static void sandbox_tee_get_version(struct udevice *dev, in sandbox_tee_get_version() argument 180 static int sandbox_tee_close_session(struct udevice *dev, u32 session) in sandbox_tee_close_session() argument 182 struct sandbox_tee_state *state = dev_get_priv(dev); in sandbox_tee_close_session() 184 if (!state->ta || state->session != session) in sandbox_tee_close_session() 185 return -EINVAL; in sandbox_tee_close_session() [all …]
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.h | 8 * Marc-André Lureau <mlureau@redhat.com> 11 * later. See the COPYING file in the top-level directory. 23 #include "standard-headers/linux/virtio_ring.h" 25 /* Based on qemu/hw/virtio/vhost-user.c */ 36 * limit is sufficient to support many DIMMs and virtio-mem in 37 * "dynamic-memslots" mode. 75 #define VHOST_USER_PROTOCOL_FEATURE_MASK ((1 << VHOST_USER_PROTOCOL_F_MAX) - 1) 186 unsigned char uuid[UUID_LEN]; member 239 typedef uint64_t (*vu_get_features_cb) (VuDev *dev); 240 typedef void (*vu_set_features_cb) (VuDev *dev, uint64_t features); [all …]
|
/openbmc/linux/tools/power/acpi/tools/pfrut/ |
H A D | pfrut.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * /dev/pfr_update and /dev/pfr_telemetry. Write operation 9 * on the /dev/pfr_update is to load the EFI capsule into 10 * kernel space. Mmap/read operations on /dev/pfr_telemetry 24 #include <uuid/uuid.h> 65 " -l, --load\n" in help() 66 " -s, --stage\n" in help() 67 " -a, --activate\n" in help() 68 " -u, --update [stage and activate]\n" in help() 69 " -q, --query\n" in help() [all …]
|
/openbmc/u-boot/include/environment/ti/ |
H A D | boot.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 21 ",uuid=${uuid_gpt_vbmeta};" 31 "name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};" \ 32 "name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}\0" \ 36 "name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \ 37 "name=bootloader,size=2048K,uuid=${uuid_gpt_bootloader};" \ 38 "name=uboot-env,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \ 39 "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ 40 "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \ 41 "name=boot,size=10M,uuid=${uuid_gpt_boot};" \ [all …]
|
/openbmc/linux/drivers/vfio/mdev/ |
H A D | mdev_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 struct mdev_parent *parent = mdev->type->parent; in mdev_device_remove_common() 32 device_del(&mdev->dev); in mdev_device_remove_common() 33 lockdep_assert_held(&parent->unreg_sem); in mdev_device_remove_common() 35 put_device(&mdev->dev); in mdev_device_remove_common() 38 static int mdev_device_remove_cb(struct device *dev, void *data) in mdev_device_remove_cb() argument 40 if (dev->bus == &mdev_bus_type) in mdev_device_remove_cb() 41 mdev_device_remove_common(to_mdev_device(dev)); in mdev_device_remove_cb() 48 * @dev: device structure representing parent device. 54 * devices. The caller needs to hold a reference on @dev that must not be [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2004 - 2006 Red Hat, Inc. All rights reserved. 9 #include "dm-core.h" 10 #include "dm-ima.h" 19 #include <linux/dm-ioctl.h> 28 #define DM_DRIVER_EMAIL "dm-devel@redhat.com" 39 *--------------------------------------------------------------- 41 * name or uuid. 42 *--------------------------------------------------------------- 51 char *uuid; member [all …]
|
/openbmc/u-boot/cmd/ |
H A D | part.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * esd gmbh <www.esd-electronics.com> 9 * Reinhard Arlt <reinhard.arlt@esd-electronics.com> 13 * (C) Copyright 2003 - 2004 14 * Sysgo Real-Time Solutions, AG <www.elinos.com> 45 env_set(argv[2], info.uuid); in do_part_uuid() 47 printf("%s\n", info.uuid); in do_part_uuid() 65 if (argv[i][0] == '-') { in do_part_list() 66 if (!strcmp(argv[i], "-bootable")) { in do_part_list() 141 if (part == -1) in do_part_info() [all …]
|
/openbmc/linux/drivers/misc/mei/ |
H A D | client.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2003-2018, Intel Corporation. All rights reserved. 23 void mei_me_cl_add(struct mei_device *dev, struct mei_me_client *me_cl); 24 void mei_me_cl_del(struct mei_device *dev, struct mei_me_client *me_cl); 26 struct mei_me_client *mei_me_cl_by_uuid(struct mei_device *dev, 27 const uuid_le *uuid); 28 struct mei_me_client *mei_me_cl_by_id(struct mei_device *dev, u8 client_id); 29 struct mei_me_client *mei_me_cl_by_uuid_id(struct mei_device *dev, 30 const uuid_le *uuid, u8 client_id); 31 void mei_me_cl_rm_by_uuid(struct mei_device *dev, const uuid_le *uuid); [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | trats.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 12 #include <configs/exynos4-common.h> 42 - GENERATED_GBL_DATA_SIZE) 53 #define CONFIG_ENV_OFFSET ((32 - 4) << 10) /* 32KiB - 4KiB */ 57 /* Tizen - partitions definitions */ 58 #define PARTS_CSA "csa-mmc" 68 "name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \ 69 "name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \ 70 "name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \ 71 "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \ [all …]
|
/openbmc/linux/tools/testing/selftests/pstore/ |
H A D | pstore_tests | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # pstore_tests - Check pstore's behavior before crash/reboot 12 prlog -n "Checking pstore console is registered ... " 13 dmesg | grep -Eq "console \[(pstore|${backend})" 16 prlog -n "Checking /dev/pmsg0 exists ... " 17 test -e /dev/pmsg0 20 prlog -n "Writing unique string to /dev/pmsg0 ... " 21 if [ -e "/dev/pmsg0" ]; then 22 echo "${TEST_STRING_PATTERN}""$UUID" > /dev/pmsg0 24 echo "$UUID" > $TOP_DIR/uuid
|
/openbmc/linux/include/linux/ |
H A D | thunderbolt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 #include <linux/uuid.h> 40 * enum tb_security_level - Thunderbolt security level 61 * struct tb - main thunderbolt bus structure 62 * @dev: Domain device 76 struct device dev; member 97 return (link - 1) / TB_LINKS_PER_PHY_PORT; in tb_phy_port_from_link() 101 * struct tb_property_dir - XDomain property directory 102 * @uuid: Directory UUID or %NULL if root directory 108 const uuid_t *uuid; member [all …]
|