Lines Matching refs:rq
35 struct ec_property_request *rq,
43 ec_msg.request_data = rq;
44 ec_msg.request_size = sizeof(*rq);
51 if (rs->op != rq->op)
53 if (memcmp(rq->property_id, rs->property_id, sizeof(rs->property_id)))
62 struct ec_property_request rq;
66 memset(&rq, 0, sizeof(rq));
67 rq.op = EC_OP_GET;
68 put_unaligned_le32(prop_msg->property_id, rq.property_id);
70 ret = send_property_msg(ec, &rq, &rs);
84 struct ec_property_request rq;
88 memset(&rq, 0, sizeof(rq));
89 rq.op = EC_OP_SET;
90 put_unaligned_le32(prop_msg->property_id, rq.property_id);
91 rq.length = prop_msg->length;
92 memcpy(rq.data, prop_msg->data, prop_msg->length);
94 ret = send_property_msg(ec, &rq, &rs);