Files
android_kernel_xiaomi_sm8450/include/linux
Johan Hovold eaa3bcb06a USB: serial: generalise write buffer preparation
Generalise write buffer preparation.

This allows for drivers to manipulate (e.g. add headers) to bulk out
data before it is sent.

This adds a new function pointer to usb_serial_driver:

int (*prepare_write_buffer)(struct usb_serial_port *port,
		void **dest, size_t size, const void *src, size_t count);

The function is generic and can be used with either kfifo-based or
multi-urb writes:

If *dest is NULL the implementation should allocate dest.
If src is NULL the implementation should use the port write fifo.

If not set, a generic implementation is used which simply uses memcpy or
kfifo_out.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-20 13:21:35 -07:00
..
2006-09-26 17:40:24 -04:00
2009-10-27 16:47:55 -04:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2008-02-06 10:41:02 -08:00
2010-03-12 15:53:10 -08:00
2008-07-01 11:28:06 +10:00
2009-06-17 00:36:36 -04:00
2008-10-20 11:01:52 -07:00
2009-12-16 07:20:13 -08:00
2005-04-16 15:20:36 -07:00
2009-09-08 17:42:50 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-12-03 22:12:38 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-03-04 13:41:23 +01:00
2005-04-16 15:20:36 -07:00
2009-04-01 08:59:23 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2010-04-25 08:54:42 +02:00
2007-10-18 14:37:29 -07:00
2008-06-06 11:29:10 -07:00
2009-11-20 20:13:39 +01:00
2009-11-20 20:13:39 +01:00
2009-11-20 20:13:39 +01:00
2008-01-28 14:54:10 -08:00
2005-04-16 15:20:36 -07:00
2009-06-11 21:36:09 -04:00
2005-04-16 15:20:36 -07:00
2008-07-25 10:53:33 -07:00
2005-04-16 15:20:36 -07:00
2010-03-12 15:52:32 -08:00
2010-02-05 07:35:05 -08:00
2005-04-16 15:20:36 -07:00
2009-07-12 12:22:34 -07:00
2007-07-17 10:23:04 -07:00
2008-12-25 11:01:43 +11:00
2007-05-10 18:24:13 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-08 11:15:26 -07:00
2009-12-10 23:52:01 +00:00
2009-05-18 14:46:26 +01:00
2007-02-09 17:39:36 -05:00
2009-11-04 09:50:58 -08:00
2009-10-01 21:17:49 +02:00
2009-09-14 17:41:42 -07:00
2009-01-30 23:46:40 +05:30
2009-12-15 08:53:33 -08:00
2008-01-28 23:21:18 +01:00
2007-06-01 08:18:29 -07:00
2009-11-04 09:50:58 -08:00
2009-03-16 08:32:27 -06:00
2009-12-23 13:33:54 +01:00
2007-10-17 08:43:01 -07:00
2009-11-04 09:50:58 -08:00
2005-04-16 15:20:36 -07:00
2010-04-23 10:39:48 -07:00
2009-06-18 13:04:05 -07:00
2009-11-04 09:50:58 -08:00
2006-10-02 07:57:12 -07:00
2010-03-16 08:55:32 +01:00
2007-07-10 00:35:17 -04:00
2009-09-01 01:13:31 -07:00
2005-04-16 15:20:36 -07:00
2009-01-30 23:51:17 +05:30
2010-02-09 11:13:56 +01:00
2007-03-16 00:59:29 -04:00
2009-12-14 23:55:34 +01:00
2010-03-07 22:17:09 +01:00
2005-04-16 15:20:36 -07:00
2010-03-02 12:23:42 +01:00
2005-04-16 15:20:36 -07:00
2010-04-01 01:31:13 -07:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2005-04-16 15:20:36 -07:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2005-04-16 15:20:36 -07:00
2010-02-18 14:08:38 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2009-01-30 23:56:48 +05:30
2010-02-17 16:35:17 -08:00
2010-02-02 07:32:29 -08:00
2010-01-11 16:28:01 -08:00
2010-03-12 15:52:40 -08:00
2008-05-05 16:47:14 +10:00
2010-03-12 15:52:36 -08:00
2005-04-16 15:20:36 -07:00
2009-11-04 09:50:58 -08:00
2010-03-12 15:52:40 -08:00
2009-09-26 10:17:19 -07:00
2009-04-21 13:41:48 -07:00
2006-10-04 00:31:09 -07:00
2009-10-18 18:52:53 -07:00
2009-01-30 23:59:44 +05:30
2009-08-29 15:53:00 +02:00
2006-11-30 05:24:39 +01:00
2009-01-05 08:40:30 -08:00
2007-11-29 09:24:52 -08:00
2010-03-12 15:53:10 -08:00
2009-09-26 10:17:19 -07:00
2009-12-16 06:56:12 -08:00
2005-04-16 15:20:36 -07:00
2009-04-06 16:06:26 +01:00
2009-06-23 20:21:39 +01:00
2009-07-30 16:03:45 +09:30
2010-04-06 10:55:33 -04:00
2007-07-17 10:23:03 -07:00
2009-12-15 08:53:36 -08:00
2009-12-26 20:40:34 -08:00
2010-02-03 17:39:50 +11:00
2010-03-12 15:53:10 -08:00
2010-02-09 11:13:56 +01:00
2006-06-05 12:29:17 -07:00
2010-02-19 03:35:12 -05:00
2009-06-16 19:47:48 -07:00
2007-05-09 12:30:49 -07:00
2010-03-12 15:52:38 -08:00
2009-09-22 07:17:35 -07:00
2009-06-16 08:40:20 +02:00
2009-12-15 08:53:20 -08:00
2009-01-31 00:00:35 +05:30
2010-03-12 15:52:28 -08:00
2010-04-07 08:38:04 -07:00
2009-12-12 13:08:15 +01:00
2005-04-16 15:20:36 -07:00
2006-11-30 04:40:22 +01:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2010-02-10 23:49:08 +09:00
2008-06-06 11:29:12 -07:00
2009-03-20 10:48:14 -07:00
2009-11-04 09:50:58 -08:00
2010-02-03 20:32:28 -08:00
2005-04-16 15:20:36 -07:00
2009-06-17 18:02:11 -07:00
2009-06-17 18:02:11 -07:00
2006-03-20 13:44:40 -05:00
2010-04-12 07:55:15 -04:00
2009-06-17 18:02:11 -07:00
2010-02-19 15:52:40 -05:00
2010-02-14 07:13:47 -07:00
2009-04-01 08:59:13 -07:00
2007-10-16 09:43:02 -07:00
2009-04-01 08:59:13 -07:00
2005-04-16 15:20:36 -07:00
2008-02-14 21:13:33 -08:00
2010-02-23 23:14:47 -08:00
2005-04-16 15:20:36 -07:00
2010-02-04 10:23:02 -08:00
2009-01-08 08:31:12 -08:00
2009-11-04 09:50:58 -08:00
2009-11-04 09:50:58 -08:00
2008-08-05 14:33:50 -07:00
2010-03-12 15:53:11 -08:00
2009-12-03 11:43:23 +00:00
2006-10-03 23:01:26 +02:00
2009-06-18 13:04:04 -07:00
2009-07-29 19:10:36 -07:00
2009-12-02 09:55:33 +01:00
2007-10-19 11:53:41 -07:00
2005-04-16 15:20:36 -07:00
2009-09-23 07:39:41 -07:00
2009-03-30 15:22:01 +02:00
2010-03-05 00:20:31 +01:00
2009-01-31 00:05:59 +05:30
2010-02-10 17:47:17 -08:00
2005-04-16 15:20:36 -07:00
2009-10-30 15:06:37 -07:00
2010-03-12 15:52:44 -08:00
2009-06-24 08:17:06 -04:00
2010-03-02 14:28:49 -05:00
2005-11-07 07:53:46 -08:00
2009-11-04 09:50:58 -08:00
2010-03-12 15:53:10 -08:00
2007-10-16 09:43:17 -07:00
2008-07-24 08:31:21 -04:00
2010-03-12 15:52:43 -08:00
2010-01-21 23:55:25 -08:00
2009-08-28 19:57:30 -04:00
2010-02-16 13:38:56 +09:00
2009-11-30 12:02:53 +09:00
2009-04-13 15:04:29 -07:00
2010-03-12 15:52:44 -08:00
2008-07-25 10:53:30 -07:00
2005-04-16 15:20:36 -07:00
2008-09-09 17:41:42 +02:00
2009-12-16 22:32:29 -05:00
2005-04-16 15:20:36 -07:00
2009-01-31 00:07:00 +05:30
2008-07-20 17:12:37 -07:00
2007-05-08 11:15:18 -07:00
2010-01-14 22:38:09 -05:00
2010-03-12 15:52:36 -08:00
2005-04-16 15:20:36 -07:00
2009-07-06 13:57:03 -07:00
2010-02-18 15:43:09 -08:00
2009-11-13 20:46:24 +01:00
2009-08-30 22:26:34 +02:00
2009-02-18 15:37:53 -08:00
2009-10-29 11:17:40 +11:00
2009-11-10 20:54:38 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-09-23 18:13:10 -07:00
2009-08-26 12:39:29 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-09-23 22:26:32 +09:30
2010-01-05 09:17:33 +09:00
2009-09-15 16:51:30 +02:00
2010-03-12 10:03:42 +01:00
2009-12-16 12:16:49 -05:00
2005-04-16 15:20:36 -07:00