Lines Matching defs:output

25  * struct gth_output - GTH view on an output port
27 * @output: link to output device's output descriptor
28 * @index: output port number
30 * @master: bitmap of masters configured for this output
34 struct intel_th_output *output;
44 * @output_group: attributes describing output ports
46 * @output: output ports
47 * @master: master/output port assignments
56 struct gth_output output[TH_POSSIBLE_OUTPUTS];
181 /* disconnect from the previous output port, if any */
185 clear_bit(ma->master, gth->output[old_port].master);
191 if (gth->output[old_port].output->active)
195 /* connect to the new output port, if any */
198 if (!gth->output[port].output) {
203 set_bit(ma->master, gth->output[port].master);
206 if (gth->output[port].output->active)
242 OUTPUT_PARM(port, 0x7, 1, 0, output),
243 OUTPUT_PARM(null, BIT(3), 1, 1, output),
244 OUTPUT_PARM(drop, BIT(4), 1, 1, output),
245 OUTPUT_PARM(reset, BIT(5), 1, 0, output),
246 OUTPUT_PARM(flush, BIT(7), 0, 1, output),
291 /* output ports */
465 * intel_th_gth_stop() - stop tracing to an output device
467 * @output: output device's descriptor
471 * pipelines to be empty for the corresponding output port.
474 struct intel_th_output *output,
478 container_of(output, struct intel_th_device, output);
490 count && !(reg & BIT(output->port)); count--) {
497 output->port);
499 /* wait on output piepline empty */
508 * intel_th_gth_start() - start tracing to an output device
510 * @output: output device's descriptor
515 struct intel_th_output *output)
519 if (output->multiblock)
527 * intel_th_gth_disable() - disable tracing to an output device
529 * @output: output device's descriptor
531 * This will deconfigure all masters set to output to this device,
533 * "pipeline empty" bit for corresponding output port.
536 struct intel_th_output *output)
543 output->active = false;
545 for_each_set_bit(master, gth->output[output->port].master,
551 intel_th_gth_stop(gth, output, true);
554 reg &= ~output->scratchpad;
568 struct intel_th_output *output)
574 * Wait until the output port is in reset before we start
578 count && !(gth_output_get(gth, output->port) & BIT(5)); count--)
583 * intel_th_gth_enable() - enable tracing to an output device
585 * @output: output device's descriptor
587 * This will configure all masters set to output to this device and
591 struct intel_th_output *output)
599 for_each_set_bit(master, gth->output[output->port].master,
601 gth_master_set(gth, master, output->port);
604 output->active = true;
611 scrpd |= output->scratchpad;
614 intel_th_gth_start(gth, output);
620 * @output: output device's descriptor
626 struct intel_th_output *output)
647 intel_th_gth_stop(gth, output, false);
648 intel_th_gth_start(gth, output);
652 * intel_th_gth_assign() - assign output device to a GTH output port
654 * @othdev: output device
656 * This will match a given output device parameters against present
657 * output ports on the GTH and fill out relevant bits in output device's
675 if (gth->output[i].port_type != othdev->output.type)
688 othdev->output.port = i;
689 othdev->output.active = false;
690 gth->output[i].output = &othdev->output;
697 * intel_th_gth_unassign() - deassociate an output device from its output port
699 * @othdev: output device
705 int port = othdev->output.port;
712 othdev->output.port = -1;
713 othdev->output.active = false;
714 gth->output[port].output = NULL;
725 int port = 0; /* FIXME: make default output configurable */
736 set_bit(master, gth->output[port].master);
774 * capture configuration attributes. Also, refuse to assign output
794 gth->output[i].gth = gth;
795 gth->output[i].index = i;
796 gth->output[i].port_type =
798 if (gth->output[i].port_type == GTH_NONE)
801 ret = intel_th_output_enable(th, gth->output[i].port_type);