Lines Matching +full:output +full:- +full:enable

1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2014-2015 Intel Corporation.
17 /* Output ports (MSC, PTI) */
26 * struct intel_th_output - descriptor INTEL_TH_OUTPUT type devices
27 * @port: output port number, assigned by the switch
29 * @scratchpad: scratchpad bits to flag when this output is enabled
30 * @multiblock: true for multiblock output configuration
31 * @active: true when this output is enabled
34 * Output port descriptor, used by switch driver to tell which output
35 * port this output device corresponds to. Filled in at output device's
36 * probe time by switch::assign(). Passed from output device driver to
37 * switch related code to enable/disable its port.
48 * struct intel_th_drvdata - describes hardware capabilities and quirks
49 * @tscu_enable: device needs SW to enable time stamping unit
61 #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0)
64 * struct intel_th_device - device on the intel_th bus
69 * @type: INTEL_TH_{SOURCE,OUTPUT,SWITCH}
70 * @id: device instance or -1
72 * @output: output descriptor for INTEL_TH_OUTPUT devices
87 struct intel_th_output output; member
96 * intel_th_device_get_resource() - obtain @num'th resource of type @type
107 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource()
108 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource()
109 return &thdev->resource[i]; in intel_th_device_get_resource()
115 * GTH, output ports configuration
122 GTH_PTI, /* MIPI-PTI */
126 * intel_th_output_assigned() - if an output device is assigned to a switch port
127 * @thdev: the output device
134 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned()
135 (thdev->output.port >= 0 || in intel_th_output_assigned()
136 thdev->output.type == GTH_NONE); in intel_th_output_assigned()
140 * struct intel_th_driver - driver for an intel_th_device device
144 * @assign: match a given output type device against available outputs
145 * @unassign: deassociate an output type device from an output port
146 * @prepare: prepare output port for tracing
147 * @enable: enable tracing for a given output device
148 * @disable: disable tracing for a given output device
150 * @activate: enable tracing on the output's side
151 * @deactivate: disable tracing on the output's side
156 * Switch device driver needs to fill in @assign, @enable and @disable
169 struct intel_th_output *output);
170 void (*enable)(struct intel_th_device *thdev, member
171 struct intel_th_output *output);
173 struct intel_th_output *output);
175 struct intel_th_output *output);
176 /* output ops */
210 struct device *parent = thdev->dev.parent; in to_intel_th_parent()
220 if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th()
223 if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) in to_intel_th()
226 return dev_get_drvdata(thdev->dev.parent); in to_intel_th()
261 * struct intel_th - Intel TH controller
271 * @major: device node major for output devices
301 if (thdev->type == INTEL_TH_SWITCH) in to_intel_th_hub()
303 else if (thdev->type == INTEL_TH_OUTPUT) in to_intel_th_hub()
306 return to_intel_th(thdev)->hub; in to_intel_th_hub()
336 /* PTI output == same window as GTH */