Lines Matching +full:per +full:- +full:port +full:- +full:set
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
62 * flow modes for SDW port. These can be isochronous, tx controlled,
70 /* sample packaging for block. It can be per port or per channel */
75 * enum sdw_slave_status - Slave status
93 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare
94 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare
104 * enum sdw_command_response - Command response as defined by SDW spec
154 * @SDW_DATA_DIR_RX: Data into Port
155 * @SDW_DATA_DIR_TX: Data out of Port
163 * enum sdw_port_data_mode: Data Port mode
173 * owned by this Port
190 * enum sdw_p15_behave - Slave Port 15 behaviour when the Master attempts a
201 * enum sdw_dpn_type - Data port types
202 * @SDW_DPN_FULL: Full Data Port is supported
203 * @SDW_DPN_SIMPLE: Simplified Data Port as defined in spec.
206 * @SDW_DPN_REDUCED: Reduced Data Port as defined in spec.
216 * enum sdw_clk_stop_mode - Clock Stop modes
219 * @SDW_CLK_STOP_MODE1: Slave may have entered a deeper power-saving mode,
228 * struct sdw_dp0_prop - DP0 properties
238 * @imp_def_interrupts: If set, each bit corresponds to support for
239 * implementation-defined interrupts
256 * struct sdw_dpn_audio_mode - Audio mode properties for DPn
288 * struct sdw_dpn_prop - Data Port DPn properties
289 * @num: port number
296 * @type: Data port type. Full, Simplified or Reduced
298 * a full data port
299 * @simple_ch_prep_sm: If the port supports simplified channel prepare state
301 * @ch_prep_timeout: Port-specific timeout value, in milliseconds
302 * @imp_def_interrupts: If set, each bit corresponds to support for
303 * implementation-defined interrupts
311 * @max_async_buffer: Number of samples that this port can buffer in
313 * @block_pack_mode: Type of block port mode supported
344 * struct sdw_slave_prop - SoundWire Slave properties
346 * @wake_capable: Wake-up events are supported
348 * @clk_stop_mode1: Clock-Stop Mode 1 is supported
350 * @clk_stop_timeout: Worst-case latency of the Clock Stop Prepare State
352 * @ch_prep_timeout: Worst-case latency of the Channel Prepare State Machine
355 * state machine (P=1 SCSP_SM) after exit from clock-stop mode1
367 * @dp0_prop: Data Port 0 properties
368 * @src_dpn_prop: Source Data Port N properties
369 * @sink_dpn_prop: Sink Data Port N properties
374 * do not need to set this boolean property as the registers are required.
406 * struct sdw_master_prop - Master properties
408 * @clk_stop_modes: Bitmap, bit N set when clock-stop-modeN supported
421 * @hw_disabled: if true, the Master is not functional, typically due to pin-mux
472 * struct sdw_slave_id - Slave ID
495 * Helper macros to extract the MIPI-defined IDs
524 * struct sdw_slave_intr_status - Slave interrupt status
525 * @sdca_cascade: set if the Slave device reports an SDCA interrupt
526 * @control_port: control port status
527 * @port: data port status
532 u8 port[15]; member
536 * sdw_reg_bank - SoundWire register banks
561 * struct sdw_prepare_ch: Prepare/De-prepare Data Port channel
563 * @num: Port number
565 * @prepare: Prepare (true) /de-prepare (false) channel
579 * enum sdw_port_prep_ops: Prepare operations for Data Port
581 * @SDW_OPS_PORT_PRE_PREP: Pre prepare operation for the Port
582 * @SDW_OPS_PORT_PRE_DEPREP: Pre deprepare operation for the Port
583 * @SDW_OPS_PORT_POST_PREP: Post prepare operation for the Port
584 * @SDW_OPS_PORT_POST_DEPREP: Post deprepare operation for the Port
598 * set to !curr_bank
629 * @port_prep: Prepare the port with parameters
630 * @clk_stop: handle imp-def sequences before and after prepare and de-prepare
650 * struct sdw_slave - SoundWire Slave
659 * @port_ready: Port ready completion flag for each Slave port
660 * @m_port_map: static Master port map for each Slave port
662 * @dev_num_sticky: one-time static Device Number assigned by Bus
669 * @unattach_request: mask field to keep track why the Slave re-attached and
670 * was re-initialized. This is useful to deal with potential race conditions
707 * struct sdw_master_device - SoundWire 'Master Device' representation
749 * struct sdw_port_params: Data Port parameters
751 * @num: Port number
752 * @bps: Word length of the Port
753 * @flow_mode: Port Data flow mode
756 * This is used to program the Data Port based on Data Port stream
767 * struct sdw_transport_params: Data Port Transport Parameters
769 * @blk_grp_ctrl_valid: Port implements block group control
770 * @num: Port number
777 * @blk_pkg_mode: Block per channel or block per port
778 * @lane_ctrl: Data lane Port uses for Data transfer. Currently only single
781 * This is used to program the Data Port based on Data Port transport
799 * struct sdw_enable_ch: Enable/disable Data Port channel
801 * @num: Port number
813 * driver to set Master Data ports.
815 * @dpn_set_port_params: Set the Port parameters for the Master Port.
817 * @dpn_set_port_transport_params: Set transport parameters for the Master
818 * Port. Mandatory callback
819 * @dpn_port_prep: Port prepare operations for the Master Data Port.
820 * @dpn_port_enable_ch: Enable the channels of Master Port.
838 * struct sdw_defer - SDW deffered message
850 * struct sdw_master_ops - Master driver ops
856 * @set_bus_conf: Set the bus configuration
859 * @read_ping_status: Read status from PING frames, reported with two bits per Device.
861 * @get_device_num: Callback for vendor-specific device_number allocation
862 * @put_device_num: Callback for vendor-specific device_number release
886 * struct sdw_bus - SoundWire bus
887 * @dev: Shortcut to &bus->md->dev to avoid changing the entire code.
889 * @controller_id: system-unique controller ID. If set to -1, the bus @id will be used.
891 * @id: bus system-wide unique id
894 * Bit set implies used number, bit clear implies unused number.
899 * @port_ops: Master port callback ops
904 * transport and port parameters
914 * hardware-based synchronization is required. This value is only
915 * meaningful if multi_link is set. If set to 1, hardware-based
956 * sdw_port_config: Master or Slave Port configuration
958 * @num: Port number
959 * @ch_mask: channels mask for port
971 * @bps: Number of bits per audio sample
991 * @SDW_STREAM_DEPREPARED: Stream de-prepared
1009 * @bps: bits per channel sample
1025 * master_list can contain only one m_rt per Master instance
1094 return -EINVAL; in sdw_stream_add_slave()
1101 return -EINVAL; in sdw_stream_remove_slave()
1108 return -EINVAL; in sdw_read()
1114 return -EINVAL; in sdw_write()
1120 return -EINVAL; in sdw_write_no_pm()
1126 return -EINVAL; in sdw_read_no_pm()
1132 return -EINVAL; in sdw_nread()
1138 return -EINVAL; in sdw_nread_no_pm()
1144 return -EINVAL; in sdw_nwrite()
1150 return -EINVAL; in sdw_nwrite_no_pm()
1156 return -EINVAL; in sdw_update()
1162 return -EINVAL; in sdw_update_no_pm()