Lines Matching +full:signal +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0-only */
30 * struct zl3073x_ref - input reference invariant info
42 * struct zl3073x_out - output invariant info
45 * @signal_format: out signal format
54 * struct zl3073x_synth - synthesizer invariant info
56 * @dpll: ID of DPLL the synthesizer is driven by
66 * struct zl3073x_dev - zl3073x device
70 * @clock_id: clock id of the device
138 zl3073x_is_n_pin(u8 id) in zl3073x_is_n_pin() argument
140 /* P-pins ids are even while N-pins are odd */ in zl3073x_is_n_pin()
141 return id & 1; in zl3073x_is_n_pin()
145 zl3073x_is_p_pin(u8 id) in zl3073x_is_p_pin() argument
147 return !zl3073x_is_n_pin(id); in zl3073x_is_p_pin()
151 * zl3073x_input_pin_ref_get - get reference for given input pin
152 * @id: input pin id
154 * Return: reference id for the given input pin
157 zl3073x_input_pin_ref_get(u8 id) in zl3073x_input_pin_ref_get() argument
159 return id; in zl3073x_input_pin_ref_get()
163 * zl3073x_output_pin_out_get - get output for the given output pin
164 * @id: output pin id
166 * Return: output id for the given output pin
169 zl3073x_output_pin_out_get(u8 id) in zl3073x_output_pin_out_get() argument
172 return id / 2; in zl3073x_output_pin_out_get()
176 * zl3073x_ref_ffo_get - get current fractional frequency offset
185 return zldev->ref[index].ffo; in zl3073x_ref_ffo_get()
189 * zl3073x_ref_is_diff - check if the given input reference is differential
193 * Return: true if reference is differential, false if reference is single-ended
198 return zldev->ref[index].diff; in zl3073x_ref_is_diff()
202 * zl3073x_ref_is_enabled - check if the given input reference is enabled
211 return zldev->ref[index].enabled; in zl3073x_ref_is_enabled()
215 * zl3073x_synth_dpll_get - get DPLL ID the synth is driven by
219 * Return: ID of DPLL the given synthetizer is driven by
224 return zldev->synth[index].dpll; in zl3073x_synth_dpll_get()
228 * zl3073x_synth_freq_get - get synth current freq
237 return zldev->synth[index].freq; in zl3073x_synth_freq_get()
241 * zl3073x_synth_is_enabled - check if the given synth is enabled
250 return zldev->synth[index].enabled; in zl3073x_synth_is_enabled()
254 * zl3073x_out_synth_get - get synth connected to given output
263 return zldev->out[index].synth; in zl3073x_out_synth_get()
267 * zl3073x_out_is_enabled - check if the given output is enabled
281 return zldev->out[index].enabled; in zl3073x_out_is_enabled()
287 * zl3073x_out_signal_format_get - get output signal format
291 * Return: signal format of given output
296 return zldev->out[index].signal_format; in zl3073x_out_signal_format_get()
300 * zl3073x_out_dpll_get - get DPLL ID the output is driven by
304 * Return: ID of DPLL the given output is driven by
319 * zl3073x_out_is_diff - check if the given output is differential
323 * Return: true if output is differential, false if output is single-ended
341 * zl3073x_output_pin_is_enabled - check if the given output pin is enabled
343 * @id: output pin id
346 * its signal format also enables the given pin.
351 zl3073x_output_pin_is_enabled(struct zl3073x_dev *zldev, u8 id) in zl3073x_output_pin_is_enabled() argument
353 u8 output = zl3073x_output_pin_out_get(id); in zl3073x_output_pin_is_enabled()
359 /* Check signal format */ in zl3073x_output_pin_is_enabled()
362 /* Both output pins are disabled by signal format */ in zl3073x_output_pin_is_enabled()
366 /* Output is one single ended P-pin output */ in zl3073x_output_pin_is_enabled()
367 if (zl3073x_is_n_pin(id)) in zl3073x_output_pin_is_enabled()
371 /* Output is one single ended N-pin output */ in zl3073x_output_pin_is_enabled()
372 if (zl3073x_is_p_pin(id)) in zl3073x_output_pin_is_enabled()