Lines Matching refs:rev

69 	struct scmi_revision_info *rev = ph->get_priv(ph);  in scmi_base_attributes_get()  local
79 rev->num_protocols = attr_info->num_protocols; in scmi_base_attributes_get()
80 rev->num_agents = attr_info->num_agents; in scmi_base_attributes_get()
103 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_vendor_id_get() local
108 vendor_id = rev->sub_vendor_id; in scmi_base_vendor_id_get()
109 size = ARRAY_SIZE(rev->sub_vendor_id); in scmi_base_vendor_id_get()
112 vendor_id = rev->vendor_id; in scmi_base_vendor_id_get()
113 size = ARRAY_SIZE(rev->vendor_id); in scmi_base_vendor_id_get()
144 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_implementation_version_get() local
154 rev->impl_ver = le32_to_cpu(*impl_ver); in scmi_base_implementation_version_get()
181 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_implementation_list_get() local
207 if (loop_num_ret > rev->num_protocols - tot_num_ret) { in scmi_base_implementation_list_get()
243 } while (tot_num_ret < rev->num_protocols); in scmi_base_implementation_list_get()
380 struct scmi_revision_info *rev = scmi_revision_area_get(ph); in scmi_base_protocol_init() local
386 rev->major_ver = PROTOCOL_REV_MAJOR(version), in scmi_base_protocol_init()
387 rev->minor_ver = PROTOCOL_REV_MINOR(version); in scmi_base_protocol_init()
388 ph->set_priv(ph, rev); in scmi_base_protocol_init()
394 prot_imp = devm_kcalloc(dev, rev->num_protocols, sizeof(u8), in scmi_base_protocol_init()
407 rev->major_ver, rev->minor_ver, rev->vendor_id, in scmi_base_protocol_init()
408 rev->sub_vendor_id, rev->impl_ver); in scmi_base_protocol_init()
409 dev_dbg(dev, "Found %d protocol(s) %d agent(s)\n", rev->num_protocols, in scmi_base_protocol_init()
410 rev->num_agents); in scmi_base_protocol_init()
412 for (id = 0; id < rev->num_agents; id++) { in scmi_base_protocol_init()