Lines Matching +full:per +full:- +full:stream
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
16 * struct slim_eaddr - Enumeration address for a SLIMbus device
30 * enum slim_device_status - slim device status
44 * struct slim_device - Slim device handle.
49 * @laddr: 1-byte Logical address of this device.
52 * @stream_list_lock: lock to protect the stream list
56 * Pointer to this structure is used by client-driver as a handle.
72 * struct slim_driver - SLIMbus 'generic device' (slave) device driver
78 * - The device reports present and gets a laddr assigned
79 * - The device reports absent, or the bus goes down.
97 * struct slim_val_inf - Slimbus value or information element
102 * per SLIMbus spec
120 * struct slim_stream_config - SLIMbus stream configuration
121 * Configuring a stream is done at hw_params or prepare call
127 * @bps: bits per data sample
130 * @port_mask: port mask of ports to use for this stream
131 * @direction: direction of the stream, SNDRV_PCM_STREAM_PLAYBACK
140 /* Max 32 ports per device */
154 * module_slim_driver() - Helper macro for registering a SLIMbus driver
167 return dev_get_drvdata(&dev->dev); in slim_get_devicedata()
172 dev_set_drvdata(&dev->dev, data); in slim_set_devicedata()
201 /* SLIMbus Stream apis */
205 int slim_stream_prepare(struct slim_stream_runtime *stream,
207 int slim_stream_enable(struct slim_stream_runtime *stream);
208 int slim_stream_disable(struct slim_stream_runtime *stream);
209 int slim_stream_unprepare(struct slim_stream_runtime *stream);
210 int slim_stream_free(struct slim_stream_runtime *stream);