Home
last modified time | relevance | path

Searched +full:instance +full:- +full:id (Results 1 – 25 of 1060) sorted by relevance

12345678910>>...43

/openbmc/phosphor-host-ipmid/test/
H A Dentitymap_json_unittest.cpp24 "id" : 1, in TEST()
30 {"id" : 1, "instance" : 2}, in TEST()
31 {"id" : 1, "instance" : 3}, in TEST()
32 {"id" : 1, "instance" : 4}, in TEST()
33 {"id" : 1, "instance" : 5} in TEST()
49 "id" : 1, in TEST()
54 {"id" : 1, "instance" : 2}, in TEST()
55 {"id" : 1, "instance" : 3}, in TEST()
56 {"id" : 1, "instance" : 4}, in TEST()
57 {"id" : 1, "instance" : 5} in TEST()
[all …]
/openbmc/libpldm/include/libpldm/
H A Dinstance-id.h1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
18 * @brief Instantiates an instance ID database object for a given database path
20 * @param[out] ctx - *ctx must be NULL, and will point to a PLDM instance ID
22 * @param[in] dbpath - the path to the instance ID database file to use
24 * @return int - Returns 0 on success. Returns -EINVAL if ctx is NULL or *ctx
25 * is not NULL. Returns -ENOMEM if memory couldn't be allocated.
31 * @brief Instantiates an instance ID database object for the default database
34 * @param[out] ctx - *ctx will point to a PLDM instance ID database object on
37 * @return int - Returns 0 on success. Returns -EINVAL if ctx is NULL or *ctx
38 * is not NULL. Returns -ENOMEM if memory couldn't be allocated.
[all …]
/openbmc/pldm/common/
H A Dinstance_id.hpp3 #include <libpldm/instance-id.h>
15 * @brief Implementation of PLDM instance id as per DSP0240 v1.0.0
31 * @param[in] path - instance ID database path
45 * Abandon error-reporting. We shouldn't throw an exception from the in ~InstanceIdDb()
54 /** @brief Allocate an instance ID for the given terminus
55 * @param[in] tid - the terminus ID the instance ID is associated with
56 * @return - PLDM instance id or -EAGAIN if there are no available instance
61 uint8_t id; in next() local
62 int rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &id); in next()
64 if (rc == -EAGAIN) in next()
[all …]
/openbmc/phosphor-host-ipmid/scripts/
H A Dentity-example.md1 # Entity-example
9 "id": 1,
15 { "id": 1, "instance": 2 },
16 { "id": 1, "instance": 3 },
17 { "id": 1, "instance": 4 },
18 { "id": 1, "instance": 5 }
24 as part of your `phosphor-ipmi-config`
30 # Container Entity Id and Container Entity Instance = (0x13, 0x81)
31 # Contained Entity Id and Contained Entity Instance = (0x0A, 0x1),
33 # Entity Record id is the key
[all …]
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/
H A Dpldm_utils.hpp1 // SPDX-License-Identifier: Apache-2.0
5 #include <libpldm/instance-id.h>
30 * @brief Instantiates an instance ID database object
37 * @brief Destroys an instance ID database object
47 * @param[in] eid - MCTP endpoint ID
56 * @param[in] eid - MCTP endpoint ID
64 * @brief Returns the PLDM instance ID to use for PLDM commands
66 * @param[in] tid - the terminus ID the instance ID is associated with
68 * @return pldm_instance_id_t - The instance ID
73 * @brief Free the PLDM instance ID
[all …]
/openbmc/openpower-occ-control/
H A Dpldm.cpp3 #include "libpldm/instance-id.h"
12 #include <libpldm/transport/af-mctp.h>
13 #include <libpldm/transport/mctp-demux.h>
16 #include <phosphor-logging/lg2.hpp>
60 "fetchSensorInfo: Failed to find stateSetID:{ID} PDR: {ERR}", in fetchSensorInfo()
61 "ID", stateSetId, "ERR", e.what()); in fetchSensorInfo()
70 lg2::error("fetchSensorInfo: state sensor PDRs ({ID}) not present", in fetchSensorInfo()
71 "ID", stateSetId); in fetchSensorInfo()
87 auto possibleStatesPtr = stateSensorPDR->possible_states; in fetchSensorInfo()
88 for (auto offset = 0; offset < stateSensorPDR->composite_sensor_count; in fetchSensorInfo()
[all …]
H A Dpldm.hpp7 #include <libpldm/instance-id.h>
10 #include <libpldm/transport/af-mctp.h>
11 #include <libpldm/transport/mctp-demux.h>
43 /** @brief OCC instance starts with 0 for example "occ0" */
68 * @param[in] occActiveCallBack - callBack handler to invoke when the OCC
70 * @param[in] sbeCallBack - callBack handler to invoke when the SBE
72 * @param[in] safeModeCallBack - callBack handler to invoke when the
74 * @param[in] poweredOffCallBack - callBack handler to invoke when the
122 * sensorId to OCC/SBE instance mapping information and the sensor
125 * @param[in] stateSetId - the state set ID to look for
[all …]
H A Docc_manager.hpp77 /** @brief Adds OCC pass-through and status objects on the bus
80 * @param[in] event - Unique ptr reference to sd_event
136 * @param[in] instance - the OCC instance id
138 void sbeTimeout(unsigned int instance);
143 * @param[out] ambientValid - true if ambientTemp is valid
144 * @param[out] ambient - ambient temperature in degrees C
145 * @param[out] altitude - altitude in meters
155 * @param[in] id - Id of the OCC.
157 void setSensorValueToNaN(uint32_t id) const;
161 * @param[in] id - Id of the OCC.
[all …]
H A Docc_manager.cpp10 #include <phosphor-logging/elog-errors.hpp>
11 #include <phosphor-logging/lg2.hpp>
31 const auto HOST_ON_FILE = "/run/openbmc/host@0-on";
77 // - create the PowerMode object to control OCC modes
78 // - create statusObjects for each OCC device found
79 // - waits for OCC Active sensors PDRs to become available
80 // - restart discoverTimer if all data is not available yet
84 for (auto id = 0; id < MAX_CPUS; ++id) in findAndCreateObjects() local
87 auto occ = std::string(OCC_NAME) + std::to_string(id); in findAndCreateObjects()
118 discoverTimer->restartOnce(10s); in findAndCreateObjects()
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dpldm_interface.hpp5 #include <libpldm/instance-id.h>
8 #include <libpldm/transport/mctp-demux.h>
24 * command to the host to notify it of a new PEL's ID and size.
40 * @param[in] event - The sd_event object pointer
41 * @param[in] dataIface - The DataInterface object
61 * to send up the ID and size of the new PEL.
63 * It starts by issuing the async D-Bus method call to read the
64 * instance ID.
66 * @param[in] id - The PEL ID
67 * @param[in] size - The PEL size in bytes
[all …]
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dvenc_ipi_msg.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 * enum venc_ipi_msg_id - message id between AP and VPU
17 * (ipi stands for inter-processor interrupt)
18 * @AP_IPIMSG_ENC_XXX: AP to VPU cmd message id
19 * @VPU_IPIMSG_ENC_XXX_DONE: VPU ack AP cmd message id
34 * struct venc_ap_ipi_msg_init - AP to VPU init cmd structure
35 * @msg_id: message id (AP_IPIMSG_XXX_ENC_INIT)
39 * @venc_inst: AP encoder instance
49 * struct venc_ap_ipi_msg_set_param - AP to VPU set_param cmd structure
50 * @msg_id: message id (AP_IPIMSG_XXX_ENC_SET_PARAM)
[all …]
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dvdec_ipi_msg.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * enum vdec_ipi_msgid - message id between AP and VPU
12 * @AP_IPIMSG_XXX : AP to VPU cmd message id
13 * @VPU_IPIMSG_XXX_ACK : VPU ack AP cmd message id
36 * struct vdec_ap_ipi_cmd - generic AP to VPU ipi command format
38 * @vpu_inst_addr : VPU decoder instance address. Used if ABI version < 2.
39 * @inst_id : instance ID. Used if the ABI version >= 2.
54 * struct vdec_vpu_ipi_ack - generic VPU to AP ipi command format
57 * @ap_inst_addr : AP video decoder instance address
66 * struct vdec_ap_ipi_init - for AP_IPIMSG_DEC_INIT
[all …]
H A Dvdec_vpu_if.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 * struct vdec_vpu_inst - VPU instance for video codec
14 * @id : ipi msg id for each decoder
15 * @core_id : core id used to separate different hardware
19 * @inst_addr : VPU decoder instance address
21 * @inst_id : if fw_abi_version >= 2, contains the instance ID to be given
23 * @signaled : 1 - Host has received ack message from VPU, 0 - not received
33 int id; member
50 * vpu_dec_init - init decoder instance and allocate required resource in VPU.
52 * @vpu: instance for vdec_vpu_inst
[all …]
/openbmc/linux/include/linux/
H A Dhid-sensor-hub.h1 /* SPDX-License-Identifier: GPL-2.0-only */
10 #include <linux/hid-sensor-ids.h>
15 * struct hid_sensor_hub_attribute_info - Attribute info
16 * @usage_id: Parent usage id of a physical device.
17 * @attrib_id: Attribute id for this attribute.
18 * @report_id: Report id in which this information resides.
39 * struct sensor_hub_pending - Synchronous read pending information
42 * @usage_id: Usage id for physical device, E.g. Gyro usage id.
43 * @attr_usage_id: Usage Id of a field, E.g. X-AXIS for a gyro.
57 * struct hid_sensor_hub_device - Stores the hub instance data
[all …]
H A Dpowercap.h1 /* SPDX-License-Identifier: GPL-2.0-only */
24 * struct powercap_control_type_ops - Define control type callbacks
47 * struct powercap_control_type - Defines a powercap control_type
49 * @idr: idr to have unique id for its child
58 * @node: linked-list node
61 * zones, which use same method to control power. E.g. RAPL, RAPL-PCI etc.
75 * struct powercap_zone_ops - Define power zone callbacks
77 * micro-joules.
78 * @get_energy_uj: Get current energy counter in micro-joules.
79 * @reset_energy_uj: Reset micro-joules energy counter.
[all …]
/openbmc/pldm/requester/
H A DREADME.md6 - Register a PLDM request and the response handler to be invoked on receiving
8 - The handling of the request and response is asynchronous. This means the PLDM
10 - Multiple outstanding requests are supported.
11 - Request retries based on the time-out waiting for a response.
12 - Instance ID expiration and marking the instance ID free after expiration.
16 - A mechanism to queue multiple outstanding requests to the same responder.
17 - Handle ERROR_NOT_READY completion code and retry the PLDM request after 250ms
21 request. The destination endpoint ID, instance ID, PLDM type, PLDM command code,
37 - If the response is received before instance ID expiration:
38 - If the response matches with an outstanding request then the response
[all …]
H A Dhandler.hpp11 #include <phosphor-logging/lg2.hpp>
36 * response and a combination of MCTP endpoint ID, PLDM instance ID, PLDM type
41 mctp_eid_t eid; //!< MCTP endpoint ID
42 uint8_t instanceId; //!< PLDM instance ID
55 * This is a simple hash function, since the instance ID generator API
56 * generates unique instance IDs for MCTP endpoint ID.
87 RequestKey key; //!< Responder MCTP endpoint ID
99 mctp_eid_t eid; //!< Responder MCTP endpoint ID
112 * instance ID expiration interval, number of request retries and the timeout
115 * received within the instance ID expiration interval or any other failure the
[all …]
/openbmc/linux/drivers/staging/vc04_services/bcm2835-camera/
H A Dcontrols.c1 // SPDX-License-Identifier: GPL-2.0
18 #include <media/videobuf2-vmalloc.h>
19 #include <media/v4l2-device.h>
20 #include <media/v4l2-ioctl.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-fh.h>
23 #include <media/v4l2-event.h>
24 #include <media/v4l2-common.h>
26 #include "../vchiq-mmal/mmal-common.h"
27 #include "../vchiq-mmal/mmal-vchiq.h"
[all …]
/openbmc/openpower-hw-diags/util/
H A Dpldm.cpp7 #include <libpldm/transport/af-mctp.h>
8 #include <libpldm/transport/mctp-demux.h>
26 static PLDMInstanceManager instance; in getInstance() local
27 return instance; in getInstance()
36 * @param[in] eid - MCTP endpoint ID
44 * @param[in] eid - MCTP endpoint ID
56 * @param[in] eid - MCTP endpoint ID
75 // Private member for the instance database
78 /** pldm transport instance */
81 // type of transport implementation instance
[all …]
/openbmc/linux/drivers/scsi/elx/efct/
H A Defct_hw_queues.c1 // SPDX-License-Identifier: GPL-2.0
24 hw->eq_count = 0; in efct_hw_init_queues()
25 hw->cq_count = 0; in efct_hw_init_queues()
26 hw->mq_count = 0; in efct_hw_init_queues()
27 hw->wq_count = 0; in efct_hw_init_queues()
28 hw->rq_count = 0; in efct_hw_init_queues()
29 hw->hw_rq_count = 0; in efct_hw_init_queues()
30 INIT_LIST_HEAD(&hw->eq_list); in efct_hw_init_queues()
32 for (i = 0; i < hw->config.n_eq; i++) { in efct_hw_init_queues()
37 return -ENOMEM; in efct_hw_init_queues()
[all …]
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_imem_ops.h1 /* SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
37 * ipc_imem_sys_port_open - Open a port link to CP.
38 * @ipc_imem: Imem instance.
42 * Return: channel instance on success, NULL for failure
50 * ipc_imem_sys_cdev_write - Route the uplink buffer to CP.
51 * @ipc_cdev: iosm_cdev instance.
59 * ipc_imem_sys_wwan_open - Open packet data online channel between network
61 * @ipc_imem: Imem instance.
64 * Return: Channel ID on success and failure value on error
[all …]
/openbmc/u-boot/include/
H A Dboard.h1 /* SPDX-License-Identifier: GPL-2.0+ */
9 * board or a specific device such as hard-wired GPIOs on GPIO expanders,
10 * read-only data in flash ICs, or similar.
14 * numeric ID (which will usually be defined as a enum in a header file).
16 * If for example the board had a read-only serial number flash IC, we could
36 * detect() - Run the hardware info detection procedure for this
45 * Return: 0 if OK, -ve on error.
50 * get_bool() - Read a specific bool data value that describes the
52 * @dev: The board instance to gather the data.
53 * @id: A unique identifier for the bool value to be read.
[all …]
/openbmc/linux/sound/core/
H A Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-or-later
58 err = -ENODEV; in snd_ctl_open()
63 err = -ENODEV; in snd_ctl_open()
66 if (!try_module_get(card->module)) { in snd_ctl_open()
67 err = -EFAULT; in snd_ctl_open()
72 err = -ENOMEM; in snd_ctl_open()
75 INIT_LIST_HEAD(&ctl->events); in snd_ctl_open()
76 init_waitqueue_head(&ctl->change_sleep); in snd_ctl_open()
77 spin_lock_init(&ctl->read_lock); in snd_ctl_open()
78 ctl->card = card; in snd_ctl_open()
[all …]
/openbmc/linux/Documentation/driver-api/surface_aggregator/
H A Dclient.rst1 .. SPDX-License-Identifier: GPL-2.0+
35 client-api
45 are non-discoverable and instead need to be explicitly provided by some
49 Non-SSAM Client Drivers
53 representing that EC to the kernel. Drivers targeting a non-SSAM device (and
67 .. code-block:: c
73 ctrl = ssam_client_bind(&pdev->dev);
75 return PTR_ERR(ctrl) == -ENODEV ? -EPROBE_DEFER : PTR_ERR(ctrl);
103 setup provided through the parent-child relation, are preserved. If
104 necessary, by use of |ssam_client_link| as is done for non-SSAM client
[all …]
/openbmc/linux/drivers/media/platform/amphion/
H A Dvpu_rpc.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright 2020-2021 NXP
9 #include <media/videobuf2-core.h>
33 u32 id; member
66 int (*pack_cmd)(struct vpu_rpc_event *pkt, u32 index, u32 id, void *data);
72 u32 instance,
77 u32 instance,
80 u32 instance, u32 ptr, bool write);
82 u32 instance,
85 u32 instance,
[all …]

12345678910>>...43