Lines Matching refs:message

171 	struct hidpp_report *message,  in hidpp_send_message_sync()  argument
185 *response = *message; in hidpp_send_message_sync()
187 ret = __hidpp_send_report(hidpp->hid_dev, message); in hidpp_send_message_sync()
226 struct hidpp_report *message; in hidpp_send_fap_command_sync() local
229 if (param_count > sizeof(message->fap.params)) in hidpp_send_fap_command_sync()
232 message = kzalloc(sizeof(struct hidpp_report), GFP_KERNEL); in hidpp_send_fap_command_sync()
233 if (!message) in hidpp_send_fap_command_sync()
235 message->report_id = REPORT_ID_HIDPP_LONG; in hidpp_send_fap_command_sync()
236 message->fap.feature_index = feat_index; in hidpp_send_fap_command_sync()
237 message->fap.funcindex_clientid = funcindex_clientid; in hidpp_send_fap_command_sync()
238 memcpy(&message->fap.params, params, param_count); in hidpp_send_fap_command_sync()
240 ret = hidpp_send_message_sync(hidpp, message, response); in hidpp_send_fap_command_sync()
241 kfree(message); in hidpp_send_fap_command_sync()
249 struct hidpp_report *message; in hidpp_send_rap_command_sync() local
256 if (param_count > sizeof(message->rap.params)) in hidpp_send_rap_command_sync()
259 message = kzalloc(sizeof(struct hidpp_report), GFP_KERNEL); in hidpp_send_rap_command_sync()
260 if (!message) in hidpp_send_rap_command_sync()
262 message->report_id = report_id; in hidpp_send_rap_command_sync()
263 message->rap.sub_id = sub_id; in hidpp_send_rap_command_sync()
264 message->rap.reg_address = reg_address; in hidpp_send_rap_command_sync()
265 memcpy(&message->rap.params, params, param_count); in hidpp_send_rap_command_sync()
267 ret = hidpp_send_message_sync(hidpp_dev, message, response); in hidpp_send_rap_command_sync()
268 kfree(message); in hidpp_send_rap_command_sync()