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