Lines Matching refs:message

215 static int gb_message_send(struct gb_message *message, gfp_t gfp)  in gb_message_send()  argument
217 struct gb_connection *connection = message->operation->connection; in gb_message_send()
219 trace_gb_message_send(message); in gb_message_send()
222 message, in gb_message_send()
229 static void gb_message_cancel(struct gb_message *message) in gb_message_cancel() argument
231 struct gb_host_device *hd = message->operation->connection->hd; in gb_message_cancel()
233 hd->driver->message_cancel(message); in gb_message_cancel()
310 struct gb_message *message, in gb_operation_message_init() argument
316 header = message->buffer; in gb_operation_message_init()
318 message->header = header; in gb_operation_message_init()
319 message->payload = payload_size ? header + 1 : NULL; in gb_operation_message_init()
320 message->payload_size = payload_size; in gb_operation_message_init()
364 struct gb_message *message; in gb_operation_message_alloc() local
375 message = kmem_cache_zalloc(gb_message_cache, gfp_flags); in gb_operation_message_alloc()
376 if (!message) in gb_operation_message_alloc()
379 message->buffer = kzalloc(message_size, gfp_flags); in gb_operation_message_alloc()
380 if (!message->buffer) in gb_operation_message_alloc()
384 gb_operation_message_init(hd, message, 0, payload_size, type); in gb_operation_message_alloc()
386 return message; in gb_operation_message_alloc()
389 kmem_cache_free(gb_message_cache, message); in gb_operation_message_alloc()
394 static void gb_operation_message_free(struct gb_message *message) in gb_operation_message_free() argument
396 kfree(message->buffer); in gb_operation_message_free()
397 kmem_cache_free(gb_message_cache, message); in gb_operation_message_free()
872 struct gb_message *message, int status) in greybus_message_sent() argument
874 struct gb_operation *operation = message->operation; in greybus_message_sent()
888 if (message == operation->response) { in greybus_message_sent()
962 struct gb_message *message; in gb_connection_recv_response() local
985 message = operation->response; in gb_connection_recv_response()
986 message_size = sizeof(*header) + message->payload_size; in gb_connection_recv_response()
995 message->payload_size = size - sizeof(*header); in gb_connection_recv_response()
1011 memcpy(message->buffer, data, size); in gb_connection_recv_response()
1013 trace_gb_message_recv_response(message); in gb_connection_recv_response()