Lines Matching full:handle
67 static int scmi_reset_attributes_get(const struct scmi_handle *handle, in scmi_reset_attributes_get() argument
74 ret = scmi_xfer_get_init(handle, PROTOCOL_ATTRIBUTES, in scmi_reset_attributes_get()
79 ret = scmi_do_xfer(handle, t); in scmi_reset_attributes_get()
85 scmi_xfer_put(handle, t); in scmi_reset_attributes_get()
90 scmi_reset_domain_attributes_get(const struct scmi_handle *handle, u32 domain, in scmi_reset_domain_attributes_get() argument
97 ret = scmi_xfer_get_init(handle, RESET_DOMAIN_ATTRIBUTES, in scmi_reset_domain_attributes_get()
106 ret = scmi_do_xfer(handle, t); in scmi_reset_domain_attributes_get()
118 scmi_xfer_put(handle, t); in scmi_reset_domain_attributes_get()
122 static int scmi_reset_num_domains_get(const struct scmi_handle *handle) in scmi_reset_num_domains_get() argument
124 struct scmi_reset_info *pi = handle->reset_priv; in scmi_reset_num_domains_get()
129 static char *scmi_reset_name_get(const struct scmi_handle *handle, u32 domain) in scmi_reset_name_get() argument
131 struct scmi_reset_info *pi = handle->reset_priv; in scmi_reset_name_get()
137 static int scmi_reset_latency_get(const struct scmi_handle *handle, u32 domain) in scmi_reset_latency_get() argument
139 struct scmi_reset_info *pi = handle->reset_priv; in scmi_reset_latency_get()
145 static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain, in scmi_domain_reset() argument
151 struct scmi_reset_info *pi = handle->reset_priv; in scmi_domain_reset()
157 ret = scmi_xfer_get_init(handle, RESET, SCMI_PROTOCOL_RESET, in scmi_domain_reset()
168 ret = scmi_do_xfer_with_response(handle, t); in scmi_domain_reset()
170 ret = scmi_do_xfer(handle, t); in scmi_domain_reset()
172 scmi_xfer_put(handle, t); in scmi_domain_reset()
176 static int scmi_reset_domain_reset(const struct scmi_handle *handle, u32 domain) in scmi_reset_domain_reset() argument
178 return scmi_domain_reset(handle, domain, AUTONOMOUS_RESET, in scmi_reset_domain_reset()
183 scmi_reset_domain_assert(const struct scmi_handle *handle, u32 domain) in scmi_reset_domain_assert() argument
185 return scmi_domain_reset(handle, domain, EXPLICIT_RESET_ASSERT, in scmi_reset_domain_assert()
190 scmi_reset_domain_deassert(const struct scmi_handle *handle, u32 domain) in scmi_reset_domain_deassert() argument
192 return scmi_domain_reset(handle, domain, 0, ARCH_COLD_RESET); in scmi_reset_domain_deassert()
204 static int scmi_reset_notify(const struct scmi_handle *handle, u32 domain_id, in scmi_reset_notify() argument
212 ret = scmi_xfer_get_init(handle, RESET_NOTIFY, in scmi_reset_notify()
221 ret = scmi_do_xfer(handle, t); in scmi_reset_notify()
223 scmi_xfer_put(handle, t); in scmi_reset_notify()
227 static int scmi_reset_set_notify_enabled(const struct scmi_handle *handle, in scmi_reset_set_notify_enabled() argument
232 ret = scmi_reset_notify(handle, src_id, enable); in scmi_reset_set_notify_enabled()
240 static void *scmi_reset_fill_custom_report(const struct scmi_handle *handle, in scmi_reset_fill_custom_report() argument
273 static int scmi_reset_protocol_init(struct scmi_handle *handle) in scmi_reset_protocol_init() argument
279 scmi_version_get(handle, SCMI_PROTOCOL_RESET, &version); in scmi_reset_protocol_init()
281 dev_dbg(handle->dev, "Reset Version %d.%d\n", in scmi_reset_protocol_init()
284 pinfo = devm_kzalloc(handle->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_reset_protocol_init()
288 scmi_reset_attributes_get(handle, pinfo); in scmi_reset_protocol_init()
290 pinfo->dom_info = devm_kcalloc(handle->dev, pinfo->num_domains, in scmi_reset_protocol_init()
298 scmi_reset_domain_attributes_get(handle, domain, dom); in scmi_reset_protocol_init()
301 scmi_register_protocol_events(handle, in scmi_reset_protocol_init()
308 handle->reset_ops = &reset_ops; in scmi_reset_protocol_init()
309 handle->reset_priv = pinfo; in scmi_reset_protocol_init()