Lines Matching full:handle
29 * @handle: SCMI entity handle
33 static int scmi_base_attributes_get(const struct scmi_handle *handle) in scmi_base_attributes_get() argument
38 struct scmi_revision_info *rev = handle->version; in scmi_base_attributes_get()
40 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_base_attributes_get()
45 ret = scmi_do_xfer(handle, t); in scmi_base_attributes_get()
52 scmi_xfer_put(handle, t); in scmi_base_attributes_get()
60 * @handle: SCMI entity handle
66 scmi_base_vendor_id_get(const struct scmi_handle *handle, bool sub_vendor) in scmi_base_vendor_id_get() argument
72 struct scmi_revision_info *rev = handle->version; in scmi_base_vendor_id_get()
84 ret = scmi_xfer_get_init(handle, cmd, SCMI_PROTOCOL_BASE, 0, size, &t); in scmi_base_vendor_id_get()
88 ret = scmi_do_xfer(handle, t); in scmi_base_vendor_id_get()
92 scmi_xfer_put(handle, t); in scmi_base_vendor_id_get()
102 * @handle: SCMI entity handle
107 scmi_base_implementation_version_get(const struct scmi_handle *handle) in scmi_base_implementation_version_get() argument
112 struct scmi_revision_info *rev = handle->version; in scmi_base_implementation_version_get()
114 ret = scmi_xfer_get_init(handle, BASE_DISCOVER_IMPLEMENT_VERSION, in scmi_base_implementation_version_get()
119 ret = scmi_do_xfer(handle, t); in scmi_base_implementation_version_get()
125 scmi_xfer_put(handle, t); in scmi_base_implementation_version_get()
134 * @handle: SCMI entity handle
139 static int scmi_base_implementation_list_get(const struct scmi_handle *handle, in scmi_base_implementation_list_get() argument
147 struct device *dev = handle->dev; in scmi_base_implementation_list_get()
149 ret = scmi_xfer_get_init(handle, BASE_DISCOVER_LIST_PROTOCOLS, in scmi_base_implementation_list_get()
162 ret = scmi_do_xfer(handle, t); in scmi_base_implementation_list_get()
178 scmi_xfer_put(handle, t); in scmi_base_implementation_list_get()
186 * @handle: SCMI entity handle
195 static int scmi_base_discover_agent_get(const struct scmi_handle *handle, in scmi_base_discover_agent_get() argument
201 ret = scmi_xfer_get_init(handle, BASE_DISCOVER_AGENT, in scmi_base_discover_agent_get()
209 ret = scmi_do_xfer(handle, t); in scmi_base_discover_agent_get()
213 scmi_xfer_put(handle, t); in scmi_base_discover_agent_get()
224 const struct scmi_handle *handle = h; in scmi_base_protocol_init() local
225 struct device *dev = handle->dev; in scmi_base_protocol_init()
226 struct scmi_revision_info *rev = handle->version; in scmi_base_protocol_init()
228 ret = scmi_version_get(handle, SCMI_PROTOCOL_BASE, &version); in scmi_base_protocol_init()
239 scmi_base_attributes_get(handle); in scmi_base_protocol_init()
240 scmi_base_vendor_id_get(handle, false); in scmi_base_protocol_init()
241 scmi_base_vendor_id_get(handle, true); in scmi_base_protocol_init()
242 scmi_base_implementation_version_get(handle); in scmi_base_protocol_init()
243 scmi_base_implementation_list_get(handle, prot_imp); in scmi_base_protocol_init()
244 scmi_setup_protocol_implemented(handle, prot_imp); in scmi_base_protocol_init()
253 scmi_base_discover_agent_get(handle, id, name); in scmi_base_protocol_init()