Lines Matching +full:rs +full:-
1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/platform_data/wilco-ec.h>
36 struct ec_property_response *rs) in send_property_msg() argument
45 ec_msg.response_data = rs; in send_property_msg()
46 ec_msg.response_size = sizeof(*rs); in send_property_msg()
51 if (rs->op != rq->op) in send_property_msg()
52 return -EBADMSG; in send_property_msg()
53 if (memcmp(rq->property_id, rs->property_id, sizeof(rs->property_id))) in send_property_msg()
54 return -EBADMSG; in send_property_msg()
63 struct ec_property_response rs; in wilco_ec_get_property() local
68 put_unaligned_le32(prop_msg->property_id, rq.property_id); in wilco_ec_get_property()
70 ret = send_property_msg(ec, &rq, &rs); in wilco_ec_get_property()
74 prop_msg->length = rs.length; in wilco_ec_get_property()
75 memcpy(prop_msg->data, rs.data, rs.length); in wilco_ec_get_property()
85 struct ec_property_response rs; in wilco_ec_set_property() local
90 put_unaligned_le32(prop_msg->property_id, rq.property_id); in wilco_ec_set_property()
91 rq.length = prop_msg->length; in wilco_ec_set_property()
92 memcpy(rq.data, prop_msg->data, prop_msg->length); in wilco_ec_set_property()
94 ret = send_property_msg(ec, &rq, &rs); in wilco_ec_set_property()
97 if (rs.length != prop_msg->length) in wilco_ec_set_property()
98 return -EBADMSG; in wilco_ec_set_property()
116 return -EBADMSG; in wilco_ec_get_byte_property()