| /linux/drivers/dpll/ |
| H A D | dpll_netlink.c | 3 * Generic netlink for DPLL management framework 16 #include <uapi/linux/dpll.h> 34 dpll_msg_add_dev_handle(struct sk_buff *msg, struct dpll_device *dpll) in dpll_msg_add_dev_handle() argument 36 if (nla_put_u32(msg, DPLL_A_ID, dpll->id)) in dpll_msg_add_dev_handle() 63 if (xa_get_mark(&dpll_device_xa, par_ref->dpll->id, in dpll_pin_available() 69 static bool dpll_device_registered(struct dpll_device *dpll) in dpll_device_registered() argument 71 return dpll_device_ops(dpll); in dpll_device_registered() 80 if (dpll_device_registered(ref->dpll)) in dpll_pin_first_registered_ref() 115 dpll_msg_add_mode(struct sk_buff *msg, struct dpll_device *dpll, in dpll_msg_add_mode() argument 118 const struct dpll_device_ops *ops = dpll_device_ops(dpll); in dpll_msg_add_mode() 132 dpll_msg_add_mode_supported(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_mode_supported() argument 164 dpll_msg_add_phase_offset_monitor(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_phase_offset_monitor() argument 184 dpll_msg_add_freq_monitor(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_freq_monitor() argument 205 dpll_msg_add_phase_offset_avg_factor(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_phase_offset_avg_factor() argument 225 dpll_msg_add_lock_status(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_lock_status() argument 249 dpll_msg_add_temp(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_temp() argument 268 dpll_msg_add_clock_quality_level(struct sk_buff * msg,struct dpll_device * dpll,struct netlink_ext_ack * extack) dpll_msg_add_clock_quality_level() argument 294 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_prio() local 316 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_on_dpll_state() local 338 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_operstate() local 362 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_direction() local 382 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_phase_adjust() local 405 struct dpll_device *dpll = ref->dpll; dpll_msg_add_phase_offset() local 455 struct dpll_device *dpll = ref->dpll; dpll_msg_add_measured_freq() local 486 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_freq() local 527 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_esync() local 573 struct dpll_device *dpll = ref->dpll; dpll_msg_add_pin_ref_sync() local 788 dpll_device_get_one(struct dpll_device * dpll,struct sk_buff * msg,struct netlink_ext_ack * extack) dpll_device_get_one() argument 832 dpll_device_event_send(enum dpll_cmd event,struct dpll_device * dpll) dpll_device_event_send() argument 862 dpll_device_create_ntf(struct dpll_device * dpll) dpll_device_create_ntf() argument 868 dpll_device_delete_ntf(struct dpll_device * dpll) dpll_device_delete_ntf() argument 882 __dpll_device_change_ntf(struct dpll_device * dpll) __dpll_device_change_ntf() argument 897 dpll_device_change_ntf(struct dpll_device * dpll) dpll_device_change_ntf() argument 990 dpll_mode_set(struct dpll_device * dpll,struct nlattr * a,struct netlink_ext_ack * extack) dpll_mode_set() argument 1029 dpll_phase_offset_monitor_set(struct dpll_device * dpll,struct nlattr * a,struct netlink_ext_ack * extack) dpll_phase_offset_monitor_set() argument 1054 dpll_phase_offset_avg_factor_set(struct dpll_device * dpll,struct nlattr * a,struct netlink_ext_ack * extack) dpll_phase_offset_avg_factor_set() argument 1071 dpll_freq_monitor_set(struct dpll_device * dpll,struct nlattr * a,struct netlink_ext_ack * extack) dpll_freq_monitor_set() argument 1103 struct dpll_device *dpll; dpll_pin_freq_set() local 1153 struct dpll_device *dpll; dpll_pin_esync_set() local 1210 struct dpll_device *dpll; dpll_pin_ref_sync_state_set() local 1332 dpll_pin_state_set(struct dpll_device * dpll,struct dpll_pin * pin,enum dpll_pin_state state,struct netlink_ext_ack * extack) dpll_pin_state_set() argument 1363 dpll_pin_prio_set(struct dpll_device * dpll,struct dpll_pin * pin,u32 prio,struct netlink_ext_ack * extack) dpll_pin_prio_set() argument 1390 dpll_pin_direction_set(struct dpll_pin * pin,struct dpll_device * dpll,enum dpll_pin_direction direction,struct netlink_ext_ack * extack) dpll_pin_direction_set() argument 1424 struct dpll_device *dpll; dpll_pin_phase_adj_set() local 1483 struct dpll_device *dpll; dpll_pin_parent_device_set() local 1814 struct dpll_device *dpll_match = NULL, *dpll; dpll_device_find() local 1882 struct dpll_device *dpll; dpll_nl_device_id_get_doit() local 1914 struct dpll_device *dpll = info->user_ptr[0]; dpll_nl_device_get_doit() local 1940 dpll_set_from_nlattr(struct dpll_device * dpll,struct genl_info * info) dpll_set_from_nlattr() argument 1979 struct dpll_device *dpll = info->user_ptr[0]; dpll_nl_device_set_doit() local 1987 struct dpll_device *dpll; dpll_nl_device_get_dumpit() local [all...] |
| H A D | dpll_core.c | 3 * dpll_core.c - DPLL subsystem kernel-space interface implementation. 22 /* Mutex lock to protect DPLL subsystem devices and pins */ 62 void dpll_device_notify(struct dpll_device *dpll, unsigned long action) in dpll_device_notify() argument 65 .dpll = dpll, in dpll_device_notify() 66 .id = dpll->id, in dpll_device_notify() 67 .idx = dpll->device_idx, in dpll_device_notify() 68 .clock_id = dpll->clock_id, in dpll_device_notify() 69 .type = dpll->type, in dpll_device_notify() 91 static void dpll_device_tracker_alloc(struct dpll_device *dpll, in dpll_device_tracker_alloc() argument 99 dpll_device_tracker_free(struct dpll_device * dpll,dpll_tracker * tracker) dpll_device_tracker_free() argument 107 __dpll_device_hold(struct dpll_device * dpll,dpll_tracker * tracker) __dpll_device_hold() argument 113 __dpll_device_put(struct dpll_device * dpll,dpll_tracker * tracker) __dpll_device_put() argument 272 dpll_xa_ref_dpll_add(struct xarray * xa_dplls,struct dpll_device * dpll,const struct dpll_pin_ops * ops,void * priv,void * cookie) dpll_xa_ref_dpll_add() argument 325 dpll_xa_ref_dpll_del(struct xarray * xa_dplls,struct dpll_device * dpll,const struct dpll_pin_ops * ops,void * priv,void * cookie) dpll_xa_ref_dpll_del() argument 363 struct dpll_device *dpll; dpll_device_alloc() local 405 struct dpll_device *dpll, *ret = NULL; dpll_device_get() local 439 dpll_device_put(struct dpll_device * dpll,dpll_tracker * tracker) dpll_device_put() argument 448 dpll_device_registration_find(struct dpll_device * dpll,const struct dpll_device_ops * ops,void * priv) dpll_device_registration_find() argument 474 dpll_device_register(struct dpll_device * dpll,enum dpll_type type,const struct dpll_device_ops * ops,void * priv) dpll_device_register() argument 530 dpll_device_unregister(struct dpll_device * dpll,const struct dpll_device_ops * ops,void * priv) dpll_device_unregister() argument 842 __dpll_pin_register(struct dpll_device * dpll,struct dpll_pin * pin,const struct dpll_pin_ops * ops,void * priv,void * cookie) __dpll_pin_register() argument 876 dpll_pin_register(struct dpll_device * dpll,struct dpll_pin * pin,const struct dpll_pin_ops * ops,void * priv) dpll_pin_register() argument 937 __dpll_pin_unregister(struct dpll_device * dpll,struct dpll_pin * pin,const struct dpll_pin_ops * ops,void * priv,void * cookie) __dpll_pin_unregister() argument 960 dpll_pin_unregister(struct dpll_device * dpll,struct dpll_pin * pin,const struct dpll_pin_ops * ops,void * priv) dpll_pin_unregister() argument 1092 dpll_device_registration_first(struct dpll_device * dpll) dpll_device_registration_first() argument 1098 dpll_priv(struct dpll_device * dpll) dpll_priv() argument 1108 dpll_device_ops(struct dpll_device * dpll) dpll_device_ops() argument 1129 dpll_pin_on_dpll_priv(struct dpll_device * dpll,struct dpll_pin * pin) dpll_pin_on_dpll_priv() argument [all...] |
| H A D | dpll_core.h | 10 #include <linux/dpll.h> 19 * struct dpll_device - stores DPLL device internal data 20 * @id: unique id number for device given by dpll subsystem 22 * @clock_id: unique identifier (clock_id) of a dpll 24 * @type: type of a dpll 25 * @pin_refs: stores pins registered within a dpll 28 * @registration_list: list of registered ops and priv data of dpll owners 43 * struct dpll_pin - structure for a dpll pin 44 * @id: unique id number for pin given by dpll subsystem 75 * struct dpll_pin_ref - structure for referencing either dpll or pins [all …]
|
| H A D | Makefile | 3 # Makefile for DPLL drivers. 6 obj-$(CONFIG_DPLL) += dpll.o 7 dpll-y += dpll_core.o 8 dpll-y += dpll_netlink.o 9 dpll-y += dpll_nl.o
|
| /linux/Documentation/devicetree/bindings/clock/ti/ |
| H A D | dpll.txt | 1 Binding for Texas Instruments DPLL clock. 4 register-mapped DPLL with usually two selectable input clocks 10 for the actual DPLL clock. 16 "ti,omap3-dpll-clock", 17 "ti,omap3-dpll-core-clock", 18 "ti,omap3-dpll-per-clock", 19 "ti,omap3-dpll-per-j-type-clock", 20 "ti,omap4-dpll-clock", 21 "ti,omap4-dpll-x2-clock", 22 "ti,omap4-dpll-core-clock", [all …]
|
| /linux/Documentation/netlink/specs/ |
| H A D | dpll.yaml | 3 name: dpll 5 doc: DPLL subsystem. 12 working modes a dpll can support, differentiates if and how dpll selects 18 doc: input can be only selected by sending a request to dpll 22 doc: highest prio input pin auto selected by dpll 28 provides information of dpll device lock status, valid values for 34 dpll was not yet locked to any valid input 39 dpll is locked to a valid signal, but no holdover available 43 dpll i [all...] |
| /linux/drivers/clk/ti/ |
| H A D | dpll3xxx.c | 3 * OMAP3/4 - specific DPLL control functions 46 /* _omap3_dpll_write_clken - write clken_bits arg to a DPLL's enable bits */ 60 /* _omap3_wait_dpll_status: wait for a DPLL to enter a specific state */ 129 * _omap3_noncore_dpll_lock - instruct a DPLL to lock and wait for readiness 130 * @clk: pointer to a DPLL struct clk 132 * Instructs a non-CORE DPLL to lock. Waits for the DPLL to report 133 * readiness before returning. Will save and restore the DPLL's 134 * autoidle state across the enable, per the CDP code. If the DPLL 135 * locked successfully, return 0; if the DPLL did not lock in the time 145 pr_debug("clock: locking DPLL %s\n", clk_hw_get_name(&clk->hw)); in _omap3_noncore_dpll_lock() [all …]
|
| H A D | clkt_dpll.c | 3 * OMAP2/3/4 DPLL clock functions 25 /* DPLL rate rounding: minimum DPLL multiplier, divider values */ 33 * Scale factor to mitigate roundoff errors in DPLL rate rounding. 44 * DPLL valid Fint frequency range for OMAP36xx and OMAP4xxx. 45 * From device data manual section 4.3 "DPLL and DLL Specifications". 57 * _dpll_test_fint - test whether an Fint value is valid for the DPLL 58 * @clk: DPLL struct clk to test 61 * Tests whether a particular divider @n will result in a valid DPLL 62 * internal clock frequency Fint. See the 34xx TRM 4.7.6.2 "DPLL Jitter 75 /* DPLL divider must result in a valid jitter correction val */ in _dpll_test_fint() [all …]
|
| H A D | dpll44xx.c | 3 * OMAP4-specific DPLL control functions 19 * Maximum DPLL input frequency (FINT) and output frequency (FOUT) that 20 * can supported when using the DPLL low-power mode. Frequencies are 79 * omap4_dpll_lpmode_recalc - compute DPLL low-power setting 80 * @dd: pointer to the dpll data structure 104 * omap4_dpll_regm4xen_recalc - compute DPLL rate, considering REGM4XEN bit 106 * @parent_rate: clock rate of the DPLL parent 108 * Compute the output rate for the OMAP4 DPLL represented by @clk. 110 * OMAP4 ABE DPLL. Returns the DPLL's output rate (before M-dividers) 128 /* regm4xen adds a multiplier of 4 to DPLL calculations */ in omap4_dpll_regm4xen_recalc() [all …]
|
| H A D | dpll.c | 3 * OMAP DPLL clock support 137 * _register_dpll - low level registration of a DPLL clock 141 * Finalizes DPLL registration process. In case a failure (clk-ref or 207 * Initializes a DPLL x 2 clock from device tree data. 264 * of_ti_dpll_setup - Setup function for OMAP DPLL clocks 265 * @node: device node containing the DPLL info 266 * @ops: ops for the DPLL 267 * @ddt: DPLL data template to use 269 * Initializes a DPLL clock from device tree data. 314 * Special case for OMAP2 DPLL, register order is different due to in of_ti_dpll_setup() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_dpll.c | 8 #include <linux/dpll.h> 102 * for pin control. For E810 NIC with dpll there is additional MUX-related logic 103 * between SMA/U.FL pins/connectors and dpll device, best to give user access 199 * @dpll: pointer to dpll 200 * @dpll_priv: private data pointer passed on dpll registration 214 const struct dpll_device *dpll, void *dpll_priv, in ice_dpll_frequency_set() 238 * @dpll: pointer to dpll 239 * @dpll_priv: private data pointer passed on dpll registratio 211 ice_dpll_frequency_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,const u32 frequency,struct netlink_ext_ack * extack,enum ice_dpll_pin_type pin_type) ice_dpll_frequency_set() argument 249 ice_dpll_input_frequency_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 frequency,struct netlink_ext_ack * extack) ice_dpll_input_frequency_set() argument 274 ice_dpll_output_frequency_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 frequency,struct netlink_ext_ack * extack) ice_dpll_output_frequency_set() argument 300 ice_dpll_frequency_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * frequency,struct netlink_ext_ack * extack,enum ice_dpll_pin_type pin_type) ice_dpll_frequency_get() argument 333 ice_dpll_input_frequency_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * frequency,struct netlink_ext_ack * extack) ice_dpll_input_frequency_get() argument 358 ice_dpll_output_frequency_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * frequency,struct netlink_ext_ack * extack) ice_dpll_output_frequency_get() argument 383 ice_dpll_sw_pin_frequency_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 frequency,struct netlink_ext_ack * extack) ice_dpll_sw_pin_frequency_set() argument 423 ice_dpll_sw_pin_frequency_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * frequency,struct netlink_ext_ack * extack) ice_dpll_sw_pin_frequency_get() argument 821 ice_dpll_hw_input_prio_set(struct ice_pf * pf,struct ice_dpll * dpll,struct ice_dpll_pin * pin,const u32 prio,struct netlink_ext_ack * extack) ice_dpll_hw_input_prio_set() argument 857 ice_dpll_lock_status_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_lock_status * status,enum dpll_lock_status_error * status_error,struct netlink_ext_ack * extack) ice_dpll_lock_status_get() argument 886 ice_dpll_mode_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_mode * mode,struct netlink_ext_ack * extack) ice_dpll_mode_get() argument 912 ice_dpll_phase_offset_monitor_set(const struct dpll_device * dpll,void * dpll_priv,enum dpll_feature_state state,struct netlink_ext_ack * extack) ice_dpll_phase_offset_monitor_set() argument 943 ice_dpll_phase_offset_monitor_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_feature_state * state,struct netlink_ext_ack * extack) ice_dpll_phase_offset_monitor_get() argument 980 ice_dpll_pin_state_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,bool enable,struct netlink_ext_ack * extack,enum ice_dpll_pin_type pin_type) ice_dpll_pin_state_set() argument 1023 ice_dpll_output_state_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) ice_dpll_output_state_set() argument 1058 ice_dpll_input_state_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) ice_dpll_input_state_set() argument 1087 ice_dpll_pin_state_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack,enum ice_dpll_pin_type pin_type) ice_dpll_pin_state_get() argument 1132 ice_dpll_output_state_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) ice_dpll_output_state_get() argument 1158 ice_dpll_input_state_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) ice_dpll_input_state_get() argument 1293 ice_dpll_ufl_pin_state_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) ice_dpll_ufl_pin_state_set() argument 1406 ice_dpll_sw_pin_state_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) ice_dpll_sw_pin_state_get() argument 1462 ice_dpll_sma_pin_state_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) ice_dpll_sma_pin_state_set() argument 1526 ice_dpll_input_prio_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u32 * prio,struct netlink_ext_ack * extack) ice_dpll_input_prio_get() argument 1558 ice_dpll_input_prio_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u32 prio,struct netlink_ext_ack * extack) ice_dpll_input_prio_set() argument 1578 ice_dpll_sw_input_prio_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u32 * prio,struct netlink_ext_ack * extack) ice_dpll_sw_input_prio_get() argument 1597 ice_dpll_sw_input_prio_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u32 prio,struct netlink_ext_ack * extack) ice_dpll_sw_input_prio_set() argument 1633 ice_dpll_input_direction(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_direction * direction,struct netlink_ext_ack * extack) ice_dpll_input_direction() argument 1658 ice_dpll_output_direction(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_direction * direction,struct netlink_ext_ack * extack) ice_dpll_output_direction() argument 1685 ice_dpll_pin_sma_direction_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_direction direction,struct netlink_ext_ack * extack) ice_dpll_pin_sma_direction_set() argument 1723 ice_dpll_pin_sw_direction_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_direction * direction,struct netlink_ext_ack * extack) ice_dpll_pin_sw_direction_get() argument 1757 ice_dpll_pin_phase_adjust_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 * phase_adjust,struct netlink_ext_ack * extack) ice_dpll_pin_phase_adjust_get() argument 1791 ice_dpll_pin_phase_adjust_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 phase_adjust,struct netlink_ext_ack * extack,enum ice_dpll_pin_type type) ice_dpll_pin_phase_adjust_set() argument 1860 ice_dpll_input_phase_adjust_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 phase_adjust,struct netlink_ext_ack * extack) ice_dpll_input_phase_adjust_set() argument 1888 ice_dpll_output_phase_adjust_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 phase_adjust,struct netlink_ext_ack * extack) ice_dpll_output_phase_adjust_set() argument 1916 ice_dpll_sw_phase_adjust_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 * phase_adjust,struct netlink_ext_ack * extack) ice_dpll_sw_phase_adjust_get() argument 1951 ice_dpll_sw_phase_adjust_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 phase_adjust,struct netlink_ext_ack * extack) ice_dpll_sw_phase_adjust_set() argument 1995 ice_dpll_phase_offset_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s64 * phase_offset,struct netlink_ext_ack * extack) ice_dpll_phase_offset_get() argument 2071 ice_dpll_output_esync_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 freq,struct netlink_ext_ack * extack) ice_dpll_output_esync_set() argument 2126 ice_dpll_output_esync_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_pin_esync * esync,struct netlink_ext_ack * extack) ice_dpll_output_esync_get() argument 2175 ice_dpll_input_esync_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 freq,struct netlink_ext_ack * extack) ice_dpll_input_esync_set() argument 2230 ice_dpll_input_esync_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_pin_esync * esync,struct netlink_ext_ack * extack) ice_dpll_input_esync_get() argument 2279 ice_dpll_sw_esync_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 freq,struct netlink_ext_ack * extack) ice_dpll_sw_esync_set() argument 2315 ice_dpll_sw_esync_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_pin_esync * esync,struct netlink_ext_ack * extack) ice_dpll_sw_esync_get() argument 2711 ice_dpll_txclk_state_on_dpll_set(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) ice_dpll_txclk_state_on_dpll_set() argument 2784 ice_dpll_txclk_state_on_dpll_get(const struct dpll_pin * pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) ice_dpll_txclk_state_on_dpll_get() argument 3341 ice_dpll_unregister_pins(struct dpll_device * dpll,struct ice_dpll_pin * pins,const struct dpll_pin_ops * ops,int count) ice_dpll_unregister_pins() argument 3399 ice_dpll_register_pins(struct dpll_device * dpll,struct ice_dpll_pin * pins,const struct dpll_pin_ops * ops,int count) ice_dpll_register_pins() argument [all...] |
| /linux/include/uapi/linux/ |
| H A D | dpll.h | 3 /* Documentation/netlink/specs/dpll.yaml */ 10 #define DPLL_FAMILY_NAME "dpll" 14 * enum dpll_mode - working modes a dpll can support, differentiates if and how 15 * dpll selects one of its inputs to syntonize with it, valid values for 17 * @DPLL_MODE_MANUAL: input can be only selected by sending a request to dpll 18 * @DPLL_MODE_AUTOMATIC: highest prio input pin auto selected by dpll 30 * enum dpll_lock_status - provides information of dpll device lock status, 32 * @DPLL_LOCK_STATUS_UNLOCKED: dpll was not yet locked to any valid input 33 * @DPLL_LOCK_STATUS_LOCKED: dpll is locked to a valid signal, but no holdover 35 * @DPLL_LOCK_STATUS_LOCKED_HO_ACQ: dpll i [all...] |
| /linux/Documentation/driver-api/ |
| H A D | dpll.rst | 4 The Linux kernel dpll subsystem 7 DPLL chapter 14 DPLL - Digital Phase Locked Loop is an integrated circuit which in 17 DPLL's input and output may be configurable. 22 The main purpose of dpll subsystem is to provide general interface 32 Single dpll device object means single Digital PLL circuit and bunch of 38 Changing the configuration of dpll device is done with `do` request of 52 The number of pins per dpll vary, but usually multiple pins shall be 53 provided for a single dpll device. 73 on hardware capabilities and active dpll device work mode [all …]
|
| /linux/Documentation/devicetree/bindings/dpll/ |
| H A D | dpll-device.yaml | 4 $id: http://devicetree.org/schemas/dpll/dpll-device.yaml# 7 title: Digital Phase-Locked Loop (DPLL) Device 13 Digital Phase-Locked Loop (DPLL) device is used for precise clock 16 output pins. Each DPLL channel can either produce pulse-per-clock signal 18 indicated by dpll-types property. 22 pattern: "^dpll(@.*)?$" 30 dpll-types: 31 description: List of DPLL channel types, one per DPLL instanc [all...] |
| H A D | microchip,zl30731.yaml | 4 $id: http://devicetree.org/schemas/dpll/microchip,zl30731.yaml# 7 title: Microchip Azurite DPLL device 13 Microchip Azurite DPLL (ZL3073x) is a family of DPLL devices that 14 provides up to 5 independent DPLL channels, up to 10 differential or 42 - $ref: /schemas/dpll/dpll-device.yaml# 53 dpll@70 { 56 dpll-types = "pps", "eec"; 97 dpll@70 { 102 dpll-types = "pps";
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | psb_intel_display.c | 111 u32 dpll = 0, fp = 0, dspcntr, pipeconf; in psb_intel_crtc_mode_set() 162 dpll = DPLL_VGA_MODE_DIS; in psb_intel_crtc_mode_set() 164 dpll |= DPLLB_MODE_LVDS; in psb_intel_crtc_mode_set() 165 dpll |= DPLL_DVO_HIGH_SPEED; in psb_intel_crtc_mode_set() 167 dpll |= DPLLB_MODE_DAC_SERIAL; in psb_intel_crtc_mode_set() 171 dpll |= DPLL_DVO_HIGH_SPEED; in psb_intel_crtc_mode_set() 172 dpll |= in psb_intel_crtc_mode_set() 177 dpll |= (1 << (clock.p1 - 1)) << 16; in psb_intel_crtc_mode_set() 180 dpll |= DPLL_DAC_SERIAL_P2_CLOCK_DIV_5; in psb_intel_crtc_mode_set() 183 dpll | in psb_intel_crtc_mode_set() 108 u32 dpll = 0, fp = 0, dspcntr, pipeconf; psb_intel_crtc_mode_set() local 311 u32 dpll; psb_intel_crtc_clock_get() local [all...] |
| H A D | cdv_intel_display.c | 208 /* Unlike most Intel display engines, on Cedarview the DPLL registers 210 * DPLL reference clock is on in the DPLL control register, but before 211 * the DPLL is enabled in the DPLL control register. 262 DRM_DEBUG_KMS("use their DPLL for pipe A/B\n"); in cdv_dpll_set_clock_cdv() 585 u32 dpll = 0, dspcntr, pipeconf; in cdv_intel_crtc_mode_set() local 666 dpll = DPLL_VGA_MODE_DIS; in cdv_intel_crtc_mode_set() 677 dpll |= DPLL_SYNCLOCK_ENABLE; in cdv_intel_crtc_mode_set() 679 dpll |= DPLLB_MODE_LVDS; in cdv_intel_crtc_mode_set() 681 dpll |= DPLLB_MODE_DAC_SERIAL; */ in cdv_intel_crtc_mode_set() 682 /* dpll |= (2 << 11); */ in cdv_intel_crtc_mode_set() [all …]
|
| /linux/include/linux/clk/ |
| H A D | ti.h | 29 * struct dpll_data - DPLL registers and integration data 30 * @mult_div1_reg: register containing the DPLL M and N bitfields 31 * @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg 32 * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg 35 * @control_reg: register containing the DPLL mode bitfield 36 * @enable_mask: mask of the DPLL mode bitfield in @control_reg 47 * @max_rate: maximum clock rate for the DPLL 49 * @autoidle_reg: register containing the DPLL autoidle mode bitfield 50 * @idlest_reg: register containing the DPLL idle status bitfield 51 * @autoidle_mask: mask of the DPLL autoidl [all...] |
| /linux/drivers/dpll/zl3073x/ |
| H A D | dpll.c | 9 #include <linux/dpll.h> 22 #include "dpll.h" 30 * struct zl3073x_dpll_pin - DPLL pin 31 * @list: this DPLL pin list entry 32 * @dpll: DPLL the pin is registered to 49 struct zl3073x_dpll *dpll; member 110 const struct dpll_device *dpll, void *dpll_priv, in zl3073x_dpll_pin_direction_get() argument 143 * of this DPLL. A pin is on the list from just before its registration in zl3073x_dpll_nco_pin_get() 155 lockdep_assert_held(&pin->dpll in zl3073x_dpll_input_pin_esync_get() 151 zl3073x_dpll_input_pin_esync_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_pin_esync * esync,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_esync_get() argument 190 zl3073x_dpll_input_pin_esync_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 freq,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_esync_set() argument 369 zl3073x_dpll_input_pin_ffo_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_ffo_param * ffo,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_ffo_get() argument 389 zl3073x_dpll_input_pin_measured_freq_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * measured_freq,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_measured_freq_get() argument 407 zl3073x_dpll_input_pin_frequency_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * frequency,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_frequency_get() argument 426 zl3073x_dpll_input_pin_frequency_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 frequency,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_frequency_set() argument 475 zl3073x_dpll_input_pin_phase_offset_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s64 * phase_offset,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_phase_offset_get() argument 533 zl3073x_dpll_input_pin_phase_adjust_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 * phase_adjust,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_phase_adjust_get() argument 568 zl3073x_dpll_input_pin_phase_adjust_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 phase_adjust,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_phase_adjust_set() argument 639 zl3073x_dpll_input_pin_state_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_state_on_dpll_get() argument 679 zl3073x_dpll_input_pin_operstate_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_operstate * operstate,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_operstate_on_dpll_get() argument 695 zl3073x_dpll_input_pin_state_on_dpll_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_state_on_dpll_set() argument 797 zl3073x_dpll_input_pin_prio_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u32 * prio,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_prio_get() argument 812 zl3073x_dpll_input_pin_prio_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u32 prio,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_prio_set() argument 845 zl3073x_dpll_output_pin_esync_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_pin_esync * esync,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_esync_get() argument 905 zl3073x_dpll_output_pin_esync_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 freq,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_esync_set() argument 963 zl3073x_dpll_output_pin_frequency_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 * frequency,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_frequency_get() argument 980 zl3073x_dpll_output_pin_frequency_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,u64 frequency,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_frequency_set() argument 1056 zl3073x_dpll_output_pin_phase_adjust_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 * phase_adjust,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_phase_adjust_get() argument 1081 zl3073x_dpll_output_pin_phase_adjust_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,s32 phase_adjust,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_phase_adjust_set() argument 1107 zl3073x_dpll_output_pin_state_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) zl3073x_dpll_output_pin_state_on_dpll_get() argument 1121 zl3073x_dpll_nco_pin_operstate_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_operstate * operstate,struct netlink_ext_ack * extack) zl3073x_dpll_nco_pin_operstate_on_dpll_get() argument 1143 zl3073x_dpll_nco_pin_state_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state * state,struct netlink_ext_ack * extack) zl3073x_dpll_nco_pin_state_on_dpll_get() argument 1165 zl3073x_dpll_nco_pin_state_on_dpll_set(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_state state,struct netlink_ext_ack * extack) zl3073x_dpll_nco_pin_state_on_dpll_set() argument 1227 zl3073x_dpll_nco_pin_ffo_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,struct dpll_ffo_param * ffo,struct netlink_ext_ack * extack) zl3073x_dpll_nco_pin_ffo_get() argument 1257 zl3073x_dpll_temp_get(const struct dpll_device * dpll,void * dpll_priv,s32 * temp,struct netlink_ext_ack * extack) zl3073x_dpll_temp_get() argument 1321 zl3073x_dpll_lock_status_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_lock_status * status,enum dpll_lock_status_error * status_error,struct netlink_ext_ack * extack) zl3073x_dpll_lock_status_get() argument 1334 zl3073x_dpll_supported_modes_get(const struct dpll_device * dpll,void * dpll_priv,unsigned long * modes,struct netlink_ext_ack * extack) zl3073x_dpll_supported_modes_get() argument 1345 zl3073x_dpll_mode_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_mode * mode,struct netlink_ext_ack * extack) zl3073x_dpll_mode_get() argument 1377 zl3073x_dpll_phase_offset_avg_factor_get(const struct dpll_device * dpll,void * dpll_priv,u32 * factor,struct netlink_ext_ack * extack) zl3073x_dpll_phase_offset_avg_factor_get() argument 1389 zl3073x_dpll_phase_offset_avg_factor_set(const struct dpll_device * dpll,void * dpll_priv,u32 factor,struct netlink_ext_ack * extack) zl3073x_dpll_phase_offset_avg_factor_set() argument 1423 zl3073x_dpll_mode_set(const struct dpll_device * dpll,void * dpll_priv,enum dpll_mode mode,struct netlink_ext_ack * extack) zl3073x_dpll_mode_set() argument 1500 zl3073x_dpll_phase_offset_monitor_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_feature_state * state,struct netlink_ext_ack * extack) zl3073x_dpll_phase_offset_monitor_get() argument 1518 zl3073x_dpll_phase_offset_monitor_set(const struct dpll_device * dpll,void * dpll_priv,enum dpll_feature_state state,struct netlink_ext_ack * extack) zl3073x_dpll_phase_offset_monitor_set() argument 1533 zl3073x_dpll_freq_monitor_get(const struct dpll_device * dpll,void * dpll_priv,enum dpll_feature_state * state,struct netlink_ext_ack * extack) zl3073x_dpll_freq_monitor_get() argument 1549 zl3073x_dpll_freq_monitor_set(const struct dpll_device * dpll,void * dpll_priv,enum dpll_feature_state state,struct netlink_ext_ack * extack) zl3073x_dpll_freq_monitor_set() argument [all...] |
| H A D | dpll.h | 6 #include <linux/dpll.h> 13 * struct zl3073x_dpll - ZL3073x DPLL sub-device structure 14 * @list: this DPLL list entry 16 * @id: DPLL index 19 * @ops: DPLL device operations for this instance 20 * @dpll_dev: pointer to registered DPLL device 22 * @lock: per-DPLL mutex serializing all operations 23 * @type: DPLL type (PPS or EEC) 24 * @lock_status: last saved DPLL lock status
|
| H A D | chan.c | 14 * zl3073x_chan_state_update - update DPLL channel status from HW 16 * @index: DPLL channel index 72 * zl3073x_chan_nco_mode_set - switch DPLL channel to NCO mode 74 * @index: DPLL channel index 151 "Failed to read DPLL%u df_offset: %pe\n", in zl3073x_chan_nco_mode_set() 162 * zl3073x_chan_state_fetch - fetch DPLL channel state from hardware 164 * @index: DPLL channel index to fetch state for 167 * the given DPLL channel and stores the values for later use. 185 dev_dbg(zldev->dev, "DPLL%u mode: %u, ref: %u\n", index, in zl3073x_chan_state_fetch() 200 "DPLL%u lock_state: %u, ho: %u, sel_state: %u, sel_ref: %u\n", in zl3073x_chan_state_fetch() [all …]
|
| H A D | Kconfig | 4 tristate "Microchip Azurite DPLL/PTP/SyncE devices" if COMPILE_TEST 6 select DPLL 10 This driver supports Microchip Azurite family DPLL/PTP/SyncE 11 devices that support up to 5 independent DPLL channels, 23 This is I2C bus implementation for Microchip Azurite DPLL/PTP/SyncE 35 This is SPI bus implementation for Microchip Azurite DPLL/PTP/SyncE
|
| /linux/arch/arm/mach-omap2/ |
| H A D | clkt2xxx_dpll.c | 3 * OMAP2-specific DPLL control functions 21 * _allow_idle - enable DPLL autoidle bits 22 * @clk: struct clk * of the DPLL to operate on 24 * Enable DPLL automatic idle control. The DPLL will enter low-power 26 * REVISIT: DPLL can optionally enter low-power bypass by writing 0x1 38 * _deny_idle - prevent DPLL from automatically idling 39 * @clk: struct clk * of the DPLL to operate on 41 * Disable DPLL automatic idle control. No return value.
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | dra7xx-clocks.dtsi | 229 compatible = "ti,omap4-dpll-m4xen-clock"; 235 dpll_abe_x2_ck: clock-dpll-abe-x2 { 237 compatible = "ti,omap4-dpll-x2-clock"; 242 dpll_abe_m2x2_ck: clock-dpll-abe-m2x2-8@1f0 { 264 dpll_abe_m2_ck: clock-dpll-abe-m2-8@1f0 { 276 dpll_abe_m3x2_ck: clock-dpll-abe-m3x2-8@1f4 { 307 compatible = "ti,omap4-dpll-core-clock"; 313 dpll_core_x2_ck: clock-dpll-core-x2 { 315 compatible = "ti,omap4-dpll-x2-clock"; 320 dpll_core_h12x2_ck: clock-dpll-core-h12x2-8@13c { [all …]
|
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | microchip,sparx5-dpll.yaml | 4 $id: http://devicetree.org/schemas/clock/microchip,sparx5-dpll.yaml# 7 title: Microchip Sparx5 DPLL Clock 13 The Sparx5 DPLL clock controller generates and supplies clock to 18 const: microchip,sparx5-dpll 46 compatible = "microchip,sparx5-dpll";
|