Lines Matching refs:handle
53 * @handle: SCMI entity handle
57 static int scmi_base_attributes_get(const struct scmi_handle *handle)
62 struct scmi_revision_info *rev = handle->version;
64 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES,
69 ret = scmi_do_xfer(handle, t);
76 scmi_xfer_put(handle, t);
84 * @handle: SCMI entity handle
90 scmi_base_vendor_id_get(const struct scmi_handle *handle, bool sub_vendor)
96 struct scmi_revision_info *rev = handle->version;
108 ret = scmi_xfer_get_init(handle, cmd, SCMI_PROTOCOL_BASE, 0, size, &t);
112 ret = scmi_do_xfer(handle, t);
116 scmi_xfer_put(handle, t);
126 * @handle: SCMI entity handle
131 scmi_base_implementation_version_get(const struct scmi_handle *handle)
136 struct scmi_revision_info *rev = handle->version;
138 ret = scmi_xfer_get_init(handle, BASE_DISCOVER_IMPLEMENT_VERSION,
143 ret = scmi_do_xfer(handle, t);
149 scmi_xfer_put(handle, t);
158 * @handle: SCMI entity handle
163 static int scmi_base_implementation_list_get(const struct scmi_handle *handle,
171 struct device *dev = handle->dev;
173 ret = scmi_xfer_get_init(handle, BASE_DISCOVER_LIST_PROTOCOLS,
186 ret = scmi_do_xfer(handle, t);
201 scmi_reset_rx_to_maxsz(handle, t);
204 scmi_xfer_put(handle, t);
212 * @handle: SCMI entity handle
221 static int scmi_base_discover_agent_get(const struct scmi_handle *handle,
227 ret = scmi_xfer_get_init(handle, BASE_DISCOVER_AGENT,
235 ret = scmi_do_xfer(handle, t);
239 scmi_xfer_put(handle, t);
244 static int scmi_base_error_notify(const struct scmi_handle *handle, bool enable)
251 ret = scmi_xfer_get_init(handle, BASE_NOTIFY_ERRORS,
259 ret = scmi_do_xfer(handle, t);
261 scmi_xfer_put(handle, t);
265 static int scmi_base_set_notify_enabled(const struct scmi_handle *handle,
270 ret = scmi_base_error_notify(handle, enable);
277 static void *scmi_base_fill_custom_report(const struct scmi_handle *handle,
327 const struct scmi_handle *handle = h;
328 struct device *dev = handle->dev;
329 struct scmi_revision_info *rev = handle->version;
331 ret = scmi_version_get(handle, SCMI_PROTOCOL_BASE, &version);
342 scmi_base_attributes_get(handle);
343 scmi_base_vendor_id_get(handle, false);
344 scmi_base_vendor_id_get(handle, true);
345 scmi_base_implementation_version_get(handle);
346 scmi_base_implementation_list_get(handle, prot_imp);
347 scmi_setup_protocol_implemented(handle, prot_imp);
355 scmi_register_protocol_events(handle, SCMI_PROTOCOL_BASE,
362 scmi_base_discover_agent_get(handle, id, name);